File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5757from tensorflow_asr .configs .config import Config
5858from tensorflow_asr .datasets .keras import ASRTFRecordDatasetKeras
5959from tensorflow_asr .featurizers .speech_featurizers import TFSpeechFeaturizer
60- from tensorflow_asr .featurizers .text_featurizers import SubwordFeaturizer , SentencePieceFeaturizer
60+ from tensorflow_asr .featurizers .text_featurizers import TFSubwordFeaturizer , SentencePieceFeaturizer
6161from tensorflow_asr .models .keras .contextnet import ContextNet
6262from tensorflow_asr .optimizers .schedules import TransformerSchedule
6363
6969 text_featurizer = SentencePieceFeaturizer .load_from_file (config .decoder_config , args .subwords )
7070elif args .subwords and os .path .exists (args .subwords ):
7171 print ("Loading subwords ..." )
72- text_featurizer = SubwordFeaturizer .load_from_file (config .decoder_config , args .subwords )
72+ text_featurizer = TFSubwordFeaturizer .load_from_file (config .decoder_config , args .subwords )
7373else :
7474 print ("Generating subwords ..." )
75- text_featurizer = SubwordFeaturizer .build_from_corpus (
75+ text_featurizer = TFSubwordFeaturizer .build_from_corpus (
7676 config .decoder_config ,
7777 corpus_files = args .subwords_corpus
7878 )
You can’t perform that action at this time.
0 commit comments