Skip to content

Commit

Permalink
fix zip file path
Browse files Browse the repository at this point in the history
  • Loading branch information
davebulaval committed Nov 14, 2023
1 parent 8b93582 commit a553da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/training/evaluate_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
if not os.path.exists(lens_model_ckpt):
url = "https://github.com/GRAAL-Research/MeaningBERT/releases/download/dependencies_model_release/LENS.zip"
filehandle, _ = urllib.request.urlretrieve(url)
with ZipFile(".", "r") as zip_file:
with ZipFile(filehandle, "r") as zip_file:
zip_file.extractall(lens_model_ckpt, members=None, pwd=None)
lens = LENS(lens_model_ckpt, rescale=True)

Expand All @@ -69,7 +69,7 @@
"coverage_roberta.bin"
)
filehandle, _ = urllib.request.urlretrieve(url)
with ZipFile(".", "r") as zip_file:
with ZipFile(filehandle, "r") as zip_file:
zip_file.extractall(coverage_model_ckpt, members=None, pwd=None)

coverage_kis = CoverageModel(model_file=coverage_model_ckpt)
Expand Down

0 comments on commit a553da1

Please sign in to comment.