Book Image

Natural Language Processing with Java Cookbook

By : Richard M. Reese
Book Image

Natural Language Processing with Java Cookbook

By: Richard M. Reese

Overview of this book

Natural Language Processing (NLP) has become one of the prime technologies for processing very large amounts of unstructured data from disparate information sources. This book includes a wide set of recipes and quick methods that solve challenges in text syntax, semantics, and speech tasks. At the beginning of the book, you'll learn important NLP techniques, such as identifying parts of speech, tagging words, and analyzing word semantics. You will learn how to perform lexical analysis and use machine learning techniques to speed up NLP operations. With independent recipes, you will explore techniques for customizing your existing NLP engines/models using Java libraries such as OpenNLP and the Stanford NLP library. You will also learn how to use NLP processing features from cloud-based sources, including Google and Amazon Web Services (AWS). You will master core tasks, such as stemming, lemmatization, part-of-speech tagging, and named entity recognition. You will also learn about sentiment analysis, semantic text similarity, language identification, machine translation, and text summarization. By the end of this book, you will be ready to become a professional NLP expert using a problem-solution approach to analyze any sort of text, sentence, or semantic word.
Table of Contents (14 chapters)

Creating a bot using AWS Toolkit for Eclipse

AWS Toolkit provides another technique for creating and testing bots. We will create a second weather bot using AWS Toolkit for Eclipse and Java to demonstrate how the user can pass data to our application, which allows more sophisticated processing.

Getting ready

We will follow these steps to create a bot:

  1. Download Amazon's Corretto 8 found at https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/downloads-list.html.
  2. Open Eclipse and select the Window | Preferences menu item.
  3. Select the Java and then Installed JREs categories.
  4. Use the Add ... button to add the Corretto distribution, as shown in the following screenshot:
  1. Configure the AWS region, as shown next, using...