Commit
·
17fbad2
1
Parent(s):
b2fee8a
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
```
|
2 |
+
tags:
|
3 |
+
- glove
|
4 |
+
- gensim
|
5 |
+
license
|
6 |
+
- PDDL
|
7 |
+
```
|
8 |
+
|
9 |
+
# Glove Twitter
|
10 |
+
|
11 |
+
Pre-trained glove vectors based on 2B tweets, 27B tokens, 1.2M vocab, uncased.
|
12 |
+
|
13 |
+
Read more:
|
14 |
+
* https://nlp.stanford.edu/projects/glove/
|
15 |
+
* https://nlp.stanford.edu/pubs/glove.pdf
|
16 |
+
|
17 |
+
## Example Usage
|
18 |
+
|
19 |
+
```python
|
20 |
+
import gensim.downloader as api
|
21 |
+
model = api.load("glove-twitter-25", from_hf=True)
|
22 |
+
model.most_similar(positive=['fruit', 'flower'], topn=1)
|
23 |
+
|
24 |
+
"""
|
25 |
+
Output:
|
26 |
+
|
27 |
+
[('cherry', 0.9183273911476135)]
|
28 |
+
"""
|
29 |
+
```
|