Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping multi-word phrases to "value" #194

Closed
PrajnyaSatish opened this issue Mar 1, 2017 · 5 comments
Closed

Mapping multi-word phrases to "value" #194

PrajnyaSatish opened this issue Mar 1, 2017 · 5 comments
Labels
type:question 💬 Question around usage, examples

Comments

@PrajnyaSatish
Copy link

PrajnyaSatish commented Mar 1, 2017

Hi,
I'm trying to map multiple word synonyms to a single value. For example,
{ "text": "how to save images?", "intent": "explain", "entities": [ { "start": 7, "end": 18, "value": "saveImages", "entity": "entityName" } ] },

The entity is detected correctly but the value is not what I expect --
{u'text': u'how to save images?', u'confidence': 0.8476407032279926, u'intent': u'explain', u'entities': [{u'start': 7, u'end': 18, u'value': u'save images', u'entity': u'entityName'}]}
Does rasa support this capability of mapping "save images" to a single value "saveImages"? (I have trained a lot of samples. About 10 samples for each different "value" in the entity entityName but I still don't see any improvement).

@tmbo
Copy link
Member

tmbo commented Mar 1, 2017

Value should be the text in the sentence whereas entity should be the type of the found sequence of words.

value represents the text found in the sentence. Why would you not want to receive the text from the sentence their?

@PrajnyaSatish
Copy link
Author

PrajnyaSatish commented Mar 1, 2017 via email

@PrajnyaSatish
Copy link
Author

Also your documentation does specify this ability of value mapping synonyms.

@amn41
Copy link
Contributor

amn41 commented Mar 2, 2017

see #151 - this should work fine

@PrajnyaSatish
Copy link
Author

Yes, this is what I was looking for. Thank you.

@tmbo tmbo added the type:question 💬 Question around usage, examples label Mar 3, 2017
@tmbo tmbo closed this as completed Mar 3, 2017
taytzehao pushed a commit to taytzehao/rasa that referenced this issue Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question 💬 Question around usage, examples
Projects
None yet
Development

No branches or pull requests

3 participants