rasa-nlu

RASA nlu parse not give currect intent, give same intent in result

假如想象 提交于 2019-12-12 08:16:13
问题 RASA version : 0.10.5 spaCy version : 1.9.0 Installed models : en, en_core_web_sm I am creating training data using dialogflow export data and successfully finished training but when I request and give some text it gives wrong intent result. It always gives the same intent in result and also every time same intent_ranking. Please let me know how can I get proper intent results as well as entities result. 回答1: The general recommendation when Rasa NLU seems to be functioning correctly, but

Modifying warnings that seems to come from nowhere

独自空忆成欢 提交于 2019-12-11 18:31:25
问题 I forked a repository named rasa_nlu to work on a part of the code I want to modify : there is a function component.train(...) inside of a function train(...) in a file model.py which seems to trigger warnings without providing the origin and I want to find what trigger it. Basically it applies this function to a list of components: [<rasa_nlu.utils.spacy_utils.SpacyNLP object at 0x7f3abbfbd780>, <rasa_nlu.tokenizers.spacy_tokenizer.SpacyTokenizer object at 0x7f3abbfbd710>, <rasa_nlu

Rasa nlu server failure

孤者浪人 提交于 2019-12-11 15:11:11
问题 I started the rasa server by typing this command in cmd: rasa run --enable-api -m models/(my_model).tar.gz --cors "*" --debug I put this command in another cmd: curl -X POST localhost:5005/model/parse -d '{"text":"hello"}' After that I got this error: {"version":"1.2.2","status":"failure","message":"An unexpected error occurred. Error: Failed when parsing body as json","reason":"ParsingError","details":{},"help":null,"code":500} Any help? How can I integrate Rasa with Node.js? 回答1: Please try

Rasa. Wrong confidence score for non-related messages

那年仲夏 提交于 2019-12-11 08:10:14
问题 I’m building bot using rasa to response for user’s questions and I have an issue. Rasa gives me high level of confidence for messages that are completely not related to intent’s examples. I have medical-related intents but message like “I like coffee” gives me even more confidence than messages related. Also, random chars messages like “laj jfias jjlas fe” also give me high confidence. Could anyone give me a hint how to fix this? Where can I look for a bug? This is my config: language: "en"

Use spaCy entities in Rasa-NLU training data

佐手、 提交于 2019-12-11 01:09:20
问题 I'm trying to create a simple program with Rasa which extracts a (French) street address from a text input. Following the advice in Rasa-NLU doc (http://rasa-nlu.readthedocs.io/en/latest/entities.html), I want to use spaCy to do the address detection. I saw (https://spacy.io/usage/training) that the corresponding spaCy prebuilt entity would be LOC . However, I don't understand how to create a training dataset with this entity. Here is an excerpt from my current JSON training dataset : { "text

Get Intent Value in RASA Core/NLU

不问归期 提交于 2019-12-10 16:31:54
问题 Greeting I am working on RASA chatbot. I am handling Custom actions for a particular intent using below code. In the custom action I want to get current intent value. SO i dont know that line of code which can give me value of current intent #this file will be used to all custom actions from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import requests import json from zeep import Client from random import randint from rasa_core

How to create training data for RASA NLU through program nodejs

牧云@^-^@ 提交于 2019-12-10 12:19:01
问题 How to create training data through program for RASA NLU? Actually I am developing an application using MEAN stack, this application prepares the data that needs to be trained with RASA NLU. But I don't know how to pass this info from my nodejs server to RASA NLU. Is there any supported api's to achieve this? 回答1: Rasa has a highly functional API as documented here. To answer the specific question you can pass training data to the Rasa NLU API via the below commands: If your training data is

Difference between Rasa core and Rasa nlu

喜欢而已 提交于 2019-12-04 08:18:18
问题 I tried to understand about rasa from official documentation of Rasa core and Rasa nlu but not able to deduce much. What I am able to understand is Rasa core is used to guide the flow of conversation while Rasa nlu is to understand and process the text to extract information (entities) Second thing, there are examples to build chatbot in Rasa core as well as Rasa nlu both can be used to build chatbot but couldn't understand what's the difference in two approaches and when to follow which one.

sklearn DeprecationWarning truth value of an array

纵饮孤独 提交于 2019-12-03 07:11:51
问题 Running a rasa_core example from the docs with › python3 -m rasa_core.run -d models/dialogue -u models/nlu/default/current and get this error output after each message in the dialog: .../sklearn/...: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty. It's an issue with numpy that has been fixed but not been published in the latest release: https://github.com

Difference between Rasa core and Rasa nlu

时间秒杀一切 提交于 2019-12-02 22:18:53
I tried to understand about rasa from official documentation of Rasa core and Rasa nlu but not able to deduce much. What I am able to understand is Rasa core is used to guide the flow of conversation while Rasa nlu is to understand and process the text to extract information (entities) Second thing, there are examples to build chatbot in Rasa core as well as Rasa nlu both can be used to build chatbot but couldn't understand what's the difference in two approaches and when to follow which one. Could you please help me to understand in a better way. Trinca You got it right. Both work together