我目前正在研究一個項目,我需要根據給定的句子創建WH問題的可能答案。Java中的名詞類型確定
例一句話是:
Anna went to the store.
我需要建立能夠回答以下問題。
Who went to the store?
Where did ana go?
我已經實現了單詞的POST-Tagging,現在我知道該詞的詞性。
我很難確定什麼類型的名詞是這個詞,如果它是一個名詞,所以我可以爲我的答案創建一個模板。
例子是:
Anna - noun - person: possible answer to question who.
Store - noun - place: possible answer to question where.
我想實現這個用java
你的解決方案當然是基於搜索一個巨大的詞典和名字詞典? – 2011-12-18 12:12:57
你想自己實現這個還是會使用第三方庫(比如http://nlp.stanford.edu/software/lex-parser.shtml)好嗎? – cherouvim 2011-12-18 12:20:36
我們可以發佈這個問題到那個鏈接? – 2011-12-20 02:10:34