Spaces:
Sleeping
Sleeping
pos update
Browse files- textUtility.py +1 -1
textUtility.py
CHANGED
|
@@ -14,6 +14,6 @@ def get_pos_from_text(text):
|
|
| 14 |
nlp = spacy.load("en_core_web_sm")
|
| 15 |
docs = nlp(text)
|
| 16 |
for token in docs:
|
| 17 |
-
res = res + token.text+" : " + token.pos_ + token.tag_ +"\n"
|
| 18 |
return res
|
| 19 |
|
|
|
|
| 14 |
nlp = spacy.load("en_core_web_sm")
|
| 15 |
docs = nlp(text)
|
| 16 |
for token in docs:
|
| 17 |
+
res = res + token.text+" : " + token.pos_ + " "+ token.tag_ +"\n"
|
| 18 |
return res
|
| 19 |
|