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

Add color to built-in entity extraction #56

Open
ericzon opened this issue Sep 25, 2018 · 0 comments
Open

Add color to built-in entity extraction #56

ericzon opened this issue Sep 25, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@ericzon
Copy link
Collaborator

ericzon commented Sep 25, 2018

Is your feature request related to a problem? Please describe.
It's a typical feature that would be very useful to have built-in inside this great lib. As @sys.color in DialogFlow https://dialogflow.com/docs/reference/system-entities

Describe the solution you'd like
Extract colors of an input.

i.e:

"I have a red car"

Output:


{
	"locale": "en",
	"localeIso2": "en",
	"language": "English",
	"utterance": "I have a red car",
	"classification": [{
		"label": "color",
		"value": 0.8567240019144264
	}],
	"intent": "car.getcolor",
	"domain": "default",
	"score": 0.8567240019144264,
	"entities": [{
		"start": 9,
		"end": 11,
		"len": 3,
		"levenshtein": 0,
		"accuracy": 1,
		"option": "color",
		"sourceText": "red",
		"entity": "general",
		"utteranceText": "red"
	}],
	...,
	"srcAnswer": "ok, we took note of your color",
	"answer": "ok, we took note of your color"
}
@jesus-seijas-sp jesus-seijas-sp added the enhancement New feature or request label Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants