StrToIntConverter

class fairseq2.data.text.StrToIntConverter(base=10)[source]

Bases: object

Parses integers in a given base

__call__(s)[source]

Call self as a function.

Return type:

int