mindmeld.models.labels module¶
This module contains classes related to encoding labels for models defined in the models subpackage.
-
class
mindmeld.models.labels.
EntityLabelEncoder
(config)[source]¶ Bases:
mindmeld.models.labels.LabelEncoder
-
decode
(tags_by_example, **kwargs)[source]¶ Decodes the labels from the tags passed in for each query
Parameters: Returns: A list of decoded labels per query
Return type:
-
-
class
mindmeld.models.labels.
LabelEncoder
(config)[source]¶ Bases:
object
The label encoder is responsible for converting between rich label objects such as a ProcessedQuery and basic formats a model can interpret.
A MindMeld model uses its label encoder at fit time to encode labels into a form it can deal with, and at predict time to decode predictions into objects