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

Get singular / plural / ambiguous in results #135

Open
ericzon opened this issue Jan 9, 2019 · 0 comments
Open

Get singular / plural / ambiguous in results #135

ericzon opened this issue Jan 9, 2019 · 0 comments

Comments

@ericzon
Copy link
Collaborator

ericzon commented Jan 9, 2019

I don't know if it fits in the purpose of this library but sometimes could be useful to get singular or plural information in every entity found. I think this could be accomplished reusing TenseInflector or NounInflector functionality in Natural dependency. It could be useful to add custom cases for irregular (mouse / mice)

Describe the solution you'd like

The resulting entity should have something like this:

{
	"start": 0,
	"end": 0,
	"len": 1,
	"accuracy": 0.95,
	"sourceText": "cars",
	"utteranceText": "cars",
	"entity": "vehicle",
	"resolution": {
		"strValue": "car",
		"value": "car",
		"subtype": "whatever",
		"number": "singular" | "plural" | "ambiguous"
	}
}

This would require modifications in addNamedEntityText method...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant