I want to use stanford parser using Python, I use Windows 7, I've installed Python 2.7 and nltk 3.0 and I downloaded the stanford parser from the official site.
I got the javahome environment problem which I solved, then I got this error message:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)
and I can't find a solution for this problem.
I used the next code :
# -*- coding: utf-8 -*-
from nltk.parse import stanford
parser = stanford.StanfordParser(model_path='C:\Program Files (x86)\stanford-parser-full-2015-01-30\edu\stanford\nlp\models\lexparser\englishPCFG.ser.gz')
sent = 'my name is zim'
parser.parse(sent)
I've looked in stack overflow for a solution but I didn't find one.