Skip to content

Commit

Permalink
2024-09-03-xlmroberta_ner_base_indonesian_pipeline_id (#14391)
Browse files Browse the repository at this point in the history
* Add model 2024-09-04-mindact_candidategeneration_deberta_v3_base_en

* Add model 2024-09-05-xlm_roberta_base_finetuned_lingala_pipeline_en

* Add model 2024-09-04-deberta_v3_xsmall_mnli_en

* Add model 2024-09-05-zhenyin_awesome_model_pipeline_en

* Add model 2024-09-04-medicalbert_en

* Add model 2024-09-04-tiny_random_bertfortokenclassification_ydshieh_en

* Add model 2024-09-05-burmese_awesome_wnut_model_jasonjche_en

* Add model 2024-09-04-roberta_qa_roberta_large_bne_squad_2.0_spanish_jamarju_pipeline_es

* Add model 2024-09-05-afro_xlmr_base_finetuned_kintweetsd_pipeline_en

* Add model 2024-09-04-opus_maltese_english_romanian_finetuned_english_tonga_tonga_islands_romanian_srirad_en

* Add model 2024-09-05-pp_wnut_model_en

* Add model 2024-09-05-distilbert_base_uncased_tokenclassification_yeji_seong_pipeline_en

* Add model 2024-09-05-tsc_classification_model_pipeline_en

* Add model 2024-09-05-lab1_true_random_en

* Add model 2024-09-05-indic_bert_finetuned_legal_try0_en

* Add model 2024-09-05-albert_emotion_sangmitra_06_pipeline_en

* Add model 2024-09-05-albert_emotion_sangmitra_06_en

* Add model 2024-09-03-dummy_model_0xeloco_pipeline_en

* Add model 2024-09-05-b_base_x2_pipeline_en

* Add model 2024-09-05-b_base_x2_en

* Add model 2024-09-05-finetuning_movie_sentiment_analysis_pipeline_en

* Add model 2024-09-05-inproceedings_recognizer_pipeline_en

* Add model 2024-09-04-argureviews_specificity_deberta_v1_en

* Add model 2024-09-05-finetuning_sentiment_model_3000_samples_gaurimm_pipeline_en

* Add model 2024-09-05-distilbert_base_uncased_finetuned_emotion_temp2_pipeline_en

* Add model 2024-09-05-imdbreviews_classification_distilbert_v02_sebasr0_en

* Add model 2024-09-05-n_distilbert_imdb_padding50model_pipeline_en

* Add model 2024-09-05-finetuning_sentiment_ditilbert_pipeline_en

* Add model 2024-09-05-finetuning_sentiment_ditilbert_en

* Add model 2024-09-05-finetuning_ift6758_hw6_sentiment_model_en

* Add model 2024-09-05-pii_model_ankitcodes_pipeline_en

* Add model 2024-09-05-arabic_ner_ace_ar

* Add model 2024-09-05-bert_finetuned_ner_clinical_plncmm_large_25_en

* Add model 2024-09-05-category_1_delivery_cancellation_distilbert_base_cased_v1_pipeline_en

* Add model 2024-09-05-bert_ner_rubertconv_toxic_editor_ru

* Add model 2024-09-04-feelings_a6000_0_00001_pipeline_en

* Add model 2024-09-05-albert_persian_farsi_zwnj_base_v2_ner_fa

* Add model 2024-09-05-albert_persian_farsi_zwnj_base_v2_ner_pipeline_fa

* Add model 2024-09-04-distilbert_base_uncased_finetuned_squad_d5716d28_sonny_en

* Add model 2024-09-05-rubert_base_cased_conversational_ner_v3_pipeline_en

* Add model 2024-09-04-yelp_polarity_microsoft_deberta_v3_base_seed_1_pipeline_en

* Add model 2024-09-05-bert_token_classifier_reddit_ner_place_names_en

* Add model 2024-09-05-bert_based_turkish_ner_wikiann_tr

* Add model 2024-09-05-indonesian_bert_base_ner_indonlu_en

* Add model 2024-09-05-glot500_with_transliteration_average_en

* Add model 2024-09-02-deberta_v3_base_squad2_ext_v1_pipeline_en

* Add model 2024-09-05-sent_less_100000_xlm_roberta_mmar_recipe_10_base_en

* Add model 2024-09-04-sent_dziribert_ar

* Add model 2024-09-04-legal_xlm_roberta_large_xx

* Add model 2024-09-04-burmese_awesome_wnut_all_time_en

* Add model 2024-09-04-twitter_roberta_large_emotion_latest_pipeline_en

* Add model 2024-09-04-burmese_awesome_wnut_model_robinsh2023_en

* Add model 2024-09-04-cola_deberta_v3_large_pipeline_en

* Add model 2024-09-05-roberta_base_finetuned_ner_sevixdd_en

* Add model 2024-09-05-distilbert_ner_sahuh_pipeline_en

* Add model 2024-09-05-roberta_base_ner_updated_mn

* Add model 2024-09-05-afro_xlmr_base_finetuned_kintweetsc_en

* Add model 2024-09-05-roberta_base_ner_demo_sanchirjav_pipeline_mn

* Add model 2024-09-05-roberta_base_ner_demo_sanchirjav_mn

* Add model 2024-09-05-nuner_v2_fewnerd_fine_super_pipeline_en

* Add model 2024-09-05-burmese_awesome_wnut_model_honganh_en

* Add model 2024-09-05-test_ner_en

* Add model 2024-09-05-roberta_skills_ner_en

* Add model 2024-09-05-ner_meddocan_es

* Add model 2024-09-05-roberta_base_finetuned_ner_lobrien001_pipeline_en

* Add model 2024-09-05-burmese_awesome_wnut_model_donbasta_en

* Add model 2024-09-05-privacy_200k_masking_en

* Add model 2024-09-05-our_awesome_bert_model_pipeline_en

* Add model 2024-09-05-opus_maltese_korean_english_finetuned_english_tonga_tonga_islands_korean_obokkkk_en

* Add model 2024-09-05-imdb_spoiler_distilbertorigdatasetlr3_en

* Add model 2024-09-05-albert_xxlarge_v2_disaster_twitter_v2_en

* Add model 2024-09-04-sanbert_from_scratch_pipeline_en

* Add model 2024-09-05-finance_news_classifier_kanuri_v7_ko

* Add model 2024-09-04-argureviews_specificity_deberta_v1_pipeline_en

* Add model 2024-09-05-xlm_roberta_base_finetuned_marc_english_danwilbury_pipeline_en

* Add model 2024-09-03-sent_glot500_base_pipeline_en

* Add model 2024-09-04-distilbert_alex_pipeline_en

* Add model 2024-09-03-burmese_awesome_model_yagina_en

* Add model 2024-09-03-mariannmt_tatoeba_luxembourgish_english_pipeline_lb

* Add model 2024-09-04-mnli_microsoft_deberta_v3_large_seed_2_en

* Add model 2024-09-05-xlmr_chatgptdetect_noisy_en

* Add model 2024-09-04-uniir_sf_vit_large_patch14_336_epoch12_pipeline_en

* Add model 2024-09-05-naija_twitter_sentiment_afriberta_large_en

* Add model 2024-09-05-xlm_roberta_base_finetuned_nace_en

* Add model 2024-09-05-burmese_awesome_model_jasssz_en

* Add model 2024-09-05-distilbert_sentiment_classifier_kiel1_en

* Add model 2024-09-05-bert_ner_biobert_base_cased_v1.2_finetuned_ner_craft_augmentedtransfer_english_pipeline_xx

* Add model 2024-09-05-cryptocurrency_intent_search_detection_en

* Add model 2024-09-05-xml_roberta_climate_change_explicit_v01_en

* Add model 2024-09-04-clip_vit_b_16_datacomp_xl_s13b_b90k_solenya_ai_pipeline_en

* Add model 2024-09-05-rtmex23_pol4_cardif_pipeline_en

* Add model 2024-09-05-xlm_roberta_qa_addi_italian_xlm_r_pipeline_it

* Add model 2024-09-04-distilbert_base_uncased_ner_invoicesendername_all_inv_20_12_en

* Add model 2024-09-03-cross_all_bs192_hardneg_finetuned_webnlg2020_correctness_pipeline_en

* Add model 2024-09-04-dummy_model_binitha_pipeline_en

* Add model 2024-09-04-distilbert_base_cased_pii_english_en

* Add model 2024-09-04-deberta_v3_base_1107_en

* Add model 2024-09-05-bert_token_classifier_uncased_keyword_discriminator_en

* Add model 2024-09-04-mdeberta_v3_base_open_ner_pipeline_en

* Add model 2024-09-05-bangla_twoclass_sentiment_analyzer_en

* Add model 2024-09-04-xlm_roberta_base_finetuned_panx_german_joanna684_en

* Add model 2024-09-05-multilingual_e5_language_detection_xx

* Add model 2024-09-05-xml_roberta_science_subject_text_classification_pipeline_en

* Add model 2024-09-04-distilbert_base_uncased_finetuned_streamers_en

* Add model 2024-09-03-sent_xlm_roberta_base_finetuned_on_runaways_french_en

* Add model 2024-09-04-mdeberta_v3_base_harem_en

* Add model 2024-09-03-deberta_v3_base_finetuned_ai4privacy_v2_en

* Add model 2024-09-05-ibert_roberta_base_finetuned_wikineural_pipeline_en

* Add model 2024-09-05-portuguese_capitalization_punctuation_restoration_sanivert_pt

* Add model 2024-09-05-rubert_base_massive_ner_ru

* Add model 2024-09-03-xlm_roberta_base_esg_ner_en

* Add model 2024-09-03-sent_bert_large_cased_whole_word_masking_pipeline_en

* Add model 2024-09-05-camelbert_msa_qalb14_ged_13_ar

* Add model 2024-09-05-bert_base_multilingual_cased_finetuned_ner_harem_pipeline_xx

* Add model 2024-09-05-bent_pubmedbert_ner_gene_en

* Add model 2024-09-05-linkbert_en

* Add model 2024-09-05-bent_pubmedbert_ner_gene_pipeline_en

* Add model 2024-09-05-nerde_base_en

* Add model 2024-09-05-wg_bert_pipeline_en

* Add model 2024-09-05-ner_bert_large_cased_portuguese_lenerbr_finetuned_ner_pipeline_en

* Add model 2024-09-05-gec_turkish_seq_tagger_tr

* Add model 2024-09-05-burmese_awesome_wnut_model_osquery_pipeline_en

* Add model 2024-09-05-rogec_robert_large_en

* Add model 2024-09-05-ner_fine_tuned_beto_es

* Add model 2024-09-05-burmese_awesome_model_lenatt_en

* Add model 2024-09-05-imdb_spoiler_distilbertorigdatasetlr3_pipeline_en

* Add model 2024-09-05-albert_xxlarge_v2_disaster_twitter_v2_pipeline_en

* Add model 2024-09-05-multilingual_sentiment_covid19_pipeline_xx

* Add model 2024-09-05-bge_micro_v2_esg_v2_en

* Add model 2024-09-05-bge_large_chinese_v1_6_en

* Add model 2024-09-05-bge_base_citi_dataset_detailed_9k_1_5k_e1_en

* Add model 2024-09-05-philai_bge_2et_f_again_en

* Add model 2024-09-04-deberta_v3_small_finetuned_mrpc_en

* Add model 2024-09-05-bge_small_english_v1_5_esg_pipeline_en

* Add model 2024-09-05-bge_small_english_v1_5_esg_en

* Add model 2024-09-05-bge_small_bioasq_3epochs_batch32_en

* Add model 2024-09-05-bge_base_citi_dataset_9k_1k_e1_pipeline_en

* Add model 2024-09-05-bge_base_financial_matryoshka_adarshheg_en

* Add model 2024-09-04-deberta_v3_base_finetuned_french_pipeline_en

* Add model 2024-09-05-distilbert_base_uncased_qqp_en

* Add model 2024-09-05-bge_base_financial_matryoshka_adarshheg_pipeline_en

* Add model 2024-09-05-bge_large_english_world_news_osint_v1_en

* Add model 2024-09-05-xml_roberta_climate_change_explicit_v01_pipeline_en

* Add model 2024-09-05-xlm_roberta_base_tweet_sentiment_french_pipeline_en

* Add model 2024-09-04-all_mpnet_base_v2_1_en

* Add model 2024-09-04-distilbert_hera_synthetic_pretrain_en

* Add model 2024-09-05-bge_large_english_world_news_osint_v1_pipeline_en

* Add model 2024-09-04-dummy_model_gvozdev_en

* Add model 2024-09-05-burmese_awesome_wnut_place_en

* Add model 2024-09-05-distilbert_base_uncased_finetuned_neg_en

* Add model 2024-09-05-distillbert_finetuned_ner_btc_en

* Add model 2024-09-05-burmese_awesome_wnut_model_langchain12_en

* Add model 2024-09-05-burmese_awesome_wnut_model_thypogean_pipeline_en

* Add model 2024-09-05-shopee_ner_pipeline_en

* Add model 2024-09-05-distilbert_ner_augmented_en

* Add model 2024-09-05-burmese_awesome_wnut_model_basirudin_pipeline_en

* Add model 2024-09-05-distilbert_base_uncased_celinalopga_en

* Add model 2024-09-05-context_tracking_pipeline_en

* Add model 2024-09-05-context_tracking_en

* Add model 2024-09-05-sembr2023_distilbert_base_multilingual_cased_xx

* Add model 2024-09-05-sembr2023_distilbert_base_multilingual_cased_pipeline_xx

* Add model 2024-09-05-distilbert_base_uncased_finetuned_ner_artem1981_en

* Add model 2024-09-05-trained_slovak_en

* Add model 2024-09-04-roberta_qa_base_spanish_squades_becasincentivos2_pipeline_es

* Add model 2024-09-05-rubert_base_massive_ner_pipeline_ru

* Add model 2024-09-05-test_ner_pipeline_en

* Add model 2024-09-05-nli_conventional_fine_tuning_m4faisal_pipeline_en

* Add model 2024-09-04-bmg_translation_lug_english_v2_pipeline_en

* Add model 2024-09-05-trained_baseline_en

* Add model 2024-09-04-dagpap24_deberta_base_ft_pipeline_en

* Add model 2024-09-04-opus_maltese_english_romanian_finetuned_english_tonga_tonga_islands_romanian_susmit99_pipeline_en

* Add model 2024-09-05-bert_kor_base_ko

* Add model 2024-09-05-biomednlp_biomedbert_base_uncased_abstract_fulltext_en

* Add model 2024-09-05-bert_kor_base_pipeline_ko

* Add model 2024-09-05-norwegian_bokml_bert_large_pipeline_no

* Add model 2024-09-05-rogec_robert_large_pipeline_en

* Add model 2024-09-05-distilbert_base_uncased_finetuned_emotion_temp2_en

* Add model 2024-09-05-disorbert_en

* Add model 2024-09-05-convbert_base_turkish_mc4_uncased_pipeline_tr

* Add model 2024-09-03-sent_pretrained_xlm_portuguese_e5_select_pipeline_en

* Add model 2024-09-05-adp_model_en

* Add model 2024-09-05-bge_base_financial_matryoshka_uhoffmann_pipeline_en

* Add model 2024-09-04-bert_southern_sotho_qa_all_mpnet_base_v2_epochs_1_en

* Add model 2024-09-03-distilbert_base_uncased_finetuned_imdb_aliekens_en

* Add model 2024-09-05-bge_base_citi_dataset_detailed_9k_1_5k_e1_pipeline_en

* Add model 2024-09-04-sent_bert_base_indonesian_1_5g_pipeline_id

* Add model 2024-09-05-biomednlp_biomedbert_large_uncased_abstract_pipeline_en

* Add model 2024-09-05-esg_classification_french_english_fr

* Add model 2024-09-04-dummy_model_rocksat_en

* Add model 2024-09-03-finetuning_sentiment_model_mpnet_imdb_pipeline_en

* Add model 2024-09-05-translation_english_korean_pipeline_en

* Add model 2024-09-05-philai_bge_2et_f_again_pipeline_en

* Add model 2024-09-05-sent_arbertv2_pipeline_ar

* Add model 2024-09-05-sent_bert_large_uncased_whole_word_masking_en

* Add model 2024-09-05-sent_corsican_condenser_marco_en

* Add model 2024-09-05-bge_base_financial_matryoshka_ethan_ky_pipeline_en

* Add model 2024-09-05-sent_bert_base_uncased_echr_pipeline_en

* Add model 2024-09-05-sent_bert_base_uncased_echr_en

* Add model 2024-09-05-sent_bert_bert_large_portuguese_cased_legal_mlm_gpl_nli_sts_MetaKD_v1_pipeline_pt

* Add model 2024-09-04-mdeberta_v3_base_mrpc_10_pipeline_en

* Add model 2024-09-02-xlm_roberta_base_finetuned_panx_german_maxfrax_en

* Add model 2024-09-05-sent_berel_finetuned_dss_maskedlm_pipeline_en

* Add model 2024-09-04-distilbert_emotion_neelams_en

* Add model 2024-09-04-roberta_base_hate_en

* Add model 2024-09-05-sent_bert_base_qarib_ar

* Add model 2024-09-05-sent_norwegian_bokml_bert_base_pipeline_no

* Add model 2024-09-05-sent_norwegian_bokml_bert_base_no

* Add model 2024-09-04-roberta_finetuned_squad_noushsuon_pipeline_en

* Add model 2024-09-04-xlmroberta_ner_tner_base_conll2003_en

* Add model 2024-09-05-sent_bert_bert_large_portuguese_cased_legal_mlm_gpl_nli_sts_v1_pt

* Add model 2024-09-04-roberta_qa_news_pretrain_roberta_FT_newsqa_pipeline_en

* Add model 2024-09-05-distilbert_base_uncased_finetuned_sayula_popoluca_kazakh_3080_pipeline_en

* Add model 2024-09-05-burmese_awesome_wnut_model_saikatkumardey_en

* Add model 2024-09-05-burmese_ner_model_mundo_go_en

* Add model 2024-09-05-ae_detection_distilbert_en

* Add model 2024-09-05-burmese_awesome_wnut_model_yuting27_en

* Add model 2024-09-05-multilingual_e5_language_detection_pipeline_xx

* Add model 2024-09-04-trustpilot_roberta_gender_pipeline_en

* Add model 2024-09-05-distilbert_base_uncased_celinalopga_pipeline_en

* Add model 2024-09-05-clip_finetuned_pipeline_en

* Add model 2024-09-05-distilbert_base_uncased_finetuned_ner_sindhujag26_en

* Add model 2024-09-05-roberta_skills_ner_pipeline_en

* Add model 2024-09-05-screenshot_fashion_clip_finetuned_v2_t1_en

* Add model 2024-09-05-clip_seed_vit_8_en

* Add model 2024-09-05-screenshot_fashion_clip_finetuned_v2_t1_pipeline_en

* Add model 2024-09-04-comfact_deberta_v2_en

* Add model 2024-09-05-biomednlp_biomedbert_base_uncased_abstract_fulltext_pipeline_en

* Add model 2024-09-05-bert_base_german_uncased_dbmdz_pipeline_de

* Add model 2024-09-03-slovakbert_pipeline_sk

* Add model 2024-09-05-bert_emotion_gyvertc_pipeline_en

* Add model 2024-09-03-camembert_base_toxic_french_user_prompts_pipeline_fr

* Add model 2024-09-05-timeset_ifm_en

* Add model 2024-09-05-distilbert_base_uncased_finetuned_clinc_mrwetsnow_en

* Add model 2024-09-03-autonlp_feedback1_479512837_pipeline_en

* Add model 2024-09-05-darijabert_pipeline_ar

* Add model 2024-09-05-bge_base_financial_matryoshka_uhoffmann_en

* Add model 2024-09-04-burmese_ws_extraction_model_27th_mar_pipeline_en

* Add model 2024-09-03-varta_bert_xx

* Add model 2024-09-04-setfit_sentiment_analysis_ep20_en

* Add model 2024-09-04-distilbert_base_uncased_distilled_squad_finetuned_srh_v1_pipeline_en

* Add model 2024-09-04-xlm_roberta_base_finetuned_panx_german_blanche_pipeline_en

* Add model 2024-09-05-clip_vit_base_patch32_demo_xiaoliy2_en

* Add model 2024-09-05-clip_large_fp16_pipeline_en

* Add model 2024-09-05-sent_norwegian_bokml_roberta_base_ncc_plus_scandi_2e4_en

* Add model 2024-09-04-trust_merged_dataset_mdeberta_v3_20epoch_en

* Add model 2024-09-05-aift_model_en

* Add model 2024-09-03-bookmebus_sentiment_analysis_en

* Add model 2024-09-05-distilbert_lolchamps_en

* Add model 2024-09-05-distilbert_base_uncased_finetuned_imdb_zhenchuan_en

* Add model 2024-09-05-distilbert_base_uncased_finetuned_imdb_abh1na5_en

---------

Co-authored-by: ahmedlone127 <ahmedlone127@gmail.com>
  • Loading branch information
jsl-models and ahmedlone127 authored Sep 5, 2024
1 parent 67e256a commit ab101a6
Show file tree
Hide file tree
Showing 2,889 changed files with 237,729 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
layout: model
title: English albert_base_finetuned_recipe_modified AlbertForQuestionAnswering from saumyasinha0510
author: John Snow Labs
name: albert_base_finetuned_recipe_modified
date: 2024-09-01
tags: [en, open_source, onnx, question_answering, albert]
task: Question Answering
language: en
edition: Spark NLP 5.4.2
spark_version: 3.0
supported: true
engine: onnx
annotator: AlbertForQuestionAnswering
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

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

{:.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/albert_base_finetuned_recipe_modified_en_5.4.2_3.0_1725193374690.zip){:.button.button-orange.button-orange-trans.arr.button-icon}
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/public/models/albert_base_finetuned_recipe_modified_en_5.4.2_3.0_1725193374690.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

documentAssembler = MultiDocumentAssembler() \
.setInputCol(["question", "context"]) \
.setOutputCol(["document_question", "document_context"])

spanClassifier = AlbertForQuestionAnswering.pretrained("albert_base_finetuned_recipe_modified","en") \
.setInputCols(["document_question","document_context"]) \
.setOutputCol("answer")

pipeline = Pipeline().setStages([documentAssembler, spanClassifier])
data = spark.createDataFrame([["What framework do I use?","I use spark-nlp."]]).toDF("document_question", "document_context")
pipelineModel = pipeline.fit(data)
pipelineDF = pipelineModel.transform(data)

```
```scala

val documentAssembler = new MultiDocumentAssembler()
.setInputCol(Array("question", "context"))
.setOutputCol(Array("document_question", "document_context"))

val spanClassifier = AlbertForQuestionAnswering.pretrained("albert_base_finetuned_recipe_modified", "en")
.setInputCols(Array("document_question","document_context"))
.setOutputCol("answer")

val pipeline = new Pipeline().setStages(Array(documentAssembler, spanClassifier))
val data = Seq("What framework do I use?","I use spark-nlp.").toDS.toDF("document_question", "document_context")
val pipelineModel = pipeline.fit(data)
val pipelineDF = pipelineModel.transform(data)

```
</div>

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|albert_base_finetuned_recipe_modified|
|Compatibility:|Spark NLP 5.4.2+|
|License:|Open Source|
|Edition:|Official|
|Input Labels:|[document_question, document_context]|
|Output Labels:|[answer]|
|Language:|en|
|Size:|42.0 MB|

## References

https://huggingface.co/saumyasinha0510/Albert-base-finetuned-recipe-modified
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
layout: model
title: English albert_base_qa_2_k_fold_1 AlbertForQuestionAnswering from mateiaass
author: John Snow Labs
name: albert_base_qa_2_k_fold_1
date: 2024-09-01
tags: [en, open_source, onnx, question_answering, albert]
task: Question Answering
language: en
edition: Spark NLP 5.4.2
spark_version: 3.0
supported: true
engine: onnx
annotator: AlbertForQuestionAnswering
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

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

{:.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/albert_base_qa_2_k_fold_1_en_5.4.2_3.0_1725193498781.zip){:.button.button-orange.button-orange-trans.arr.button-icon}
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/public/models/albert_base_qa_2_k_fold_1_en_5.4.2_3.0_1725193498781.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

documentAssembler = MultiDocumentAssembler() \
.setInputCol(["question", "context"]) \
.setOutputCol(["document_question", "document_context"])

spanClassifier = AlbertForQuestionAnswering.pretrained("albert_base_qa_2_k_fold_1","en") \
.setInputCols(["document_question","document_context"]) \
.setOutputCol("answer")

pipeline = Pipeline().setStages([documentAssembler, spanClassifier])
data = spark.createDataFrame([["What framework do I use?","I use spark-nlp."]]).toDF("document_question", "document_context")
pipelineModel = pipeline.fit(data)
pipelineDF = pipelineModel.transform(data)

```
```scala

val documentAssembler = new MultiDocumentAssembler()
.setInputCol(Array("question", "context"))
.setOutputCol(Array("document_question", "document_context"))

val spanClassifier = AlbertForQuestionAnswering.pretrained("albert_base_qa_2_k_fold_1", "en")
.setInputCols(Array("document_question","document_context"))
.setOutputCol("answer")

val pipeline = new Pipeline().setStages(Array(documentAssembler, spanClassifier))
val data = Seq("What framework do I use?","I use spark-nlp.").toDS.toDF("document_question", "document_context")
val pipelineModel = pipeline.fit(data)
val pipelineDF = pipelineModel.transform(data)

```
</div>

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|albert_base_qa_2_k_fold_1|
|Compatibility:|Spark NLP 5.4.2+|
|License:|Open Source|
|Edition:|Official|
|Input Labels:|[document_question, document_context]|
|Output Labels:|[answer]|
|Language:|en|
|Size:|42.0 MB|

## References

https://huggingface.co/mateiaass/albert-base-qa-2-k-fold-1
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
---
layout: model
title: English BertForSequenceClassification Cased model (from kamivao)
author: John Snow Labs
name: bert_classifier_autonlp_entity_selection_5771228
date: 2024-09-01
tags: [en, open_source, bert, sequence_classification, classification, onnx]
task: Text Classification
language: en
edition: Spark NLP 5.4.2
spark_version: 3.0
supported: true
engine: onnx
annotator: BertForSequenceClassification
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

Pretrained BertForSequenceClassification model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP. `autonlp-entity_selection-5771228` is a English model originally trained by `kamivao`.

## Predicted Entities

`1`, `0`

{:.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/bert_classifier_autonlp_entity_selection_5771228_en_5.4.2_3.0_1725204813533.zip){:.button.button-orange.button-orange-trans.arr.button-icon}
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/public/models/bert_classifier_autonlp_entity_selection_5771228_en_5.4.2_3.0_1725204813533.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
documentAssembler = DocumentAssembler() \
.setInputCol("text") \
.setOutputCol("document")

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

seq_classifier = BertForSequenceClassification.pretrained("bert_classifier_autonlp_entity_selection_5771228","en") \
.setInputCols(["document", "token"]) \
.setOutputCol("class")

pipeline = Pipeline(stages=[documentAssembler, tokenizer, seq_classifier])

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

result = pipeline.fit(data).transform(data)
```
```scala
val documentAssembler = new DocumentAssembler()
.setInputCols(Array("text"))
.setOutputCols(Array("document"))

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

val seq_classifier = BertForSequenceClassification.pretrained("bert_classifier_autonlp_entity_selection_5771228","en")
.setInputCols(Array("document", "token"))
.setOutputCol("class")

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

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

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

{:.nlu-block}
```python
import nlu
nlu.load("en.classify.bert.by_kamivao").predict("""PUT YOUR STRING HERE""")
```
</div>

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|bert_classifier_autonlp_entity_selection_5771228|
|Compatibility:|Spark NLP 5.4.2+|
|License:|Open Source|
|Edition:|Official|
|Input Labels:|[document, token]|
|Output Labels:|[class]|
|Language:|en|
|Size:|409.4 MB|

## References

References

- https://huggingface.co/kamivao/autonlp-entity_selection-5771228
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
layout: model
title: English bert_qa_spanbert_base_cased_few_shot_k_512_finetuned_squad_seed_6_pipeline pipeline BertForQuestionAnswering from anas-awadalla
author: John Snow Labs
name: bert_qa_spanbert_base_cased_few_shot_k_512_finetuned_squad_seed_6_pipeline
date: 2024-09-01
tags: [en, open_source, pipeline, onnx]
task: Question Answering
language: en
edition: Spark NLP 5.4.2
spark_version: 3.0
supported: true
annotator: PipelineModel
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

Pretrained BertForQuestionAnswering, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.`bert_qa_spanbert_base_cased_few_shot_k_512_finetuned_squad_seed_6_pipeline` is a English model originally trained by anas-awadalla.

{:.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/bert_qa_spanbert_base_cased_few_shot_k_512_finetuned_squad_seed_6_pipeline_en_5.4.2_3.0_1725185371351.zip){:.button.button-orange.button-orange-trans.arr.button-icon}
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/public/models/bert_qa_spanbert_base_cased_few_shot_k_512_finetuned_squad_seed_6_pipeline_en_5.4.2_3.0_1725185371351.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

pipeline = PretrainedPipeline("bert_qa_spanbert_base_cased_few_shot_k_512_finetuned_squad_seed_6_pipeline", lang = "en")
annotations = pipeline.transform(df)

```
```scala

val pipeline = new PretrainedPipeline("bert_qa_spanbert_base_cased_few_shot_k_512_finetuned_squad_seed_6_pipeline", lang = "en")
val annotations = pipeline.transform(df)

```
</div>

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|bert_qa_spanbert_base_cased_few_shot_k_512_finetuned_squad_seed_6_pipeline|
|Type:|pipeline|
|Compatibility:|Spark NLP 5.4.2+|
|License:|Open Source|
|Edition:|Official|
|Language:|en|
|Size:|386.6 MB|

## References

https://huggingface.co/anas-awadalla/spanbert-base-cased-few-shot-k-512-finetuned-squad-seed-6

## Included Models

- MultiDocumentAssembler
- BertForQuestionAnswering
Loading

0 comments on commit ab101a6

Please sign in to comment.