sagorsarker
commited on
Commit
•
9a544eb
1
Parent(s):
e8a223e
Update README.md
Browse files
README.md
CHANGED
@@ -21,4 +21,17 @@ bn_glove.39M.100d.zip
|
|
21 |
bn_glove.300d.zip
|
22 |
|
23 |
- Wikipedia (20M(19965328) tokens, 0.13M(134255), 100d vectors, 51.2MB download):
|
24 |
-
bn_glove.100d.zip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
bn_glove.300d.zip
|
22 |
|
23 |
- Wikipedia (20M(19965328) tokens, 0.13M(134255), 100d vectors, 51.2MB download):
|
24 |
+
bn_glove.100d.zip
|
25 |
+
|
26 |
+
## Usage
|
27 |
+
```py
|
28 |
+
from bnlp import BengaliGlove
|
29 |
+
glove_path = "bn_glove.39M.100d.txt"
|
30 |
+
word = "গ্রাম"
|
31 |
+
bng = BengaliGlove()
|
32 |
+
res = bng.closest_word(glove_path, word)
|
33 |
+
print(res)
|
34 |
+
vec = bng.word2vec(glove_path, word)
|
35 |
+
print(vec)
|
36 |
+
|
37 |
+
```
|