from nltk.parse.stanford import StanfordDependencyParser
dependency_parser = StanfordDependencyParser(path_to_jar=path_to_jar, path_to_models_jar=path_to_models_jar)
raise OSError('Java command failed : ' + str(cmd))
OSError: Java command failed : ['/usr/bin/java', '-mx1000m', '-cp', '/home/xxx/mysite/stanford/stanford-parser-3.9.1-models.jar:/home/xxx/mysite/stanford/stanford-parser.jar:/home/xxx/mysite/stanford/stanford-parser-3.9.1-models.jar', 'edu.stanford.nlp.parser.lexparser.LexicalizedParser', '-model', 'edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz', '-sentences', 'newline', '-outputFormat', 'conll2007', '-encoding', 'utf8', '/tmp/tmpxbyb5fdn']
How can I fix the error. I really need the Stanford parser works on my web app. Otherwise, I have to say good bye to Pythonanywhere