matchzoo.preprocessors.units.stemming¶
Module Contents¶
Classes¶
Process unit for token stemming. |
-
class
matchzoo.preprocessors.units.stemming.Stemming(stemmer='porter')¶ Bases:
matchzoo.preprocessors.units.unit.UnitProcess unit for token stemming.
- Parameters
stemmer – stemmer to use, porter or lancaster.
-
transform(self, input_: list) → list¶ Reducing inflected words to their word stem, base or root form.
- Parameters
input – list of string to be stemmed.