flair.splitter.NoSentenceSplitter#
- class flair.splitter.NoSentenceSplitter(tokenizer=<flair.tokenization.SegtokTokenizer object>)View on GitHub#
Bases:
SentenceSplitterSentence Splitter which treats the full text as a single Sentence.
Implementation of
SentenceSplitterwhich treats the complete text as one sentence.- __init__(tokenizer=<flair.tokenization.SegtokTokenizer object>)View on GitHub#
Methods
__init__([tokenizer])split(text[, link_sentences])Takes as input a text as a plain string and outputs a list of
flair.data.Sentenceobjects.Attributes
A string identifier of the sentence splitter.
The
flair.tokenization.Tokenizerclass used to tokenize sentences after they are split.- property tokenizer: Tokenizer#
The
flair.tokenization.Tokenizerclass used to tokenize sentences after they are split.
- property name: str#
A string identifier of the sentence splitter.