ArrowInvalid: Column 10 named vocab expected length 1000 but got length 1 #4264
-
I am trying to build data from ASR. This is how i created the data
urdata is
then i do
when i do |
Beta Was this translation helpful? Give feedback.
Answered by
mariosasko
May 2, 2022
Replies: 1 comment
-
Hi! The length of the new columns (1) doesn't match the length of the existing ones (1000; in the batched mode), so you should either drop the existing column names as follows: vocabs=urdata.map(extract_all_chars,batched=True, remove_columns=urdata.column_names) Or expand the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
talhaanwarch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! The length of the new columns (1) doesn't match the length of the existing ones (1000; in the batched mode), so you should either drop the existing column names as follows:
Or expand the
vocab
andall_text
columns to match their size (1000).