Skip to content

Commit

Permalink
Merge pull request #160 from Ilhasoft/feature/analyse_char
Browse files Browse the repository at this point in the history
Added analyze char
  • Loading branch information
dyohan9 authored Nov 1, 2019
2 parents f8d2756 + 011139f commit 06e2cd2
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,17 @@ def get_rasa_nlu_config_from_update(update):
if use_spacy:
pipeline.append({"name": "intent_featurizer_spacy"})
else:
pipeline.append({"name": "intent_featurizer_count_vectors"})
if update.get('use_analyze_char'):
pipeline.append(
{
"name": "intent_featurizer_count_vectors",
"analyzer": "char",
"min_ngram": 3,
"max_ngram": 3
}
)
else:
pipeline.append({"name": "intent_featurizer_count_vectors"})
# intent classifier
pipeline.append(
{
Expand Down

0 comments on commit 06e2cd2

Please sign in to comment.