Skip to content

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

Description

@BI4O

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions