Skip to content

Commit

Permalink
Models hub (#14228)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: ahmedlone127 <ahmedlone127@gmail.com>
Co-authored-by: Maziyar Panahi <maziyar.panahi@iscpif.fr>

* 2024-02-16-distil_asr_whisper_small_en (#14176)

* Add model 2024-02-16-distil_asr_whisper_small_en

* Add model 2024-02-25-distil_asr_whisper_medium_en

* Add model 2024-02-26-distil_asr_whisper_large_v2_en

---------

Co-authored-by: ahmedlone127 <ahmedlone127@gmail.com>

* 2024-04-04-mpnet_embeddings_biolord_2023_c_en (#14226)

* Add model 2024-04-04-mpnet_embeddings_biolord_2023_c_en

* Update 2024-04-04-mpnet_embeddings_biolord_2023_c_en.md

---------

Co-authored-by: ahmet-mesut <drmesutbirol@gmail.com>
Co-authored-by: Ahmet Mesut BİROL <99045664+ahmet-mesut@users.noreply.github.com>

---------

Co-authored-by: jsl-models <74001263+jsl-models@users.noreply.github.com>
Co-authored-by: ahmedlone127 <ahmedlone127@gmail.com>
Co-authored-by: DevinTDHa <duc.hatrung95@gmail.com>
Co-authored-by: Devin Ha <33089471+DevinTDHa@users.noreply.github.com>
Co-authored-by: ahmet-mesut <drmesutbirol@gmail.com>
Co-authored-by: Ahmet Mesut BİROL <99045664+ahmet-mesut@users.noreply.github.com>
  • Loading branch information
7 people authored Apr 5, 2024
1 parent 6b181a6 commit b046c9c
Showing 1 changed file with 86 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
layout: model
title: English BioLORD-2023-C MPNetEmbeddings from FremyCompany
author: John Snow Labs
name: mpnet_embeddings_biolord_2023_c
date: 2024-04-04
tags: [en, mpnet, embeddings, biolord, open_source, onnx]
task: Embeddings
language: en
edition: Spark NLP 5.3.1
spark_version: 3.0
supported: true
engine: onnx
annotator: MPNetEmbeddings
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

Pretrained MPNetEmbeddings model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP `mpnet_embeddings_biolord_2023_c` is a English model originally trained by `FremyCompany`.

## Predicted Entities



{:.btn-box}
<button class="button button-orange" disabled>Live Demo</button>
<button class="button button-orange" disabled>Open in Colab</button>
[Download](https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/models/mpnet_embeddings_biolord_2023_c_en_5.3.1_3.0_1712265672474.zip){:.button.button-orange.button-orange-trans.arr.button-icon}
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/public/models/mpnet_embeddings_biolord_2023_c_en_5.3.1_3.0_1712265672474.zip){:.button.button-orange.button-orange-trans.button-icon.button-copy-s3}

## How to use



<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python
document_assembler = DocumentAssembler()\
.setInputCol("text")\
.setOutputCol("documents")

embeddings =MPNetEmbeddings.pretrained("mpnet_embeddings_biolord_2023_c","en")\
.setInputCols(["documents"])\
.setOutputCol("mpnet_embeddings")

pipeline = Pipeline().setStages([document_assembler, embeddings])

result = pipeline.fit(data).transform(data)
```
```scala
val document_assembler = new DocumentAssembler()
.setInputCol("text")
.setOutputCol("documents")

val embeddings = MPNetEmbeddings
.pretrained("mpnet_embeddings_biolord_2023_c", "en")
.setInputCols(Array("documents"))
.setOutputCol("mpnet_embeddings")

val pipeline = new Pipeline().setStages(Array(document_assembler, embeddings))

val result = pipeline.fit(data).transform(data)
```
</div>

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|mpnet_embeddings_biolord_2023_c|
|Compatibility:|Spark NLP 5.3.1+|
|License:|Open Source|
|Edition:|Official|
|Input Labels:|[document]|
|Output Labels:|[MPNet]|
|Language:|en|
|Size:|406.9 MB|

## References

https://huggingface.co/FremyCompany/BioLORD-2023-C

0 comments on commit b046c9c

Please sign in to comment.