Skip to content

I use your embedding.txt ,emb_dim=50,but I will error ,I need to help. THX! #9

@lunjiaqi

Description

@lunjiaqi

[INFO] (nea.w2vEmbReader) Loading embeddings from: data/embeddings.w2v.txt
Traceback (most recent call last):
File "train_nea.py", line 160, in
model = create_model(args, train_y.mean(axis=0), overal_maxlen, vocab)
File "/home/zetao/nea-master/nea/models.py", line 133, in create_model
emb_reader = EmbReader(args.emb_path, emb_dim=args.emb_dim)
File "/home/zetao/nea-master/nea/w2vEmbReader.py", line 47, in init
assert self.emb_dim == emb_dim, 'The embeddings dimension does not match with the requested dimension'
AssertionError: The embeddings dimension does not match with the requested dimension

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