Giter VIP home page Giter VIP logo

Comments (5)

hoschwenk avatar hoschwenk commented on August 15, 2024

I suppose that the embeddings were not calculated correctly, and consequently, you get a size mismatch with the class target file.
This is probably related to #9 , i.e. the fastBPE command was not in the path.
Please pull the latest source and try again (removing spurious files)

from laser.

Stolaine avatar Stolaine commented on August 15, 2024

@hoschwenk I have the latest source and the modification mentioned in #9 is also done. But the error is still there.

the link provided to download the XNLI 1.0 and XNLI-MT 1.0 seems to be broken. can this be the issue?

from laser.

DimitriTro avatar DimitriTro commented on August 15, 2024

I tied this solution, it solved a part of the problem, but this one still remain :

Training the classifier (see embed/xnli.log)
Traceback (most recent call last):
File "/home/trotignon/projects/LASER/source/nli.py", line 228, in
dim=args.dim, bsize=args.bsize, shuffle=True)
File "/home/trotignon/projects/LASER/source/nli.py", line 57, in LoadDataNLI
D = data_utils.TensorDataset(torch.from_numpy(nli), torch.from_numpy(lbl))
File "/home/trotignon/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataset.py", line 36, in init
assert all(tensors[0].size(0) == tensor.size(0) for tensor in tensors)
AssertionError

Even with the last version,
Thank you

from laser.

hoschwenk avatar hoschwenk commented on August 15, 2024

Indeed, it looks like that the XNLI link is broken or was moved elsewhere.
Sadly, I can't help you with this. If there is no data, the tool won't work :-)
Please have a look at the size of the created files - I guess that there is an error somewhere.

from laser.

DimitriTro avatar DimitriTro commented on August 15, 2024

Thank you very much, will look at it!

from laser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.