Coder Social home page Coder Social logo

trellixvulnteam / rasa_nlu_zj4r Goto Github PK

View Code? Open in Web Editor NEW

This project forked from llgovrdml/rasa_nlu

0.0 0.0 0.0 117.37 MB

High talk nalture language understanding platform of LingLing technology . Ltd

License: Apache License 2.0

Shell 0.03% Python 96.79% Tcl 2.75% PowerShell 0.17% Makefile 0.09% Batchfile 0.11% Dockerfile 0.05% Procfile 0.01%

rasa_nlu_zj4r's Introduction

HT_NLU

High talk nalture language understanding platform of LingLing technology . Ltd

LingLing Technology Dalian Team's project

Sering bert-as-service model

1、clone HT_NLU project to the local machine

git clone https://github.com/LLGOVRDML/Rasa_NLU.git

2、Serving bert as service model as service
cmd --> Windows+R

pip install bert-serving-server -i https://mirrors.aliyun.com/pypi/simple
pip install bert-serving-client -i https://mirrors.aliyun.com/pypi/simple
cd ${yourpath}/HT_NLU/bert-as-service
bert-serving-start -model_dir D:\chinese_L-12_H-768_A-12 -tuned_model_dir C:\Users\weizhen\Desktop\NLU\rasa_model_output -ckpt_name=model.ckpt-1028

image when you see the log print "ready and listening" it means that the bert server is ready , and we can go to the next step

Start rasa_nlu_gq server for classification process

0、cd the root project folder , and double click "visualcppbuildtools full.exe" to install the c++ compiler in windows

1、install related python packages

pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple

2、open project in pycharm and edit execution path
after the previous step , you can open the rasa_nlu_gq project in the pycharm ide
and edit the configuration

in pycharm edit configuration

serving paramaters :

-c sample_configs/config_embedding_bert_intent_estimator_classifier.yml --path projects/bert_gongan_v4

training parameters:

-c sample_configs/config_embedding_bert_intent_estimator_classifier.yml --data data/examples/luis/HighTalkSQSWLuisAppStaging-GA-20180824.json --path projects

image

3、start the rasa_nlu_gq server
and press the run button for running

image

test via browser

image

train rasa process

train rasa nlu with the bert words vectors

python train.py -c sample_configs/config_embedding_bert_intent_classifier.yml --data data/examples/luis/HighTalkSQSWLuisAppStaging-GA-20180824.json --path projects/bert_gongan_v4

Deployed in docker

build rasa docker image

cd rasa_nlu_gq
docker build -t rasa_nlu_gq:v1.0 .

build bert-as-service docker image

cd bert-as-service
docker build -t bert-as-service:v1.0 .

first run bert-as-service image

docker run -it -p 5555:5555 -p 5556:5556 bert-as-service:v1.0

changing rasa_nlu_gq model's ip endpoint and rasa project's ip call out endpoint , after that you can run the rasa docker image

docker run -it -p 5000:5000 rasa_nlu_gq:v1.0

rasa_nlu_zj4r's People

Contributors

h13rz0g avatar llgovrdml avatar trellixvulnteam avatar weizhenzhao avatar

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.