nijatzeynalov
commited on
Commit
·
ba790c2
1
Parent(s):
c2d8651
Update README.md
Browse files
README.md
CHANGED
@@ -57,14 +57,16 @@ from simpletransformers.classification import ClassificationModel
|
|
57 |
model = ClassificationModel("bert", "nijatzeynalov/azerbaijani-medical-question-classification", use_cuda=False)
|
58 |
```
|
59 |
|
60 |
-
|
61 |
|
62 |
```python
|
63 |
sample_text = 'salam menim qulagimda agri var'
|
64 |
result = model.predict([sample_text])
|
65 |
|
66 |
result_helper_funct(result)
|
|
|
|
|
67 |
|
|
|
68 |
'LOR həkimi'
|
69 |
-
|
70 |
-
```
|
|
|
57 |
model = ClassificationModel("bert", "nijatzeynalov/azerbaijani-medical-question-classification", use_cuda=False)
|
58 |
```
|
59 |
|
60 |
+
__At the next step, we just write down the text we want to classify and use our helper function.__
|
61 |
|
62 |
```python
|
63 |
sample_text = 'salam menim qulagimda agri var'
|
64 |
result = model.predict([sample_text])
|
65 |
|
66 |
result_helper_funct(result)
|
67 |
+
```
|
68 |
+
__Code result:__
|
69 |
|
70 |
+
```python
|
71 |
'LOR həkimi'
|
72 |
+
```
|
|