Reputation: 173
I have an NLP task where I need to make sure that a paragraph of multiple sentences include at least one well structured question, I'm using OpenNLP to generate the parse trees in the paragraph. My questions are:
1-Is there a way to get a list of possible parse trees for a properly structured question.
2- How can I compare two parse trees
Thanks
Upvotes: 1
Views: 516
Reputation: 986
Well,you yourself have answered the question. You just have to get the dataset containing different types of questions and play with it.
Get different types of questions and parse trees corresponding to it. Get all the output parse trees in a format such that you can use it in the next step.
When it comes to comparing to parse trees,it's basically comparing text. Which is a quite simple task.
But obviously,doing it like this will take a bit longer time and memory if you directly play with text files. For that,convert and save your parse trees of standard questions in binary and this will take less time and memory when concatenated with the next step.
Hope this helps,All the best!
Upvotes: 1