-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
45 lines (43 loc) · 1.9 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Configuration for Rasa NLU.
# https://rasa.com/docs/rasa/nlu/components/
language: zh
pipeline:
- name: JiebaTokenizer # Tokenizer specialized for Chinese texts.
dictionary_path: "jieba_userdict.txt" # Use the library to split texts into words.
- name: "sentiment.SentimentAnalyzer" # Used for sentiment analysis
- name: CountVectorsFeaturizer # Converts text input into a sparse vector of word counts.
analyzer: "char_wb" # Tokenize into character n-grams instead of word n-grams.
min_ngram: 1
max_ngram: 4
#- name: RegexEntityExtractor # Extract entities using regular expression.
# case_sensitive: false
# use_lookup_tables: true
# use_regexes: true
- name: DIETClassifier # Classify intents and extract entities from user messages. (Crucial for extracting entities)
epochs: 150 # 300 - 100 for testing purpose only.
batch_size: 64
learning_rate: 0.001
entity_recognition: true
intent_classification: true
# evaluate_on_number_of_examples: 20 # Test set seems to be too small.
evaluate_every_number_of_epochs: 5 # 10 - 5 for testing purpose only.
constrain_similarities: True
- name: EntitySynonymMapper # Map different synonyms of entities to a single canonical value.
- name: ResponseSelector # Handle frequently asked questions.
epochs: 100
retrieval_intent: faq # only activate when detects intent with the prefix of "faq".
# - name: FallbackClassifier
# threshold: 0.3
policies:
# # No configuration for policies was provided. The following default policies were used to train your model.
# # If you'd like to customize them, uncomment and adjust the policies.
# # See https://rasa.com/docs/rasa/policies for more information.
# - name: MemoizationPolicy
# - name: RulePolicy
# - name: UnexpecTEDIntentPolicy
# max_history: 5
# epochs: 100
# - name: TEDPolicy
# max_history: 5
# epochs: 100
# constrain_similarities: true