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

Semantic Analysis Inquiry #2945

Closed
jfantell opened this issue Nov 18, 2018 · 2 comments
Closed

Semantic Analysis Inquiry #2945

jfantell opened this issue Nov 18, 2018 · 2 comments
Labels
usage General spaCy usage

Comments

@jfantell
Copy link

I am trying to create a program that extracts the start and destination location from a sentence.
Consider the following two examples:

"I want to take a taxi to Boston from New York"
"I want to take a taxi from New York to Boston"

The start location is always New York. The end location is always Boston. However, because of the re-ordering of "from" and "to," the position in which the start and destination locations appear is swapped.

Is there a way to determine which location is the start and destination regardless of ordering using any of the tools in Spacy?
Any pointers (especially examples) would be very helpful! Thank you!

@honnibal
Copy link
Member

I think using the dependency parse and the entity labels will probably be the best way for you. Have a look at the docs here: https://spacy.io/usage/processing-pipelines

@honnibal honnibal added the usage General spaCy usage label Nov 26, 2018
@lock
Copy link

lock bot commented Dec 26, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
usage General spaCy usage
Projects
None yet
Development

No branches or pull requests

2 participants