Arabic gpt2_small_arabic_pipeline pipeline GPT2Transformer from akhooli

Description

Pretrained GPT2Transformer, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.gpt2_small_arabic_pipeline is a Arabic model originally trained by akhooli.

Download Copy S3 URI

How to use


pipeline = PretrainedPipeline("gpt2_small_arabic_pipeline", lang = "ar")
annotations =  pipeline.transform(df)   


val pipeline = new PretrainedPipeline("gpt2_small_arabic_pipeline", lang = "ar")
val annotations = pipeline.transform(df)

Model Information

Model Name: gpt2_small_arabic_pipeline
Type: pipeline
Compatibility: Spark NLP 5.5.1+
License: Open Source
Edition: Official
Language: ar
Size: 299.0 MB

References

https://huggingface.co/akhooli/gpt2-small-arabic

Included Models

  • DocumentAssembler
  • GPT2Transformer