mindmeld.text_preparation.preprocessors module

This module contains a preprocessor base class.

class mindmeld.text_preparation.preprocessors.NoOpPreprocessor[source]

Bases: mindmeld.text_preparation.preprocessors.Preprocessor

NoOpPreprocessor object

process(text)[source]
Parameters:text (str) --
Returns:(str)
class mindmeld.text_preparation.preprocessors.Preprocessor[source]

Bases: abc.ABC

Base class for Preprocessor object

process(text)[source]
Parameters:text (str) --
Returns:(str)
tojson()[source]

Method defined to obtain recursive JSON representation of a TextPreparationPipeline.

Parameters:None. --
Returns:JSON representation of Preprocessor (dict) .
class mindmeld.text_preparation.preprocessors.PreprocessorFactory[source]

Bases: object

Preprocessor Factory Class

static get_preprocessor(preprocessor: str)[source]

A static method to get a Preprocessor

Parameters:preprocessor (str) -- Name of the desired Preprocessor class
Returns:Preprocessor Class
Return type:(Preprocessor)