Skip to content

Issue in nlparsing when loading grammar #2

@lizyazpin

Description

@lizyazpin

I am getting this error even when all environment variables are set.
File "prac/build/lib.linux-x86_64-2.7/prac/pracmodules/nl_parsing/src/nlparsing.py", line 66, in init
self.parser = self.package_lexparser.LexicalizedParser.loadModel(self.pcfg_model_fname, ['-retainTmpSubcategories', '-maxLength', '160'])
File "/usr/local/lib/python2.7/dist-packages/jpype/_jpackage.py", line 62, in call
raise TypeError("Package {0} is not Callable".format(self.__name))
TypeError: Package edu.stanford.nlp.parser.lexparser.LexicalizedParser.loadModel is not Callable

I tried to find on the internet and there is no solution. Some people mentioned to give the path as a string. Other mention to check the path... I tried everything. Do you have any suggestion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions