Wednesday, February 18, 2009

Getting started with OpenNLP(Natural Language Processing)

I am not someone who have worked much on Java and so when the openNLP tools(www.opennlp.com) were in java i knew i was going to have some difficult time. On top of this the documentation for this is almost non-existent. After spending some time on the net I came across this nice article from Daniel which had code snippets to get started on NLP. He has very well explained the basic starting steps and there is no point in me repeating the steps. This is the link to Daniel's blog.

After some firefighting I have finally been able to write a sample code which can complement steps provided by Daniel.I have uploaded the source code of the same.It contains all required external libraries including maxent, opennlp-tools, opennlp and trove. Also I have included required models to parse english sentences. You can download the code from here