Skip to content

How can I make or get a Pretrained static embeddings file? #1

@YoshikawaMasashi

Description

@YoshikawaMasashi

I tried running train.py, and got an error as follows.
Could you please let me know about how to get 'data/models/BMET-ft-5-396-30-5_c.vec' file?

> python train.py 
Sep05 10:18 __main__ INFO: [ Reading MeSH tree structure... ]
Sep05 10:18 BMET.utils INFO: [ Reading MeSH descriptors file... ]
Sep05 10:18 root INFO: [ Loading word vectors from data/models/BMET-ft-5-396-30-5_c.vec... ]
Traceback (most recent call last):
  File "/***/BERT-CRel-Embeddings/train.py", line 108, in <module>
    embs = WvModel(cfg.F_WV_EMBS)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/***/BERT-CRel-Embeddings/BMET/vocab.py", line 30, in __init__
    self.__build_vocab_from_pretrained(emb_path, normalize=normalize_emb)
  File "/***/BERT-CRel-Embeddings/BMET/vocab.py", line 43, in __build_vocab_from_pretrained
    with open(fpath, encoding='utf-8') as fd:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'data/models/BMET-ft-5-396-30-5_c.vec'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions