Python Nltk: Stanford Ner Tagger Error Message: Nltk Was Unable To Find The Java File
Trying to get Stanford NER working with Python. Followed some instructions on the web, but got the error message: 'NLTK was unable to find the java file! Use software specific conf
Solution 1:
Found the solution on the web. Replace the path with your own.
importosjava_path="C:/../../jdk1.8.0_101/bin/java.exe"
os.environ['JAVAHOME'] = java_path
or:
import nltk
nltk.internals.config_java('C:/../../jdk1.8.0_101/bin/java.exe')
Source: https://tianyouhu.wordpress.com/2016/09/01/problem-of-nltk-with-stanfordtokenizer/
Baca Juga
- Pyqt5 Cannot Update Progress Bar From Thread And Received The Error "cannot Create Children For A Parent That Is In A Different Thread"
- How To Iterate Through Each Line Of A Text File And Get The Sentiment Of Those Lines Using Python?
- Installing Stanford Parser's Python Interface: Error: Command 'gcc' Failed With Exit Status 1 Rake Aborted
Post a Comment for "Python Nltk: Stanford Ner Tagger Error Message: Nltk Was Unable To Find The Java File"