OpenNLP Overview

OpenNLP Overview

OpenNLP Overview – In this OpenNLP Tutorial, we shall list out some of the tasks in Natural Language Processing and the solutions provided through Apache OpenNLP APIs to solve them.

What is Natural Language Processing and the tasks it deals with

Natural Language Processing is all about the interaction between computer and human. Generally, humans interact with each other using vocabulary. And the language they are using (say English, Spanish, Hindi, etc.,) has some set of rules. It does not happen all the time that all people speaking these languages to communicate use the grammar of the language alike. Different people might use different words for conveying the same information. But as people around them have already known them or used to such kind, can understand or get the summary or inference from what they are saying.

Humans perceive information like context, inference etc., from the sentences formed using vocabulary and grammar. And when a machine or computer is expected to understand the context, inference or summary or useful information from the data it gets from a human, there are some gaps that needs to filled. These gaps are the tasks that Natural Language Processing deals with, to make a machine understand a human language or speak to human in natural language.

Apache OpenNLP is an open-source library that provides solutions to some of the Natural Language Processing tasks through its APIs and command line tools. Apache OpenNLP uses machine learning approach for the tasks of processing natural language. Following are some of the tasks to which Apache OpenNLP provides APIs, and those we deal with examples in this OpenNLP Tutorial :

Note : To setup a Java Project with Eclipse, refer how to setup OpenNLP in Java with Eclipse.

Command Line Interface of Apache OpenNLP

All the tools included in OpenNLP could be accessed through command line interface. Following are some of the examples :

Conclusion :

In this tutorial we have seen Apache OpenNLP Overview. Lets start getting hands on OpenNLP by setting up a Java Project with OpenNLP in Eclipse and trying out the APIs that it provides.