tanyuqian / ctc-gen-eval Goto Github PK
View Code? Open in Web Editor NEWEMNLP 2021 - CTC: A Unified Framework for Evaluating Natural Language Generation
License: MIT License
EMNLP 2021 - CTC: A Unified Framework for Evaluating Natural Language Generation
License: MIT License
RuntimeError: Error(s) in loading state_dict for DiscriminativeAligner:
Unexpected key(s) in state_dict: "_roberta.embeddings.position_ids".
Hi,
please help me with the following error:
Python 3.11.3 (main, Apr 5 2023, 15:52:25) [GCC 12.2.1 20230201] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctc_score import SummarizationScorer
>>> scorer = SummarizationScorer(align="D-cnndm", device="cpu")
>>> scorer.score(doc="document", refs=["reference"], hypo="summary", aspect="relevance")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/.../.local/lib/python3.11/site-packages/ctc_score/summarization_scorer.py", line 18, in score
return self.score_relevance(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.../.local/lib/python3.11/site-packages/ctc_score/summarization_scorer.py", line 37, in score_relevance
aligner_summ_ref = self._get_aligner('summ_to_ref')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.../.local/lib/python3.11/site-packages/ctc_score/scorer.py", line 55, in _get_aligner
aligner.load_state_dict(torch.load(ckpt_path, map_location=torch.device(self._device)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.../.local/lib/python3.11/site-packages/torch/serialization.py", line 797, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.../.local/lib/python3.11/site-packages/torch/serialization.py", line 283, in __init__
super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
kind regards
P.S. thanks for sharing this metric!
The line at
ctc-gen-eval/ctc_score_cli/score.py
Line 49 in d26c247
open(args.input_sent).readlines()
to match the expected argument.Hi, it seems that the google drive links are expired and I can't download models using the provided links . Could you update the links? Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.