Closed andreagrusso closed 4 years ago
Hi Andrea,
I guess that instead of importing the multifit
module you've somehow imported the repository directory. Can you verify that by inspecting multifit.__path__
?
Hi, thank you for your reply!
I think that you're right as multifit.__path__
returns
_NamespacePath(['/content/multifit'])
and inspecting the above path I got exactly the repository directory
fastai_contrib
prepare_cls.py
prepare_xnli.py
sotabench get_preprocessed_wikis.sh
prepare_imdb.sh
prepare_xnli.sh split-cls.py LICENSE
prepare_mldoc.py
README.md multifit
prepare_wiki-en.sh
requirements.txt notebooks
prepare_wiki.sh
setup.pyI've tried again to install setup.py as I did on my local machine
!python /content/multifit/setup.py install
but the problem persists. I don't understand what I am doing wrong.
I've resolved the issue by using:
!pip install git+https://github.com/n-waves/multifit.git !pip install sacremoses
I don't know what is the difference with the other way but now it works. I hope it will help other users!
It depends on what's on your $PYTHON_PATH
. Installing directly from repository works as the repository directory is not cloned into your current working directory.
Hi! I am trying to use multifit on Google Colab but I encounter a problem in the installation and then in the use of multifit. This my code for the installation:
!git clone https://github.com/n-waves/multifit.git !python multifit/setup.py install
and this is the output:The import of the package works well but when I try to use
multifit.from_pretrained("...")
:What am I doing wrong?
Thanks in advance, Andrea