mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
* Allow custom code for Processors * Add more test * Test all auto_map configs are properly set
6 lines
172 B
Python
6 lines
172 B
Python
from transformers import ProcessorMixin
|
|
|
|
|
|
class CustomProcessor(ProcessorMixin):
|
|
feature_extractor_class = "AutoFeatureExtractor"
|
|
tokenizer_class = "AutoTokenizer"
|