def _annotate_params(self, word):
        """Annotates a given word for the UserSays data field of an Intent object.

        Annotations are created using the entity map within the user_says.yaml template.
        """
        annotation = {}
        annotation['text'] = word
        annotation['meta'] = '@' + self.entity_map[word]
        annotation['alias'] = self.entity_map[word].replace('sys.', '')
        annotation['userDefined'] = True
        self.data.append(annotation)
def _annotate_params ( self , word ) : annotation = { } annotation [ 'text' ] = word annotation [ 'meta' ] = '@' + self . entity_map [ word ] annotation [ 'alias' ] = self . entity_map [ word ] . replace ( 'sys.' , '' ) annotation [ 'userDefined' ] = True self . data . append ( annotation )
Annotates a given word for the UserSays data field of an Intent object.

        Annotations are created using the entity map within the user_says.yaml template.