Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fine-tune-wav2vec2-english.md) What does 'remove_columns=timit.column_names["train"]' do? #141

Open
epona7471 opened this issue Aug 15, 2021 · 0 comments

Comments

@epona7471
Copy link

def extract_all_chars(batch):
all_text = " ".join(batch["text"])
vocab = list(set(all_text))
return {"vocab" : [vocab], "all_text" : [all_text]}

vocabs = timit.map(extract_all_chars, batched = True, batch_size=-1, keep_in_memory=True, remove_columns=timit.column_names["train"])

I can't get the meaning of 'remove_columns=timit.column_names["train"]'.
Looks like it is removing training dataset, but output var 'vocabs' also have both 'train' and 'data' keys.
Result lookssame with 'remove_columns=timit.column_names["test"]'.

Newbie looking for a help.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant