Book Image

Natural Language Processing with Java - Second Edition

By : Richard M. Reese
Book Image

Natural Language Processing with Java - Second Edition

By: Richard M. Reese

Overview of this book

Natural Language Processing (NLP) allows you to take any sentence and identify patterns, special names, company names, and more. The second edition of Natural Language Processing with Java teaches you how to perform language analysis with the help of Java libraries, while constantly gaining insights from the outcomes. You’ll start by understanding how NLP and its various concepts work. Having got to grips with the basics, you’ll explore important tools and libraries in Java for NLP, such as CoreNLP, OpenNLP, Neuroph, and Mallet. You’ll then start performing NLP on different inputs and tasks, such as tokenization, model training, parts-of-speech and parsing trees. You’ll learn about statistical machine translation, summarization, dialog systems, complex searches, supervised and unsupervised NLP, and more. By the end of this book, you’ll have learned more about NLP, neural networks, and various other trained models in Java for enhancing the performance of NLP applications.
Table of Contents (19 chapters)
Title Page
Dedication
Packt Upsell
Contributors
Preface
Index

GloVe


Global Vectors for Word representation (GloVe) is a model for word representation. It falls under the category of unsupervised learning. It learns from developing a count matrix for word occurrence. Initially, it starts with the large matrix to store almost all the words and their co-occurrence information, which stores the count of how frequently some words appear in the sequence in given text. Support for GloVe is available in Stanford NLP, but is not implemented in Java. To read more about GloVe, visit https://nlp.stanford.edu/pubs/glove.pdf. A brief introduction and some resources for the Stanford GloVe can be found at https://nlp.stanford.edu/projects/glove/. To get an idea of what GloVe does, we will be using a Java implementation of GloVe found at https://github.com/erwtokritos/JGloVe .

The code also includes the test file and a text file. The text file's contents are as follows:

human interface computer
survey user computer system response time
eps user interface system
system...