Skip to main content

nlu of classifiers detection、name entity recognition、classification of chinese text

Project description

一、Chatbot_NLU

Chatbot_NLU 是一个基于 RASA 的自定义中文语言理解组件,他可以替换掉RASA中本身的nlu模块,可以使nlu的准确率有较大提升,目前 引入了 bert ,后续将引入 xlnet

同时,RASA 的自定义组件可以参考 Custom NLU Components

目前 Chatbot_NLU 支持的功能有:

1、bert vector

2、bert intent

3、bert slot

二、安装使用

1、安装

pip install chatbot_nlu

2、使用

Chatbot_NLU 的使用是在 config.yml 文件中修改配置,常见的使用方法请参考:

language: "zh"

pipeline:
- name: "JiebaTokenizer"
- name: "chatbot_nlu.extractors.crf_entity_extractor.CRFEntityExtractor"

# ner
- name: "chatbot_nlu.extractors.jieba_pseg_extractor.JiebaPsegExtractor"
  part_of_speech: ["nr"]

- name: "chatbot_nlu.extractors.bilstm_crf_entity_extractor.BilstmCRFEntityExtractor"


# Word Embedding
- name: "chatbot_nlu.featurizers.bert_vectors_featurizer.BertVectorsFeaturizer"
  ip: "172.18.103.43"
  port: 5555
  port_out: 5556
  show_server_config: True
  timeout: 10000
  check_version: False

三、Update News

  • 2020.1.7 接入钉钉群,支持主动推送消息、outgoing交互

  • 2020.1.9 接入微信

四、Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

chatbot_nlu-1.0.3-py3-none-any.whl (191.4 kB view details)

Uploaded Python 3

File details

Details for the file chatbot_nlu-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: chatbot_nlu-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 191.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for chatbot_nlu-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 295d56e3ffb2a13aa5eb0f029f61a43487bd970e06c7d503b812654c61bf5126
MD5 c76179d63946a670730c119f1cd6b29d
BLAKE2b-256 d6eff336e78f72ca1667bb1211aac2b1184294013000f578b1d72ee0c5b0a12e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page