17c3465bc1dddaeab907e54de41c3fc804cc2d8f,sumy/nlp/stemmers/__init__.py,Stemmer,__init__,#Stemmer#Any#,26
Before Change
}
def __init__(self, language):
self._stemmer = self._LANGUAGES.get(language, self.NULL)
def __call__(self, word):
return self._stemmer(word)
After Change
return
stemmer_classname = language.capitalize() + "Stemmer"
try:
stemmer_class = getattr(nltk_stemmers_module, stemmer_classname)
except AttributeError:
raise LookupError("Stemmer is not available for language %s." % language)
self._stemmer = stemmer_class().stem
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: miso-belica/sumy
Commit Name: 17c3465bc1dddaeab907e54de41c3fc804cc2d8f
Time: 2014-04-20
Author: lucas.cimon@gmail.com
File Name: sumy/nlp/stemmers/__init__.py
Class Name: Stemmer
Method Name: __init__
Project Name: scipy/scipy
Commit Name: 8d3cd578f9c0a36d29411c96fa70402a7a56d502
Time: 2015-11-08
Author: evgeni@burovski.me
File Name: scipy/_lib/decorator.py
Class Name: FunctionMaker
Method Name: update
Project Name: cesium-ml/cesium
Commit Name: 0c7f52ec5283148dda8ee74c056d42b38e188f94
Time: 2015-01-12
Author: a.crellinquick@gmail.com
File Name: TCP/Software/feature_extract/Code/feature_interfaces.py
Class Name:
Method Name: initialize