-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Labels
usage
General spaCy usage
Comments
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 |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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!
The text was updated successfully, but these errors were encountered: