Hi,
when running script under conversion-script/convert_content_role.py, we need a local copy of the megaveridicality-verb-list1.csv data. Yet the data referenced in the code does not seem to be compatible with http://megaattitude.io/projects/mega-veridicality/mega-veridicality-v1.zip, leading to a keyError. I wonder if you can point me to how to run this script properly?
Here's the python traceback info after running python conversion-script/convert_content_role.py with the megaveridicality-verb-list1.csv stored under the root directory.
Traceback (most recent call last):
File "/Users/jnlp/miniconda3/envs/intensional-amr/lib/python3.9/site-packages/pandas/core/indexes/base.py", line 3803, in get_loc
return self._engine.get_loc(casted_key)
File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 165, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 5745, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 5753, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: '0'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/jnlp/Documents/ComputerScience/NLP/Intensionalizing-AMR/conversion-script/convert_content_role.py", line 13, in <module>
attitude_verbs = list(pd.read_csv('megaveridicality-verb-list1.csv')['0'])
File "/Users/jnlp/miniconda3/envs/intensional-amr/lib/python3.9/site-packages/pandas/core/frame.py", line 3805, in __getitem__
indexer = self.columns.get_loc(key)
File "/Users/jnlp/miniconda3/envs/intensional-amr/lib/python3.9/site-packages/pandas/core/indexes/base.py", line 3805, in get_loc
raise KeyError(key) from err
KeyError: '0'
Is it because the data contained in mega-veridicality-v1.zip still need an extraction process? If so, can you provide the extraction method/code?
Thanks a lot for your attention on this issue.
Hi,
when running script under
conversion-script/convert_content_role.py, we need a local copy of themegaveridicality-verb-list1.csvdata. Yet the data referenced in the code does not seem to be compatible withhttp://megaattitude.io/projects/mega-veridicality/mega-veridicality-v1.zip, leading to a keyError. I wonder if you can point me to how to run this script properly?Here's the python traceback info after running
python conversion-script/convert_content_role.pywith themegaveridicality-verb-list1.csvstored under the root directory.Is it because the data contained in
mega-veridicality-v1.zipstill need an extraction process? If so, can you provide the extraction method/code?Thanks a lot for your attention on this issue.