-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.yml
35 lines (33 loc) · 1.02 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
language: zh
pipeline:
- name: "rasa_chinese.nlu.tokenizers.lm_tokenizer.LanguageModelTokenizer"
tokenizer_url: http://localhost:8001
# Flag to check whether to split intents
intent_tokenization_flag: false
# Symbol on which intent should be split
intent_split_symbol: "_"
- name: "nlu.lm_featurizer.LanguageModelFeaturizer"
model_name: "bert"
# model_weights: "bert-base-chinese"
# model_weights: "./bert-models/chinese_wwm_ext_pytorch"
model_weights: hfl/chinese-bert-wwm-ext
from_pt: true
cache_dir: "./cache"
- name: "nlu.recognizers_service_extractor.RecognizersServiceEntityExtractor"
culture: 'zh-cn'
- name: "RegexFeaturizer"
- name: "LexicalSyntacticFeaturizer"
- name: "CountVectorsFeaturizer"
- name: "CountVectorsFeaturizer"
analyzer: "char_wb"
min_ngram: 1
max_ngram: 7
- name: "DIETClassifier"
epochs: 100
- name: "EntitySynonymMapper"
policies:
- name: MemoizationPolicy
- name: TEDPolicy
max_history: 10
epochs: 100
- name: RulePolicy