Maps entities to their synonyms if they appear in the training data.
Components that should be included in the pipeline before this component.
Creates the mapper.
config- The mapper's config.
model_storage- Storage which the component can use to persist and load itself.
resource- Resource locator for this component which can be used to persist and load itself from the
synonyms- A dictionary of previously known synonyms.
Creates component (see parent class for full docstring).
Trains the synonym lookup table.
Modifies entities attached to message to resolve synonyms.
messages- List containing the latest user message
List containing the latest user message with entities resolved to synonyms if there is a match.
Loads trained component (see parent class for full docstring).
Replace any entities which match a synonym with the synonymous entity.