Skip to content

Commit

Permalink
Renamed component to intent_entity_featurizer_regex
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Jul 6, 2017
1 parent 119319b commit a160eb7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Expand Up @@ -12,7 +12,7 @@ This project adheres to `Semantic Versioning`_ starting with version 0.7.0.
Added
-----
- increased test coverage to avoid regressions (ongoing)
- added regex featurization to support intent classification and entity extraction (``intent_featurizer_regex``)
- added regex featurization to support intent classification and entity extraction (``intent_entity_featurizer_regex``)

Changed
-------
Expand Down
10 changes: 5 additions & 5 deletions docs/pipeline.rst
Expand Up @@ -37,11 +37,11 @@ Here is a list of the existing templates:
+---------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| template name | corresponding pipeline |
+===============+===================================================================================================================================================================+
| spacy_sklearn | ``["nlp_spacy", "tokenizer_spacy", "intent_featurizer_regex", "intent_featurizer_spacy", "ner_crf", "ner_synonyms", "intent_classifier_sklearn"]`` |
| spacy_sklearn | ``["nlp_spacy", "tokenizer_spacy", "intent_entity_featurizer_regex", "intent_featurizer_spacy", "ner_crf", "ner_synonyms", "intent_classifier_sklearn"]`` |
+---------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| mitie | ``["nlp_mitie", "tokenizer_mitie", "ner_mitie", "ner_synonyms", "intent_featurizer_regex", "intent_classifier_mitie"]`` |
| mitie | ``["nlp_mitie", "tokenizer_mitie", "ner_mitie", "ner_synonyms", "intent_entity_featurizer_regex", "intent_classifier_mitie"]`` |
+---------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| mitie_sklearn | ``["nlp_mitie", "tokenizer_mitie", "ner_mitie", "ner_synonyms", "intent_featurizer_regex", "intent_featurizer_mitie", "intent_classifier_sklearn"]`` |
| mitie_sklearn | ``["nlp_mitie", "tokenizer_mitie", "ner_mitie", "ner_synonyms", "intent_entity_featurizer_regex", "intent_featurizer_mitie", "intent_classifier_sklearn"]`` |
+---------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| keyword | ``["intent_classifier_keyword"]`` |
+---------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Expand Down Expand Up @@ -173,8 +173,8 @@ intent_classifier_sklearn
to other classifiers it also provides rankings of the labels that did not "win". The spacy intent classifier
needs to be preceded by a featurizer in the pipeline. This featurizer creates the features used for the classification.

intent_featurizer_regex
~~~~~~~~~~~~~~~~~~~~~~~
intent_entity_featurizer_regex
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

:Short: regex feature creation to support intent and entity classification
:Outputs: ``text_features`` and ``tokens.pattern``
Expand Down
2 changes: 1 addition & 1 deletion rasa_nlu/featurizers/regex_featurizer.py
Expand Up @@ -29,7 +29,7 @@


class RegexFeaturizer(Featurizer):
name = "intent_featurizer_regex"
name = "intent_entity_featurizer_regex"

provides = ["text_features"]

Expand Down
8 changes: 4 additions & 4 deletions rasa_nlu/registry.py
Expand Up @@ -58,7 +58,7 @@
"nlp_spacy",
"tokenizer_spacy",
"intent_featurizer_spacy",
"intent_featurizer_regex",
"intent_entity_featurizer_regex",
"ner_crf",
"ner_synonyms",
"intent_classifier_sklearn",
Expand All @@ -68,15 +68,15 @@
"tokenizer_mitie",
"ner_mitie",
"ner_synonyms",
"intent_featurizer_regex",
"intent_entity_featurizer_regex",
"intent_classifier_mitie",
],
"mitie_sklearn": [
"nlp_mitie",
"tokenizer_mitie",
"ner_mitie",
"ner_synonyms",
"intent_featurizer_regex",
"intent_entity_featurizer_regex",
"intent_featurizer_mitie",
"intent_classifier_sklearn",
],
Expand All @@ -95,7 +95,7 @@
"intent_featurizer_mitie",
"intent_featurizer_spacy",
"intent_featurizer_ngrams",
"intent_featurizer_regex",
"intent_entity_featurizer_regex",
"ner_mitie",
"ner_crf",
"ner_spacy",
Expand Down

0 comments on commit a160eb7

Please sign in to comment.