km_sent_splitter.py
Korpus Malti sentence splitter.
- class malti.sent_splitter.km_sent_splitter.km_sent_splitter.KMSentSplitter
Bases:
SentSplitterThe sentence splitter used by the MLRS Korpus Malti corpus.
- __init__() None
Constructor.
- Return type:
None
- split(text: str) list[str]
Split a text into a list of sentences.
- Parameters:
text (str) – The text to split.
- Returns:
The list of sentences.
- Return type:
list[str]