stanfordnlp / GloVe

Software in C and data files for the popular GloVe model for distributed word representations, a.k.a. word vectors or embeddings
Apache License 2.0
6.86k stars 1.51k forks source link

What is the real value returned by cooccur #36

Closed armintabari closed 8 years ago

armintabari commented 8 years ago

Thank you for your fast responses. I want to get the number of times each word cooccurred with other words. In cooccur, is the "real val" in the struct "cooccur_rec" the count? If yes why is it double and not integer?

ghost commented 8 years ago

Doubles can represent integers with perfect precision that are actually larger than a typical int32. See http://stackoverflow.com/questions/1848700/biggest-integer-that-can-be-stored-in-a-double.