Running Stanford POS tagger in NLTK leads to “not a valid Win32 application” on Windows
问题 I am trying to use stanford POS tagger in NLTK by the following code: import nltk from nltk.tag.stanford import POSTagger st = POSTagger('E:\Assistant\models\english-bidirectional-distsim.tagger', 'E:\Assistant\stanford-postagger.jar') st.tag('What is the airspeed of an unladen swallow?'.split()) and here is the output: Traceback (most recent call last): File "E:\J2EE\eclipse\WSNLP\nlp\src\tagger.py", line 5, in <module> st.tag('What is the airspeed of an unladen swallow?'.split()) File "C: