Files changed (1) hide show
  1. README.md +22 -0
README.md CHANGED
@@ -48,6 +48,28 @@ language:
48
 
49
  **Headline Metrics:** Token Accuracy = **0.9719** | Macro-F1 = **0.9195**
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  ## Limitations
52
 
53
  * English-only.
 
48
 
49
  **Headline Metrics:** Token Accuracy = **0.9719** | Macro-F1 = **0.9195**
50
 
51
+ ## Example Usage
52
+ ```python
53
+ from transformers import pipeline
54
+
55
+ # 1. Load the POS tagger pipeline
56
+ pos_tagger = pipeline(
57
+ task="token-classification",
58
+ model="Elpapudex/Pos-full",
59
+ aggregation_strategy="simple"
60
+ )
61
+
62
+ # 2. Input sentence to analyze
63
+ text = "The quick brown fox jumps gracefully over the lazy dog."
64
+
65
+ # 3. Predict POS tags
66
+ results = pos_tagger(text)
67
+
68
+ # 4. Display results
69
+ for tag in results:
70
+ print(f"Word: {tag['word']:<12} | Tag: {tag['entity_group']:<9} | Confidence: {tag['score']:.2%}")
71
+ ```
72
+
73
  ## Limitations
74
 
75
  * English-only.