Infersent: Regarding Fasttext file crawl-300d-2M.vec

Created on 4 Apr 2019  路  3Comments  路  Source: facebookresearch/InferSent

On unzipping the Fasttext file crawl-300d-2M.vec.zip , I came across two files:
crawl-300d-2M-subword.bin and crawl-300d-2M-subword.vec. However the file crawl-300d-2M.vec expected by demo.ipynb is not there inside this zip leading to error.

Most helpful comment

I think the URL in the readme is wrong.

Correct URL:
https://dl.fbaipublicfiles.com/fasttext/vectors-english/crawl-300d-2M.vec.zip

All 3 comments

I think the URL in the readme is wrong.

Correct URL:
https://dl.fbaipublicfiles.com/fasttext/vectors-english/crawl-300d-2M.vec.zip

Having now tried using InferSent with both files, I'm also pretty sure the url in the README is wrong. For instance, this is the output of the visualize method when I use _crawl-300d-2M.vec_
image
However when I use _crawl-300d-2M-subword.vec_ the central bars are more or less inverted with the obviously less important words receiving greater importance.

File in readme is: crawl-300d-2M-subword.zip
But need crawl-300d-2M.vec.zip

I tested both and -subword give me very bad results.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nstfk picture nstfk  路  9Comments

dami23 picture dami23  路  9Comments

thammegowda picture thammegowda  路  15Comments

8carlosf picture 8carlosf  路  6Comments

AmoghM picture AmoghM  路  7Comments