cudf.core.column.string.StringMethods.porter_stemmer_measure#

StringMethods.porter_stemmer_measure() SeriesOrIndex#

Compute the Porter Stemmer measure for each string. The Porter Stemmer algorithm is described here.

Returns
Series or Index of object.

Examples

>>> import cudf
>>> ser = cudf.Series(["hello", "super"])
>>> ser.str.porter_stemmer_measure()
0    1
1    2
dtype: int32