Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
YoshikawaMasashi opened this issue Sep 5, 2024 · 0 comments
Open

Comments

@YoshikawaMasashi
Copy link

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant