Coder Social home page Coder Social logo

rasahq / rasa-nlu-trainer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azazdeaz/rasa-nlu-trainer

465.0 28.0 186.0 8.44 MB

DEPRECATED: We recommend using Rasa X https://rasa.com/docs/rasa-x/ for managing NLU data

License: MIT License

HTML 1.74% JavaScript 96.02% CSS 2.05% Dockerfile 0.19%

rasa-nlu-trainer's Introduction

deprecated: rasa-nlu-trainer

We recommend you use Rasa X instead.

This is a tool to edit your training examples for rasa NLU Use the online version or install with npm

installation

$ npm i -g rasa-nlu-trainer (you'll need nodejs and npm for this)

launch

$ rasa-nlu-trainer in your working directory

this will open the editor in your browser

options

  • --source -s path to the training file (by default it will be searched recursively in the current directory)
  • --port -p the web app will run here (randomly selected by default)

development

  • git clone this repo
  • $ npm install
  • $ npm start

using the development build locally

  • $ npm run build
  • $ npm link

from here, the $ rasa-nlu-trainer command will start the development version

run $ npm run build again to update the build

run $ npm unlink && npm i -g rasa-nlu-trainer to use the npm version again

This project was bootstrapped with Create React App.

rasa-nlu-trainer's People

Contributors

aishwarya4444 avatar alishamayor avatar amn41 avatar azazdeaz avatar cuuupid avatar eliseboyd avatar kamalpy avatar nagarajgond avatar rafis avatar stmoelter avatar tmbo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rasa-nlu-trainer's Issues

Running in subroute

How to run this app in a sub route in my server?
eg: Now it is running in localhost:8000
Instead I would like it to run in localhost:8000/nlu

Can multiple people add the examples simultaneously

There is an issue when multiple people add intents simultaneously .It is not saving examples correctly and it's saving the examples of last session of only one user . I think this is because it was not designed in that way .Is there a way we can fix that?

demo version not updating

Hey @azazdeaz - might need your help again. I tried to build & publish the latest version. The gh-pages branch has been updated but for some reason the old styling still remains. Could you please try publishing?

Saving from rasa-nlu-trainer GUI overwrites regex_features and entity_synonyms

When I click on the save button in the rasa-nlu-trainer GUI, it saves the training data to training.json but also overwrites regex_features and entity_synonyms to their initial value i.e. to what they were at the time rasa-nlu-trainer was started.

regex_features and entity_synonyms are not supported in GUI yet, so they have to be manually added. The issue is, If any regex_features or entity_synonyms are added In between two SAVE button clicks, those manual additions are lost and overwritten.

Data exported from wit doesn't load

I'm using the online version of your tool. I tried uploading the demo-flights.json file (available in Rasa examples). It doesn't work. I even tried adding the common_examples tag (as in demo-rasa.json), but no luck. Any tips?

Block-scoped declarations

Hello,
While running the rasa_nlu_trainer I get an error at line 56 of server.js file as below:

`rasa-nlu-trainer
/usr/local/lib/node_modules/rasa-nlu-trainer/server.js:56
let json
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:974:3
`
Please let me know how to fix this??
I have tried adding "use strict"; below let json as given in some forums but it does not work.

'NoneType' object has no attribute '_formatter_parser' error

@tmbo
I am using MITIE backend for rasa-nlu server.
When i execute localhost:5000/parse?q=I am looking for Chinese food', i am getting 'NoneType' object has no attribute '_formatter_parser' from string.py file.
Thanks in advance..

Here is my config file.
{
"pipeline": "mitie",
"mitie_file": "./data/total_word_feature_extractor.dat",
"path" : "./models",
"data" : "./data/examples/rasa/demo-rasa.json"
}

Please let me know if any other details is needed.

Highlights don't match up with text

The div/span that display the backgrounded highlighted text are 16px/medium in Chrome's default user agent stylesheet. They inherit from this from table. This can be fixed to match the .ant-input font-size of 12px via the following diff:

diff --git a/src/components/TextEditor.js b/src/components/TextEditor.js
index ac50572..6fedea1 100644
--- a/src/components/TextEditor.js
+++ b/src/components/TextEditor.js
@@ -14,6 +14,7 @@ const styles = {
     pointerEvents: 'none',
     padding: '5px 8px',
     whiteSpace: 'pre',
+    fontSize: '12px'
   },
   zeroPos: {
     position: 'absolute',

[Hosted version] All files downloaded include the default intent_examples

Steps to reproduce the issue:
In the hosted version:

  • Hit the clear button and confirm
  • Without adding anything, hit the download button
  • Open the downloaded file

For me, this results in a non-empty file that still contains the default intent_examples. These are the contents of the file:

{
  "rasa_nlu_data": {
    "common_examples": [],
    "intent_examples": [
      {
        "text": "hey",
        "intent": "greet"
      },
      {
        "text": "howdy",
        "intent": "greet"
      },
      {
        "text": "hey there",
        "intent": "greet"
      },
      {
        "text": "hello",
        "intent": "greet"
      },
      {
        "text": "hi",
        "intent": "greet"
      },
      {
        "text": "i'm looking for a place to eat",
        "intent": "restaurant_search"
      },
      {
        "text": "i'm looking for a place in the north of town",
        "intent": "restaurant_search"
      },
      {
        "text": "show me chinese restaurants",
        "intent": "restaurant_search"
      },
      {
        "text": "yes",
        "intent": "affirm"
      },
      {
        "text": "yep",
        "intent": "affirm"
      },
      {
        "text": "yeah",
        "intent": "affirm"
      },
      {
        "text": "show me a mexican place in the centre",
        "intent": "restaurant_search"
      },
      {
        "text": "bye",
        "intent": "goodbye"
      },
      {
        "text": "goodbye",
        "intent": "goodbye"
      },
      {
        "text": "good bye",
        "intent": "goodbye"
      },
      {
        "text": "stop",
        "intent": "goodbye"
      },
      {
        "text": "end",
        "intent": "goodbye"
      },
      {
        "text": "i am looking for an indian spot",
        "intent": "restaurant_search"
      },
      {
        "text": "search for restaurants",
        "intent": "restaurant_search"
      },
      {
        "text": "anywhere in the west",
        "intent": "restaurant_search"
      },
      {
        "text": "central indian restaurant",
        "intent": "restaurant_search"
      },
      {
        "text": "indeed",
        "intent": "affirm"
      },
      {
        "text": "that's right",
        "intent": "affirm"
      },
      {
        "text": "ok",
        "intent": "affirm"
      },
      {
        "text": "great",
        "intent": "affirm"
      }
    ]
  }
}

Adding other, unrelated intents and entities does not get rid of these defaults either.

Is this a feature I misunderstand from the GUI? I would think these are not relevant if you're training something that doesn't include these intents? My understanding of this all is pretty limited to say the least though, so I am not sure I'm missing the obvious here?

Unhandled promise rejection wrning

I downloaded the online testData.json file and tried to edit using rasa-nlu-trainer.
It gives me the below issues.

C:\Users\ssujith5\Downloads>rasa-nlu-trainer --source C:\Users\ssujith5\Downloads\testData.json
(node:10384) UnhandledPromiseRejectionWarning: Can't parse json file "C:\Users\ssujith5\Downloads\testData.json"
SyntaxError: Unexpected token  in JSON at position 0
(node:10384) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:10384) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Could anyone please help. Is this an installation issue or priveleges issue.

Please let me know and I can provide more details.

UI failed to start

This is issue can be solved if we use "use strict".

/usr/local/lib/node_modules/rasa-nlu-trainer/server.js:56
let json
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:990:3

PR is available for the same PR #23

add a 'clear data' button

should be self-explanatory. Would be nice to have a button (with a warning) that clears the current data from memory

'rasa-nlu-trainer' command not working on terminal

It's showing following error

usr/local/lib/node_modules/rasa-nlu-trainer/server.js:17
pkg,
^
SyntaxError: Unexpected token ,
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3

Deleting intent deletes the whole sample tab

Step1: Open online version of rasa-nlu-trainer and open the list of intents and you will get something like following screen:
1

Step2: Select two of the intents("restaurant search" and "affirm") and click on "OK":
2

Step3: You will get a screen like this:
3

Step4: Select the "intent" text of first sample, like in this screen, and try to delete it using delete or backspace button:
4

Step5: And you will end-up with following screen, with one example less:
5

download not working

well, any ideia why my download button does not download the json?

I've trid with npm i -g rasa-nlu-trainer and cloned the repo.

I'm using Google Chrome to access the server.

Cannot modify Rasa-nlu-trainer code source

Hello,

I want to modify the Rasa-Nlu-trainer source code in order to modify the “Upload” and “Download” buttons instead of "Save" button, like so :

image

To do that, I installed Rasa-nlu-trainer with the node command : npm i -g rasa-nlu-trainer.
This has created a project repo in this folder : C:\Users{Username}\AppData\Roaming\nvm\v10.8.0\node_modules\rasa-nlu-trainer .

After modifying the source code of the project (isOnline.js, …), I builded the solution by running npm run build and then npm start Finally, I lunched localhost:4321, nothing appears in the navigator.

Can someone help me to fix this problem please ?

Thank you.

expand row

looking at the online demo.. clicking the [+] does not expand the row to display the info
this is in any browser I try including Chrome,Safari

Nginx Proxy to Rasa Trainer

Hello, my rasa-nlu-trainer is running on an Ubuntu Server.

We want to acces the trainer site over an nginx revers Proxy
our configs for this looks like this

location /rasa/trainer { proxy_pass http://localhost:37291/; }

we start the Server with rasa-nlu-trainer --source $(pwd)/nlu.json --port 37291 an the service is running..

But all we get over Ourlink.com/rasa/trainer is a blank white Site.
image

-bash: rasa-nlu-trainer: command not found

(env) MacBook-Pro-5:chatbot $ npm i -g rasa-nlu-trainer
/Users/.npm-global/bin/rasa-nlu-trainer -> /Users/.npm-global/lib/node_modules/rasa-nlu-trainer/server.js
npm WARN [email protected] requires a peer of jquery@>=1.8.0 but none is installed. You must install peer dependencies yourself.

(env) MacBook-Pro-5:data $ rasa-nlu-trainer
-bash: rasa-nlu-trainer: command not found
(env) MacBook-Pro-5:data $

(env) MacBook-Pro-5:data $ npm --version
6.4.1
(env) MacBook-Pro-5:data $ node --version
v10.15.1

rasa-nlu-trainer command not found

Hello,

rasa-nlu-trainer command not found on my mac. I followed the instructions and updated all the necessary packages. What could be the problem? Thanks a lot

Module not found: 'prop-types'

I clone rasa-nlu-trainer repo,and run command "npm install" "npm start".

Error in ./~/react-file-reader-input/lib/index.js
Module not found: 'prop-types' in /Users/jonathanwei/summary/GITRepository/rasa-nlu-trainer/node_modules/react-file-reader-input/lib

@ ./~/react-file-reader-input/lib/index.js 29:17-38

npm version 5.5.1
node version v8.9.0

no file - index.html

Error: ENOENT: no such file or directory, stat '/usr/local/lib/node_modules/rasa-nlu-trainer/build/index.html'
at Error (native)

I am using MAC

Error on saving example

Hi,

I have an issue with saving the data after adding example. It returns
Error Code : 13
Error Code: EACCES
Sys : Open

Anyone else have this issue and how do i resolve this?

Fix security vulnerabilities

My npm install found 19 vulnerabilities:

$ npm i
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
npm WARN deprecated [email protected]: 1.2.0 should have been a major version bump
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of jquery@>=1.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 1132 packages from 1007 contributors and audited 10029 packages in 23.844s
found 19 vulnerabilities (10 low, 5 moderate, 2 high, 2 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

I am not sure how critical they really are, but please have a look at it.

Unable to use the Save feature in the trainer with larger datasets (> 400 labeled examples)

Hi,

I have been playing around with rasa_nlu for quite sometime now (on macOS Sierra 10.12) and it is a great open source replacement for LUIS. And rasa-nlu-trainer is a great visualizer to add/delete examples to the training data set. But what I found was that with larger datasets (greater than 400 labeled examples across 3 intents and 10 entities), the Save functionality was not working and it was throwing up a 413 Payload Too Large error. I attached the output from the terminal below. I was trying to see if I could increase the limit in the server.js by changing it to "app.use(bodyParser.json({limit: "50mb"}))" but that didn't work. Can you please help by suggesting any workarounds or fixes. Thanks.
save functionality error

how to use rasa-nlu-trainer for creating chatbot

Hi,

I could setup the RASA-NLU-Trainer and able to work on localhost but not getting the upload and download option. Please suggest is it expected?Also I am not sure the how to use it for creating chatbot?
It is not actually an issue but I was not getting any idea so expecting that I may get some guidance here. Please guide me on this.

Best Regards,
Sunil

Markdown Support

It would be nice to support the training data Markdown format. I'm new to Rasa and I chose this format over json because there's less typing and it is the recommended format.

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.