-
Notifications
You must be signed in to change notification settings - Fork 643
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
Inaccurate Clause determination leads to wrong choice of verb for the sentence. #1035
Comments
hey Ryan - yep, your intuitions are correct. The tagger gets borked on the ambiguous words and the long list. You can poke-around at the tagger logs if you're interested, by adding In all, I'd really like to improve the logic for parsing the SVO of a sentence. You can see the logic right now is really poor. |
Thank you for the suggestion for the quick fix. That obviously fixes just that sentence. I'll keep poking around to see if I can solve it more generally. Thanks for your quick response! |
I'm an engineer, not a linguist, but I do agree that Found this here:
This should have two clauses: "My friend looks like Homer Simpson" and "who lives in London" Compromise only finds a single clause and identifies the sentence's verb as "lives" instead of "looks". I'll keep working through considerations on clause and main clause identification that handles comma separated lists and dependent clauses within independent clauses. |
My overall goal is to identify PresentTense sentences with a #Person or #Pronoun subject.
While troubleshooting, I ran into an issue with the following sentence.
Which returns
Clearly the verb should be led, not “state engineering”. I think the trouble here is that both state and engineering can be verbs, but in this sentence should be adjectives of “departments.”
This does work though:
In both cases, the subject is properly identified (as “she”), but when there is a comma separated list of items which include potential verbs (“state” and “engineering”) it seems to skip over the sentence’s actual verb (“led”) and chooses one of the potential verbs from the list (“state”).
Is there something I can do on my side to resolve this, or is there a fix that can be done within this package?
The text was updated successfully, but these errors were encountered: