Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
943 B
3
Indexable
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Input In [20], in <cell line: 5>()
      1 from gensim.downloader import load
      3 # Load pre-trained model
      4 #model = load("word2vec-google-news-300")
----> 5 model = load("glove-wiki-gigaword-100")
      6 #model = load("fasttext-wiki-news-subwords-300")
      7 
      8 # Specify the path for saving the embeddings
      9 embedding_file_path = "word2vec_embeddings.txt"

File /Analytics/venv/CAPEANALYTICS/lib/python3.8/site-packages/gensim/downloader.py:492, in load(name, return_path)
    490 file_name = _get_filename(name)
    491 if file_name is None:
--> 492     raise ValueError("Incorrect model/corpus name")
    493 folder_dir = os.path.join(BASE_DIR, name)
    494 path = os.path.join(folder_dir, file_name)

ValueError: Incorrect model/corpus name