TextClassificationBenchmark icon indicating copy to clipboard operation
TextClassificationBenchmark copied to clipboard

Automatically download embeddings

Open stefan-it opened this issue 7 years ago • 2 comments
trafficstars

Hi,

thanks creating this text classification benchmark!

I wanted to run the basic example python3 main.py --model cnn and I could see that the GloVe embeddings were not downloaded automatically.

The dataHelper.loadData(opt) never calls the Glove constructor, so the embeddings won't be downloaded. But when I change from_torchtext = False to from_torchtext = True the utils.loadData(opt) method calls the Glove constructor.

I guess calling the Glove constructor would be enough to call it before the glove_file declaration (from here)?

stefan-it avatar Feb 13 '18 10:02 stefan-it

Thanks for your issues. You are right. Would you mind fixing this problem, and I will add you as a collaborators for this project.

wabyking avatar Feb 13 '18 11:02 wabyking

Cool thanks :) My first attempt for solving this issue is #15.

stefan-it avatar Feb 13 '18 14:02 stefan-it