IberLEF 2022 Task - PoliticEs. Spanish Author Profiling for Political Ideology Forum

Go back to competition Back to thread list Post in this thread

> Submission format issue

I tried submitting the results without the header column I receive this error :
```
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
Traceback (most recent call last):
File "/tmp/codalab/tmpP9HPYx/run/program/evaluate.py", line 53, in
y_pred = le.transform (list (submission_answer[label]))
File "/opt/conda/lib/python2.7/site-packages/pandas/core/frame.py", line 1969, in __getitem__
return self._getitem_column(key)
File "/opt/conda/lib/python2.7/site-packages/pandas/core/frame.py", line 1976, in _getitem_column
return self._get_item_cache(key)
File "/opt/conda/lib/python2.7/site-packages/pandas/core/generic.py", line 1091, in _get_item_cache
values = self._data.get(item)
File "/opt/conda/lib/python2.7/site-packages/pandas/core/internals.py", line 3211, in get
loc = self.items.get_loc(item)
File "/opt/conda/lib/python2.7/site-packages/pandas/core/index.py", line 1759, in get_loc
return self._engine.get_loc(key)
File "pandas/index.pyx", line 137, in pandas.index.IndexEngine.get_loc (pandas/index.c:3979)
File "pandas/index.pyx", line 157, in pandas.index.IndexEngine.get_loc (pandas/index.c:3843)
File "pandas/hashtable.pyx", line 668, in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12265)
File "pandas/hashtable.pyx", line 676, in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12216)
KeyError: 'gender'
```

Let me know if there is any changes required in the submission format. Thanks.

Posted by: aten @ April 12, 2022, 2:08 p.m.

I think there is a problem with the description of the task, try to re-submit the file with the header:
user,gender,profession,ideology_binary,ideology_multiclass

Posted by: JoseAGD @ April 12, 2022, 4:55 p.m.
Post in this thread