Structural interface every text normaliser must satisfy.
-
normalize(text)[source]
Apply normalisation to text.
- Parameters:
- textstr
Raw input text.
- Returns:
- str
Normalised text.
- Parameters:
text (str)
- Return type:
str
-
normalize_batch(texts)[source]
Apply normalisation to a list of texts.
- Parameters:
- textslist[str]
Input texts.
- Returns:
- list[str]
Normalised texts.
- Parameters:
texts (list[str])
- Return type:
list[str]