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

issue #34

Open
jhkd-kevin opened this issue Jun 3, 2021 · 0 comments
Open

issue #34

jhkd-kevin opened this issue Jun 3, 2021 · 0 comments

Comments

@jhkd-kevin
Copy link

jhkd-kevin commented Jun 3, 2021

As I follow the command until:

wget https://storage.googleapis.com/bleurt-oss/bleurt-base-128.zip .
unzip bleurt-base-128.zip
python -m bleurt.score
-candidate_file=bleurt/test_data/candidates
-reference_file=bleurt/test_data/references
-bleurt_checkpoint=bleurt-base-128

I actually finish the step in your program, but as I run Python's API ,
the code like this:

from bleurt import score

checkpoint = "C:\bleurt-master\bert-base-128"
references = ["This is a test."]
candidates = ["This is the test."]

scorer = score.BleurtScorer(checkpoint)
scores = scorer.score(references=references, candidates=candidates)
assert type(scores) == list and len(scores) == 1
print(scores)

It occurred that:AssertionError: Could not find BLEURT checkpoint Cleurt-masteert-base-128

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

1 participant