This is unreleased documentation for Rasa Open Source Documentation Master/Unreleased version.
For the latest released documentation, see the latest version (2.0.x).

Version: Master/Unreleased


ConveRTTokenizer Objects

class ConveRTTokenizer(WhitespaceTokenizer)

Tokenizer using ConveRT model. Loads the ConveRT( model from TFHub and computes sub-word tokens for dense featurizable attributes of each message object.


| __init__(component_config: Dict[Text, Any] = None) -> None

Construct a new tokenizer using the WhitespaceTokenizer framework.


| tokenize(message: Message, attribute: Text) -> List[Token]

Tokenize the text using the ConveRT model. ConveRT adds a special char in front of (some) words and splits words into sub-words. To ensure the entity start and end values matches the token values, tokenize the text first using the whitespace tokenizer. If individual tokens are split up into multiple tokens, add this information to the respected tokens.