nlp-recipes
nlp-recipes copied to clipboard
[ASK] Merge preprocess_encoder_tokens and preprocess_classification_tokens
Description
preprocess_encoder_tokens and preprocess_classification_tokens contain large chunk of same code and we should rewrite this part of not repeat the same code.
Other Comments
good catch.
- merge both functions into preprocess_sequence_tokens
- function returns (tokens, input_ids, input_mask, token_type_ids)
- update notebook references