Closed sush1996 closed 3 years ago
@sush1996 It would be better if you show the entire error stack here.
You need to check whether you have JPype1 installed in your m/c.
Check if this command works:
import jpype
Here's the workflow:
https://github.com/ncbi-nlp/NegBio/blob/master/negbio/pipeline/ptb2ud.py#L64
Depending on whether jpype is present or not, self._backend
gets assigned.
And depending on that,
program decides which convert_tree()
gets executed by the code block starting from
https://github.com/ncbi-nlp/NegBio/blob/master/negbio/pipeline/ptb2ud.py#L84
if self._backend == 'jpype':
dependency_graph = self.__sd.convert_tree(parse_tree,
representation=self.representation,
universal=self.universal,
add_lemmas=True)
else:
dependency_graph = self.__sd.convert_tree(parse_tree,
representation=self.representation,
universal=self.universal)
In case of StanfordDependencies.py convert_trees() is called by convert_tree()
Not sure how to proceed with resolving this.