SeedVault / rhizome

conversational bot engine created by Botanic/SEED team
https://seedtoken.io
Other
7 stars 2 forks source link

Train a model with Rasa NLU and build a script to get intent ids #2

Closed SEEDToken closed 6 years ago

SEEDToken commented 6 years ago

we are going to integrate Rasa NLU https://rasa.com/docs/nlu/ on our bot engine. we need a python script which loads a json file (the same generated from the ChatScript top files) and trains a model.

also a python script which waits for user input (can be console/terminal) and returns its intent ID if there is an intent detected by Rasa NLU

SEEDToken commented 6 years ago

➤ Dan Brumleve commented:

I made a small collection of tools and example data here: https://github.com/SeedVault/badlands/tree/master/rasa

There is a README with a few examples. top2rasa.py converts the .top file to rasa's training data format. rasatrain.py creates the model and rasaparse.py classifies lines of text from stdin and echoes them with the intent prepended with a tab separator.