sgugger commited on
Commit
2d12887
·
1 Parent(s): a2806ed

Initial commit

Browse files
Files changed (2) hide show
  1. feature_extractor.py +5 -0
  2. preprocessor_config.json +12 -0
feature_extractor.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from transformers import Wav2Vec2FeatureExtractor
2
+
3
+
4
+ class NewFeatureExtractor(Wav2Vec2FeatureExtractor):
5
+ pass
preprocessor_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "auto_map": {
3
+ "AutoFeatureExtractor": "feature_extractor.NewFeatureExtractor"
4
+ },
5
+ "do_normalize": true,
6
+ "feature_extractor_type": "NewFeatureExtractor",
7
+ "feature_size": 1,
8
+ "padding_side": "right",
9
+ "padding_value": 0.0,
10
+ "return_attention_mask": false,
11
+ "sampling_rate": 16000
12
+ }