Explore Courses Blog Tutorials Interview Questions
0 votes
in AI and Deep Learning by (50.2k points)

I installed word2Vec using this tutorial on my Ubuntu laptop. Is it completely necessary to install DL4Jin order to implement word2Vec vectors in Java? I'm comfortable working in Eclipse and I'm not sure that I want all the other pre-requisites that DL4J wants me to install.

Ideally, there would be a really easy way for me to just use the Java code I've already written (in Eclipse) and change a few lines -- so that word look-ups that I am doing would retrieve a word2Vec vector instead of the current retrieval process I'm using.

Also, I've looked into using GloVe, however, I do not have MatLab. Is it possible to use GloVe without MatLab? (I got an error while installing it because of this). If so, the same question as above goes... I have no idea how to implement it in Java.

1 Answer

0 votes
by (108k points)

Word2vec is a two-layer neural net that processes text. the input is a text corpus and its output is a set of vectors: feature vectors for words in that corpus. Word2vec is not a deep neural network, it converts the text into a numerical form that deep nets can understand. Deeplearning4j performs a distributed form of Word2vec for Java and Scala, which works on Spark with GPUs.

Word2vec’s applications extend beyond parsing sentences in the wild. It can be implemented just as well to genes, code, likes, playlists, social media graphs and other verbal or symbolic series in which patterns may be discerned.

For better understanding, refer to the following link:

Browse Categories