Commit
·
a250f61
1
Parent(s):
77a13ef
Update README.md
Browse files
README.md
CHANGED
@@ -43,8 +43,14 @@ Please note the for the following results, we obtained the macro average.
|
|
43 |
| F1 | 0.66 |
|
44 |
|
45 |
# Using the model
|
|
|
|
|
|
|
46 |
|
47 |
-
|
|
|
|
|
|
|
48 |
|
49 |
# Training code
|
50 |
Following this code, you will get the same results I got. You can run it in Google Colab. Please use a GPU runtime to finish the training quickly.
|
|
|
43 |
| F1 | 0.66 |
|
44 |
|
45 |
# Using the model
|
46 |
+
To use the model in your code, follow huggingface instructions, or
|
47 |
+
```python
|
48 |
+
from transformers import pipeline
|
49 |
|
50 |
+
pipe = pipeline("text-classification", model="AbdallahNasir/book-review-sentiment-classification")
|
51 |
+
result = pipe("من أفضل الكتب التي قرأتها في هذا العام")
|
52 |
+
print(result)
|
53 |
+
```
|
54 |
|
55 |
# Training code
|
56 |
Following this code, you will get the same results I got. You can run it in Google Colab. Please use a GPU runtime to finish the training quickly.
|