SnowFlake Medium Model

Description

Pretrained SnowFlakeEmbeddings, adataped from huggingface imported to Spark-NLP to provide scalability and production-readiness.

Predicted Entities

Download Copy S3 URI

How to use

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

snowflake = SnowFlakeEmbeddings.pretrained("snowflake_artic_m","en") \
    .setInputCols("document") \
    .setOutputCol("embeddings") \

pipeline = Pipeline().setStages([documentAssembler, snowflake])
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 snowflake = SnowFlakeEmbeddings.pretrained("snowflake_artic_m", "en")
    .setInputCols("documents")
    .setOutputCol("embeddings")

val pipeline = new Pipeline().setStages(Array(documentAssembler, snowflake))
val data = Seq("I love spark-nlp").toDS.toDF("text")
val pipelineModel = pipeline.fit(data)
val pipelineDF = pipelineModel.transform(data)

Model Information

Model Name: snowflake_artic_m
Compatibility: Spark NLP 5.5.0+
License: Open Source
Edition: Official
Input Labels: [document]
Output Labels: [snowflake]
Language: en
Size: 405.7 MB

References

https://huggingface.co/Snowflake/snowflake-arctic-embed-m