Entities are not extracted from a message

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

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 @JulianGerhard , Is there any solution ?

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 @JulianGerhard, I don’t know how to pass like that . Please tell me

Hi

no problem - I’d suggest either to use:

https://www.getpostman.com/

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

HI @JulianGerhard, I am getting this error while running on windows

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

Hi @JulianGerhard , Please respond.

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)

Hi @JulianGerhard, I have got only one entity ,

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