DigitFinder#

class polpo.preprocessing.str.DigitFinder(index=-1)[source]#

Bases: PreprocessingStep

Find digits in a strings.

Parameters:

index (int) – Which index to pick in case of multiple digit sets are expected to be found.

apply(string)[source]#

Apply step.

Parameters:

string (str)

Returns:

int