I have been doing some basic tweaking with Stanford-NLP for last few days. I have read about Link Grammar too. If anyone have used any of these libraries, is it possible to detect interrogative sentence using any of them? Currently I am stuck in Stanford-NLP. I might have to add a large sum of code for it to work. It looks like i might need to create a separate PCFG.
问问题
1347 次
1 回答
5
My advice: don't use a PCFG for that. Use Stanford NLP's excellent MaxEnt classifier to do binary classification interrogative / non interrogative. It will work really well. You have to prepare a corpus with a few dozen examples of each class at least, maybe more depending on your sentences.
于 2014-11-07T19:24:09.907 回答