Skip to content

'megaveridicality-verb-list1.csv` not available from the url attached #2

@Jonbean

Description

@Jonbean

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions