Migrate model card from transformers-repo
Browse filesRead announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755
Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/kuppuluri/telugu_bertu_pos/README.md
README.md
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Part of Speech tagging Model for Telugu
|
2 |
+
|
3 |
+
#### How to use
|
4 |
+
|
5 |
+
```python
|
6 |
+
from simpletransformers.ner import NERModel
|
7 |
+
model = NERModel('bert',
|
8 |
+
'kuppuluri/telugu_bertu_pos',
|
9 |
+
args={"use_multiprocessing": False},
|
10 |
+
labels=[
|
11 |
+
'QC', 'JJ', 'NN', 'QF', 'RDP', 'O',
|
12 |
+
'NNO', 'PRP', 'RP', 'VM', 'WQ',
|
13 |
+
'PSP', 'UT', 'CC', 'INTF', 'SYMP',
|
14 |
+
'NNP', 'INJ', 'SYM', 'CL', 'QO',
|
15 |
+
'DEM', 'RB', 'NST', ],
|
16 |
+
use_cuda=False)
|
17 |
+
|
18 |
+
text = "విరాట్ కోహ్లీ కూడా అదే నిర్లక్ష్యాన్ని ప్రదర్శించి కేవలం ఒక పరుగుకే రనౌటై పెవిలియన్ చేరాడు ."
|
19 |
+
results = model.predict([text])
|
20 |
+
```
|
21 |
+
|
22 |
+
## Training data
|
23 |
+
|
24 |
+
Training data is from https://github.com/anikethjr/NER_Telugu
|
25 |
+
|
26 |
+
## Eval results
|
27 |
+
|
28 |
+
On the test set my results were
|
29 |
+
|
30 |
+
eval_loss = 0.0036797842364565416
|
31 |
+
|
32 |
+
f1_score = 0.9983795127912227
|
33 |
+
|
34 |
+
precision = 0.9984325602401637
|
35 |
+
|
36 |
+
recall = 0.9983264709788816
|