Closed mymusise closed 3 years ago
huggingface/transformers
MOVERSCORE_MODEL
import os os.environ['MOVERSCORE_MODEL'] = "albert-base-v2"
from moverscore_v2 import get_idf_dict idf_dict_hyp = get_idf_dict(translations)
3. add `moverscore_v2` to setup.py 4. suggest use `CUDA_VISIBLE_DEVICES` instead of `device` parameter Hope it help!
huggingface/transformers
apiMOVERSCORE_MODEL
environment variable to select different bert model. example:from moverscore_v2 import get_idf_dict idf_dict_hyp = get_idf_dict(translations)