Questions tagged [glove]

GloVe is an unsupervised learning algorithm for obtaining vector representations for words (word embeddings).

GloVe is an unsupervised learning algorithm for obtaining vector representations for words (word embeddings). See https://nlp.stanford.edu/projects/glove/ for more information.

92 questions
0
votes
1 answer

build WORD2VEC words dictionary to indicate feelings

I am working with Word2vec (Gensim, in python) to understand meaning of sentences (by each word in them). My goal is to be able to realize if the sentence indicates about the feeling of the speaker. Where can I find this kind of a dictionary of…
rdo123
  • 149
  • 1
  • 1
  • 9
0
votes
2 answers

Pre trained vectors, nlp, word2vec, word embedding for particular topic?

is there any pretrained vector for particular topic only? for example "java", so i want vectors related java in file. mean if i give input inheritance then cosine similarity show me polymorphism and other related stuff only! i am using corpus as…
0
votes
1 answer

R text2vec; rsparse::GloVe$new() GlobalVectors$new() Env Set/Not Set

Problem: R GloVe environment using library(text2vec). Set environment with code execution of rsparse::GloVe$new(), BUT, not set with code execution of GlobalVectors$new(). Then ran wv_main = glove$fit_transform(tcm...), error: Error at…
manager_matt
  • 395
  • 4
  • 19
0
votes
1 answer

Python glove missing module 'glove' 'Glove'

Here is what I performed: Installed pip3 install glove_py ok. In Jupyter Python, import glove works ok. from glove import * Problem: When I try a basic setup code to ensure all the modules are loaded and working. I have this code, which errors on…
manager_matt
  • 395
  • 4
  • 19
0
votes
1 answer

Python3 Glove Attribute Error: 'generator' object has no attribute 'shape'

I am trying to train my model using glove. My code is as below: #!/usr/bin/env python3 from __future__ import print_function import argparse import pprint import gensim from glove import Glove from tensorflow.python.keras.utils.data_utils import…
Hunzla
  • 3
  • 3
0
votes
1 answer

Understanding usage of glove vectors

I used the following code to using glove vectors for word embeddings from gensim.scripts.glove2word2vec import glove2word2vec #line1 glove_input_file = 'glove.840B.300d.txt' #line2 word2vec_output_file = 'glove.word2vec' …
Karanam Krishna
  • 365
  • 2
  • 16
0
votes
0 answers

System error:unexpected EOF while parsing

with open("glove.6B.50d.txt",encoding='utf8') as f: for line in f: values = line.split() word = values[0] vector = np.asarray(values[1:], "float32") embeddings_dict[word] = vector This is the code i executed, I…
0
votes
0 answers

Import error after successfully installing glove

I have successfully installed glove. After running pip3 install https://github.com/JonathanRaiman/glove/archive/master.zip from the command line I get the following message Collecting https://github.com/JonathanRaiman/glove/archive/master.zip …
E. Lutins
  • 115
  • 2
  • 11
0
votes
1 answer

What is "dont" and "isnt" in the pertained GloVe vector files (e.g. glove.6B.50d.txt)?

I found these 2 words "dont" and "isnt" in the vector file glove.6B.50d.txt downloaded from https://nlp.stanford.edu/projects/glove/. I wonder if they were originally "don't" and "isn't". This will likely depend on the sentence_to_word parsing…
kawingkelvin
  • 3,649
  • 2
  • 30
  • 50
0
votes
1 answer

Importing GloVe vectors into gensim. UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 0: invalid continuation byte

I've produced GloVe vectors using the code provided by https://github.com/stanfordnlp/GloVe/blob/master/demo.sh using my own corpus. So, I have both the .bin file and .txt file vectors. I'm trying to import these files into gensim so I can work with…
epair
  • 25
  • 5
0
votes
0 answers

Bi-LSTM with glove - lemmatization Issue

Trying to implement bidirectional LSTM model with glove embedding in Python using keras. Model architecture is as below: The model works fine when it is run without any preprocessing of input data. Below image shows the output of the model: As a…
Anvitha
  • 89
  • 4
0
votes
0 answers

Encoding 'UTF-8' throws an exception in macOS

I'm trying to read a GloVe file: glove.twitter.27B.200d.txt. I have the next function to read the file: def glove_reader(glove_file): glove_dict = {} with open(glove_file, 'rt', encoding='utf-8') as glove_reader: for line in…
Luis Miguel
  • 193
  • 1
  • 2
  • 10
0
votes
1 answer

Should the vocabulary be restricted to the training-set vocabulary when training an NN model with pretrained word2vec like GLOVE?

I wanted to use word embeddings for the embedding Layer in my neural network using pre-trained vectors from GLOVE. Do I need to restrict the vocabulary to the training-set when constructing the word2index dictionary? Wouldn't that lead to a limited…
CiCi
  • 47
  • 1
  • 5
0
votes
1 answer

'Doc2Vec' object has no attribute 'get_latest_training_loss'

I am pretty new to doc2vec then I made small research and found a couple of things. Here is my story: I am trying to learn using doc2vec 2.4 million documents. At first, I tried only doing so with a small model of 12 documents. I checked the results…
Eli Borodach
  • 554
  • 3
  • 9
  • 22
0
votes
1 answer

Can we compare word vectors from different models using transfer learning?

I want to train two word2vec/GLoVe models on different corpora and then compare the vectors of a single word. I know that it makes no sense to do so as different models start at different random states, but what if we use pre-trained word vectors as…
Vaibhav Jain
  • 195
  • 1
  • 10