Description
Pretrained WhisperForCTC model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.graduation_project_whisper_base is a Arabic model originally trained by YoussefAshmawy.
How to use
audioAssembler = AudioAssembler() \
.setInputCol("audio_content") \
.setOutputCol("audio_assembler")
speechToText = WhisperForCTC.pretrained("graduation_project_whisper_base","ar") \
.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("graduation_project_whisper_base", "ar")
.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: | graduation_project_whisper_base |
| Compatibility: | Spark NLP 5.5.1+ |
| License: | Open Source |
| Edition: | Official |
| Input Labels: | [audio_assembler] |
| Output Labels: | [text] |
| Language: | ar |
| Size: | 640.3 MB |
References
https://huggingface.co/YoussefAshmawy/Graduation_Project_Whisper_base