Coder Social home page Coder Social logo

gaoq1 / rasa-nlp-architect Goto Github PK

View Code? Open in Web Editor NEW
42.0 5.0 8.0 7.48 MB

采用nlp-architect实现rasa-nlu中文意图提取和槽填充

Python 93.47% Perl 6.52% Shell 0.01%
rasa-nlu intent-extraction slot-filling nlp-architect chinese rasa-core policy rasa

rasa-nlp-architect's Introduction

介绍

这个repository主要是实现了intel的nlp-architect的intent和slot的提取,两个model

  • mtl
  • seq2seq

然后配合提供一个rasa-nlu的server,配合rasa-core使用。

Train mtl model

python train_mtl_model.py --dataset_path rasa_data/rasa_nlu_data/ -b 100 -e 10

Train seq2seq model

python train_seq2seq_model.py --dataset_path rasa_data/rasa_nlu_data/ -b 100 -e 10

Interactive

python interactive.py --model_path models/mtl/model.h5 --dataset_path rasa_data/rasa_nlu_data/

or

python interactive.py --model_path models/seq2seq/model.h5 --dataset_path rasa_data/rasa_nlu_data/

Provide a server

python server.py -m models/mtl/model.h5 -i models/mtl/model_info.dat

or

python server.py -m models/seq2seq/model.h5 -i models/seq2seq/model_info.dat

TODO

现阶段Intent只返回了概率最大的,后续需要做intent ranking.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.