rasa_nlu_gq
rasa_nlu_gq copied to clipboard
Failed to find component class for 'rasa_nlu_gao.extractors.entity_synonyms.EntitySynonymMapper'
我发现用官方的EntitySynonymMapper似乎对中文起不了作用,于是想试一下rasa_nlu_gao的EntitySynonymMapper但是导入不成功。另外我想知道是我的nlu文件写法有问题还是他这个官方的synonym真的对中文不管用?还有regex好像也不管用
config.yml pipeline:
- name: "JiebaTokenizer"
- name: "CRFEntityExtractor"
- name: "EntitySynonymMapper"
- name: "rasa_nlu_gao.extractors.jieba_pseg_extractor.JiebaPsegExtractor" part_of_speech: ["nr","ns","nt"]
- name: "rasa_nlu_gao.featurizers.bert_vectors_featurizer.BertVectorsFeaturizer" ip: '127.0.0.1' port: 5555 port_out: 5556 show_server_config: False timeout: 10000
- name: "rasa_nlu_gao.classifiers.embedding_bert_intent_classifier.EmbeddingBertIntentClassifier"
nlu.md 片段
intent:check_report
- 今天日报
- 本周周报
- 本月月报
- 这个月月报
- 1月的月报
- 查看日报
- 查看今天的日报
- 查看本周的周报
- 查看本月的月报
synonym:今天
- 昨天
- 前天
synonym:本周
- 这周
- 上周
regex:month
- [上这本]{1,2}月
- [1十]?[一二三四五六七八九十0-9]月
官方的regex只是为crf提供了一个特征来使用的,而官方的crf更多的特征是针对英文的。synonym官方的是支持的,用过是可以的