def METHOD_NAME(self, training_data, cfg, **kwargs):
    """Train this component.
    This is the components chance to train itself provided
    with the training data. The component can rely on
    any context attribute to be present, that gets created
    by a call to :meth:`components.Component.pipeline_init`
    of ANY component and
    on any context attributes created by a call to
    :meth:`components.Component.train`
    of components previous to this one."""
    for lookup_table in training_data.lookup_tables:
        key = lookup_table['name']
        pattern = []
        for element in lookup_table['elements']:
            tokens = [{'LOWER': token.lower()} for token in str(element).split()]
            pattern.append(tokens)
        self.matcher.add(key, pattern)