Skip to contents

Processor for textual input. Inherits from FeatureProcessor and defines a minimal no-op process method.

Super classes

RHealth::Processor -> RHealth::FeatureProcessor -> TextProcessor

Methods

Inherited methods


Method process()

Process a raw text input. (Currently a no-op identity function.)

Usage

TextProcessor$process(value)

Arguments

value

A single text input (character string).

Returns

The processed text (same as input).


Method size()

Optional: Return size or dimensionality if applicable.

Usage

TextProcessor$size()

Returns

NULL by default.


Method print()

Return a printable string representation of the processor.

Usage

TextProcessor$print(...)

Arguments

...

Ignored.

Returns

A character string.


Method clone()

The objects of this class are cloneable with this method.

Usage

TextProcessor$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.