Open navneet-arya opened 5 years ago
Okay But there will be many forms of grammar for the question which is starting with how, like How many people are there? How long have you been writing this letter? How much is this? . . etc. Can you share some grammatical form for the question of how or any reference?
You have to take some sample questions starting with How and get their pos-tags. Then by trial and error form a rule (combinations of pos tags) that will result in a question. This is a rule-based approach in generating questions.
[('There', 'EX'),
('are', 'VBP'),
('ten', 'JJ'),
('people', 'NNS'),
('in', 'IN'),
('the', 'DT'),
('hall', 'NN')]
Use the pos-tags with carefully constructed rules to generate a question. I have made this_repo public. You can refer that for how the rules are constructed.
You have to write grammar for that.