Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed e5 modelhub card code sections #13950

Merged
merged 2 commits into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/_posts/ahmedlone127/2023-08-25-e5_base_opt_en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: E5 Base Sentence Embeddings
title: E5 Base Sentence Embeddings Optimized
author: John Snow Labs
name: e5_base_opt
date: 2023-08-25
Expand Down Expand Up @@ -38,14 +38,14 @@ Text Embeddings by Weakly-Supervised Contrastive Pre-training. Liang Wang, Nan Y
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings =E5Embeddings.pretrained("e5_base","en") \
embeddings =E5Embeddings.pretrained("e5_base_opt","en") \
.setInputCols(["documents"]) \
.setOutputCol("instructor")

pipeline = Pipeline().setStages([document_assembler, embeddings])
```
```scala
val embeddings = E5Embeddings.pretrained("e5_base","en")
val embeddings = E5Embeddings.pretrained("e5_base_opt","en")
.setInputCols(["document"])
.setOutputCol("e5_embeddings")
val pipeline = new Pipeline().setStages(Array(document, embeddings))
Expand Down
6 changes: 3 additions & 3 deletions docs/_posts/ahmedlone127/2023-08-25-e5_base_quantized_en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: E5 Base Sentence Embeddings
title: E5 Base Sentence Embeddings Quantized
author: John Snow Labs
name: e5_base_quantized
date: 2023-08-25
Expand Down Expand Up @@ -38,14 +38,14 @@ Text Embeddings by Weakly-Supervised Contrastive Pre-training. Liang Wang, Nan Y
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings =E5Embeddings.pretrained("e5_base","en") \
embeddings =E5Embeddings.pretrained("e5_base_quantized","en") \
.setInputCols(["documents"]) \
.setOutputCol("instructor")

pipeline = Pipeline().setStages([document_assembler, embeddings])
```
```scala
val embeddings = E5Embeddings.pretrained("e5_base","en")
val embeddings = E5Embeddings.pretrained("e5_base_quantized","en")
.setInputCols(["document"])
.setOutputCol("e5_embeddings")
val pipeline = new Pipeline().setStages(Array(document, embeddings))
Expand Down
6 changes: 3 additions & 3 deletions docs/_posts/ahmedlone127/2023-08-25-e5_base_v2_opt_en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: E5 Base v2 Sentence Embeddings
title: E5 Base v2 Sentence Embeddings Optimized
author: John Snow Labs
name: e5_base_v2_opt
date: 2023-08-25
Expand Down Expand Up @@ -38,14 +38,14 @@ Text Embeddings by Weakly-Supervised Contrastive Pre-training. Liang Wang, Nan Y
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings =E5Embeddings.pretrained("e5_base_v2","en") \
embeddings =E5Embeddings.pretrained("e5_base_v2_opt","en") \
.setInputCols(["documents"]) \
.setOutputCol("instructor")

pipeline = Pipeline().setStages([document_assembler, embeddings])
```
```scala
val embeddings = E5Embeddings.pretrained("e5_base_v2","en")
val embeddings = E5Embeddings.pretrained("e5_base_v2_opt","en")
.setInputCols(["document"])
.setOutputCol("e5_embeddings")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: E5 Base v2 Sentence Embeddings
title: E5 Base v2 Sentence Embeddings Quantized
author: John Snow Labs
name: e5_base_v2_quantized
date: 2023-08-25
Expand Down Expand Up @@ -38,14 +38,14 @@ Text Embeddings by Weakly-Supervised Contrastive Pre-training. Liang Wang, Nan Y
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings =E5Embeddings.pretrained("e5_base_v2","en") \
embeddings =E5Embeddings.pretrained("e5_base_v2_quantized","en") \
.setInputCols(["documents"]) \
.setOutputCol("instructor")

pipeline = Pipeline().setStages([document_assembler, embeddings])
```
```scala
val embeddings = E5Embeddings.pretrained("e5_base_v2","en")
val embeddings = E5Embeddings.pretrained("e5_base_v2_quantized","en")
.setInputCols(["document"])
.setOutputCol("e5_embeddings")

Expand Down
6 changes: 3 additions & 3 deletions docs/_posts/ahmedlone127/2023-08-25-e5_large_v2_opt_en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: E5 Large V2 Sentence Embeddings
title: E5 Large V2 Sentence Embeddings Optimized
author: John Snow Labs
name: e5_large_v2_opt
date: 2023-08-25
Expand Down Expand Up @@ -38,14 +38,14 @@ Text Embeddings by Weakly-Supervised Contrastive Pre-training. Liang Wang, Nan Y
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings =E5Embeddings.pretrained("e5_large_v2","en") \
embeddings =E5Embeddings.pretrained("e5_large_v2_opt","en") \
.setInputCols(["documents"]) \
.setOutputCol("instructor")

pipeline = Pipeline().setStages([document_assembler, embeddings])
```
```scala
val embeddings = E5Embeddings.pretrained("e5_large_v2","en")
val embeddings = E5Embeddings.pretrained("e5_large_v2_opt","en")
.setInputCols(["document"])
.setOutputCol("e5_embeddings")
val pipeline = new Pipeline().setStages(Array(document, embeddings))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: E5 Large V2 Sentence Embeddings
title: E5 Large V2 Sentence Embeddings Quantized
author: John Snow Labs
name: e5_large_v2_quantized
date: 2023-08-25
Expand Down Expand Up @@ -38,14 +38,14 @@ Text Embeddings by Weakly-Supervised Contrastive Pre-training. Liang Wang, Nan Y
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings =E5Embeddings.pretrained("e5_large_v2","en") \
embeddings =E5Embeddings.pretrained("e5_large_v2_quantized","en") \
.setInputCols(["documents"]) \
.setOutputCol("instructor")

pipeline = Pipeline().setStages([document_assembler, embeddings])
```
```scala
val embeddings = E5Embeddings.pretrained("e5_large_v2","en")
val embeddings = E5Embeddings.pretrained("e5_large_v2_quantized","en")
.setInputCols(["document"])
.setOutputCol("e5_embeddings")
val pipeline = new Pipeline().setStages(Array(document, embeddings))
Expand Down
6 changes: 3 additions & 3 deletions docs/_posts/ahmedlone127/2023-08-25-e5_small_opt_en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: E5 Small Sentence Embeddings
title: E5 Small Sentence Embeddings Optimized
author: John Snow Labs
name: e5_small_opt
date: 2023-08-25
Expand Down Expand Up @@ -38,14 +38,14 @@ Text Embeddings by Weakly-Supervised Contrastive Pre-training. Liang Wang, Nan Y
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings =E5Embeddings.pretrained("e5_small","en") \
embeddings =E5Embeddings.pretrained("e5_small_opt","en") \
.setInputCols(["documents"]) \
.setOutputCol("instructor")

pipeline = Pipeline().setStages([document_assembler, embeddings])
```
```scala
val embeddings = E5Embeddings.pretrained("e5_small","en")
val embeddings = E5Embeddings.pretrained("e5_small_opt","en")
.setInputCols(["document"])
.setOutputCol("e5_embeddings")
val pipeline = new Pipeline().setStages(Array(document, embeddings))
Expand Down
6 changes: 3 additions & 3 deletions docs/_posts/ahmedlone127/2023-08-25-e5_small_quantized_en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: E5 Small Sentence Embeddings
title: E5 Small Sentence Embeddings Quantized
author: John Snow Labs
name: e5_small_quantized
date: 2023-08-25
Expand Down Expand Up @@ -38,14 +38,14 @@ Text Embeddings by Weakly-Supervised Contrastive Pre-training. Liang Wang, Nan Y
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings =E5Embeddings.pretrained("e5_small","en") \
embeddings =E5Embeddings.pretrained("e5_small_quantized","en") \
.setInputCols(["documents"]) \
.setOutputCol("instructor")

pipeline = Pipeline().setStages([document_assembler, embeddings])
```
```scala
val embeddings = E5Embeddings.pretrained("e5_small","en")
val embeddings = E5Embeddings.pretrained("e5_small_quantized","en")
.setInputCols(["document"])
.setOutputCol("e5_embeddings")
val pipeline = new Pipeline().setStages(Array(document, embeddings))
Expand Down
6 changes: 3 additions & 3 deletions docs/_posts/ahmedlone127/2023-08-25-e5_small_v2_opt_en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: E5 Small V2 Sentence Embeddings
title: E5 Small V2 Sentence Embeddings Optimized
author: John Snow Labs
name: e5_small_v2_opt
date: 2023-08-25
Expand Down Expand Up @@ -38,14 +38,14 @@ Text Embeddings by Weakly-Supervised Contrastive Pre-training. Liang Wang, Nan Y
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings =E5Embeddings.pretrained("e5_small_v2","en") \
embeddings =E5Embeddings.pretrained("e5_small_v2_opt","en") \
.setInputCols(["documents"]) \
.setOutputCol("instructor")

pipeline = Pipeline().setStages([document_assembler, embeddings])
```
```scala
val embeddings = E5Embeddings.pretrained("e5_small_v2","en")
val embeddings = E5Embeddings.pretrained("e5_small_v2_opt","en")
.setInputCols(["document"])
.setOutputCol("e5_embeddings")
val pipeline = new Pipeline().setStages(Array(document, embeddings))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: E5 Small V2 Sentence Embeddings
title: E5 Small V2 Sentence Embeddings Quantized
author: John Snow Labs
name: e5_small_v2_quantized
date: 2023-08-25
Expand Down Expand Up @@ -38,14 +38,14 @@ Text Embeddings by Weakly-Supervised Contrastive Pre-training. Liang Wang, Nan Y
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings =E5Embeddings.pretrained("e5_small_v2","en") \
embeddings =E5Embeddings.pretrained("e5_small_v2_quantized","en") \
.setInputCols(["documents"]) \
.setOutputCol("instructor")

pipeline = Pipeline().setStages([document_assembler, embeddings])
```
```scala
val embeddings = E5Embeddings.pretrained("e5_small_v2","en")
val embeddings = E5Embeddings.pretrained("e5_small_v2_quantized","en")
.setInputCols(["document"])
.setOutputCol("e5_embeddings")
val pipeline = new Pipeline().setStages(Array(document, embeddings))
Expand Down