You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
Full stack-trace :
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
File "/home/me/.venv/transformers/lib/python3.6/site-packages/nlp/metric.py", line 224, in add
self.writer.write_batch(batch)
File "/home/me/.venv/transformers/lib/python3.6/site-packages/nlp/arrow_writer.py", line 148, in write_batch
pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
File "pyarrow/table.pxi", line 1550, in pyarrow.lib.Table.from_pydict
File "pyarrow/table.pxi", line 1503, in pyarrow.lib.Table.from_arrays
File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
(nlp installed from source)
The text was updated successfully, but these errors were encountered:
astariul
changed the title
Trying to use ROUGE metric : pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
馃悰 Trying to use ROUGE metric : pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
May 15, 2020
This is because add takes as input a batch of elements and you provided only one. I think we should have add for one prediction/reference and add_batch for a batch of predictions/references. This would make it more coherent with the way we use Arrow.
I'm trying to use rouge metric.
I have to files :
test.pred.tokenized
andtest.gold.tokenized
with each line containing a sentence.I tried :
But I meet following error :
Full stack-trace :
(
nlp
installed from source)The text was updated successfully, but these errors were encountered: