Skip to content

Commit b4f3661

Browse files
committed
added further documentation to load_S_matrix_from_fasttext
1 parent 9df9fc2 commit b4f3661

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/make_semantic_matrix.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,14 @@ Subset fasttext vectors to include only words in `target_col` of `data`, and
13521352
subset data to only include words in `target_col` for which semantic vector
13531353
is available.
13541354
1355+
The last parameter, default_file, specifies which vectors are loaded.
1356+
To learn about all available vectors, use the following commands:
1357+
```
1358+
using Embeddings
1359+
language_files(FastText_Text{:nl})
1360+
```
1361+
replacing the language code (here `:nl`) with the language you are interested in.
1362+
In general, for all languages other than English, these files are available:
13551363
- `default_file=1` loads from https://fasttext.cc/docs/en/crawl-vectors.html,
13561364
paper: E. Grave*, P. Bojanowski*, P. Gupta, A. Joulin, T. Mikolov,
13571365
Learning Word Vectors for 157 Languages
@@ -1402,6 +1410,14 @@ subset data to only include words in `target_col` for which semantic vector
14021410
is available.
14031411
Returns subsetted train and val data and train and val semantic matrices.
14041412
1413+
The last parameter, default_file, specifies which vectors are loaded.
1414+
To learn about all available vectors, use the following commands:
1415+
```
1416+
using Embeddings
1417+
language_files(FastText_Text{:nl})
1418+
```
1419+
replacing the language code (here `:nl`) with the language you are interested in.
1420+
In general, for all languages other than English, these files are available:
14051421
- `default_file=1` loads from https://fasttext.cc/docs/en/crawl-vectors.html,
14061422
paper: E. Grave*, P. Bojanowski*, P. Gupta, A. Joulin, T. Mikolov,
14071423
Learning Word Vectors for 157 Languages

0 commit comments

Comments
 (0)