Skip to content

Commit

Permalink
2023-12-29-finetuning_sentiment_model_3000_samples_zhaohui_en (#14115)
Browse files Browse the repository at this point in the history
* Add model 2023-12-31-finetuning_sentiment_model_3000_samples_chabuno_en

* Add model 2023-12-31-sms_class_test2_en

* Add model 2023-12-31-finetuning_emotion_model_doyle26_en

* Add model 2023-12-31-finetuning_sentiment_model_3000_samples_richardlowes_en

* Add model 2023-12-31-distilbert_base_uncased_dsc_nepal_bhasa_cllbck_en

* Add model 2023-12-31-finetuning_sentiment_model_3000_samples_gbyourss_en

* Add model 2023-12-31-burmese_text_model_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_clinc_penguinman73_en

* Add model 2023-12-31-genre_pred_model_reduced_4_epochs_en

* Add model 2023-12-31-aie_assessment_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_emotion_neolord_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_emotion_classification_en

* Add model 2023-12-31-left_padding70model_en

* Add model 2023-12-31-distilbert_for_emotion_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_cola_zangyuchen2008_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_sst_2_english_ft_en

* Add model 2023-12-31-testmodel_mwinterhalter_en

* Add model 2023-12-31-burmese_awesome_model_ugursa_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_cola_kanlee_en

* Add model 2023-12-31-burmese_awesome_model_raihan50017_en

* Add model 2023-12-31-finetuning_sentiment_model_3000_samples_yhwng_en

* Add model 2023-12-31-finetuning_sentiment_model_3000_samples_liviu_vladutu_en

* Add model 2023-12-31-finetuning_sentiment_model_maegancp_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_emotion_dodododo2_en

* Add model 2023-12-31-intent_classifier_incentive_for_connecting_en

* Add model 2023-12-31-finetuning_sentiment_model_3000_samples_davegold_en

* Add model 2023-12-31-finetuning_sentiment_model_3000_samples_stemacre_en

* Add model 2023-12-31-attainment_distilbert_en

* Add model 2023-12-31-ai_generated_essay_detection_distilbert_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_cola_kibru_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_emotion_baehong_en

* Add model 2023-12-31-mediabiasdetector_distilbert_3e_en

* Add model 2023-12-31-ad_distilbert33_en

* Add model 2023-12-31-burmese_awesome_model_marianna13_en

* Add model 2023-12-31-mbicbias_en

* Add model 2023-12-31-ad_distilbert21_en

* Add model 2023-12-31-finetuning_sentiment_model_turkish_court_en

* Add model 2023-12-31-burmese_awesome_model_volkf_en

* Add model 2023-12-31-imdbreviews_classification_distilbert_v02_jgutierrez90_en

* Add model 2023-12-31-finetuning_sentiment_model_tweet_en

* Add model 2023-12-31-left_padding90model_en

* Add model 2023-12-31-burmese_awesome_model_cep_ter_en

* Add model 2023-12-31-sentiment_v2_en

* Add model 2023-12-31-finetuning_sentiment_model_3000_samples_salohnana2018_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_emotion_tobrun_en

* Add model 2023-12-31-distilbert_base_uncased_omdena_cllbck_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_emotion_mukesh1212_en

* Add model 2023-12-31-ad_distilbert17_en

* Add model 2023-12-31-burmese_awesome_model_rkessler_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_cola_ajay_y_en

* Add model 2023-12-31-distilbert_base_uncased_hoax_classifier_sanity_check_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_plantdesc_en

* Add model 2023-12-31-finetuning_sentiment_model_3000_samples_matthewo_en

* Add model 2023-12-31-copilot_relex_nyt_en

* Add model 2023-12-31-finetuning_sentiment_model_3000_samples_yarbhelp_en

* Add model 2023-12-31-finetuned_sentiment_classfication_distilbert_model_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_clinc_jamesnj_en

* Add model 2023-12-31-burmese_awesome_model_phurich_en

* Add model 2023-12-31-iotnation_classification_model_0_4_smaller_cleaned_set_4k_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_cola_nglong0304_en

* Add model 2023-12-31-tweetsentiment2_en

* Add model 2023-12-31-finetuning_sentiment_model_6000_samples_nored355_en

* Add model 2023-12-31-ad_distilbert13_en

* Add model 2023-12-31-distilgender_spanish_2m_ittailup_es

* Add model 2023-12-31-lkd_3_classes_seed_51_response_only_en

* Add model 2023-12-31-political_en

* Add model 2023-12-31-imdbreviews_classification_distilbert_v02_clf_finetuning_dfelorza_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_emotion_zhukeke_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_emotion_natrajanv_en

* Add model 2023-12-31-ad_distilbert10_en

* Add model 2023-12-31-burmese_awesome_model_zhigang75_en

* Add model 2023-12-31-burmese_awesome_model_rain1017_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_emotion_sangsooim_en

* Add model 2023-12-31-left_padding30model_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_emotion_ryangryang_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_cola_jdemple_en

* Add model 2023-12-31-imdbreviews_classification_distilbert_v02_clf_finetuning_jdmartinev_en

* Add model 2023-12-31-finetuning_sentiment_model_3000_samples_cptsoybean_en

* Add model 2023-12-31-model_demo_pingyaol_en

* Add model 2023-12-31-distilbert_powo_lifecycle_scratch_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_clinc_ckandemir_en

* Add model 2023-12-31-dev_nodev_model_en

* Add model 2023-12-31-ad_distilbert36_en

* Add model 2023-12-31-distilbert_base_uncased_finetuned_emotion_vikramr22_en

* Add model 2023-12-31-distilbert_squad_answerable_classifier_en

* Add model 2023-12-31-ad_distilbert3_en

* Add model 2023-12-31-finetuning_sentiment_model_3000_samples_abhikatta_en

* Add model 2023-12-31-distilbert_base_uncased_emotion_ft_1701_en

* Add model 2023-12-31-finetuning_sentiment_model_3000_samples_benlitzen43_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_cola_anthonytedde_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_nirajbagdi_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_yamitamaya_en

* Add model 2024-01-01-distilbert_base_uncased_on_imdb002_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_abhishek1061_en

* Add model 2024-01-01-burmese_awesome_model_definite_en

* Add model 2024-01-01-burmese_awesome_model_saidur49_en

* Add model 2024-01-01-distilbert_mergeddata_with_preprocessing_grid_search_en

* Add model 2024-01-01-cyberbully_test_recall_v1_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_test_en

* Add model 2024-01-01-distilbert_base_uncased_emotions_fintuned_en

* Add model 2024-01-01-finetuning_sentiment_model_2500_samples_en

* Add model 2024-01-01-left_padding20model_en

* Add model 2024-01-01-test_model_reyj1999_en

* Add model 2024-01-01-finetuning_sentiment_model_amazonbaby5000_samples_en

* Add model 2024-01-01-action_model_en

* Add model 2024-01-01-twittersentimentv5_en

* Add model 2024-01-01-ad_distilbert27_en

* Add model 2024-01-01-test1_bryanhpchiang_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_0whany_en

* Add model 2024-01-01-results_raghavsharma06_en

* Add model 2024-01-01-burmese_awesome_model_naveengarlapati_en

* Add model 2024-01-01-burmese_awesome_model_marktaylor_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_mnli_ll029_en

* Add model 2024-01-01-sentiment_analysis_gsl22_en

* Add model 2024-01-01-model_training_waimai_log_en

* Add model 2024-01-01-distilbert_1e_64_en

* Add model 2024-01-01-imdbreviews_classification_distilbert_v04_finetuned_sst_2_english_en

* Add model 2024-01-01-emotion_model_biadd_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_kiechu_en

* Add model 2024-01-01-q9_phq_en

* Add model 2024-01-01-distilbert_model_105_class_v2_en

* Add model 2024-01-01-ad_distilbert40_en

* Add model 2024-01-01-test2_bryanhpchiang_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_faizanahmad3_en

* Add model 2024-01-01-finetuning_emotion_model_kp94_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_wheat9_en

* Add model 2024-01-01-bert_model_91_class_en

* Add model 2024-01-01-distilbert_base_uncased_on_imdb2023_09_17_16_53_54_730620_en

* Add model 2024-01-01-imdbreviews_classification_distilbert_v02_dfelorza_en

* Add model 2024-01-01-get_data_model_en

* Add model 2024-01-01-sentiment_analysis_model_01_fernando_m1_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_bunchjesse_en

* Add model 2024-01-01-iotnation_classification_model_0_5_smaller_cleaned_set_5k_en

* Add model 2024-01-01-imdbreviews_classification_distilbert_v02_laly_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_cola_bikshang_en

* Add model 2024-01-01-human_class_oriya_somthing_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_lhybio07_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_marcopc_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_adl_hw1_b10902046_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_cola_aburkard_en

* Add model 2024-01-01-distilbert_base_multilingual_cased_finetuned_emotion_dfjqwoegn_xx

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_andreac94_en

* Add model 2024-01-01-ad_distilbert1_en

* Add model 2024-01-01-left_padding0model_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_danexl_en

* Add model 2024-01-01-tweetsentiment5_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_cola_rangoiv_en

* Add model 2024-01-01-imdbreviews_classification_distilbert_v03_en

* Add model 2024-01-01-from_samoan_en

* Add model 2024-01-01-results_rorisdejuarez_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_items_ozziejoe_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_jeronimojr_en

* Add model 2024-01-01-cyberbully_test_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_sudhanshu753_en

* Add model 2024-01-01-iotnation_classification_model_0_6_5k_dataset_and_original_dataset_en

* Add model 2024-01-01-model_demo_soulbest_en

* Add model 2024-01-01-imdbreviews_classification_distilbert_v02_clf_finetuning_giovy79_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_mankit011_en

* Add model 2024-01-01-ad_distilbert44_en

* Add model 2024-01-01-demo_classification_en

* Add model 2024-01-01-sentiment_model_on_imdb_dataset_hoang123223_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_sabaakhavan_en

* Add model 2024-01-01-burmese_awesome_model_brey31_en

* Add model 2024-01-01-q1_phq_en

* Add model 2024-01-01-ad_distilbert25_en

* Add model 2024-01-01-simple_classification_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_okaditya84_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_ali26sami_en

* Add model 2024-01-01-imdbreviews_classification_distilbert_v02_clf_finetuning_jmgarzonv_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_kumarguptajit_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_cp1903md_en

* Add model 2024-01-01-sentiment_analysis_20000sample_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_bhoomikajope_en

* Add model 2024-01-01-ad_distilbert0_en

* Add model 2024-01-01-burmese_awesome_model_wen_hsuan_en

* Add model 2024-01-01-burmese_model_zary0_en

* Add model 2024-01-01-ad_distilbert18_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_makaniski_en

* Add model 2024-01-01-raytune_textclassification_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_maroshimi_en

* Add model 2024-01-01-text_classification_model_yangel88_en

* Add model 2024-01-01-distilbert_with_preprocessing_grid_search_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_slee126_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_harshu101202_en

* Add model 2024-01-01-twittersentimentv4_en

* Add model 2024-01-01-left_padding60model_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_adl_hw1_harris66_en

* Add model 2024-01-01-q3_phq_en

* Add model 2024-01-01-finetuning_sentiment_model_25000_samples_zwmc_en

* Add model 2024-01-01-finetuning_samples_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_shivam779_en

* Add model 2024-01-01-test_sentiment_analysis_en

* Add model 2024-01-01-sentiment_analysis_alexisdpc_en

* Add model 2024-01-01-finetuning_sentiment_model_40000_samples_en

* Add model 2024-01-01-manifestoproject_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_cola_ll029_en

* Add model 2024-01-01-keyword_category_classifier_300_per_cat_en

* Add model 2024-01-01-ad_distilbert42_en

* Add model 2024-01-01-rcarrata_finetuning_sentiment_model_3000_samples_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_jet2157_en

* Add model 2024-01-01-test_mrizalf7_en

* Add model 2024-01-01-sentiment_analysis_12000sample_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_tanmay_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_harshu202_en

* Add model 2024-01-01-ad_distilbert29_en

* Add model 2024-01-01-training_master_model_en

* Add model 2024-01-01-good_sentiment_model2_en

* Add model 2024-01-01-distilbert_base_uncased_emotion_ft_0416_qqqq2345_en

* Add model 2024-01-01-finetuned_classifier_en

* Add model 2024-01-01-sentiment_analysis_25000sample_en

* Add model 2024-01-01-test_toxic_comment_model_en

* Add model 2024-01-01-burmese_awesome_model_masanak_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_congcachon_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_skyhaoshen_en

* Add model 2024-01-01-tweet_sentiments_40k_nepal_bhasa_pzalavad_en

* Add model 2024-01-01-ad_distilbert28_en

* Add model 2024-01-01-burmese_awesome_model_pankaj10034_en

* Add model 2024-01-01-burmese_awesome_model_nanhuggingface_en

* Add model 2024-01-01-model_los_removing_layer_latest_bert_cmm_en

* Add model 2024-01-01-distilbert_base_uncased13_en

* Add model 2024-01-01-distilbert_emotion_deustchkinder_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_skippers_guitar_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_farah117_en

* Add model 2024-01-01-finetuning_sentiment_model_3000_samples_revash_en

* Add model 2024-01-01-burmese_awesome_model_ataylor_sweet_en

* Add model 2024-01-01-tweetsentiment4_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_junek_en

* Add model 2024-01-01-burmese_model_dradamskelton_en

* Add model 2024-01-01-finetuning_sentiment_model_5000_samples_der_emmanuel_en

* Add model 2024-01-01-distilbert_model_173_class_v1_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_alexmo2615_en

* Add model 2024-01-01-burmese_awesome_model_prashant_karwasra_en

* Add model 2024-01-01-finetuning_sentiment_model_gsl22_en

* Add model 2024-01-01-burmese_awesome_model_clstdew_en

* Add model 2024-01-01-keyword_category_classifier_400_per_cat_en

* Add model 2024-01-01-q2_phq_en

* Add model 2024-01-01-imdbreviews_classification_distilbert_v02_jmgarzonv_en

* Add model 2024-01-01-burmese_awesome_model_pierre_sylvain_en

* Add model 2024-01-01-burmese_awesome_model_brecon_en

* Add model 2024-01-01-eliminare_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_boisalai_en

* Add model 2024-01-01-ad_distilbert32_en

* Add model 2024-01-01-burmese_awesome_model_parasjain_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_items_chernandezc_en

* Add model 2024-01-01-burmese_nepal_bhasa_model_en

* Add model 2024-01-01-genre_pred_model_reduced_2_epochs_en

* Add model 2024-01-01-distilbert_base_uncased_finetuned_emotion_beezbee_en

* Add model 2024-01-01-afx_grouping_model_en

* Add model 2024-01-01-imdb_test_finetune_en

* Add model 2024-01-01-distilbert_model_173_class_v1_3_en

---------

Co-authored-by: ahmedlone127 <ahmedlone127@gmail.com>
  • Loading branch information
jsl-models and ahmedlone127 authored Jan 1, 2024
1 parent 2157ace commit 9fa1404
Show file tree
Hide file tree
Showing 2,353 changed files with 228,210 additions and 0 deletions.
97 changes: 97 additions & 0 deletions docs/_posts/ahmedlone127/2023-12-29-1030_en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---
layout: model
title: English 1030 DistilBertForSequenceClassification from tingchih
author: John Snow Labs
name: 1030
date: 2023-12-29
tags: [bert, en, open_source, sequence_classification, onnx]
task: Text Classification
language: en
edition: Spark NLP 5.2.2
spark_version: 3.0
supported: true
engine: onnx
annotator: DistilBertForSequenceClassification
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

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

{:.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/1030_en_5.2.2_3.0_1703893284059.zip){:.button.button-orange.button-orange-trans.arr.button-icon}
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/public/models/1030_en_5.2.2_3.0_1703893284059.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("document")

tokenizer = Tokenizer()\
.setInputCols("document")\
.setOutputCol("token")

sequenceClassifier = DistilBertForSequenceClassification.pretrained("1030","en")\
.setInputCols(["document","token"])\
.setOutputCol("class")

pipeline = Pipeline().setStages([document_assembler, tokenizer, sequenceClassifier])

data = spark.createDataFrame([["PUT YOUR STRING HERE"]]).toDF("text")

result = pipeline.fit(data).transform(data)

```
```scala

val document_assembler = new DocumentAssembler()
.setInputCol("text")
.setOutputCol("document")

val tokenizer = new Tokenizer()
.setInputCols("document")
.setOutputCol("token")

val sequenceClassifier = DistilBertForSequenceClassification.pretrained("1030","en")
.setInputCols(Array("document","token"))
.setOutputCol("class")

val pipeline = new Pipeline().setStages(Array(documentAssembler, tokenizer, sequenceClassifier))

val data = Seq("PUT YOUR STRING HERE").toDS.toDF("text")

val result = pipeline.fit(data).transform(data)


```
</div>

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|1030|
|Compatibility:|Spark NLP 5.2.2+|
|License:|Open Source|
|Edition:|Official|
|Input Labels:|[documents, token]|
|Output Labels:|[class]|
|Language:|en|
|Size:|249.5 MB|

## References

https://huggingface.co/tingchih/1030
97 changes: 97 additions & 0 deletions docs/_posts/ahmedlone127/2023-12-29-22s_dl_sentiment_1_en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---
layout: model
title: English 22s_dl_sentiment_1 DistilBertForSequenceClassification from DLochmelis33
author: John Snow Labs
name: 22s_dl_sentiment_1
date: 2023-12-29
tags: [bert, en, open_source, sequence_classification, onnx]
task: Text Classification
language: en
edition: Spark NLP 5.2.2
spark_version: 3.0
supported: true
engine: onnx
annotator: DistilBertForSequenceClassification
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

Pretrained DistilBertForSequenceClassification model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.`22s_dl_sentiment_1` is a English model originally trained by DLochmelis33.

{:.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/22s_dl_sentiment_1_en_5.2.2_3.0_1703889238506.zip){:.button.button-orange.button-orange-trans.arr.button-icon}
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/public/models/22s_dl_sentiment_1_en_5.2.2_3.0_1703889238506.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("document")

tokenizer = Tokenizer()\
.setInputCols("document")\
.setOutputCol("token")

sequenceClassifier = DistilBertForSequenceClassification.pretrained("22s_dl_sentiment_1","en")\
.setInputCols(["document","token"])\
.setOutputCol("class")

pipeline = Pipeline().setStages([document_assembler, tokenizer, sequenceClassifier])

data = spark.createDataFrame([["PUT YOUR STRING HERE"]]).toDF("text")

result = pipeline.fit(data).transform(data)

```
```scala

val document_assembler = new DocumentAssembler()
.setInputCol("text")
.setOutputCol("document")

val tokenizer = new Tokenizer()
.setInputCols("document")
.setOutputCol("token")

val sequenceClassifier = DistilBertForSequenceClassification.pretrained("22s_dl_sentiment_1","en")
.setInputCols(Array("document","token"))
.setOutputCol("class")

val pipeline = new Pipeline().setStages(Array(documentAssembler, tokenizer, sequenceClassifier))

val data = Seq("PUT YOUR STRING HERE").toDS.toDF("text")

val result = pipeline.fit(data).transform(data)


```
</div>

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|22s_dl_sentiment_1|
|Compatibility:|Spark NLP 5.2.2+|
|License:|Open Source|
|Edition:|Official|
|Input Labels:|[documents, token]|
|Output Labels:|[class]|
|Language:|en|
|Size:|249.5 MB|

## References

https://huggingface.co/DLochmelis33/22s-dl-sentiment-1
97 changes: 97 additions & 0 deletions docs/_posts/ahmedlone127/2023-12-29-607_demo_model_en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---
layout: model
title: English 607_demo_model DistilBertForSequenceClassification from mgreenbe
author: John Snow Labs
name: 607_demo_model
date: 2023-12-29
tags: [bert, en, open_source, sequence_classification, onnx]
task: Text Classification
language: en
edition: Spark NLP 5.2.2
spark_version: 3.0
supported: true
engine: onnx
annotator: DistilBertForSequenceClassification
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

Pretrained DistilBertForSequenceClassification model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.`607_demo_model` is a English model originally trained by mgreenbe.

{:.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/607_demo_model_en_5.2.2_3.0_1703873477575.zip){:.button.button-orange.button-orange-trans.arr.button-icon}
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/public/models/607_demo_model_en_5.2.2_3.0_1703873477575.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("document")

tokenizer = Tokenizer()\
.setInputCols("document")\
.setOutputCol("token")

sequenceClassifier = DistilBertForSequenceClassification.pretrained("607_demo_model","en")\
.setInputCols(["document","token"])\
.setOutputCol("class")

pipeline = Pipeline().setStages([document_assembler, tokenizer, sequenceClassifier])

data = spark.createDataFrame([["PUT YOUR STRING HERE"]]).toDF("text")

result = pipeline.fit(data).transform(data)

```
```scala

val document_assembler = new DocumentAssembler()
.setInputCol("text")
.setOutputCol("document")

val tokenizer = new Tokenizer()
.setInputCols("document")
.setOutputCol("token")

val sequenceClassifier = DistilBertForSequenceClassification.pretrained("607_demo_model","en")
.setInputCols(Array("document","token"))
.setOutputCol("class")

val pipeline = new Pipeline().setStages(Array(documentAssembler, tokenizer, sequenceClassifier))

val data = Seq("PUT YOUR STRING HERE").toDS.toDF("text")

val result = pipeline.fit(data).transform(data)


```
</div>

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|607_demo_model|
|Compatibility:|Spark NLP 5.2.2+|
|License:|Open Source|
|Edition:|Official|
|Input Labels:|[documents, token]|
|Output Labels:|[class]|
|Language:|en|
|Size:|249.4 MB|

## References

https://huggingface.co/mgreenbe/607-demo-model
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---
layout: model
title: English 607_live_demo_yelp_polarity DistilBertForSequenceClassification from mgreenbe
author: John Snow Labs
name: 607_live_demo_yelp_polarity
date: 2023-12-29
tags: [bert, en, open_source, sequence_classification, onnx]
task: Text Classification
language: en
edition: Spark NLP 5.2.2
spark_version: 3.0
supported: true
engine: onnx
annotator: DistilBertForSequenceClassification
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

Pretrained DistilBertForSequenceClassification model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.`607_live_demo_yelp_polarity` is a English model originally trained by mgreenbe.

{:.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/607_live_demo_yelp_polarity_en_5.2.2_3.0_1703878692618.zip){:.button.button-orange.button-orange-trans.arr.button-icon}
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/public/models/607_live_demo_yelp_polarity_en_5.2.2_3.0_1703878692618.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("document")

tokenizer = Tokenizer()\
.setInputCols("document")\
.setOutputCol("token")

sequenceClassifier = DistilBertForSequenceClassification.pretrained("607_live_demo_yelp_polarity","en")\
.setInputCols(["document","token"])\
.setOutputCol("class")

pipeline = Pipeline().setStages([document_assembler, tokenizer, sequenceClassifier])

data = spark.createDataFrame([["PUT YOUR STRING HERE"]]).toDF("text")

result = pipeline.fit(data).transform(data)

```
```scala

val document_assembler = new DocumentAssembler()
.setInputCol("text")
.setOutputCol("document")

val tokenizer = new Tokenizer()
.setInputCols("document")
.setOutputCol("token")

val sequenceClassifier = DistilBertForSequenceClassification.pretrained("607_live_demo_yelp_polarity","en")
.setInputCols(Array("document","token"))
.setOutputCol("class")

val pipeline = new Pipeline().setStages(Array(documentAssembler, tokenizer, sequenceClassifier))

val data = Seq("PUT YOUR STRING HERE").toDS.toDF("text")

val result = pipeline.fit(data).transform(data)


```
</div>

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|607_live_demo_yelp_polarity|
|Compatibility:|Spark NLP 5.2.2+|
|License:|Open Source|
|Edition:|Official|
|Input Labels:|[documents, token]|
|Output Labels:|[class]|
|Language:|en|
|Size:|249.5 MB|

## References

https://huggingface.co/mgreenbe/607-live-demo-yelp-polarity
Loading

0 comments on commit 9fa1404

Please sign in to comment.