paulhindemith
commited on
Commit
·
2242279
1
Parent(s):
6ee9897
Update README.md
Browse files
README.md
CHANGED
@@ -19,8 +19,25 @@ widget:
|
|
19 |
|
20 |
Pretrained FastText word vector for Japanese
|
21 |
|
22 |
-
|
|
|
23 |
https://github.com/facebookresearch/fastText
|
24 |
|
25 |
-
- word vector data
|
26 |
-
https://dl.fbaipublicfiles.com/fasttext/vectors-crawl/cc.ja.300.vec.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
Pretrained FastText word vector for Japanese
|
21 |
|
22 |
+
## Reference
|
23 |
+
- fastText </br>
|
24 |
https://github.com/facebookresearch/fastText
|
25 |
|
26 |
+
- word vector data </br>
|
27 |
+
https://dl.fbaipublicfiles.com/fasttext/vectors-crawl/cc.ja.300.vec.gz
|
28 |
+
|
29 |
+
## Usage
|
30 |
+
|
31 |
+
Google Colaboratory Example
|
32 |
+
```
|
33 |
+
! apt install aptitude swig > /dev/null
|
34 |
+
! aptitude install mecab libmecab-dev mecab-ipadic-utf8 git make curl xz-utils file -y > /dev/null
|
35 |
+
! pip install transformers torch mecab-python3 > /dev/null
|
36 |
+
! ln -s /etc/mecabrc /usr/local/etc/mecabrc
|
37 |
+
```
|
38 |
+
|
39 |
+
```
|
40 |
+
from transformers import pipeline
|
41 |
+
|
42 |
+
pipeline = pipeline("feature-extraction", model="paulhindemith/fasttext-jp-embedding", revision="2022.11.06", trust_remote_code=True)
|
43 |
+
```
|