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

fixing modelhub cards #13952

Merged
merged 3 commits into from
Sep 2, 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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: German DistilBERT Embeddings
title: German DistilBERT Embeddings Optimized
author: John Snow Labs
name: distilbert_embeddings_distilbert_base_german_cased_opt
date: 2023-06-28
Expand Down Expand Up @@ -48,7 +48,7 @@ tokenizer = Tokenizer() \
.setInputCols("document") \
.setOutputCol("token")

embeddings = DistilBertEmbeddings.pretrained("distilbert_embeddings_distilbert_base_german_cased","de") \
embeddings = DistilBertEmbeddings.pretrained("distilbert_embeddings_distilbert_base_german_cased_opt","de") \
.setInputCols(["document", "token"]) \
.setOutputCol("embeddings")

Expand All @@ -67,7 +67,7 @@ val tokenizer = new Tokenizer()
.setInputCols(Array("document"))
.setOutputCol("token")

val embeddings = DistilBertEmbeddings.pretrained("distilbert_embeddings_distilbert_base_german_cased","de")
val embeddings = DistilBertEmbeddings.pretrained("distilbert_embeddings_distilbert_base_german_cased_opt","de")
.setInputCols(Array("document", "token"))
.setOutputCol("embeddings")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: German DistilBERT Embeddings
title: German DistilBERT Embeddings Quantized
author: John Snow Labs
name: distilbert_embeddings_distilbert_base_german_cased_quantized
date: 2023-06-28
Expand Down Expand Up @@ -48,7 +48,7 @@ tokenizer = Tokenizer() \
.setInputCols("document") \
.setOutputCol("token")

embeddings = DistilBertEmbeddings.pretrained("distilbert_embeddings_distilbert_base_german_cased","de") \
embeddings = DistilBertEmbeddings.pretrained("distilbert_embeddings_distilbert_base_german_cased_quantized","de") \
.setInputCols(["document", "token"]) \
.setOutputCol("embeddings")

Expand All @@ -67,7 +67,7 @@ val tokenizer = new Tokenizer()
.setInputCols(Array("document"))
.setOutputCol("token")

val embeddings = DistilBertEmbeddings.pretrained("distilbert_embeddings_distilbert_base_german_cased","de")
val embeddings = DistilBertEmbeddings.pretrained("distilbert_embeddings_distilbert_base_german_cased_quantized","de")
.setInputCols(Array("document", "token"))
.setOutputCol("embeddings")

Expand Down
6 changes: 3 additions & 3 deletions docs/_posts/ahmedlone127/2023-08-01-camembert_base_opt_fr.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: CamemBERT Base Model
title: CamemBERT Base Model Optimized
author: John Snow Labs
name: camembert_base_opt
date: 2023-08-01
Expand Down Expand Up @@ -39,12 +39,12 @@ For further information or requests, please go to [Camembert Website](https://ca
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings = CamemBertEmbeddings.pretrained("camembert_base", "fr") \
embeddings = CamemBertEmbeddings.pretrained("camembert_base_opt", "fr") \
.setInputCols("sentence", "token") \
.setOutputCol("embeddings")
```
```scala
val embeddings = CamemBertEmbeddings.pretrained("camembert_base", "fr")
val embeddings = CamemBertEmbeddings.pretrained("camembert_base_opt", "fr")
.setInputCols("sentence", "token")
.setOutputCol("embeddings")
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: CamemBERT Base Model
title: CamemBERT Base Model Quantized
author: John Snow Labs
name: camembert_base_quantized
date: 2023-08-01
Expand Down Expand Up @@ -39,12 +39,12 @@ For further information or requests, please go to [Camembert Website](https://ca
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings = CamemBertEmbeddings.pretrained("camembert_base", "fr") \
embeddings = CamemBertEmbeddings.pretrained("camembert_base_quantized", "fr") \
.setInputCols("sentence", "token") \
.setOutputCol("embeddings")
```
```scala
val embeddings = CamemBertEmbeddings.pretrained("camembert_base", "fr")
val embeddings = CamemBertEmbeddings.pretrained("camembert_base_quantized", "fr")
.setInputCols("sentence", "token")
.setOutputCol("embeddings")
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: ALBERT Embeddings (Base Uncase)
title: ALBERT Embeddings (Base Uncase) Optimized
author: John Snow Labs
name: albert_base_uncased_opt
date: 2023-08-02
Expand Down Expand Up @@ -38,12 +38,12 @@ ALBERT is "A Lite" version of BERT, a popular unsupervised language representati
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings = AlbertEmbeddings.pretrained("albert_base_uncased", "en") \
embeddings = AlbertEmbeddings.pretrained("albert_base_uncased_opt", "en") \
.setInputCols("sentence", "token") \
.setOutputCol("embeddings")
```
```scala
val embeddings = AlbertEmbeddings.pretrained("albert_base_uncased", "en")
val embeddings = AlbertEmbeddings.pretrained("albert_base_uncased_opt", "en")
.setInputCols("sentence", "token")
.setOutputCol("embeddings")
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: ALBERT Embeddings (Base Uncase)
title: ALBERT Embeddings (Base Uncase) Quantized
author: John Snow Labs
name: albert_base_uncased_quantized
date: 2023-08-02
Expand Down Expand Up @@ -38,12 +38,12 @@ ALBERT is "A Lite" version of BERT, a popular unsupervised language representati
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings = AlbertEmbeddings.pretrained("albert_base_uncased", "en") \
embeddings = AlbertEmbeddings.pretrained("albert_base_uncased_quantized", "en") \
.setInputCols("sentence", "token") \
.setOutputCol("embeddings")
```
```scala
val embeddings = AlbertEmbeddings.pretrained("albert_base_uncased", "en")
val embeddings = AlbertEmbeddings.pretrained("albert_base_uncased_quantized", "en")
.setInputCols("sentence", "token")
.setOutputCol("embeddings")
```
Expand Down Expand Up @@ -75,4 +75,4 @@ embeddings_df

## References

[https://huggingface.co/albert-base-v2](https://huggingface.co/albert-base-v2)
[https://huggingface.co/albert-base-v2](https://huggingface.co/albert-base-v2)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: ALBERT Embeddings (Large Uncase)
title: ALBERT Embeddings (Large Uncase) Optimized
author: John Snow Labs
name: albert_large_uncased_opt
date: 2023-08-02
Expand Down Expand Up @@ -38,12 +38,12 @@ ALBERT is "A Lite" version of BERT, a popular unsupervised language representati
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings = AlbertEmbeddings.pretrained("albert_large_uncased", "en") \
embeddings = AlbertEmbeddings.pretrained("albert_large_uncased_opt", "en") \
.setInputCols("sentence", "token") \
.setOutputCol("embeddings")
```
```scala
val embeddings = AlbertEmbeddings.pretrained("albert_large_uncased", "en")
val embeddings = AlbertEmbeddings.pretrained("albert_large_uncased_opt", "en")
.setInputCols("sentence", "token")
.setOutputCol("embeddings")
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: ALBERT Embeddings (Large Uncase)
title: ALBERT Embeddings (Large Uncase) Quantized
author: John Snow Labs
name: albert_large_uncased_quantized
date: 2023-08-02
Expand Down Expand Up @@ -38,12 +38,12 @@ ALBERT is "A Lite" version of BERT, a popular unsupervised language representati
<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
embeddings = AlbertEmbeddings.pretrained("albert_large_uncased", "en") \
embeddings = AlbertEmbeddings.pretrained("albert_large_uncased_quantized", "en") \
.setInputCols("sentence", "token") \
.setOutputCol("embeddings")
```
```scala
val embeddings = AlbertEmbeddings.pretrained("albert_large_uncased", "en")
val embeddings = AlbertEmbeddings.pretrained("albert_large_uncased_quantized", "en")
.setInputCols("sentence", "token")
.setOutputCol("embeddings")
```
Expand Down