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

Try to get the K best dependency trees #120

Open
yhamoudi opened this issue Feb 16, 2015 · 1 comment
Open

Try to get the K best dependency trees #120

yhamoudi opened this issue Feb 16, 2015 · 1 comment

Comments

@yhamoudi
Copy link
Member

In some cases, the tree output by the Stanford Parser is correct from a grammatical point of view but doesn't reflect the real meaning of the sentence.

Ex:
image

The stanford parser considers that there is a List of books and this List has been done by Roald Dahl. It could be true, however, we prefer to obtain List -prep_of-> books -prep_by-> Roald Dahl.

The stanford parser seems to be able to provide more than one parsing result (http://stackoverflow.com/questions/14014631/get-the-k-best-parses-of-a-sentence-with-stanford-parser). If we succeed to get the 2 best dependency trees (for instance), we could hope that sometimes the second tree is better than the first one in case of ambiguity.

Finally, the question parsing will output 2 normal forms instead of 1.

Resources:

@yhamoudi
Copy link
Member Author

If you parse List of books by Roald Dahl instead of List of books by Roald Dahl. (just remove the point), you obtain:
image

It's exactly what we want!!! It proves that the 2 trees are very close and the last one is probably the 2nd best dependency tree when you parse List of books by Roald Dahl.

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

No branches or pull requests

1 participant