Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: Please define ILMULTI_CORPUS_ROOT in environment variable #2

Open
Nimishasri opened this issue Aug 11, 2020 · 1 comment

Comments

@Nimishasri
Copy link

Nimishasri commented Aug 11, 2020

System:
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

Python 3.7.6

Created a folder Research/MT on Home. Setup and activated Virtual environment in Research/MT
Cloned ilmulti in Research/MT
Ran the following:

python3 -m pip install -r requirements.txt --user  
python3 setup.py install

Downloaded the models by running scripts/download-and-setup-models.sh
No errors/warnings uptill now
Opened up a Jupyter notebook and ran the following:

from ilmulti.translator import from_pretrained

translator = from_pretrained(tag='mm-all')
sample = translator("The quick brown fox jumps over the lazy dog", tgt_lang='hi')

Exception: Please define ILMULTI_CORPUS_ROOT in environment variable
@jerinphilip jerinphilip changed the title Exception: Please define ILMULTI_CORPUS_ROOT in environment variable export ILMULTI_CORPUS_ROOT =’’ Exception: Please define ILMULTI_CORPUS_ROOT in environment variable Aug 11, 2020
@jerinphilip
Copy link
Owner

ILMULTI_CORPUS_ROOT is only used for training. I have set this to a hard-failure to ensure scripts fail early than at a later stage. For inference purposes, this can be removed by simply setting ILMULTI_CORPUS_ROOT to anything, as in the following example.

export ILMULTI_CORPUS_ROOT=''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants