linguistictagger tag_string no longer returns parts of speech
linguistictagger.tag_string with SCHEME_LEXICAL_CLASS no longer returns parts of speech. Instead of noun, verb, etc being returned it returns OtherWord. Does anyone know of a workaround for this?
import linguistictagger as lt
text = 'Python is pretty awesome.'
results = lt.tag_string(text, lt.SCHEME_LEXICAL_CLASS)
for tag, substring, range in results:
if tag != 'Whitespace':
print(substring + ": " + tag)
DaveClark last edited by
I just tried your program and it seems to work. iphone 6 plus, ios 11.4, pythonista 3.2
I didn't know about your lexical stuff, it looks pretty cool
So when you ran the program instead of getting OtherWord it returned the corresponding part of speech (noun, verb, etc)?
I am running it on iPad with Python 3, IOS 10.3.3, pythonista 3.2.
johnridesabike last edited by
It seems to work as expected for me too. Here’s the output:
Python: Noun is: Verb pretty: Adverb awesome: Adjective .: SentenceTerminator
Pythonista 3.2, Default interpreter 3.6.1, iOS 11.4, iPad
Thanks for the information. Based on this it appears to be an issue with Pythonista running on IOS 10.3.3.