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/
Post a Comment for "Python Nltk: Stanford Ner Tagger Error Message: Nltk Was Unable To Find The Java File"