Sorry to bother you, I tried to run amr2dglgraph.py
after running amrparse.py
, but it failed. What is the problem?
Using backend: pytorch
45%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | 1464/3241 [02:52<04:40, 6.34it/s]=======> No AMR graph!!!!!
=======> No AMR graph!!!!!
45%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | 1466/3241 [02:52<04:17, 6.88it/s]=======> No AMR graph!!!!!
45%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | 1467/3241 [02:53<04:41, 6.30it/s]=======> No AMR graph!!!!!
45%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | 1468/3241 [02:53<04:58, 5.94it/s]=======> No AMR graph!!!!!
45%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | 1469/3241 [02:53<07:12, 4.10it/s]=======> No AMR graph!!!!!
45%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | 1470/3241 [02:53<06:43, 4.39it/s]=======> No AMR graph!!!!!
45%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | 1471/3241 [02:54<06:16, 4.70it/s]=======> No AMR graph!!!!!
61%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | 1992/3241 [03:59<03:11, 6.51it/s]=======> No AMR graph!!!!!
84%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | 2710/3241 [05:16<00:34, 15.24it/s]=======> No AMR graph!!!!!
=======> No AMR graph!!!!!
84%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | 2712/3241 [05:16<00:35, 15.01it/s]=======> No AMR graph!!!!!
84%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | 2720/3241 [05:17<00:36, 14.12it/s]=======> No AMR graph!!!!!
=======> No AMR graph!!!!!
84%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | 2722/3241 [05:17<00:36, 14.09it/s]=======> No AMR graph!!!!!
=======> No AMR graph!!!!!
84%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | 2724/3241 [05:17<00:46, 11.04it/s]=======> No AMR graph!!!!!
=======> No AMR graph!!!!!
100%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ| 3241/3241 [06:20<00:00, 8.52it/s]
{'ARG0': 89026, 'snt1': 5888, 'ARG1': 129892, 'ARG2': 36997, 'op1': 82021, 'mod': 45236, 'location': 20666, 'part-of': 2002, 'time': 24170, 'op2': 35852, 'snt2': 6923, 'mode': 348, 'name': 56088, 'rel': 17801, 'polarity': 4515, 'medium': 837, 'weekday': 2617, 'op3': 8579, 'op4': 3160, 'purpose': 2569, 'source': 1156, 'concession-of': 119, 'degree': 1208, 'month': 4103, 'year': 4535, 'poss': 5452, 'topic': 2187, 'quant': 16130, 'dayperiod': 790, 'location-of': 921, 'day': 3259, 'concession': 525, 'ARG4': 1324, 'snt3': 3105, 'direction': 623, 'manner': 3145, 'instrument': 585, 'quant-of': 131, 'age': 991, 'unit': 5047, 'op5': 1110, 'op6': 477, 'consist-of': 523, 'example': 403, 'ARG3': 3075, 'condition': 618, 'prep-with': 264, 'accompanier': 396, 'op7': 316, 'op8': 211, 'op9': 144, 'domain': 2417, 'duration': 1171, 'prep-against': 64, 'poss-of': 106, 'time-of': 608, 'duration-of': 7, 'ord': 975, 'beneficiary': 343, 'prep-in': 6, 'op10': 91, 'op11': 66, 'op12': 50, 'ARG6': 104, 'timezone': 128, 'value': 1073, 'op13': 46, 'op14': 39, 'op15': 39, 'op16': 36, 'op17': 34, 'op18': 22, 'op19': 19, 'op20': 19, 'op21': 19, 'op22': 18, 'op23': 17, 'op24': 17, 'op25': 17, 'op26': 17, 'op27': 17, 'op28': 17, 'op29': 17, 'op30': 13, 'op31': 13, 'op32': 13, 'op33': 13, 'op34': 13, 'op35': 13, 'op36': 13, 'op37': 13, 'op38': 13, 'op39': 13, 'op40': 13, 'op41': 13, 'op42': 13, 'op43': 13, 'op44': 13, 'op45': 12, 'op46': 12, 'op47': 12, 'op48': 11, 'op49': 11, 'op50': 11, 'op51': 11, 'op52': 11, 'op53': 11, 'op54': 11, 'op55': 11, 'ARG5': 234, 'destination': 339, 'snt4': 732, 'snt5': 801, 'snt6': 87, 'subevent-of': 167, 'prep-as': 111, 'polarity-of': 172, 'part': 52, 'li': 239, 'path': 85, 'degree-of': 8, 'frequency': 328, 'manner-of': 83, 'extent': 10, 'prep-on-behalf-of': 29, 'topic-of': 1, 'season': 27, 'decade': 63, 'root': 36, 'prep-under': 57, 'prep-to': 11, 'calendar': 6, 'polite': 11, 'medium-of': 3, 'op56': 7, 'op57': 7, 'op58': 7, 'op59': 7, 'op60': 7, 'op61': 7, 'op62': 7, 'op63': 7, 'op64': 7, 'op65': 7, 'op66': 7, 'op67': 7, 'op68': 7, 'op69': 7, 'op70': 7, 'op71': 6, 'op72': 6, 'op73': 6, 'op74': 6, 'op75': 6, 'op76': 6, 'op77': 5, 'scale': 12, 'op78': 1, 'op79': 1, 'op80': 1, 'op81': 1, 'op82': 1, 'op83': 1, 'op84': 1, 'op85': 1, 'op86': 1, 'op87': 1, 'op88': 1, 'op89': 1, 'op90': 1, 'op91': 1, 'op92': 1, 'op93': 1, 'op94': 1, 'op95': 1, 'op96': 1, 'op97': 1, 'op98': 1, 'op99': 1, 'op100': 1, 'op101': 1, 'op102': 1, 'op103': 1, 'op104': 1, 'op105': 1, 'op106': 1, 'op107': 1, 'op108': 1, 'op109': 1, 'op110': 1, 'op111': 1, 'op112': 1, 'op113': 1, 'op114': 1, 'op115': 1, 'op116': 1, 'op117': 1, 'op118': 1, 'op119': 1, 'op120': 1, 'op121': 1, 'prep-on': 4}
Traceback (most recent call last):
File "amr2dglgraph.py", line 154, in <module>
amr2dglgraph("../data/wikievents/transfer-train.jsonl", "amr-wikievent-train.pkl", "../data/wikievent/dglgraph-wikievent-train.pkl")
File "amr2dglgraph.py", line 146, in amr2dglgraph
torch.save(graphs_list, graph_path)
File "/home/bb/.local/lib/python3.7/site-packages/torch/serialization.py", line 376, in save
with _open_file_like(f, 'wb') as opened_file:
File "/home/bb/.local/lib/python3.7/site-packages/torch/serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/home/bb/.local/lib/python3.7/site-packages/torch/serialization.py", line 211, in __init__
super(_open_file, self).__init__(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: '../data/wikievent/dglgraph-wikievent-train.pkl'