We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, is MoverScore only support for Bert model? When I use the mdeberta-v3-base model, I got this error:
The below is my code: os.environ['MOVERSCORE_MODEL'] = "mdeberta-v3-base"
from moverscore_v2 import get_idf_dict, word_mover_score from collections import defaultdict
refs = ['English is a language', 'English'] sys = ['Language English', 'Chinese']
idf_dict_hyp = get_idf_dict(sys) # idf_dict_hyp = defaultdict(lambda: 1.) idf_dict_ref = get_idf_dict(refs) # idf_dict_ref = defaultdict(lambda: 1.) scores = word_mover_score(refs, sys, idf_dict_ref, idf_dict_hyp, stop_words=[], n_gram=2, remove_subwords=True) print(scores)
Thanks.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello, is MoverScore only support for Bert model? When I use the mdeberta-v3-base model, I got this error:
The below is my code:
os.environ['MOVERSCORE_MODEL'] = "mdeberta-v3-base"
from moverscore_v2 import get_idf_dict, word_mover_score
from collections import defaultdict
refs = ['English is a language', 'English']
sys = ['Language English', 'Chinese']
idf_dict_hyp = get_idf_dict(sys) # idf_dict_hyp = defaultdict(lambda: 1.)
idf_dict_ref = get_idf_dict(refs) # idf_dict_ref = defaultdict(lambda: 1.)
scores = word_mover_score(refs, sys, idf_dict_ref, idf_dict_hyp, stop_words=[], n_gram=2, remove_subwords=True)
print(scores)
Thanks.
The text was updated successfully, but these errors were encountered: