Description
Pretrained WhisperForCTC model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.whisper_medium_sango_50_2_30_part2_30_2
is a English model originally trained by eighty88.
How to use
audioAssembler = AudioAssembler() \
.setInputCol("audio_content") \
.setOutputCol("audio_assembler")
speechToText = WhisperForCTC.pretrained("whisper_medium_sango_50_2_30_part2_30_2","en") \
.setInputCols(["audio_assembler"]) \
.setOutputCol("text")
pipeline = Pipeline().setStages([audioAssembler, speechToText])
pipelineModel = pipeline.fit(data)
pipelineDF = pipelineModel.transform(data)
val audioAssembler = new DocumentAssembler()
.setInputCols("audio_content")
.setOutputCols("audio_assembler")
val speechToText = WhisperForCTC.pretrained("whisper_medium_sango_50_2_30_part2_30_2", "en")
.setInputCols(Array("audio_assembler"))
.setOutputCol("text")
val pipeline = new Pipeline().setStages(Array(documentAssembler, speechToText))
val pipelineModel = pipeline.fit(data)
val pipelineDF = pipelineModel.transform(data)
Model Information
Model Name: | whisper_medium_sango_50_2_30_part2_30_2 |
Compatibility: | Spark NLP 5.5.0+ |
License: | Open Source |
Edition: | Official |
Input Labels: | [audio_assembler] |
Output Labels: | [text] |
Language: | en |
Size: | 4.8 GB |
References
https://huggingface.co/eighty88/whisper-medium-sg-50-2-30-part2-30-2