Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to find component class for 'rasa_nlu_gao.extractors.entity_synonyms.EntitySynonymMapper' #34

Open
BI4O opened this issue Mar 4, 2020 · 1 comment

Comments

@BI4O
Copy link

BI4O commented Mar 4, 2020

我发现用官方的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

synonym:今天

  • 昨天
  • 前天

synonym:本周

  • 这周
  • 上周

regex:month

  • [上这本]{1,2}月
  • [1十]?[一二三四五六七八九十0-9]月
@GaoQ1
Copy link
Owner

GaoQ1 commented May 14, 2020

官方的regex只是为crf提供了一个特征来使用的,而官方的crf更多的特征是针对英文的。synonym官方的是支持的,用过是可以的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants