Skip to content

Commit

Permalink
Fix typos for Komninos embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhaofeng Wu committed Mar 1, 2019
1 parent 5db31c0 commit 987052b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flair/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def __init__(self, embeddings: str, field: str = None):
cached_path(f'{embeddings_path_v4_1}turian.vectors.npy', cache_dir=cache_dir)
embeddings = cached_path(f'{embeddings_path_v4_1}turian', cache_dir=cache_dir)

# KOMNIOS embeddings
# KOMNINOS embeddings
elif embeddings.lower() == 'extvec' or embeddings.lower() == 'en-extvec':
cached_path(f'{old_base_path}extvec.gensim.vectors.npy', cache_dir=cache_dir)
embeddings = cached_path(f'{old_base_path}extvec.gensim', cache_dir=cache_dir)
Expand Down
4 changes: 2 additions & 2 deletions resources/docs/TUTORIAL_3_WORD_EMBEDDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fine-tuning.
## Classic Word Embeddings

Classic word embeddings are static and word-level, meaning that each distinct word gets exactly one pre-computed
embedding. Most embeddings fall under this class, including the popular GloVe or Komnios embeddings.
embedding. Most embeddings fall under this class, including the popular GloVe or Komninos embeddings.

Simply instantiate the WordEmbeddings class and pass a string identifier of the embedding you wish to load. So, if
you want to use GloVe embeddings, pass the string 'glove' to the constructor:
Expand Down Expand Up @@ -62,7 +62,7 @@ The following embeddings are currently supported:
| ID | Language | Embedding |
| ------------- | ------------- | ------------- |
| 'en-glove' (or 'glove') | English | GloVe embeddings |
| 'en-extvec' (or 'extvec') | English |Komnios embeddings |
| 'en-extvec' (or 'extvec') | English |Komninos embeddings |
| 'en-crawl' (or 'crawl') | English | FastText embeddings over Web crawls |
| 'en-twitter' (or 'twitter') | English | Twitter embeddings |
| 'en-turian' (or 'turian') | English | Turian embeddings (small) |
Expand Down

0 comments on commit 987052b

Please sign in to comment.