lunarlist commited on
Commit
a4d915a
·
1 Parent(s): b593290

add info + example code

Browse files
Files changed (1) hide show
  1. README.md +10 -7
README.md CHANGED
@@ -37,17 +37,20 @@ It achieves the following results on the evaluation set:
37
 
38
  ## Model description
39
 
40
- More information needed
41
 
42
- ## Intended uses & limitations
43
 
44
- More information needed
 
45
 
46
- ## Training and evaluation data
 
47
 
48
- More information needed
49
-
50
- ## Training procedure
 
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