Closed kaushikacharya closed 5 years ago
JPypeBackend.py of StanfordDependencies allows option to use Stanford CoreNLP lemmatizer using the input parameter: _addlemmas https://github.com/dmcc/PyStanfordDependencies/blob/master/StanfordDependencies/JPypeBackend.py#L86
But NegBio isn't utilizing this option for backend=jpype
I have compared NLTK wordnet vs CoreNLP lemmatization in terms of speed on few sentences. CoreNLP is much faster(almost 10 times). For this had made the following changes:
How about making this change to utilize CoreNLP lemmatization?
I will check if the CoreNLP lemmatizer is consistent with other parts of NegBio, especially the patterns.
I will add it in the next version.
JPypeBackend.py of StanfordDependencies allows option to use Stanford CoreNLP lemmatizer using the input parameter: _addlemmas https://github.com/dmcc/PyStanfordDependencies/blob/master/StanfordDependencies/JPypeBackend.py#L86
But NegBio isn't utilizing this option for backend=jpype
I have compared NLTK wordnet vs CoreNLP lemmatization in terms of speed on few sentences. CoreNLP is much faster(almost 10 times). For this had made the following changes:
How about making this change to utilize CoreNLP lemmatization?