Entities are not extracted from a message in Rasa 1.0
HI @Chaitanya
this is a bit vague. Could you please provide more details like:
- training data
- stories
- command line calls
- verbose output of rasa
that would help us to help you!
Regards
intent:cost-owner-version
- what is the cost of app where app owner is john and for oracle 12 version
- what is the cost of app where app owner is Doe and for IBM MQ 8 version
- what is the cost of app where app owner is hockpang and for HP HP A93 version
- what is the cost of app where app owner is Doe and for [IBM] (product) MQ 8 version
- Tell me the cost of app where app owner is william and for Linux redhat 7.8 version
- show me the cost of app where app owner is william and for splunk splunk 3.0 version
- show me the cost of app where app owner is william and for splunk splunk 3.0 version
- cost of app where app owner is thanoes and for sybase 47.42 version
- cost of app where app owner is nebula and for BO BO 5.5 version
cost-owner-version
- cost-owner-version{“owner”: “John” ,“product”: “oracle” , “version”: “12.01”}
- action_cost_owner_version
slots: app: type: text product: type: text owner: type: text version: type: text
actions.py:
from future import absolute_import
from future import division from future import unicode_literals
from rasa_core_sdk import Action
from rasa_core_sdk.events import SlotSet,AllSlotsReset
class ActionCostOwnerVersion(Action):
def name(self):
return 'action_cost_owner_version'
def run(self, dispatcher, tracker, domain):
owner = tracker.get_slot('owner')
product = tracker.get_slot('product')
version = tracker.get_slot('version')
dispatcher.utter_message(owner)
dispatcher.utter_message(product)
dispatcher.utter_message(version)
Question : what is the cost of app where app owner is Williams and for sybase 23.91 version
Bot Response: Williams
Can you please start your bot with the -vv
flag and post the whole bot output?
Hi @Chaitanya
I have a clue but let’s make that one sure with another test. Please start the bot again with the flag
--enable-api
and do a POST Request to the URL:
http://localhost:5005/model/parse
with HEADER:
"Content-Type": "application/json"
and BODY:
{
"text": "What is the cost of app where app owner is Williams and for sybase 23.91 version Bot"
}
and then post the response here.
Hi
no problem - I’d suggest either to use:
which is pretty self-explanatory or to use a CURL, depending on your OS. If you use Windows, you could use the Powershell to do:
Invoke-WebRequest -UseBasicParsing http://localhost:5005/model/parse -ContentType "application/json" -Method POST -Body "{ 'text':'What is the cost of app where app owner is Williams and for sybase 23.91 version Bot'}"
with Ubuntu you can do it like documented here:
https://wiki.ubuntuusers.de/cURL/
Let me know if I can help.
Regards
Did you start the server with --enable-api ?
No, where I have to use --enable-api
As documented here:
you have to use:
rasa run -vv -m <PATH_TO_YOUR_MODEL> --enable-api
Please try this and keep me updated.
Thanks for the response @JulianGerhard ,
I have started the server with --enable-api with rasa run -vv -m C:\Chaitu\Rasa\MyProject\models --enable-api
But I got this error
In server running prompt , I got this Error , sanic.exceptions.InvalidUsage: Failed when parsing body as json
I will investigate this after lunch ~13.00.
Please use the command:
$params = @{"text"="What is the cost of app where app owner is Williams and for sybase 23.91 version Bot";}
Invoke-WebRequest -UseBasicParsing http://localhost:5005/model/parse -Method POST -Body ($params|ConvertTo-Json)
Okay, please provide your bot as a zip file such that I can download, train and debug it!
Hey @JulianGerhard , This is the one of the question in my Bot.Now I have changed to only one intent
Project.zip (4.9 KB)
It is working with only trained entity values. Please try with the values other than trained