Skip to content

Commit

Permalink
fix zipfile export
Browse files Browse the repository at this point in the history
  • Loading branch information
davebulaval committed Nov 14, 2023
1 parent a553da1 commit 0144238
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 @@ -59,7 +59,7 @@
url = "https://github.com/GRAAL-Research/MeaningBERT/releases/download/dependencies_model_release/LENS.zip"
filehandle, _ = urllib.request.urlretrieve(url)
with ZipFile(filehandle, "r") as zip_file:
zip_file.extractall(lens_model_ckpt, members=None, pwd=None)
zip_file.extractall(".", members=None, pwd=None)
lens = LENS(lens_model_ckpt, rescale=True)

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

coverage_kis = CoverageModel(model_file=coverage_model_ckpt)

Expand Down

0 comments on commit 0144238

Please sign in to comment.