fibber.resources package¶
Submodules¶
Module contents¶
-
fibber.resources.
get_counter_fitted_vector
(download_only=False)[source]¶ Download default pretrained counter fitted embeddings and return a dict.
See https://github.com/nmrksic/counter-fitting
- Parameters
download_only (bool) – set True to only download. (Returns None)
- Returns
- a dict of GloVe word embedding model.
”emb_table”: a numpy array of size(N, 300) “id2tok”: a list of strings. “tok2id”: a dict that maps word (string) to its id.
- Return type
(dict)
-
fibber.resources.
get_glove_emb
(download_only=False)[source]¶ Download default pretrained glove embeddings and return a dict.
We use the 300-dimensional model trained on Wikipedia 2014 + Gigaword 5. See https://nlp.stanford.edu/projects/glove/
- Parameters
download_only (bool) – set True to only download. (Returns None)
- Returns
- a dict of GloVe word embedding model.
”emb_table”: a numpy array of size(N, 300) “id2tok”: a list of strings. “tok2id”: a dict that maps word (string) to its id.
- Return type
(dict)
-
fibber.resources.
get_stopwords
()[source]¶ Download default stopword words.
- Returns
a list of strings.
- Return type
([str])