Hands-on NLP with DL4J

The first example we are going to examine is a sentiment analysis case for movie reviews, the same as for the last example shown in the previous chapter (the Hands-on NLP with Spark-NLP section). The difference is that here, we are going to combine Word2Vec (https://en.wikipedia.org/wiki/Word2vec) and an RNN model.

Word2Vec can be seen as a neural network with two layers only, which expects as input some text content and then returns vectors. It isn't a deep neural network, but it is used to turn text into a numerical format that deep neural networks can understand. Word2Vec is useful because it can group the vectors of similar words together in a vector space. It does this mathematically. It creates, without human ...

Get Hands-On Deep Learning with Apache Spark now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.