word2box icon indicating copy to clipboard operation
word2box copied to clipboard

document pytorch-utils is not accessible

Open starrlee356 opened this issue 2 years ago • 1 comments

thanks for your code! I have a question about the document word2box-dev-shib/lib/pytorch-utils, which seems not accessible now.

In word2box-dev-shib/src/language_modeling_with_boxes/datasets/word2vecgpu.py, there is from pytorch_utils import TensorDataLoader, I wonder if this refers to a method in word2box-dev-shib/lib/pytorch-utils? Yet this document cannot be opened or found, which leads to import error.

I'd appreciate it if you could give me some advice!

starrlee356 avatar Sep 27 '23 07:09 starrlee356

Did you run the following code?

git clone {repo-url} --recurse-submodules
cd word2box
pip install -e lib/*
pip install -e .

Also, I forked this repo and added some fixes to the code and dependencies. You can find it here: https://github.com/ChiaraBi/word2box

ChiaraBi avatar Feb 04 '24 17:02 ChiaraBi