mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 05:10:06 +06:00

* Allow custom code for Processors * Add more test * Test all auto_map configs are properly set
7 lines
172 B
Python
7 lines
172 B
Python
from transformers import ProcessorMixin
|
|
|
|
|
|
class CustomProcessor(ProcessorMixin):
|
|
feature_extractor_class = "AutoFeatureExtractor"
|
|
tokenizer_class = "AutoTokenizer"
|