flair.splitter.SciSpacySentenceSplitter#

class flair.splitter.SciSpacySentenceSplitterView on GitHub#

Bases: SpacySentenceSplitter

Sentence splitter using the spacy model en_core_sci_sm.

Convenience class to instantiate SpacySentenceSplitter with Spacy model en_core_sci_sm for sentence splitting and SciSpacyTokenizer as tokenizer.

__init__()View on GitHub#

Methods

__init__()

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.