bda315d44c7875298cb09ffc77da9758ae2a2108,soynlp/lemmatizer/_lemmatizer.py,Lemmatizer,lemmatize,#Lemmatizer#Any#Any#,21
Before Change
candidates = set()
for i in range(1, len(word)+1):
l, r = word[:i], word[i:]
if check_if_r_is_known and not self.is_surfacial_eomi(r):
continue
for stem, ending in _lemma_candidate(l, r, self._predefined):
if self.is_stem(stem):
candidates.add((stem, ending))
return candidates
After Change
l, r = word[:i], word[i:]
for stem, ending in _lemma_candidate(l, r, self._predefined):
if stem in self._stems:
if check_only_stem:
candidates.add((stem, ending))
elif ending in self._endings:
candidates.add((stem, ending))
return candidates
def candidates(self, word):
candidates = set()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: lovit/soynlp
Commit Name: bda315d44c7875298cb09ffc77da9758ae2a2108
Time: 2018-08-26
Author: soy.lovit@gmail.com
File Name: soynlp/lemmatizer/_lemmatizer.py
Class Name: Lemmatizer
Method Name: lemmatize
Project Name: mynlp/ccg2lambda
Commit Name: 5b5d9a9aedf8e11b9609d28b26b6488bc20cb08b
Time: 2017-03-24
Author: pascual@nii.ac.jp
File Name: scripts/semantic_types.py
Class Name:
Method Name: merge_dynamic_libraries
Project Name: mathics/Mathics
Commit Name: 5a8afe8256c9586a9dff05e4c16b69d53f5857ae
Time: 2016-08-08
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/inout.py
Class Name: Off
Method Name: apply