Auto processor (#14465)

* Add AutoProcessor class

* Init and tests

* Add doc

* Fix init

* Update src/transformers/models/auto/processing_auto.py

Co-authored-by: Lysandre Debut <lysandre@huggingface.co>

* Reverts to tokenizer or feature extractor when available

* Adapt test

Co-authored-by: Lysandre Debut <lysandre@huggingface.co>
This commit is contained in:
Sylvain Gugger
2021-11-22 12:17:38 -05:00
committed by GitHub
parent 11f65d4158
commit 204d251310
7 changed files with 265 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
{
"feature_extractor_type": "Wav2Vec2FeatureExtractor"
"feature_extractor_type": "Wav2Vec2FeatureExtractor",
"processor_class": "Wav2Vec2Processor"
}