Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

Generating pre-trained word embeddings #549

@carolscarton

Description

@carolscarton

Hi, I am trying to use the embeddings.lua script to generate pre-trained word embeddings. However, after running something like:

th tools/embeddings.lua -lang en -dict_file data/demo.src.dict -save_data data/demo-src-emb

I get the following error:
.../torch/install/bin/luajit: tools/embeddings.lua:98: embedding file for language code 'en' was not found
stack traceback:
[C]: in function 'error'
tools/embeddings.lua:98: in function 'loadAuto'
tools/embeddings.lua:417: in function 'main'
tools/embeddings.lua:433: in main chunk
[C]: in function 'dofile'
.../torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50

Any ideas why this is happening? Thank you in advance for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions