notice

This is documentation for Rasa Open Source Documentation v2.0.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (2.1.x).

Version: 2.0.x

rasa.nlu.featurizers.dense_featurizer.lm_featurizer

LanguageModelFeaturizer Objects

class LanguageModelFeaturizer(DenseFeaturizer)

Featurizer using transformer based language models.

Uses the output of HFTransformersNLP component to set the sequence and sentence level representations for dense featurizable attributes of each message object.

process

| process(message: Message, **kwargs: Any) -> None

Sets the dense features from the language model doc to the incoming message.