I would like to group all named entities in a given document. For Example,
**Barack Hussein Obama** II is the 44th and current President of the United States, and the first African American to hold the office.
I do not want to use OpenNLP APIs as it might not be able to recognize all named entities. Is there any way to generate such n-grams using other services or may be a way to group all noun terms together.
If you want to avoid using NER, you could use a sentence chunker or parser. This will extract noun phrases generically. OpenNLP has a sentence chunker and parser, but if you are for some reason adverse to using OpenNLP, you can try others. If you are interested in using the OpenNLP chunker i will post some code that extracts noun phrases using OpenNLP.
Here is the code. You will need to download the models from sourceforge here
http://opennlp.sourceforge.net/models-1.5/
the output I get with your sentence is this (with N set to 2 (bigram)
this does not explicitly handle the case of when an adjective falls outside of the NP... if so you can get this info from the POS tags and integrate it. What I gave you should send you in the right direction.