I am trying to get the topic of a sentence, i.e what a sentence is talking about (not the grammatical subject which may be different).
So far I have got:
- OpenNLP in Java which is giving me sentence detection, POS tagging, parsing, tokenizer and Name Finder.
- MatlParser,stanford Parser - which can give the grammatical subject of a simple sentence by dependency parsing.
I think a noun or a noun phrase will always be the topic in a more general sense, but a sentence can have many nouns and noun phrases.
A complex or compound sentence may have more than one subject which could be considered as the topic of sentence in that case I want to get any one of them. I am looking to get the answer upto some accuracy.