-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.yml
39 lines (39 loc) · 839 Bytes
/
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
version: "2.0"
language: zh
pipeline:
- name: SpacyNLP
model: zh_core_web_md
- name: SpacyTokenizer
- name: SpacyFeaturizer
- name: RegexFeaturizer
- name: DIETClassifier
epochs: 200
- name: EntitySynonymMapper
- name: RegexEntityExtractor
#- name: ResponseSelector
# epochs: 100
#
- name: ResponseSelector
retrieval_intent: out_of_scope
scale_loss: false
epochs: 100
- name: ResponseSelector
retrieval_intent: faq
scale_loss: false
epochs: 100
- name: ResponseSelector
retrieval_intent: chitchat
scale_loss: false
epochs: 100
#
- name: FallbackClassifier
threshold: 0.5
ambiguity_threshold: 0.2
policies:
- name: AugmentedMemoizationPolicy
- name: TEDPolicy
epochs: 40
- name: RulePolicy
core_fallback_threshold: 0.4
core_fallback_action_name: "action_default_fallback"
enable_fallback_prediction: True