Dutch, Flemish msmarco_dutch_mt5_base_v1 T5Transformer from doc2query

Description

Pretrained T5Transformer model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.msmarco_dutch_mt5_base_v1 is a Dutch, Flemish model originally trained by doc2query.

Download Copy S3 URI

How to use

     
documentAssembler = DocumentAssembler() \
    .setInputCol('text') \
    .setOutputCol('document')

t5  = T5Transformer.pretrained("msmarco_dutch_mt5_base_v1","nl") \
     .setInputCols(["document"]) \
     .setOutputCol("output")

pipeline = Pipeline().setStages([documentAssembler, t5])
data = spark.createDataFrame([["I love spark-nlp"]]).toDF("text")
pipelineModel = pipeline.fit(data)
pipelineDF = pipelineModel.transform(data)


val documentAssembler = new DocumentAssembler()
    .setInputCols("text")
    .setOutputCols("document")

val t5 = T5Transformer.pretrained("msmarco_dutch_mt5_base_v1", "nl")
    .setInputCols(Array("documents")) 
    .setOutputCol("output") 
    
val pipeline = new Pipeline().setStages(Array(documentAssembler, t5))
val data = Seq("I love spark-nlp").toDS.toDF("text")
val pipelineModel = pipeline.fit(data)
val pipelineDF = pipelineModel.transform(data)

Model Information

Model Name: msmarco_dutch_mt5_base_v1
Compatibility: Spark NLP 5.4.2+
License: Open Source
Edition: Official
Input Labels: [document]
Output Labels: [output]
Language: nl
Size: 2.5 GB

References

https://huggingface.co/doc2query/msmarco-dutch-mt5-base-v1