Lilit-Sophia
commited on
Commit
·
6f7aa37
1
Parent(s):
c17f3dc
Update README.md
Browse files
README.md
CHANGED
@@ -68,6 +68,20 @@ class XclLanguage(DefaultLanguage):
|
|
68 |
# Add the custom language class to SpaCy
|
69 |
set_lang_class("xcl", XclLanguage)
|
70 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
|
72 |
### Label Scheme
|
73 |
|
|
|
68 |
# Add the custom language class to SpaCy
|
69 |
set_lang_class("xcl", XclLanguage)
|
70 |
```
|
71 |
+
## Example Usage
|
72 |
+
|
73 |
+
```python
|
74 |
+
import spacy
|
75 |
+
nlp = spacy.load("xcl_ud_caval")
|
76 |
+
|
77 |
+
# Example text
|
78 |
+
text = "Ասաց եւ առակ մի նոցա՝ առ այն թե պարտ է յամենայն ժամ կալ նոցա յաղաւթս. եւ մի ձանձրանալ."
|
79 |
+
# Process the text
|
80 |
+
doc = nlp(text)
|
81 |
+
# Print the results
|
82 |
+
for token in doc:
|
83 |
+
print(f"Token: {token.text}, POS: {token.pos_}, Morph: {token.morph}")
|
84 |
+
```
|
85 |
|
86 |
### Label Scheme
|
87 |
|