Skip to content

Commit a7e51ae

Browse files
authored
Added GloVe vectors
1 parent 298862d commit a7e51ae

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,22 @@ if __name__ == '__main__':
4141
```
4242

4343
[Download](https://drive.google.com/open?id=1_suJ-AxZ9yZ5zB5uW8UIaBJDNni83ZxJ)
44+
45+
### GloVe
46+
47+
Global Vectors for Word Representation (GloVe) trained using the reference implementation from Stanford NLP. 100 dimensions, contains lemmatized words with 3 or more ocurrences in the corpus. Sample usage:
48+
49+
```python
50+
from gensim.models import KeyedVectors
51+
52+
if __name__ == '__main__':
53+
word2vec = KeyedVectors.load_word2vec_format("glove_100_3_polish.txt")
54+
print(word2vec.similar_by_word("bierut"))
55+
56+
# [('cyrankiewicz', 0.8335597515106201), ('gomułka', 0.7793121337890625), ('bieruta', 0.7118682861328125), ('jaruzelski', 0.6743760108947754), ('minc', 0.6692837476730347)]
57+
```
58+
59+
[Download](https://drive.google.com/open?id=1hLGZYOzG543p18ac-AfEsGXQGO6ioKex)
4460

4561
### ELMo
4662

0 commit comments

Comments
 (0)