flair.splitter.SegtokSentenceSplitter#

class flair.splitter.SegtokSentenceSplitter(tokenizer=<flair.tokenization.SegtokTokenizer object>)View on GitHub#

Bases: SentenceSplitter

Sentence Splitter using SegTok.

Implementation of SentenceSplitter using the SegTok library.

For further details see: fnl/segtok

__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.Sentence objects.

Attributes

name

A string identifier of the sentence splitter.

tokenizer

The flair.tokenization.Tokenizer class used to tokenize sentences after they are split.

property name: str#

A string identifier of the sentence splitter.

property tokenizer: Tokenizer#

The flair.tokenization.Tokenizer class used to tokenize sentences after they are split.