Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

You need to have installed the python library, otherwise the Stage will return an ImportError.

You can execute the proper pip install command beforehand to have the library installed and ready to be used.


The result of the stage is a list of sentences that are added to the intermediate object.

Properties

PropertyDescriptionDefaultTypeRequired
typeStage class name-stringYes
enableEnable stage for executiontruebooleanNo
nameName for this specific stagestringNo
use_nlpIndicates the stage to use NLTK to split the sentences instead of regex patterns.FalsebooleanNo
regexIndicates the regex pattern that will be used to split the sentences.[//.|//!|//?]\s+stringNo

Example Configuration

Code Block
languagepy
themeDJango
_split_sentence = SentenceSplitterStage(
	use_nlp=False
    regex="[//.|//!|//?]\s+",
    enable=True,
    name='split_sentence_stage',
)