add info + example code
Browse files
README.md
CHANGED
@@ -37,17 +37,20 @@ It achieves the following results on the evaluation set:
|
|
37 |
|
38 |
## Model description
|
39 |
|
40 |
-
|
41 |
|
42 |
-
##
|
43 |
|
44 |
-
|
|
|
45 |
|
46 |
-
|
|
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
51 |
|
52 |
### Training hyperparameters
|
53 |
|
|
|
37 |
|
38 |
## Model description
|
39 |
|
40 |
+
This model is train on thai pos_tag datasets to help with pos tagging in Thai language.
|
41 |
|
42 |
+
## Example
|
43 |
|
44 |
+
'''
|
45 |
+
from transformers import AutoModelForTokenClassification, AutoTokenizer, TokenClassificationPipeline
|
46 |
|
47 |
+
model = AutoModelForTokenClassification.from_pretrained("lunarlist/pos_thai")
|
48 |
+
tokenizer = AutoTokenizer.from_pretrained("lunarlist/pos_thai")
|
49 |
|
50 |
+
pipeline = TokenClassificationPipeline(model=model, tokenizer=tokenizer, grouped_entities=True)
|
51 |
+
outputs = pipeline("ภาษาไทย ง่าย นิดเดียว")
|
52 |
+
print(outputs)
|
53 |
+
'''
|
54 |
|
55 |
### Training hyperparameters
|
56 |
|