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

Assertion failed on "assert len(amr.nodes) == len(concept) == len(amr.node_values)" #2

Open
wenchaodudu opened this issue Aug 14, 2021 · 6 comments

Comments

@wenchaodudu
Copy link

I used penman 0.6.0 do run prepare_data.py

Then when I ran preprocess.py, I got:

Traceback (most recent call last): File "preprocess.py", line 354, in <module> item = pre_to_json(data_per_doc, links_per_doc, file_name) File "preprocess.py", line 307, in pre_to_json data, cluster = get_clusters_info(links, data) File "preprocess.py", line 260, in get_clusters_info pdb.set_trace() File "preprocess.py", line 240, in mapping_edges assert len(amr.nodes) == len(concept) == len(amr.node_values) AssertionError

@Sean-Blank
Copy link
Owner

you can try penman 1.2, i am not sure 0.6.0 is ok.

@wenchaodudu
Copy link
Author

I tried penman 1.2 then I got this error when running prepare_data.py
False Traceback (most recent call last): File "prepare_data.py", line 8, in <module> from amr_parsing.io import AMRIO File "/vc_data/users/wenchaodu/AMRcoref/amr_parsing/io.py", line 3, in <module> from amr_parsing.amr import AMR, AMRGraph File "/vc_data/users/wenchaodu/AMRcoref/amr_parsing/amr.py", line 18, in <module> penman.AMRCodec._inversions.pop('domain') AttributeError: module 'penman' has no attribute 'AMRCodec'

@Sean-Blank
Copy link
Owner

I tried penman 1.2 then I got this error when running prepare_data.py
False Traceback (most recent call last): File "prepare_data.py", line 8, in <module> from amr_parsing.io import AMRIO File "/vc_data/users/wenchaodu/AMRcoref/amr_parsing/io.py", line 3, in <module> from amr_parsing.amr import AMR, AMRGraph File "/vc_data/users/wenchaodu/AMRcoref/amr_parsing/amr.py", line 18, in <module> penman.AMRCodec._inversions.pop('domain') AttributeError: module 'penman' has no attribute 'AMRCodec'

It seems to be a version problem of other packages, I will check it again and update the re.txt

@wenchaodudu
Copy link
Author

Can you please send me a copy of preprocessed data? We have the appropriate LDC license.

@Sean-Blank
Copy link
Owner

Can you please send me a copy of preprocessed data? We have the appropriate LDC license.

Sorry, maybe I sent it to the wrong address before. Please check your email again.

@wenchaodudu
Copy link
Author

Are you sending it to my email at [email protected]?

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

2 participants