modelId stringlengths 4 81 | tags list | pipeline_tag stringclasses 17 values | config dict | downloads int64 0 59.7M | first_commit timestamp[ns, tz=UTC] | card stringlengths 51 438k | embedding list |
|---|---|---|---|---|---|---|---|
Bharathdamu/wav2vec2-large-xls-r-300m-hindi-colab | [
"pytorch",
"tensorboard",
"wav2vec2",
"automatic-speech-recognition",
"dataset:common_voice",
"transformers",
"generated_from_trainer",
"license:apache-2.0"
] | automatic-speech-recognition | {
"architectures": [
"Wav2Vec2ForCTC"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 4 | null | ---
license: apache-2.0
tags:
- generated_from_trainer
datasets:
- common_voice
model-index:
- name: wav2vec2-large-xls-r-300m-hindi-colab
results: []
---
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# wav2vec2-large-xls-r-300m-hindi-colab
This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) on the common_voice dataset.
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0003
- train_batch_size: 16
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 32
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 500
- num_epochs: 30
- mixed_precision_training: Native AMP
### Training results
### Framework versions
- Transformers 4.11.3
- Pytorch 1.10.0+cu111
- Datasets 1.13.3
- Tokenizers 0.10.3
| [
-0.03612764924764633,
-0.012698335573077202,
-0.025973143056035042,
0.034235596656799316,
0.0409662239253521,
0.03559930995106697,
-0.008798502385616302,
-0.002133842557668686,
-0.011514026671648026,
0.047644007951021194,
0.042620182037353516,
-0.014849839732050896,
0.008942557498812675,
0.02849910594522953,
-0.033574219793081284,
-0.05253336578607559,
-0.04081224650144577,
0.0011971620842814445,
-0.04050673916935921,
-0.010409179143607616,
-0.00038780062459409237,
-0.005479590035974979,
-0.016577336937189102,
0.03287031501531601,
-0.003629129845649004,
0.02113012783229351,
-0.011065684258937836,
0.017618723213672638,
0.012405000627040863,
-0.06427764892578125,
-0.012196804396808147,
-0.061704784631729126,
-0.029353037476539612,
-0.04586394503712654,
-0.014303527772426605,
0.01452149823307991,
0.004437237046658993,
0.028221381828188896,
0.03175346180796623,
0.022870078682899475,
-0.007650993764400482,
0.028455082327127457,
-0.016610655933618546,
-0.01739520952105522,
0.03732645884156227,
-0.010529594495892525,
-0.04518113657832146,
-0.02060488983988762,
0.03563675284385681,
-0.04272273927927017,
-0.04298340901732445,
-0.06117163971066475,
-0.02328837662935257,
0.02298450842499733,
-0.009384890086948872,
-0.015093883499503136,
-0.05053861811757088,
-0.03049977868795395,
0.048263970762491226,
-0.06032866984605789,
-0.011916965246200562,
-0.0020703941117972136,
-0.07597823441028595,
0.012948153540492058,
0.01726757548749447,
-0.03839430585503578,
0.023445770144462585,
-0.05148647725582123,
0.04728708043694496,
-0.012576055712997913,
0.0657963976264,
-0.021477896720170975,
0.021171826869249344,
-0.09041383117437363,
0.010387012735009193,
-0.011790428310632706,
0.019247952848672867,
0.061971914023160934,
-0.03202201798558235,
0.059639062732458115,
0.015172767452895641,
0.02233617752790451,
0.02506175823509693,
-0.017322275787591934,
0.0240136981010437,
0.04247511550784111,
-0.0446661077439785,
0.036774083971977234,
0.02406895160675049,
0.025296181440353394,
-0.011160559952259064,
-0.05841635912656784,
-0.012953657656908035,
-0.05484406650066376,
-0.016555752605199814,
0.036625802516937256,
0.03208008408546448,
-0.009826868772506714,
0.030798248946666718,
0.03834021836519241,
0.027066724374890327,
0.021199297159910202,
-0.03785865008831024,
0.08237987756729126,
-0.01529089454561472,
-0.001626479672268033,
-0.021405259147286415,
-0.02076215296983719,
-0.0338468961417675,
0.011069842614233494,
0.03604186326265335,
-0.04063402861356735,
-0.04400806501507759,
0.027134712785482407,
-0.007884065620601177,
-0.019891344010829926,
0.045837998390197754,
-0.056154415011405945,
-0.036574266850948334,
-0.04241248592734337,
0.037514932453632355,
0.02135850302875042,
-0.0010634991340339184,
0.006771965883672237,
-0.051913630217313766,
0.009152336977422237,
-0.038644518703222275,
-0.047329552471637726,
0.011937171220779419,
-0.006995899602770805,
-0.01192145049571991,
0.04717310890555382,
0.023900844156742096,
-0.0588042251765728,
-0.02068898268043995,
0.02201777882874012,
-0.04950502887368202,
0.02405577525496483,
0.0039062127470970154,
0.07731446623802185,
-0.05362848564982414,
-0.0774698331952095,
0.018392296507954597,
0.003895052010193467,
-0.00952004175633192,
0.034314386546611786,
0.022627199068665504,
-0.02801152877509594,
-0.02859378233551979,
-0.013675190508365631,
0.04604387655854225,
-0.07132750749588013,
-0.03000093810260296,
0.06239599734544754,
-0.03420458361506462,
0.030755434185266495,
-0.023669276386499405,
-0.015298889949917793,
0.014915631152689457,
-0.018554463982582092,
-0.01369507610797882,
0.04750453680753708,
0.021193627268075943,
-0.029284410178661346,
-0.0344221405684948,
-0.046235326677560806,
0.001559753785841167,
0.08926972001791,
-0.0010288362391293049,
-0.008318874053657055,
-0.01747206225991249,
0.049405671656131744,
0.03401201590895653,
0.02718973532319069,
-0.05519665405154228,
0.04125238582491875,
0.06552854180335999,
0.03837422654032707,
-0.03258037567138672,
0.05708455294370651,
0.025446061044931412,
-0.032226525247097015,
-0.02906131185591221,
0.004622947424650192,
0.012065705843269825,
-0.05948806554079056,
0.007831504568457603,
0.024139506742358208,
0.016277432441711426,
-0.039656613022089005,
-0.0067494404502213,
0.0773172676563263,
-0.005973510909825563,
-0.020160013809800148,
0.005947474390268326,
-0.01053058821707964,
-0.03444948419928551,
0.028957368806004524,
-0.04913587123155594,
0.00015552974946331233,
-0.021293288096785545,
-0.011530270799994469,
-0.00473248865455389,
0.009072277694940567,
0.03504972532391548,
0.05493353679776192,
-0.03246402367949486,
0.08919001370668411,
-0.04469401016831398,
-0.0034217643551528454,
-0.02059561386704445,
-0.05640413239598274,
-0.027219420298933983,
0.050705693662166595,
0.03129345923662186,
0.07059686630964279,
-0.0022268437314778566,
-0.05973435193300247,
0.045606158673763275,
0.07131810486316681,
0.06584960222244263,
0.004943466745316982,
-0.018179740756750107,
-0.005785670131444931,
0.014855775982141495,
0.05113040283322334,
-0.08423565328121185,
-0.026872335001826286,
0.012923423200845718,
0.03164836764335632,
-0.02241973578929901,
0.030549107119441032,
-0.021922271698713303,
0.048369087278842926,
-0.0555369034409523,
-0.07051251828670502,
0.037957727909088135,
0.01834772899746895,
0.014468906447291374,
0.03135741874575615,
-0.004880412016063929,
-0.013264566659927368,
0.022918328642845154,
0.022738497704267502,
0.0001058971683960408,
-0.0373004749417305,
0.006710569839924574,
0.009690743871033192,
0.0489785335958004,
-0.06787779182195663,
0.038502536714076996,
-0.030268261209130287,
0.0018713058670982718,
0.042447954416275024,
-0.02808454819023609,
0.03487594053149223,
0.034202780574560165,
0.011742564849555492,
-0.022389596328139305,
0.01459752768278122,
0.007219468709081411,
0.049669355154037476,
0.057767104357481,
0.02119474671781063,
0.05564698949456215,
0.006167259067296982,
0.04961502552032471,
0.08373325318098068,
0.026073671877384186,
0.022371923550963402,
0.04030910134315491,
0.08080451935529709,
0.02431422472000122,
-0.02384170889854431,
0.05125586688518524,
-0.04576442018151283,
0.03397209197282791,
-0.03904063254594803,
-0.004759976640343666,
-0.012410758063197136,
-0.009526395238935947,
0.04223216325044632,
0.010333512909710407,
0.0036636183504015207,
-0.01496900711208582,
-0.034885045140981674,
-0.036721840500831604,
0.03768128529191017,
-0.010835099034011364,
-0.026571687310934067,
-0.012122167274355888,
-0.0036115956027060747,
0.0038173263892531395,
-0.08142292499542236,
-0.03171851858496666,
-0.0019366595661267638,
-0.028585493564605713,
0.019818389788269997,
-0.08085118979215622,
-0.02536141313612461,
-0.07387720048427582,
-0.01731657236814499,
0.04518503323197365,
0.022862138226628304,
0.02297084592282772,
-0.06340441107749939,
0.00200072955340147,
-0.04208361729979515,
-0.042696695774793625,
-0.07575443387031555,
-0.05047326907515526,
-0.029262728989124298,
-0.07075149565935135,
0.03189493715763092,
0.025523265823721886,
0.03380521759390831,
0.005077505949884653,
-0.007832967676222324,
-0.013092880137264729,
-0.02069498784840107,
0.056919533759355545,
0.06435126066207886,
-0.02728337049484253,
-0.06900088489055634,
0.019315205514431,
-0.03087947703897953,
0.007846239022910595,
-0.021240251138806343,
-0.04053209349513054,
0.07820052653551102,
0.04556034505367279,
0.04202638566493988,
0.02689930982887745,
-0.03478110209107399,
-0.0522540919482708,
-0.05278182774782181,
-0.029702071100473404,
-0.03720514848828316,
-0.02245740033686161,
-0.03749379143118858,
-0.03670715540647507,
-0.021356618031859398,
-0.02278926968574524,
-0.0028075885493308306,
-0.022967293858528137,
-0.010088992305099964,
0.027018921449780464,
0.04735294356942177,
0.018019650131464005,
0.01740902289748192,
-0.016418935731053352,
-0.0539865642786026,
0.06923399865627289,
0.014327192679047585,
-0.01146948803216219,
-0.07666021585464478,
-0.03701430559158325,
0.012873120605945587,
0.034394752234220505,
-0.016308799386024475,
-0.011882330290973186,
0.07195130735635757,
0.006628705654293299,
-0.019035879522562027,
0.023030947893857956,
-0.041634511202573776,
-0.005223258398473263,
-0.029131095856428146,
0.005317718721926212,
0.0013288195477798581,
-0.046890247613191605,
0.010630156844854355,
-0.0023039844818413258,
0.04625788331031799,
-0.05929374694824219,
-0.047797802835702896,
-0.008400168269872665,
0.0330343022942543,
0.05057109147310257,
-0.00382422748953104,
-0.034663207828998566,
-0.014958164654672146,
-0.04830184578895569,
-0.012067175470292568,
0.022812120616436005,
-0.0008731451234780252,
0.016891397535800934,
0.0571775920689106,
0.021282223984599113,
-0.0068941363133490086,
0.04331659525632858,
0.02757382020354271,
0.07029956579208374,
0.04283914715051651,
-0.0434747114777565,
0.010065239854156971,
-0.028913889080286026,
0.03613722324371338,
-0.016892293468117714,
-0.016603784635663033,
-0.043426573276519775,
-0.09942687302827835,
-0.02001151815056801,
0.023350290954113007,
-0.006092361640185118,
-0.018595008179545403,
0.03162230923771858,
0.0035740607418119907,
-0.020375210791826248,
0.01058102771639824,
0.02491077408194542,
0.0308625940233469,
-0.041352856904268265,
0.05781543254852295,
0.010808928869664669,
0.031811803579330444,
-0.05948413163423538,
0.0010383430635556579,
-0.03413485735654831,
-0.033550795167684555,
0.010002885945141315,
0.06508679687976837,
-0.0037359637208282948,
0.04126769304275513,
0.08401532471179962,
0.02190573140978813,
-0.03241293504834175,
0.04786808043718338,
0.06138544902205467,
-0.02970338985323906,
-0.05745233967900276,
0.0073642064817249775,
-0.005438277497887611,
-0.0391416996717453,
-0.013729371130466461,
-0.019263681024312973,
0.05614760145545006,
0.040168531239032745,
-0.008063238114118576,
0.016418635845184326,
0.0257898960262537,
-0.007538315840065479,
-0.012156769633293152,
-0.045322176069021225,
-0.04641752317547798,
0.01176800113171339,
-0.04542208090424538,
0.03170546516776085,
0.023144565522670746,
0.006191321182996035,
0.056741487234830856,
0.05015382170677185,
-0.04387754946947098,
-0.03284427896142006,
0.026393605396151543,
0.025121651589870453,
-0.042109064757823944,
-0.04815353453159332,
-0.037883397191762924,
0.04729081690311432,
0.03069954179227352,
0.0014745625667273998,
-0.06859918683767319,
0.001238158205524087,
0.048771511763334274,
-0.039345934987068176,
0.0427900105714798,
0.0034353809896856546,
0.03232189267873764,
0.0658627524971962,
0.0012311331229284406,
0.01741141639649868,
-0.014862606301903725,
0.004575027152895927,
0.009622582234442234,
0.02122926339507103,
-0.013152964413166046,
-0.030356302857398987,
-0.07389216870069504,
0.010381615720689297,
0.048663295805454254,
0.035211462527513504,
0.05511642247438431,
-0.029862185940146446,
-0.049932535737752914,
-0.00397131871432066,
0.037514906376600266,
-0.029950613155961037,
0.004816111177206039,
0.03124316781759262,
0.019344987347722054,
-0.03841439634561539,
-0.007368488237261772,
-0.01475413329899311,
-0.005440505687147379,
0.021018346771597862,
-0.008409235626459122,
-0.037886571139097214,
-0.023232219740748405,
0.03675694391131401,
0.018197689205408096,
-0.03498585894703865,
-0.0905342698097229,
0.03916791081428528,
-0.0031039679888635874,
-0.005756502505391836,
0.03919456899166107,
0.021273642778396606,
0.0590214841067791,
0.04854990169405937,
0.01572446897625923,
0.02155069261789322,
-0.02388153225183487,
0.032266438007354736,
-0.03467584773898125,
-0.024294838309288025,
-0.01255039218813181,
-0.03813914582133293,
-0.046648357063531876,
-0.02491852641105652,
-0.034938111901283264,
-0.02494884841144085,
0.005889358464628458,
0.02040150575339794,
-0.01965675689280033,
-0.024045342579483986,
-0.015299572609364986,
0.04539088159799576,
-0.024240896105766296,
-0.017280640080571175,
-0.041794706135988235,
-0.010674267075955868,
-0.06202118471264839,
-0.03796907886862755,
0.05397173762321472,
-0.006895043421536684,
0.0315743125975132,
0.02910435013473034,
0.01762867160141468,
0.03550546616315842,
-0.010379207320511341,
-0.01395585760474205,
0.017621386796236038,
0.0026532886549830437,
-0.03513272851705551,
-0.027645796537399292,
0.03171606361865997,
0.022377198562026024,
0.029542645439505577,
-0.021360808983445168,
0.03364798054099083,
0.01595737412571907,
-0.024710917845368385,
-0.002896358957514167,
0.019819071516394615,
0.017971018329262733,
-0.06360100209712982,
-0.03692920506000519,
0.011764445342123508,
-0.04751010611653328,
0.008207934908568859,
-0.028427693992853165,
0.0005404981784522533,
0.014788801781833172,
0.018820717930793762,
0.0531327947974205,
-0.017453176900744438,
-0.029034530743956566,
0.04713442549109459,
-0.03680073842406273,
0.01787749119102955,
-0.05603502318263054,
0.04113420099020004,
-0.022415045648813248,
0.016124330461025238,
-0.01787981018424034,
0.013265613466501236,
-0.05531167611479759,
0.02139446511864662,
-0.005424093455076218,
0.0023645476903766394,
-0.015108681283891201,
0.031784240156412125,
-0.013727099634706974,
0.02544858120381832,
-0.009242294356226921,
0.038053277879953384,
-0.05639929324388504,
0.06465180963277817,
-0.02696872316300869,
0.01980603300035,
-0.024021068587899208,
0.006688456516712904,
-0.035608064383268356,
-0.0002135721006197855,
-0.012745733372867107,
-0.03737969323992729,
0.03669740632176399,
0.05474001541733742,
0.06554462015628815,
0.03565121442079544,
-0.03703755885362625,
-0.010048750787973404,
0.01496844831854105,
-0.03747548162937164,
-0.01513655111193657,
-0.0052309539169073105,
0.02636156603693962,
0.015213869512081146,
0.040323834866285324,
0.03212253376841545,
-0.04526949301362038,
-0.06943529844284058,
0.050897952169179916,
0.011292573064565659,
0.014151237905025482,
0.028653398156166077,
0.028659965842962265,
0.029649468138813972,
0.061648812144994736,
-0.02709178626537323,
-0.012651417404413223,
-0.024524696171283722,
-0.01757381111383438,
0.05224350094795227,
-0.007285769097507,
0.014255581423640251,
0.011512182652950287,
-0.029504522681236267,
-0.01863815449178219,
0.05488959699869156,
0.024291129782795906,
0.022974347695708275,
-0.02205009199678898,
-0.047971662133932114,
0.02742248959839344,
-0.018360227346420288,
-0.047483690083026886,
0.002900779014453292,
-0.0036960782017558813,
-0.0220725666731596,
0.06864435225725174,
0.0007570722955279052,
0.034083712846040726,
0.028227586299180984,
0.044076211750507355,
-0.020845558494329453,
0.06647695600986481,
-0.028418656438589096,
-0.0006364796427078545,
0.04268374294042587,
-0.07356622815132141,
-0.01165629643946886,
-0.03309440240263939,
0.06960897147655487,
-0.07059294730424881,
0.04165017232298851,
0.05628154054284096,
0.018758634105324745,
0.015010638162493706,
-0.03539641201496124,
-0.04640001431107521,
0.01005543302744627,
-0.04391750320792198,
0.07811076194047928,
0.020374778658151627,
-0.05177171528339386,
0.07061325013637543,
0.017207099124789238,
-0.07711668312549591,
0.04562150314450264,
0.02299926057457924,
0.03229261934757233,
0.027663998305797577,
0.04299890249967575,
-0.03808370232582092,
0.002867557806894183,
-0.058829788118600845,
0.028092145919799805,
-0.057631075382232666,
0.0013572553871199489,
0.032232627272605896,
-0.03455301746726036,
-0.024646544829010963,
0.04562251642346382,
-0.004934184718877077,
-0.0027290850412100554,
0.023699479177594185,
-0.05027975142002106,
-0.04337998852133751,
0.0014773127622902393,
0.025240609422326088,
-0.05392419174313545,
0.0019975111354142427,
-0.03779183700680733,
-0.005935018416494131,
0.01993471197783947,
0.010287749581038952,
-0.021240172907710075,
-0.011213748715817928,
0.020360466092824936,
-0.03684844449162483,
-0.04693697392940521,
0.03245406597852707,
0.0032663855236023664,
-0.01580359786748886,
0.02558516152203083,
-0.0013421123148873448,
0.0036681480705738068,
0.03288969770073891,
0.006013031583279371,
0.03879402205348015,
-0.05283239483833313,
-0.02958235703408718,
-0.017476027831435204,
0.007035958580672741,
0.029333272948861122,
0.000656009535305202,
0.04898104816675186,
0.039177943021059036,
0.006531599909067154,
0.027893248945474625,
-0.023884467780590057,
-0.018987109884619713,
0.025909343734383583,
-0.028329897671937943,
0.019733808934688568,
0.008897649124264717,
-0.036904674023389816,
-0.04528327286243439,
-0.013669818639755249,
-0.013953777961432934,
0.03726717084646225,
-0.06190481781959534,
-0.010452094487845898,
0.023865127936005592,
-0.021309947595000267,
-0.05869904160499573,
-0.08150244504213333,
-0.03987949714064598,
-0.04699287191033363,
0.03692297264933586,
0.025075266137719154,
-0.03407490253448486,
0.02976250648498535,
-0.0473954863846302,
-0.0541202537715435,
0.02044922299683094,
0.004148241598159075,
-0.03764422610402107,
0.04251016303896904,
0.03477704897522926,
-0.06314782053232193,
0.007900724187493324,
0.044230591505765915,
-0.026531638577580452,
0.00894569419324398,
0.013437656685709953,
0.0359780453145504,
0.03550228103995323,
0.011278795078396797,
-0.04015863314270973,
-0.021426551043987274,
-0.07842099666595459,
-0.05554140731692314,
-0.04110853001475334,
-0.01165901031345129,
0.049969807267189026
] |
Bharathdamu/wav2vec2-large-xls-r-300m-hindi | [
"pytorch",
"tensorboard",
"wav2vec2",
"automatic-speech-recognition",
"dataset:common_voice",
"transformers",
"generated_from_trainer",
"license:apache-2.0"
] | automatic-speech-recognition | {
"architectures": [
"Wav2Vec2ForCTC"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 10 | null | ---
license: apache-2.0
tags:
- generated_from_trainer
datasets:
- common_voice
model-index:
- name: wav2vec2-large-xls-r-300m-hindi
results: []
---
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# wav2vec2-large-xls-r-300m-hindi
This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) on the common_voice dataset.
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0003
- train_batch_size: 16
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 32
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 500
- num_epochs: 30
- mixed_precision_training: Native AMP
### Training results
### Framework versions
- Transformers 4.11.3
- Pytorch 1.10.0+cu111
- Datasets 1.13.3
- Tokenizers 0.10.3
| [
-0.03477354347705841,
-0.014141252264380455,
-0.023769501596689224,
0.032291870564222336,
0.04064080864191055,
0.033708296716213226,
-0.003554161638021469,
-0.0022180911619216204,
-0.012378408573567867,
0.048370879143476486,
0.03936121240258217,
-0.01884232647716999,
0.01137976162135601,
0.03002992644906044,
-0.03184023126959801,
-0.05291934311389923,
-0.03900409862399101,
0.003854550886899233,
-0.043778304010629654,
-0.009137784130871296,
-0.001044242293573916,
-0.0024266913533210754,
-0.017771249637007713,
0.031419578939676285,
-0.005233714357018471,
0.022107787430286407,
-0.014307252131402493,
0.010897763073444366,
0.01045737974345684,
-0.06148133799433708,
-0.010567281395196915,
-0.0600736178457737,
-0.027844464406371117,
-0.051307313144207,
-0.013333122245967388,
0.01279147807508707,
0.003517905017361045,
0.025593645870685577,
0.02930624596774578,
0.02540896274149418,
-0.009656394831836224,
0.027788717299699783,
-0.014768769964575768,
-0.016922613605856895,
0.032107844948768616,
-0.008621533401310444,
-0.04649725928902626,
-0.017366589978337288,
0.03324985131621361,
-0.03830559179186821,
-0.039515506476163864,
-0.06548265367746353,
-0.02637942135334015,
0.018643394112586975,
-0.015170215629041195,
-0.014707244001328945,
-0.05088476091623306,
-0.03103359416127205,
0.049748506397008896,
-0.056972701102495193,
-0.00812536757439375,
0.0017186299664899707,
-0.07329962402582169,
0.01308638695627451,
0.020960034802556038,
-0.03886669501662254,
0.022748753428459167,
-0.05163807421922684,
0.047376327216625214,
-0.020436156541109085,
0.06803671270608902,
-0.021964112296700478,
0.017210915684700012,
-0.09611605107784271,
0.004218932706862688,
-0.010701161809265614,
0.0185658261179924,
0.06191856041550636,
-0.03234771266579628,
0.06320934742689133,
0.019871478900313377,
0.021528953686356544,
0.029596591368317604,
-0.020062275230884552,
0.023262927308678627,
0.04584743455052376,
-0.041626520454883575,
0.039984386414289474,
0.023172469809651375,
0.02418128028512001,
-0.008013620972633362,
-0.05726386234164238,
-0.013533864170312881,
-0.05680586025118828,
-0.0149741405621171,
0.035050515085458755,
0.03192896023392677,
-0.009185521863400936,
0.0309468824416399,
0.04073163494467735,
0.029460741207003593,
0.021053878590464592,
-0.035116225481033325,
0.08446869999170303,
-0.016895495355129242,
-0.0016512888250872493,
-0.02117728441953659,
-0.020384354516863823,
-0.033478833734989166,
0.0106307128444314,
0.035569362342357635,
-0.04538490250706673,
-0.042033255100250244,
0.029752572998404503,
-0.005184916779398918,
-0.02206946350634098,
0.04581199586391449,
-0.0557958260178566,
-0.04200230538845062,
-0.04262781888246536,
0.033340658992528915,
0.02381235733628273,
-0.0009558898746035993,
0.007957098074257374,
-0.04873644560575485,
0.014076894149184227,
-0.03543177619576454,
-0.045638661831617355,
0.010859508067369461,
-0.00793356355279684,
-0.010816767811775208,
0.04642794653773308,
0.024908656254410744,
-0.05688539892435074,
-0.018481314182281494,
0.018307100981473923,
-0.05160965397953987,
0.02381458319723606,
0.006537255831062794,
0.07026974856853485,
-0.05314788594841957,
-0.08015444874763489,
0.01755509525537491,
0.005944863893091679,
-0.013381555676460266,
0.036730337888002396,
0.021489840000867844,
-0.03156460076570511,
-0.029425283893942833,
-0.016045494005084038,
0.04816703498363495,
-0.07015178352594376,
-0.025142181664705276,
0.06447134166955948,
-0.03814568370580673,
0.0328618548810482,
-0.021145204082131386,
-0.012517198920249939,
0.01603325642645359,
-0.016128329560160637,
-0.015356003306806087,
0.046754080802202225,
0.01638074219226837,
-0.02930586040019989,
-0.03474174812436104,
-0.04768158867955208,
0.0005476680817082524,
0.08492545783519745,
-0.0029537121299654245,
-0.009304077364504337,
-0.016394007951021194,
0.0473172701895237,
0.03430001437664032,
0.029262522235512733,
-0.05340070649981499,
0.040484342724084854,
0.0644015371799469,
0.039359766989946365,
-0.03200006112456322,
0.059369638562202454,
0.028026655316352844,
-0.031220143660902977,
-0.03044971264898777,
0.002385038184002042,
0.013608361594378948,
-0.05822986736893654,
0.00264890119433403,
0.027875596657395363,
0.02039983496069908,
-0.03701038286089897,
-0.007863613776862621,
0.07588627189397812,
-0.0009028385975398123,
-0.020895734429359436,
0.009307497180998325,
-0.012083036825060844,
-0.03364713117480278,
0.027028802782297134,
-0.04403013736009598,
0.001183406333439052,
-0.022936098277568817,
-0.01196580845862627,
-0.00613474240526557,
0.012921239249408245,
0.032163966447114944,
0.05443912744522095,
-0.029154334217309952,
0.08963076770305634,
-0.04016147926449776,
0.0008456630166620016,
-0.021371763199567795,
-0.054934773594141006,
-0.0313434936106205,
0.05136096477508545,
0.03315090015530586,
0.07207690924406052,
-0.0033337604254484177,
-0.06335364282131195,
0.0413132943212986,
0.07163786888122559,
0.06719993054866791,
0.006120381411164999,
-0.02305159717798233,
-0.0024008718319237232,
0.016378816217184067,
0.05000733211636543,
-0.0777709037065506,
-0.0278415996581316,
0.016163526102900505,
0.028227489441633224,
-0.02102993056178093,
0.02956174500286579,
-0.020095689222216606,
0.051112767308950424,
-0.05435081571340561,
-0.0714096948504448,
0.0374375618994236,
0.015372795052826405,
0.01113913208246231,
0.03157685324549675,
-0.006109332665801048,
-0.007781293708831072,
0.025964461266994476,
0.020449195057153702,
0.0030973723623901606,
-0.035897061228752136,
0.006939881946891546,
0.009360866621136665,
0.048364777117967606,
-0.06586533784866333,
0.037601035088300705,
-0.028483856469392776,
0.0002990166540257633,
0.04381680116057396,
-0.032882869243621826,
0.03491891920566559,
0.03285960853099823,
0.009941909462213516,
-0.02419273927807808,
0.01251302845776081,
0.008198327384889126,
0.050814226269721985,
0.05651191249489784,
0.020777437835931778,
0.058992594480514526,
0.009423874318599701,
0.04872862249612808,
0.08852992951869965,
0.02731505036354065,
0.022159582003951073,
0.040868114680051804,
0.07858336716890335,
0.018656615167856216,
-0.02418115921318531,
0.05244280397891998,
-0.03964511677622795,
0.0331711508333683,
-0.03369112312793732,
-0.006109816953539848,
-0.007500420790165663,
-0.009378494694828987,
0.04213649407029152,
0.007049028296023607,
0.004940842743963003,
-0.013165655545890331,
-0.040973104536533356,
-0.03392333537340164,
0.03914612531661987,
-0.01148285437375307,
-0.023539690300822258,
-0.01131454762071371,
-0.00859053060412407,
0.002163349650800228,
-0.08101332932710648,
-0.032994285225868225,
-0.004774908535182476,
-0.0285109244287014,
0.0220536757260561,
-0.0803736001253128,
-0.02705131098628044,
-0.0734071359038353,
-0.01417134515941143,
0.047366250306367874,
0.024363363161683083,
0.022676540538668633,
-0.05820728465914726,
0.00520379189401865,
-0.039811912924051285,
-0.04113902151584625,
-0.0743594616651535,
-0.04289744794368744,
-0.02886071428656578,
-0.06863407045602798,
0.03266987204551697,
0.022762736305594444,
0.0360603928565979,
0.007962332107126713,
-0.008452158421278,
-0.013698610477149487,
-0.02136474847793579,
0.0534699410200119,
0.06223149225115776,
-0.02965952828526497,
-0.06989587098360062,
0.020665623247623444,
-0.03330429270863533,
0.0089390454813838,
-0.021715926006436348,
-0.040105633437633514,
0.07726816833019257,
0.05025719851255417,
0.0387231819331646,
0.026467017829418182,
-0.03578053414821625,
-0.05129840224981308,
-0.05756703391671181,
-0.03041265159845352,
-0.03683623671531677,
-0.020707987248897552,
-0.03375539928674698,
-0.03762228414416313,
-0.020007822662591934,
-0.019594550132751465,
-0.005614398512989283,
-0.02225032076239586,
-0.006489178165793419,
0.032712578773498535,
0.048655737191438675,
0.019678188487887383,
0.015027489513158798,
-0.027578281238675117,
-0.053783856332302094,
0.06848981976509094,
0.01690313220024109,
-0.010611694306135178,
-0.07812713086605072,
-0.035732701420784,
0.012014925479888916,
0.036287322640419006,
-0.013398616574704647,
-0.010863244533538818,
0.0744393914937973,
0.0031045011710375547,
-0.01585988514125347,
0.023715348914265633,
-0.04332304745912552,
-0.007232201285660267,
-0.02978608012199402,
0.006311237346380949,
0.0025084407534450293,
-0.051287487149238586,
0.012079049833118916,
-0.0018510583322495222,
0.048221539705991745,
-0.05733194574713707,
-0.04592987149953842,
-0.009915932081639767,
0.034231726080179214,
0.0526689775288105,
-0.0006706746062263846,
-0.03282230347394943,
-0.014690354466438293,
-0.0471305213868618,
-0.016591724008321762,
0.023547912016510963,
-0.002039095386862755,
0.01731419563293457,
0.060501545667648315,
0.02095331810414791,
-0.008808332495391369,
0.04063913971185684,
0.031679753214120865,
0.0733959972858429,
0.03805351257324219,
-0.042030930519104004,
0.013340402394533157,
-0.029934780672192574,
0.03647201880812645,
-0.015458237379789352,
-0.02017737552523613,
-0.0413542240858078,
-0.0994313433766365,
-0.01981576345860958,
0.02340872772037983,
-0.010820281691849232,
-0.020052146166563034,
0.03462990000844002,
0.002092792186886072,
-0.016437845304608345,
0.009489290416240692,
0.027820833027362823,
0.03583061695098877,
-0.045284584164619446,
0.05239931866526604,
0.014289715327322483,
0.034258607774972916,
-0.058407314121723175,
0.003423198126256466,
-0.02766726166009903,
-0.03612057492136955,
0.008408031426370144,
0.06654193997383118,
0.0003119875327683985,
0.0419372096657753,
0.088925302028656,
0.013896952383220196,
-0.02939547225832939,
0.04729343205690384,
0.05892408639192581,
-0.028711779043078423,
-0.05988239124417305,
0.004691258072853088,
-0.006041369866579771,
-0.044616714119911194,
-0.016444461420178413,
-0.021867500618100166,
0.05779868736863136,
0.03774552047252655,
-0.009506380185484886,
0.01118401624262333,
0.026081085205078125,
-0.01125425100326538,
-0.014901787973940372,
-0.04546878859400749,
-0.04072901979088783,
0.017112992703914642,
-0.04153836891055107,
0.031868770718574524,
0.02470933273434639,
0.004301776178181171,
0.057331182062625885,
0.047301750630140305,
-0.046426378190517426,
-0.035905107855796814,
0.02802756428718567,
0.022527175024151802,
-0.04542473331093788,
-0.04792002961039543,
-0.034493863582611084,
0.04726724699139595,
0.0307115837931633,
0.0001538727810839191,
-0.0665818452835083,
-0.000057311604905407876,
0.050052348524332047,
-0.03911944478750229,
0.046854417771101,
-0.002481006318703294,
0.03327949717640877,
0.067395880818367,
-0.000030363406040123664,
0.019169563427567482,
-0.012847988866269588,
0.004315565340220928,
0.006745815277099609,
0.01573895663022995,
-0.014296544715762138,
-0.028982799500226974,
-0.0762893334031105,
0.007905718870460987,
0.0473284013569355,
0.03605392575263977,
0.056496504694223404,
-0.031018180772662163,
-0.052090100944042206,
-0.002473637694492936,
0.040750399231910706,
-0.035351257771253586,
0.004591621458530426,
0.030714401975274086,
0.0183766707777977,
-0.0354720838367939,
-0.009644507430493832,
-0.016428600996732712,
-0.0035783813800662756,
0.024190543219447136,
-0.005961391609162092,
-0.03721201419830322,
-0.022531718015670776,
0.0353778675198555,
0.010957821272313595,
-0.039727747440338135,
-0.08917152881622314,
0.03780743479728699,
-0.0035314178094267845,
-0.006363525055348873,
0.04313989728689194,
0.027194762602448463,
0.060468852519989014,
0.04493938013911247,
0.014337529428303242,
0.021879281848669052,
-0.026665186509490013,
0.03304965794086456,
-0.03275143727660179,
-0.02660803124308586,
-0.011994692496955395,
-0.03125437721610069,
-0.04520146921277046,
-0.029795322567224503,
-0.038075048476457596,
-0.026893375441432,
0.006255567539483309,
0.020318016409873962,
-0.02058374136686325,
-0.022381559014320374,
-0.012344873510301113,
0.04342270269989967,
-0.024899372830986977,
-0.018232740461826324,
-0.03909974545240402,
-0.013389838859438896,
-0.055471017956733704,
-0.0366378128528595,
0.05217431113123894,
-0.009097259491682053,
0.024567998945713043,
0.029689520597457886,
0.015057281590998173,
0.03447777032852173,
-0.012880480848252773,
-0.011542986147105694,
0.02300124615430832,
0.003184666158631444,
-0.03550979122519493,
-0.029473967850208282,
0.033533815294504166,
0.019518990069627762,
0.030418017879128456,
-0.02211645618081093,
0.03422634303569794,
0.01821792684495449,
-0.022544527426362038,
-0.0013514206511899829,
0.01884516514837742,
0.01876991242170334,
-0.06521748006343842,
-0.03923160582780838,
0.01267570722848177,
-0.04760599508881569,
0.009898349642753601,
-0.02715638466179371,
0.0033624933566898108,
0.01653483510017395,
0.02158399298787117,
0.05296120047569275,
-0.016865015029907227,
-0.030189882963895798,
0.04780484735965729,
-0.031132571399211884,
0.019372889772057533,
-0.05779186636209488,
0.0410919226706028,
-0.021744832396507263,
0.019114900380373,
-0.01733923889696598,
0.012510514818131924,
-0.0522972047328949,
0.021426914259791374,
-0.005398799665272236,
0.0051856026984751225,
-0.01606263592839241,
0.030998244881629944,
-0.007624076679348946,
0.025769904255867004,
-0.01044076681137085,
0.03691062703728676,
-0.054456815123558044,
0.06509129703044891,
-0.023783177137374878,
0.02352515235543251,
-0.023501910269260406,
0.005681885872036219,
-0.03731523081660271,
-0.0029229908250272274,
-0.009445562958717346,
-0.038478247821331024,
0.036887478083372116,
0.057146571576595306,
0.06146650016307831,
0.03497513756155968,
-0.039591651409864426,
-0.009283345192670822,
0.013004426844418049,
-0.03481508791446686,
-0.015061808750033379,
-0.004681999795138836,
0.02895466424524784,
0.016378164291381836,
0.03836614638566971,
0.033320870250463486,
-0.04745044931769371,
-0.06929784268140793,
0.04794004186987877,
0.006228300742805004,
0.010156676173210144,
0.027153849601745605,
0.02465478517115116,
0.02978048473596573,
0.06426853686571121,
-0.02298511005938053,
-0.012129719369113445,
-0.026435445994138718,
-0.020871330052614212,
0.05364968255162239,
-0.00893458817154169,
0.011513735167682171,
0.01211452018469572,
-0.031150255352258682,
-0.020033298060297966,
0.05429892987012863,
0.029045002534985542,
0.022819707170128822,
-0.02051607333123684,
-0.04687332361936569,
0.029545249417424202,
-0.01822608709335327,
-0.045341674238443375,
0.0004779878945555538,
-0.0052534849382936954,
-0.017385976389050484,
0.073549285531044,
0.00554619962349534,
0.03370126336812973,
0.030034366995096207,
0.043580781668424606,
-0.02463397942483425,
0.06710647791624069,
-0.02155940793454647,
-0.005804575514048338,
0.045899197459220886,
-0.0709320679306984,
-0.01128728874027729,
-0.03188970685005188,
0.07128223776817322,
-0.07098063081502914,
0.03639385476708412,
0.05933794379234314,
0.020119711756706238,
0.015243581496179104,
-0.03620808571577072,
-0.04146057367324829,
0.014380999840795994,
-0.042670365422964096,
0.07630089670419693,
0.01984553039073944,
-0.05069003999233246,
0.06710755079984665,
0.017917068675160408,
-0.08045023679733276,
0.046019043773412704,
0.022224238142371178,
0.033276528120040894,
0.027767961844801903,
0.04000619426369667,
-0.04121582210063934,
0.0013548510614782572,
-0.058864932507276535,
0.030586551874876022,
-0.05696268379688263,
0.003100759582594037,
0.03365270793437958,
-0.03488420322537422,
-0.024155406281352043,
0.04501023516058922,
-0.006151086185127497,
-0.008476659655570984,
0.02557317167520523,
-0.051416657865047455,
-0.03946809098124504,
0.0016999957151710987,
0.02977708727121353,
-0.05434279143810272,
0.0064926776103675365,
-0.03883442282676697,
-0.0019388094078749418,
0.02168716862797737,
0.008812119252979755,
-0.016412021592259407,
-0.008322453126311302,
0.013380685821175575,
-0.03989626094698906,
-0.04649413377046585,
0.030870357528328896,
0.003932736814022064,
-0.017972225323319435,
0.030661052092909813,
0.00005999099448672496,
0.00545610161498189,
0.03380921110510826,
0.006606407463550568,
0.04258551821112633,
-0.055313535034656525,
-0.029184387996792793,
-0.018856221809983253,
0.00654964754357934,
0.02755560725927353,
-0.00226630549877882,
0.0489383302628994,
0.03709396719932556,
0.006359187886118889,
0.02618429996073246,
-0.026782440021634102,
-0.020596027374267578,
0.026169195771217346,
-0.027551542967557907,
0.02399071492254734,
0.010211772285401821,
-0.04374365508556366,
-0.04610326886177063,
-0.013048677705228329,
-0.009777667932212353,
0.037919748574495316,
-0.05940207839012146,
-0.00767362117767334,
0.024429146200418472,
-0.02146783471107483,
-0.06233206018805504,
-0.08019787818193436,
-0.038014184683561325,
-0.042604077607393265,
0.03941722214221954,
0.025627968832850456,
-0.03934972360730171,
0.026902444660663605,
-0.05081329494714737,
-0.056234151124954224,
0.020167749375104904,
-0.0004830892139580101,
-0.03252337872982025,
0.03888443484902382,
0.0356135219335556,
-0.06569373607635498,
0.008443011902272701,
0.04553559795022011,
-0.028128214180469513,
0.011061334051191807,
0.014549365267157555,
0.03301069512963295,
0.03382065147161484,
0.012899613939225674,
-0.03873281925916672,
-0.02201494574546814,
-0.0793834775686264,
-0.05036032199859619,
-0.03652399405837059,
-0.012863385491073132,
0.05141477659344673
] |
Bhuvana/t5-base-spellchecker | [
"pytorch",
"t5",
"text2text-generation",
"transformers",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"T5ForConditionalGeneration"
],
"model_type": "t5",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": true,
"length_penalty": 2,
"max_length": 200,
"min_length": 30,
"no_repeat_ngram_size": 3,
"num_beams": 4,
"prefix": "summarize: "
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": true,
"max_length": 300,
"num_beams": 4,
"prefix": "translate English to German: "
},
"translation_en_to_fr": {
"early_stopping": true,
"max_length": 300,
"num_beams": 4,
"prefix": "translate English to French: "
},
"translation_en_to_ro": {
"early_stopping": true,
"max_length": 300,
"num_beams": 4,
"prefix": "translate English to Romanian: "
}
}
} | 93 | null | ---
widget:
- text: "christmas is celbrated on decembr 25 evry ear"
---
# Spell checker using T5 base transformer
A simple spell checker built using T5-Base transformer. To use this model
```
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Bhuvana/t5-base-spellchecker")
model = AutoModelForSeq2SeqLM.from_pretrained("Bhuvana/t5-base-spellchecker")
def correct(inputs):
input_ids = tokenizer.encode(inputs,return_tensors='pt')
sample_output = model.generate(
input_ids,
do_sample=True,
max_length=50,
top_p=0.99,
num_return_sequences=1
)
res = tokenizer.decode(sample_output[0], skip_special_tokens=True)
return res
text = "christmas is celbrated on decembr 25 evry ear"
print(correct(text))
```
This should print the corrected statement
```
christmas is celebrated on december 25 every year
```
You can also type the text under the Hosted inference API and get predictions online.
| [
-0.02279718406498432,
-0.02218858152627945,
-0.00280205300077796,
0.07789692282676697,
0.030532360076904297,
0.052159383893013,
-0.0076005426235497,
-0.006983884144574404,
-0.07977672666311264,
0.05527869611978531,
0.018648512661457062,
0.00027573792613111436,
0.013785410672426224,
0.014793068170547485,
-0.05019000917673111,
-0.022646626457571983,
-0.01497464720159769,
0.005344743840396404,
-0.007538098841905594,
-0.03963082283735275,
-0.014773968607187271,
-0.0006994089344516397,
-0.0034893902484327555,
0.0001699666172498837,
-0.01023823581635952,
0.04570598900318146,
-0.0006005204049870372,
0.045460354536771774,
0.042033933103084564,
-0.054558105766773224,
0.004124582279473543,
-0.02633655071258545,
-0.025488639250397682,
-0.006052971351891756,
-0.034598883241415024,
0.020022857934236526,
0.013899704441428185,
0.007980577647686005,
0.006659406702965498,
0.07769539207220078,
0.012942370027303696,
0.04528246447443962,
0.006230876315385103,
-0.03688877075910568,
0.04067431017756462,
0.00844341516494751,
-0.04732612520456314,
-0.003106446471065283,
0.035642109811306,
-0.017369382083415985,
-0.06502535194158554,
-0.0459006205201149,
-0.004437202587723732,
-0.0077620516531169415,
-0.03233999013900757,
0.008967343717813492,
-0.054411858320236206,
0.005523897707462311,
0.048076365143060684,
-0.014745472930371761,
-0.03852669894695282,
0.05693360045552254,
-0.057411108165979385,
0.017599666491150856,
0.05305781215429306,
-0.018624864518642426,
0.016443049535155296,
-0.04713639244437218,
0.03030553087592125,
-0.04079226776957512,
0.05999753251671791,
-0.01946660317480564,
0.03125802055001259,
-0.10825162380933762,
0.010597536340355873,
-0.03087563067674637,
0.05081496015191078,
0.038074590265750885,
-0.019874949008226395,
0.02222648449242115,
0.04271543025970459,
0.026165014132857323,
0.0072336443699896336,
-0.00943959690630436,
-0.00630686292424798,
0.033237360417842865,
-0.03980718553066254,
-0.022816602140665054,
0.024441594257950783,
0.030383294448256493,
-0.05617046728730202,
-0.044056206941604614,
-0.014870606362819672,
-0.037839289754629135,
-0.030949890613555908,
0.006823888048529625,
0.02875659056007862,
-0.004465117584913969,
0.038478270173072815,
0.03499215841293335,
0.044508472084999084,
0.025587428361177444,
-0.01874205283820629,
0.055106814950704575,
-0.0012348911259323359,
0.022794248536229134,
-0.04108945652842522,
-0.06024819612503052,
-0.009904956445097923,
0.06093261390924454,
0.03414352610707283,
-0.02761559747159481,
-0.024068929255008698,
0.05042313411831856,
0.030677616596221924,
0.0027040462009608746,
0.05912090092897415,
-0.021967284381389618,
-0.03963558003306389,
-0.02788408100605011,
0.03677865490317345,
0.020944148302078247,
0.0014539844123646617,
0.02202959731221199,
-0.0220644474029541,
0.02611522562801838,
-0.047257911413908005,
-0.01802019029855728,
-0.02566751092672348,
0.049394138157367706,
-0.02081339992582798,
0.04120514169335365,
0.0166338961571455,
-0.052897073328495026,
0.008381448686122894,
0.037767890840768814,
-0.04095585271716118,
0.041787467896938324,
0.01632370799779892,
0.09019111096858978,
-0.0888090506196022,
-0.0512671060860157,
0.01829449273645878,
-0.006915447302162647,
-0.02908739633858204,
0.014058548957109451,
0.017063677310943604,
0.0021150242537260056,
-0.04292118549346924,
-0.002387736923992634,
0.07394608855247498,
-0.04387005791068077,
0.015635965391993523,
0.025606058537960052,
-0.012841235846281052,
0.02857368066906929,
-0.04346546530723572,
0.029581956565380096,
0.029899688437581062,
0.02413724735379219,
-0.02672578953206539,
0.04312558099627495,
0.0010680753039196134,
0.0019317197147756815,
-0.07217665761709213,
-0.03245072066783905,
-0.002962253987789154,
0.0681755319237709,
0.025616152212023735,
-0.016676021739840508,
-0.0010877614840865135,
0.034495819360017776,
0.04554380849003792,
0.034112051129341125,
-0.03458808362483978,
0.0409834124147892,
0.053849708288908005,
0.05683803930878639,
-0.008922873064875603,
0.05052235722541809,
-0.01590416580438614,
-0.04553217813372612,
-0.014479831792414188,
0.033584367483854294,
-0.014495058916509151,
-0.05456461012363434,
0.03644464164972305,
0.01700633578002453,
-0.03854769840836525,
-0.017763685435056686,
-0.026871347799897194,
0.04578062891960144,
0.0009281771490350366,
0.005557006224989891,
0.0047521875239908695,
0.0006609786651097238,
-0.015941129997372627,
0.038040678948163986,
-0.018750103190541267,
-0.0016511776484549046,
-0.03408756107091904,
-0.0442376472055912,
-0.03745697811245918,
0.012629984878003597,
0.039636142551898956,
0.039040762931108475,
-0.0029979157261550426,
0.10734505206346512,
-0.053987354040145874,
0.008328874595463276,
-0.05826963111758232,
-0.05287666618824005,
-0.0036889049224555492,
0.05129501596093178,
0.0032662616576999426,
0.05077751725912094,
0.004655806813389063,
-0.028589023277163506,
0.0351930670440197,
0.06097118929028511,
0.019384467974305153,
0.000550977885723114,
-0.0208615493029356,
-0.020287534222006798,
0.035526491701602936,
0.06298571079969406,
-0.02187783643603325,
-0.039823975414037704,
0.026659606024622917,
0.05355408042669296,
0.002842941088601947,
0.02153506502509117,
-0.009331108070909977,
0.0031673037447035313,
-0.03334205597639084,
-0.03835650160908699,
0.05551910400390625,
0.03042270801961422,
0.03465726226568222,
0.03393854573369026,
-0.007062761578708887,
0.006466940511018038,
0.011236963793635368,
-0.005329332780092955,
0.006161677651107311,
-0.05020897090435028,
-0.004382591228932142,
0.008337932638823986,
0.0638803169131279,
-0.07205838710069656,
0.025446761399507523,
-0.011962972581386566,
0.013614089228212833,
0.031866446137428284,
-0.02934553101658821,
0.04604489728808403,
0.03412264958024025,
0.038672856986522675,
-0.03352981433272362,
0.01931004412472248,
-0.00001317052920057904,
0.0820077434182167,
0.06207145377993584,
-0.012652626261115074,
0.03220347687602043,
0.012674316763877869,
0.03432435169816017,
0.0576510913670063,
0.024234429001808167,
0.007696427870541811,
0.058229804039001465,
0.08494451642036438,
-0.0022980370558798313,
-0.004430897533893585,
0.037009768187999725,
-0.056441109627485275,
0.048189181834459305,
-0.037770237773656845,
0.03168025612831116,
-0.011638845317065716,
-0.014982201159000397,
0.036174874752759933,
0.03186506778001785,
-0.026789391413331032,
0.004870845936238766,
-0.03649384155869484,
0.0015705812256783247,
0.012117104604840279,
-0.0008436857024207711,
-0.022846879437565804,
-0.016091015189886093,
-0.04239528626203537,
0.04319708049297333,
-0.05776847153902054,
-0.044279009103775024,
-0.012298068031668663,
-0.01727249287068844,
0.009787299670279026,
-0.07466000318527222,
-0.02829471044242382,
-0.0392879955470562,
-0.016122298315167427,
0.023378103971481323,
-0.0009072461980395019,
0.005328111816197634,
-0.022175170481204987,
0.029832687228918076,
-0.03975188732147217,
-0.016804395243525505,
-0.04408802092075348,
-0.06468596309423447,
-0.03865488991141319,
-0.06602821499109268,
0.04817868024110794,
0.024772759526968002,
0.03790988400578499,
-0.001005601603537798,
0.005691023543477058,
-0.02588665671646595,
0.0020195709075778723,
0.06259261071681976,
0.028024422004818916,
-0.04961494356393814,
-0.05370384827256203,
0.048756193369627,
-0.042832113802433014,
0.027084875851869583,
-0.01730337180197239,
-0.014005295932292938,
0.0691988617181778,
0.06603452563285828,
0.014449568465352058,
0.0036056863609701395,
-0.021794218569993973,
-0.05789543688297272,
-0.05430104583501816,
-0.02773931808769703,
-0.0014662547037005424,
-0.021392827853560448,
-0.031983599066734314,
-0.016440408304333687,
-0.012954428791999817,
-0.024184660986065865,
-0.019062967970967293,
0.0011720313923433423,
0.02819218300282955,
0.010924066416919231,
0.06200174242258072,
0.026485124602913857,
0.05510431528091431,
-0.021409831941127777,
-0.007232575677335262,
0.05688004195690155,
0.01146725844591856,
0.04315298795700073,
-0.0685921460390091,
-0.02337614633142948,
0.04502991959452629,
0.013486688025295734,
0.010427993722259998,
-0.03103131800889969,
0.08537980169057846,
0.006917954888194799,
-0.020632218569517136,
0.006542891729623079,
-0.0038708774372935295,
-0.0006077347788959742,
-0.0060785431414842606,
-0.013576247729361057,
-0.011266548186540604,
-0.0570468045771122,
-0.023933229967951775,
0.003908880520612001,
0.030325105413794518,
-0.08459586650133133,
-0.01639384776353836,
-0.028982389718294144,
0.04353927820920944,
0.012877851724624634,
0.0075814975425601006,
-0.04972976818680763,
-0.011577126570045948,
-0.03991275653243065,
-0.03434786573052406,
0.0260624960064888,
0.0063164993189275265,
0.04283512011170387,
0.02867060899734497,
0.04492192342877388,
-0.06014354154467583,
0.009484199807047844,
0.031030135229229927,
0.041560105979442596,
0.005326386075466871,
-0.03581119701266289,
0.0135194081813097,
-0.00606544828042388,
0.013914696872234344,
0.014234152622520924,
-0.028122207149863243,
-0.060336753726005554,
-0.07098175585269928,
-0.0033716645557433367,
0.03268720582127571,
-0.003212299896404147,
-0.04526126757264137,
0.00912921316921711,
-0.001931454287841916,
-0.02448534406721592,
-0.009816845878958702,
0.005722394213080406,
0.013858762569725513,
-0.02898973412811756,
0.026096489280462265,
-0.0025853565894067287,
0.01902214251458645,
-0.04581722989678383,
0.016347020864486694,
-0.0012739903759211302,
-0.006608543451875448,
-0.017194343730807304,
0.049225494265556335,
0.010313747450709343,
0.07153704017400742,
0.06355595588684082,
0.015631703659892082,
-0.014965023845434189,
0.050187740474939346,
0.05065971985459328,
-0.02373163215816021,
-0.042931169271469116,
0.01337253488600254,
-0.004519482608884573,
-0.04361993446946144,
-0.016257569193840027,
-0.029604895040392876,
0.0090251499786973,
0.01467182394117117,
-0.017934296280145645,
-0.016636591404676437,
-0.009418015368282795,
0.0016583160031586885,
-0.03926718607544899,
-0.06216994673013687,
-0.030249157920479774,
0.01949414424598217,
-0.01942218653857708,
0.03121606819331646,
0.017868515104055405,
-0.0061208889819681644,
0.03983558341860771,
0.04001680016517639,
-0.019117198884487152,
-0.0227641761302948,
0.03762917220592499,
0.03123500943183899,
-0.05104166269302368,
-0.07174639403820038,
-0.020729325711727142,
-0.004337626975029707,
0.05867138132452965,
-0.0298573300242424,
-0.08511762320995331,
-0.010990540497004986,
0.04147646948695183,
-0.013195998966693878,
0.0696074441075325,
-0.026055047288537025,
0.02784440480172634,
0.06926479190587997,
-0.010483436286449432,
0.029071033000946045,
-0.03575286269187927,
-0.0008342135697603226,
0.017730096355080605,
0.05528650060296059,
-0.043994560837745667,
-0.04611325263977051,
-0.042695581912994385,
0.03025078773498535,
0.021990487352013588,
0.04645905643701553,
0.05860279127955437,
0.0035236442927271128,
-0.04976058378815651,
0.019044041633605957,
0.024079784750938416,
-0.019763177260756493,
0.02249269001185894,
0.008797957561910152,
0.016299959272146225,
-0.06269752234220505,
-0.03678370639681816,
0.00545869255438447,
0.011994260363280773,
0.03712543472647667,
0.004338488448411226,
-0.062000200152397156,
-0.03318037837743759,
0.02024567499756813,
-0.022822532802820206,
-0.053430456668138504,
-0.0708329901099205,
-0.0006849085330031812,
0.015470834448933601,
0.008473769761621952,
0.04924888163805008,
0.03376682847738266,
0.02623440884053707,
0.05498140677809715,
-0.00245572323910892,
0.02477416768670082,
-0.012996683828532696,
0.046565644443035126,
-0.05221641808748245,
-0.006692030932754278,
-0.015306387096643448,
-0.05700717866420746,
0.018579715862870216,
-0.03781188651919365,
-0.02868926152586937,
-0.07594127207994461,
-0.006311939097940922,
0.01951710879802704,
-0.014028309844434261,
0.018323495984077454,
-0.029346706345677376,
0.059419769793748856,
-0.043525055050849915,
-0.036587659269571304,
-0.05789925530552864,
0.003816744778305292,
-0.1029890701174736,
-0.029799584299325943,
0.027012119069695473,
0.004352246876806021,
0.032028716057538986,
0.022175997495651245,
-0.008017981424927711,
0.03724459931254387,
-0.009955103509128094,
-0.0663648396730423,
0.01670946553349495,
0.005491162650287151,
-0.03334953263401985,
-0.02705194242298603,
0.0038838547188788652,
-0.009042475372552872,
0.024431949481368065,
-0.057600896805524826,
-0.002128829713910818,
0.014432531781494617,
0.00030193739803507924,
-0.0031556161120533943,
0.011289452202618122,
0.036855299025774,
-0.08691051602363586,
-0.03125268220901489,
-0.01133983675390482,
-0.04335673898458481,
0.0432480126619339,
0.01714014634490013,
-0.053024157881736755,
0.016009492799639702,
0.023559339344501495,
0.052677251398563385,
0.01689610816538334,
-0.020709875971078873,
0.012028106488287449,
-0.019112348556518555,
0.031639426946640015,
-0.021104689687490463,
0.040689270943403244,
-0.03158560395240784,
0.0069859689101576805,
-0.02861928753554821,
0.019770579412579536,
-0.029803315177559853,
0.04026481881737709,
-0.027030877768993378,
0.0017924041021615267,
-0.02617737650871277,
0.04945686087012291,
-0.044042084366083145,
0.04793926328420639,
0.0008422099053859711,
0.019558357074856758,
-0.06671106070280075,
0.03348763659596443,
-0.04644222557544708,
0.024802984669804573,
-0.02969839796423912,
-0.009960477240383625,
-0.012737380340695381,
-0.03786809369921684,
-0.016950102522969246,
-0.029785705730319023,
0.030206331983208656,
0.050632767379283905,
0.01050228625535965,
0.025990517809987068,
0.002315537305548787,
-0.0033166951034218073,
0.03373025357723236,
-0.047424737364053726,
-0.020521730184555054,
-0.03457587584853172,
0.04375448077917099,
-0.03239702805876732,
0.011992227286100388,
0.030049212276935577,
-0.04389317333698273,
-0.06423503160476685,
0.05258282274007797,
0.01790614239871502,
0.00845301803201437,
-0.0024300869554281235,
0.011824918910861015,
0.05443573370575905,
0.02314460277557373,
-0.0233294777572155,
0.012534038163721561,
-0.010209191590547562,
-0.030418500304222107,
0.023984696716070175,
-0.019076045602560043,
0.01766032725572586,
0.008736892603337765,
-0.0117624681442976,
-0.04598667472600937,
0.05620092898607254,
0.015726974233984947,
0.020345784723758698,
-0.00727667473256588,
-0.06479518115520477,
0.031235773116350174,
0.0028231951873749495,
-0.04648544639348984,
0.004525128751993179,
0.004173830151557922,
-0.061275359243154526,
0.06263141334056854,
-0.009539890103042126,
-0.0004877789760939777,
0.024148039519786835,
0.039185501635074615,
-0.02467762865126133,
0.013907691463828087,
-0.02769535966217518,
0.005827645305544138,
0.0343710295855999,
-0.05703742429614067,
0.012652254663407803,
-0.0325443297624588,
0.07388221472501755,
-0.05670097470283508,
0.03363608941435814,
0.02085852436721325,
0.015514358878135681,
0.01401558704674244,
-0.029757007956504822,
-0.02506539598107338,
0.023787185549736023,
-0.054896507412195206,
0.07346890866756439,
-0.02152758464217186,
-0.02530890516936779,
0.07317886501550674,
0.006337261293083429,
-0.08677691966295242,
0.037795837968587875,
0.048460062593221664,
0.015528113581240177,
0.026366548612713814,
0.05793358013033867,
-0.052197251468896866,
-0.0007129760342650115,
-0.034221798181533813,
-0.025807909667491913,
-0.06077490374445915,
-0.010334952734410763,
0.006830526050180197,
-0.05842158570885658,
-0.016523580998182297,
0.05070493370294571,
0.01266139280050993,
0.008747197687625885,
0.024599939584732056,
-0.06861508637666702,
-0.04635501652956009,
-0.002371590118855238,
0.029067862778902054,
-0.03362876921892166,
0.014856518246233463,
-0.042754486203193665,
0.024548782035708427,
0.00835184846073389,
-0.022511720657348633,
-0.02086336724460125,
-0.0018022962613031268,
-0.0042250570841133595,
-0.05985080823302269,
-0.03695308044552803,
0.040537893772125244,
0.028449159115552902,
-0.04427722841501236,
0.0433686263859272,
-0.018299035727977753,
0.004537763074040413,
0.03211067616939545,
0.01499635074287653,
0.05346261337399483,
-0.03937503322958946,
0.012844739481806755,
0.009355257265269756,
0.02349560149013996,
0.03360508382320404,
-0.024198073893785477,
0.054430410265922546,
0.033244144171476364,
0.0023995409719645977,
-0.028767770156264305,
-0.02318323217332363,
-0.03184623271226883,
0.000898950092960149,
-0.04512220248579979,
0.04391324147582054,
-0.007375012151896954,
-0.031600724905729294,
-0.0542108453810215,
-0.04507977515459061,
-0.021665100008249283,
0.03381209075450897,
-0.06396140903234482,
-0.006045585032552481,
0.055799756199121475,
-0.017362892627716064,
-0.03790952265262604,
-0.06842973083257675,
-0.042090464383363724,
-0.02533264085650444,
0.011127659119665623,
0.050830595195293427,
-0.06023600324988365,
0.0073522222228348255,
-0.04393992945551872,
-0.06661046296358109,
0.043021414428949356,
0.04860358312726021,
-0.044953931123018265,
0.04825659096240997,
0.01992919109761715,
-0.051837194710969925,
0.028583334758877754,
0.05554051324725151,
-0.05640821531414986,
0.019656941294670105,
0.024628499522805214,
0.021280094981193542,
0.04638160392642021,
0.031150635331869125,
-0.04917985945940018,
-0.010956707410514355,
-0.07905081659555435,
-0.028582390397787094,
-0.0609939880669117,
-0.003837753087282181,
0.026177845895290375
] |
BigSalmon/GPTNeo350MInformalToFormalLincoln2 | [
"pytorch",
"gpt_neo",
"text-generation",
"transformers",
"has_space"
] | text-generation | {
"architectures": [
"GPTNeoForCausalLM"
],
"model_type": "gpt_neo",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8 | null | Trained on this model: https://huggingface.co/xhyi/PT_GPTNEO350_ATG/tree/main
```
How To Make Prompt:
informal english: i am very ready to do that just that.
Translated into the Style of Abraham Lincoln: you can assure yourself of my readiness to work toward this end.
Translated into the Style of Abraham Lincoln: please be assured that i am most ready to undertake this laborious task.
***
informal english: space is huge and needs to be explored.
Translated into the Style of Abraham Lincoln: space awaits traversal, a new world whose boundaries are endless.
Translated into the Style of Abraham Lincoln: space is a ( limitless / boundless ) expanse, a vast virgin domain awaiting exploration.
***
informal english: corn fields are all across illinois, visible once you leave chicago.
Translated into the Style of Abraham Lincoln: corn fields ( permeate illinois / span the state of illinois / ( occupy / persist in ) all corners of illinois / line the horizon of illinois / envelop the landscape of illinois ), manifesting themselves visibly as one ventures beyond chicago.
informal english:
```
```
- declining viewership facing the nba.
- does not have to be this way.
- in fact, many solutions exist.
- the four point line would surely draw in eyes.
Text: failing to draw in the masses, the NBA has fallen into disrepair. such does not have to be the case, however. in fact, a myriad of simple, relatively cheap solutions could revive the league. the addition of the much-hyped four-point line would surely juice viewership.
***
-
``` | [
-0.0027251923456788063,
-0.018140802159905434,
-0.04339544102549553,
0.03958175331354141,
0.04799448326230049,
0.045399852097034454,
-0.001396508188918233,
0.02285715378820896,
-0.04878780618309975,
0.03913399949669838,
0.01727079227566719,
-0.018083617091178894,
0.018935438245534897,
0.007232384290546179,
-0.0157345961779356,
-0.014095678925514221,
-0.04189106822013855,
0.018837057054042816,
-0.0372500978410244,
-0.02924945577979088,
0.04577396810054779,
-0.003082688432186842,
0.0007718010456301272,
0.03568068891763687,
-0.012366761453449726,
-0.0018203521613031626,
-0.00440186494961381,
0.022422220557928085,
0.04252418503165245,
-0.060601428151130676,
0.00777946412563324,
-0.06136028841137886,
0.0034020778257399797,
-0.036165472120046616,
-0.05699674040079117,
0.040388401597738266,
0.003850763663649559,
0.01704566739499569,
0.018381556496024132,
0.05035213753581047,
-0.0172383151948452,
0.021434597671031952,
0.0017240812303498387,
-0.0173785537481308,
0.020694350823760033,
-0.0035098118241876364,
-0.035493262112140656,
-0.04400936886668205,
0.05667835474014282,
-0.008428792469203472,
-0.023530039936304092,
-0.07013624161481857,
0.0024979475419968367,
0.002224243013188243,
0.010095612145960331,
-0.004248956684023142,
-0.07053280621767044,
-0.026138342916965485,
0.09340067952871323,
-0.0737692266702652,
-0.04174136370420456,
0.030948854982852936,
-0.06834809482097626,
0.04975185915827751,
0.028047045692801476,
-0.044722139835357666,
0.018695805221796036,
-0.029371416196227074,
0.020621735602617264,
-0.01833241619169712,
0.025904467329382896,
-0.04080255702137947,
0.03342718631029129,
-0.0801054909825325,
-0.018030574545264244,
-0.008294414728879929,
0.042134057730436325,
0.030499717220664024,
-0.06107436865568161,
0.07992467284202576,
0.01628120243549347,
-0.003632833482697606,
0.025061093270778656,
-0.0063729966059327126,
-0.023655736818909645,
0.03345558047294617,
-0.04093198850750923,
-0.00481345783919096,
0.013775899074971676,
0.03972342610359192,
-0.02350260689854622,
-0.0628407672047615,
-0.01195500511676073,
-0.05520772933959961,
-0.00025639464729465544,
0.029600512236356735,
0.05997895449399948,
-0.020840739831328392,
0.04311734437942505,
0.01326601393520832,
0.04031464457511902,
0.05399112030863762,
-0.01082997303456068,
0.0438559353351593,
-0.009495493955910206,
0.009428883902728558,
-0.04027010500431061,
-0.021631158888339996,
-0.04734255373477936,
0.020203180611133575,
0.010671370662748814,
-0.0526714064180851,
-0.020338762551546097,
0.027141038328409195,
0.015204336494207382,
-0.02586706168949604,
0.03565845638513565,
-0.038827694952487946,
-0.048334404826164246,
-0.023851120844483376,
0.038577187806367874,
0.025379173457622528,
0.014046686701476574,
0.00798925943672657,
-0.08744293451309204,
0.04730307310819626,
-0.06009860336780548,
-0.06009541451931,
-0.04569682478904724,
0.04429849982261658,
-0.005836059805005789,
0.0346650667488575,
0.03338583558797836,
-0.08693503588438034,
0.03619842231273651,
0.014582808129489422,
-0.057104893028736115,
0.031197503209114075,
0.006759840529412031,
0.08227290958166122,
-0.06119533255696297,
-0.06412643939256668,
0.0036038507241755724,
0.009158081375062466,
-0.026856394484639168,
0.00713737029582262,
0.0179823599755764,
-0.0400259867310524,
-0.023189688101410866,
0.012474442832171917,
0.06858128309249878,
-0.043525174260139465,
-0.010304855182766914,
0.04761488363146782,
0.0015189163386821747,
0.058652009814977646,
-0.024585390463471413,
-0.017784032970666885,
0.004724777303636074,
0.03502415865659714,
-0.036867156624794006,
0.025231873616576195,
-0.028438493609428406,
-0.01617961935698986,
-0.05415792763233185,
-0.036526042968034744,
0.006432195194065571,
0.036348022520542145,
-0.02721242792904377,
-0.018690649420022964,
-0.04429079592227936,
-0.0020367673132568598,
0.046870797872543335,
0.03106546960771084,
-0.017045356333255768,
0.03439920395612717,
0.04112844541668892,
0.03800733759999275,
-0.04289303719997406,
0.048200495541095734,
0.0284104086458683,
-0.03263307362794876,
-0.03821313753724098,
0.0449419766664505,
0.017508825287222862,
-0.03221438080072403,
0.027372946962714195,
0.055695679038763046,
-0.012184341438114643,
-0.028649287298321724,
-0.013103323057293892,
0.06038961932063103,
-0.02569330856204033,
-0.0027588901575654745,
0.004409250803291798,
-0.03678538277745247,
-0.021359650418162346,
0.042238567024469376,
-0.048941098153591156,
0.006112928502261639,
-0.038765888661146164,
-0.0359182134270668,
0.002571082441136241,
0.03022526577115059,
0.029032887890934944,
0.04644174501299858,
-0.011611200869083405,
0.11520153284072876,
-0.02565225213766098,
0.003498520003631711,
-0.07396185398101807,
-0.05184931308031082,
-0.0017031196039170027,
0.041622593998909,
-0.000871948548592627,
0.052192382514476776,
0.00601956108585,
-0.07108022272586823,
0.036109600216150284,
0.0707254484295845,
0.03883720561861992,
0.010060911066830158,
-0.02727648802101612,
0.018989937379956245,
0.03398599475622177,
0.05418296530842781,
-0.028019912540912628,
-0.034337278455495834,
0.04575803130865097,
0.05118697136640549,
-0.04159260168671608,
0.006936227902770042,
-0.007543280255049467,
0.01972193270921707,
-0.017606880515813828,
-0.05866547301411629,
0.02134486474096775,
0.05279950425028801,
-0.0020922261755913496,
0.03680473193526268,
-0.012838481925427914,
0.035151995718479156,
0.027669632807374,
0.014647845178842545,
0.005853388924151659,
-0.04170233756303787,
-0.016833364963531494,
0.003850729437544942,
0.0762542113661766,
-0.05179673060774803,
0.05932759866118431,
-0.0004874656442552805,
0.013705718331038952,
0.034122053533792496,
0.0011706985533237457,
0.045187585055828094,
0.07418272644281387,
0.01584949530661106,
-0.04232259839773178,
0.027633359655737877,
0.007891279645264149,
0.031578466296195984,
0.05951676517724991,
-0.008595624007284641,
0.049057334661483765,
-0.014825677499175072,
0.038892775774002075,
0.06265943497419357,
0.039498645812273026,
-0.015071102418005466,
0.030185246840119362,
0.061370376497507095,
0.0022946028038859367,
0.0007459956686943769,
0.05101447179913521,
-0.06176932156085968,
0.004351955372840166,
-0.010834946297109127,
0.040616679936647415,
-0.009361296892166138,
-0.012968990951776505,
0.023995783179998398,
0.016342680901288986,
-0.015956871211528778,
0.003828116925433278,
0.004792857449501753,
0.004000106826424599,
0.016726916655898094,
-0.014996509999036789,
0.013723067007958889,
-0.0250343419611454,
-0.057208411395549774,
0.014161690138280392,
-0.08030204474925995,
-0.025129124522209167,
0.004011422395706177,
-0.011214488185942173,
0.0265171080827713,
-0.07054499536752701,
-0.025995565578341484,
-0.05303199589252472,
-0.020574070513248444,
0.04082725569605827,
0.028912128880620003,
0.014110594056546688,
-0.027237651869654655,
0.004583817441016436,
-0.07220490276813507,
-0.03253354877233505,
-0.0706850215792656,
-0.05086082965135574,
-0.043374937027692795,
-0.023596007376909256,
0.028594573959708214,
0.007926284335553646,
-0.004956772085279226,
0.03653889149427414,
-0.017728377133607864,
-0.025619743391871452,
-0.030682440847158432,
0.04784006252884865,
0.03527146950364113,
-0.0043480126187205315,
-0.02520967274904251,
0.02762681618332863,
-0.0037842204328626394,
0.010065282694995403,
-0.019691964611411095,
-0.04165837913751602,
0.06475207209587097,
0.08305507898330688,
0.031107956543564796,
0.006387205794453621,
-0.012727785855531693,
-0.05798312649130821,
-0.023731423541903496,
-0.03967221826314926,
-0.06582442671060562,
-0.02265116013586521,
-0.009819500148296356,
-0.0381595604121685,
-0.018600085750222206,
-0.04735521227121353,
-0.03277597203850746,
-0.0017387550324201584,
-0.02164999023079872,
0.062491048127412796,
0.056280650198459625,
0.014426839537918568,
0.034913722425699234,
-0.03230038285255432,
0.018671244382858276,
0.08344250172376633,
0.017444739118218422,
0.019198205322027206,
-0.07362591475248337,
-0.049453891813755035,
0.043818481266498566,
0.027438970282673836,
0.014312420040369034,
-0.029482608661055565,
0.0734901949763298,
0.013701124116778374,
0.002392953261733055,
0.010317898355424404,
-0.003131241537630558,
-0.01463871169835329,
-0.022062817588448524,
0.0026491947937756777,
-0.008347694762051105,
-0.047486402094364166,
-0.01145507674664259,
-0.02643406204879284,
0.033693473786115646,
-0.046710554510354996,
-0.03472611680626869,
-0.005196591839194298,
0.014068412594497204,
0.04165967181324959,
-0.010776455514132977,
-0.04259949550032616,
0.015646908432245255,
-0.03770289942622185,
-0.007087788078933954,
-0.0312433410435915,
-0.016680022701621056,
0.002498374320566654,
0.01696082018315792,
0.020898614078760147,
-0.01610703393816948,
0.029116369783878326,
0.002500897739082575,
0.03784102946519852,
0.03538675978779793,
-0.021328765898942947,
0.04522444307804108,
-0.018940076231956482,
0.04247187450528145,
-0.014360509812831879,
-0.01654910296201706,
-0.04558404162526131,
-0.07331616431474686,
-0.010492646135389805,
0.017697110772132874,
-0.024595987051725388,
0.02332136780023575,
0.043224725872278214,
-0.027582423761487007,
-0.017321260645985603,
0.003494981676340103,
0.024997131898999214,
0.03120858035981655,
-0.06092040240764618,
0.050052277743816376,
-0.03941686078906059,
0.06446705013513565,
-0.06044043228030205,
0.007061466574668884,
-0.02700258418917656,
-0.005403841845691204,
0.023568281903862953,
0.05149896442890167,
0.0007973725441843271,
0.0488988533616066,
0.04658001288771629,
0.05580783262848854,
-0.02562621608376503,
0.043663378804922104,
0.0652804970741272,
-0.008888059295713902,
-0.07744812220335007,
0.012796180322766304,
-0.02611551806330681,
-0.009240629151463509,
-0.019948208704590797,
-0.031233660876750946,
0.008492817170917988,
0.029677752405405045,
-0.005343078635632992,
0.003402726724743843,
-0.00811146479099989,
-0.011580263264477253,
-0.02644573524594307,
-0.06564077734947205,
-0.028544224798679352,
-0.007236357778310776,
-0.014881882816553116,
0.028821254149079323,
0.043541502207517624,
-0.00494209211319685,
0.058269474655389786,
0.04486384987831116,
-0.010056844912469387,
-0.03949430584907532,
0.033229075372219086,
0.016542896628379822,
-0.05015510693192482,
-0.06774502992630005,
-0.04068109765648842,
0.02876214124262333,
0.05588266998529434,
-0.034702520817518234,
-0.10357292741537094,
0.005244703963398933,
0.056966908276081085,
-0.04967127740383148,
0.013432656414806843,
-0.009860699996352196,
0.03844626247882843,
0.043559059500694275,
-0.019282955676317215,
0.023310737684369087,
-0.006541407201439142,
0.0018335942877456546,
0.007347049191594124,
0.03467319905757904,
-0.010997812263667583,
-0.0234624445438385,
-0.020830446854233742,
0.04412364214658737,
0.01792355813086033,
0.009819832630455494,
0.05107113718986511,
-0.0213320292532444,
-0.06059037148952484,
0.0051818606443703175,
0.019442856311798096,
-0.04725760966539383,
0.02501133270561695,
0.023591117933392525,
0.06393442302942276,
-0.031336743384599686,
-0.028745410963892937,
-0.013174719177186489,
0.020531723275780678,
0.04209703952074051,
-0.005180998705327511,
-0.021704860031604767,
-0.06026832386851311,
0.04010474681854248,
0.01752442866563797,
-0.043694641441106796,
-0.09593196958303452,
0.037572987377643585,
0.01130819134414196,
-0.024050351232290268,
0.03718017041683197,
0.007465918082743883,
0.039935413748025894,
0.06727711856365204,
0.010486691258847713,
0.007224228698760271,
-0.03975154459476471,
0.040107809007167816,
-0.029981493949890137,
0.002748207189142704,
-0.0015886328183114529,
-0.06784698367118835,
-0.00796344131231308,
-0.029695207253098488,
-0.04335403069853783,
-0.033394280821084976,
-0.028977541252970695,
0.04922378063201904,
-0.0027604501228779554,
0.010001199319958687,
-0.007081168703734875,
0.03735467046499252,
0.01615900732576847,
-0.02521330490708351,
-0.03729834407567978,
-0.04903406277298927,
-0.04729309678077698,
-0.036090247333049774,
0.04197055846452713,
0.003510114038363099,
0.013836132362484932,
-0.007122333161532879,
0.014936928637325764,
0.03633592650294304,
0.020639272406697273,
-0.056628383696079254,
0.05546823889017105,
-0.006078789941966534,
-0.0327691026031971,
-0.02978978119790554,
-0.0034085053484886885,
0.013745559379458427,
-0.01266579981893301,
-0.04019998013973236,
0.02468540519475937,
0.004978758282959461,
-0.0104740671813488,
-0.02582143247127533,
0.02422182261943817,
0.01685185916721821,
-0.05400163307785988,
-0.04028996080160141,
-0.018801920115947723,
-0.02316867560148239,
0.03145976737141609,
-0.006216852925717831,
-0.037146322429180145,
0.03341350704431534,
0.03347247466444969,
0.00525992177426815,
-0.00309532368555665,
-0.009265447035431862,
0.05150455981492996,
-0.01693505421280861,
0.008617040701210499,
-0.0715956762433052,
0.027854278683662415,
-0.03268721327185631,
0.013017091900110245,
-0.01999296247959137,
-0.011875120922923088,
-0.036950260400772095,
0.03815882280468941,
-0.0053566531278193,
-0.01139514334499836,
-0.012255906127393246,
0.014992388896644115,
-0.027761826291680336,
0.03064718469977379,
-0.012204182334244251,
0.035852283239364624,
-0.024124788120388985,
0.029800735414028168,
-0.024402523413300514,
-0.012691489420831203,
-0.022492213174700737,
0.024810465052723885,
-0.0449531190097332,
-0.03174911066889763,
-0.0146859772503376,
-0.03965521976351738,
0.029069924727082253,
0.027164401486516,
0.010944472625851631,
0.027978425845503807,
-0.008706878870725632,
0.019131308421492577,
0.04853994399309158,
-0.07037410140037537,
-0.03228388726711273,
-0.010089045390486717,
-0.03606544807553291,
-0.011082705110311508,
0.029451048001646996,
0.025976117700338364,
-0.06020200625061989,
-0.04495159164071083,
0.05204622447490692,
0.02237287163734436,
0.021328145638108253,
-0.0007662061252631247,
0.02795863337814808,
0.054017916321754456,
0.04828847199678421,
-0.042201340198516846,
0.000751609040889889,
-0.008156637661159039,
-0.026404570788145065,
0.004535488784313202,
-0.010803302749991417,
0.01166398636996746,
-0.012989982962608337,
-0.03846845403313637,
-0.028624478727579117,
0.07443883270025253,
0.04613877460360527,
0.00919871125370264,
0.0022439484018832445,
-0.04749685153365135,
0.053586602210998535,
0.013868204317986965,
-0.05866723507642746,
0.022397564724087715,
0.013144927099347115,
-0.03484770655632019,
0.06295789778232574,
-0.02341994270682335,
0.022333094850182533,
0.05265123024582863,
0.015869539231061935,
-0.030668731778860092,
0.005234741605818272,
-0.03543030843138695,
0.014920194633305073,
0.03780484199523926,
-0.054241977632045746,
-0.03069896623492241,
-0.04698123037815094,
0.06369075924158096,
-0.06014132872223854,
0.04505821317434311,
0.05228043720126152,
-0.000010932292752841022,
0.006161658093333244,
0.018814003095030785,
-0.051113177090883255,
0.006263499613851309,
-0.03284271061420441,
0.057160500437021255,
-0.016950249671936035,
-0.07877077907323837,
0.06919676065444946,
0.02077956683933735,
-0.0519084632396698,
0.05985036492347717,
0.06223050877451897,
0.031962793320417404,
0.018240051344037056,
0.020794764161109924,
-0.04702557995915413,
0.005644867662340403,
-0.032748252153396606,
0.03607877716422081,
-0.06212476268410683,
-0.018752368167042732,
0.03051820769906044,
-0.01798548549413681,
-0.0020688415970653296,
0.019992675632238388,
-0.0015215581515803933,
0.004387420602142811,
0.0103808818385005,
-0.04807577654719353,
-0.06576310098171234,
-0.02456773817539215,
0.015688925981521606,
-0.03427211195230484,
0.035033173859119415,
-0.013957715593278408,
0.00975080206990242,
0.00758327916264534,
-0.0015194533625617623,
-0.018107177689671516,
0.031120209023356438,
0.016321787610650063,
-0.07350704073905945,
-0.03348897770047188,
0.0417926087975502,
0.03952936455607414,
-0.011242656968533993,
0.01681715063750744,
-0.01589825749397278,
-0.00469959108158946,
0.000748083577491343,
-0.023847727105021477,
0.025712402537465096,
-0.0918654128909111,
-0.014423655346035957,
0.032901350408792496,
0.040418583899736404,
0.013269641436636448,
-0.017260339111089706,
0.015572243370115757,
0.04736262559890747,
0.015493917278945446,
0.028156021609902382,
-0.0000837124462123029,
-0.026719441637396812,
0.027843544259667397,
-0.05723549425601959,
0.029884837567806244,
-0.0005328466068021953,
-0.07225129753351212,
-0.023672299459576607,
0.0011448252480477095,
-0.023108504712581635,
0.024393290281295776,
-0.0647619292140007,
-0.0014952823985368013,
0.02773028053343296,
-0.0026915553025901318,
-0.05295628309249878,
-0.06543812900781631,
-0.0399896502494812,
-0.04179811105132103,
0.0329185351729393,
0.028211837634444237,
-0.04183049872517586,
0.021374229341745377,
-0.03542669117450714,
-0.03873749449849129,
0.05116613954305649,
0.0013153241015970707,
-0.01843230612576008,
0.057352010160684586,
0.02735726535320282,
-0.03480594977736473,
0.03016134910285473,
0.030367743223905563,
-0.02644045278429985,
0.039013415575027466,
0.012157347053289413,
0.04271192103624344,
0.024281630292534828,
0.018037352710962296,
-0.000770134967751801,
-0.030980704352259636,
-0.024349810555577278,
-0.04276638478040695,
-0.041824471205472946,
0.022415591403841972,
0.05233140289783478
] |
BigSalmon/GPTNeo350MInformalToFormalLincoln3 | [
"pytorch",
"gpt_neo",
"text-generation",
"transformers",
"has_space"
] | text-generation | {
"architectures": [
"GPTNeoForCausalLM"
],
"model_type": "gpt_neo",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 10 | null | Trained on this model: https://huggingface.co/xhyi/PT_GPTNEO350_ATG/tree/main
```
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln3")
model = AutoModelForCausalLM.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln3")
```
```
How To Make Prompt:
informal english: i am very ready to do that just that.
Translated into the Style of Abraham Lincoln: you can assure yourself of my readiness to work toward this end.
Translated into the Style of Abraham Lincoln: please be assured that i am most ready to undertake this laborious task.
***
informal english: space is huge and needs to be explored.
Translated into the Style of Abraham Lincoln: space awaits traversal, a new world whose boundaries are endless.
Translated into the Style of Abraham Lincoln: space is a ( limitless / boundless ) expanse, a vast virgin domain awaiting exploration.
***
informal english: corn fields are all across illinois, visible once you leave chicago.
Translated into the Style of Abraham Lincoln: corn fields ( permeate illinois / span the state of illinois / ( occupy / persist in ) all corners of illinois / line the horizon of illinois / envelop the landscape of illinois ), manifesting themselves visibly as one ventures beyond chicago.
informal english:
```
```
- declining viewership facing the nba.
- does not have to be this way.
- in fact, many solutions exist.
- the four point line would surely draw in eyes.
Text: failing to draw in the masses, the NBA has fallen into disrepair. such does not have to be the case, however. in fact, a myriad of simple, relatively cheap solutions could revive the league. the addition of the much-hyped four-point line would surely juice viewership.
***
-
```
```
infill: chrome extensions [MASK] accomplish everyday tasks.
Translated into the Style of Abraham Lincoln: chrome extensions ( expedite the ability to / unlock the means to more readily ) accomplish everyday tasks.
infill: at a time when nintendo has become inflexible, [MASK] consoles that are tethered to a fixed iteration, sega diligently curates its legacy of classic video games on handheld devices.
Translated into the Style of Abraham Lincoln: at a time when nintendo has become inflexible, ( stubbornly [MASK] on / firmly set on / unyielding in its insistence on ) consoles that are tethered to a fixed iteration, sega diligently curates its legacy of classic video games on handheld devices.
infill:
```
```
Essay Intro (California High-Speed Rail): built with an eye on the future, california's high-speed rail service resolves to change the face of travel.
Essay Intro (YIMBY's Need To Win): home to the most expensive housing market in the united states, san francisco is the city in which the yimby and anti-yimby hordes wage an eternal battle.
Essay Intro (
``` | [
-0.016229333356022835,
-0.021687304601073265,
-0.043301358819007874,
0.04428170621395111,
0.0484401136636734,
0.04743526875972748,
-0.012504461221396923,
0.013840561732649803,
-0.044716477394104004,
0.0410531610250473,
0.021178487688302994,
-0.01315922662615776,
0.008407344110310078,
0.015400226227939129,
-0.01521615032106638,
-0.014462998136878014,
-0.03978483006358147,
0.015852205455303192,
-0.032371167093515396,
-0.031271982938051224,
0.03395088389515877,
-0.006097443401813507,
0.003461394226178527,
0.028437461704015732,
-0.011251953430473804,
0.007033124566078186,
-0.0057367742992937565,
0.03007226623594761,
0.03074825182557106,
-0.0708913803100586,
0.007669226732105017,
-0.05256311222910881,
0.002862147754058242,
-0.026171285659074783,
-0.056438181549310684,
0.03130539879202843,
-0.0014932946069166064,
0.01220590528100729,
0.020870475098490715,
0.0480763204395771,
-0.010217968374490738,
0.016734352335333824,
0.012427134439349174,
-0.01624412089586258,
0.03162098675966263,
0.002988493535667658,
-0.0362032987177372,
-0.0377730056643486,
0.05736870318651199,
-0.007137705106288195,
-0.029175465926527977,
-0.0718880295753479,
0.00006706758722430095,
0.015616598539054394,
0.0027040434069931507,
-0.0017733793938532472,
-0.07661929726600647,
-0.0288945734500885,
0.08967149257659912,
-0.06820489466190338,
-0.03559618443250656,
0.03915783390402794,
-0.06642643362283707,
0.046683598309755325,
0.040392521768808365,
-0.03469517081975937,
0.01059618592262268,
-0.029516076669096947,
0.014602923765778542,
-0.015481984242796898,
0.033225007355213165,
-0.04512592777609825,
0.02693205326795578,
-0.08406432718038559,
-0.009220674633979797,
-0.006618703715503216,
0.04228992760181427,
0.024828683584928513,
-0.05911588296294212,
0.07707910984754562,
0.023030225187540054,
0.002536446088925004,
0.01952635496854782,
-0.006754688452929258,
-0.013360511511564255,
0.03433782234787941,
-0.04294538125395775,
-0.008239801973104477,
0.011379910632967949,
0.04448077827692032,
-0.026276832446455956,
-0.06558631360530853,
-0.012153343297541142,
-0.04594647139310837,
-0.0035883081145584583,
0.028109261766076088,
0.06431524455547333,
-0.006328968796879053,
0.04141790047287941,
0.011161125265061855,
0.041876912117004395,
0.041040025651454926,
-0.006181191653013229,
0.038525670766830444,
-0.006819464266300201,
0.005871329922229052,
-0.034450650215148926,
-0.04000387713313103,
-0.049755167216062546,
0.027467619627714157,
0.01457915361970663,
-0.049276359379291534,
-0.03054116480052471,
0.025347143411636353,
0.020373867824673653,
-0.016183439642190933,
0.04139158874750137,
-0.03259102255105972,
-0.05480841174721718,
-0.027930106967687607,
0.03845515474677086,
0.017972653731703758,
0.01013787928968668,
0.002095400355756283,
-0.08228746056556702,
0.04089775308966637,
-0.06126411259174347,
-0.05826510488986969,
-0.04061897099018097,
0.05317584425210953,
-0.001251790439710021,
0.0327242948114872,
0.031054221093654633,
-0.07760721445083618,
0.027989983558654785,
0.0261547788977623,
-0.06570389866828918,
0.040027301758527756,
0.004061141517013311,
0.0957321748137474,
-0.05745595321059227,
-0.061249811202287674,
0.014009211212396622,
0.004982693120837212,
-0.023444604128599167,
0.014358778484165668,
0.011409464292228222,
-0.04441041871905327,
-0.024876901879906654,
0.020012663677334785,
0.07337035238742828,
-0.04651203751564026,
-0.010172495618462563,
0.03813319653272629,
0.0034748336765915155,
0.05862899124622345,
-0.029281198978424072,
-0.01927814818918705,
0.0032425152603536844,
0.026308003813028336,
-0.040623702108860016,
0.03245912864804268,
-0.03214463219046593,
-0.020486917346715927,
-0.0539986677467823,
-0.03983644023537636,
0.013580064289271832,
0.0526653416454792,
-0.014501065015792847,
-0.013563431799411774,
-0.035088758915662766,
0.007576842326670885,
0.04414049908518791,
0.03237217664718628,
-0.02088608779013157,
0.04351278021931648,
0.04516447335481644,
0.03139696642756462,
-0.056419819593429565,
0.04628688469529152,
0.030242864042520523,
-0.033425383269786835,
-0.034071534872055054,
0.04502993822097778,
-0.002716749208047986,
-0.03719773143529892,
0.02396770566701889,
0.05098763853311539,
-0.013814772479236126,
-0.028810136020183563,
-0.017754629254341125,
0.06254906207323074,
-0.012259513139724731,
0.008038903586566448,
-0.008013928309082985,
-0.03330381214618683,
-0.01896650157868862,
0.04438907280564308,
-0.04504681006073952,
0.005317014642059803,
-0.0355200469493866,
-0.04371361434459686,
0.0019422243349254131,
0.023668406531214714,
0.035719387233257294,
0.05082618445158005,
-0.01601935364305973,
0.12006111443042755,
-0.03689645230770111,
0.004646363668143749,
-0.07161486148834229,
-0.05374050512909889,
0.008027905598282814,
0.047056782990694046,
-0.003407557960599661,
0.04462413489818573,
0.012492049485445023,
-0.05448565632104874,
0.034766457974910736,
0.06587422639131546,
0.04198256507515907,
0.01042392011731863,
-0.02100558765232563,
0.016523435711860657,
0.028540458530187607,
0.06469223648309708,
-0.024320971220731735,
-0.03964061662554741,
0.04161233827471733,
0.054125674068927765,
-0.03480323404073715,
0.016903312876820564,
-0.018855050206184387,
0.017179785296320915,
-0.029303237795829773,
-0.06072290614247322,
0.03093840926885605,
0.05423463135957718,
0.0022602668032050133,
0.04375156760215759,
-0.010577913373708725,
0.029201198369264603,
0.023060552775859833,
0.005684635601937771,
-0.0005828284192830324,
-0.035671837627887726,
-0.020449386909604073,
0.006721091456711292,
0.06478344649076462,
-0.0604177862405777,
0.061713993549346924,
-0.004201018251478672,
0.00957497488707304,
0.030287379398941994,
0.0008525024750269949,
0.04077662155032158,
0.0687478631734848,
0.018268316984176636,
-0.032729119062423706,
0.026160024106502533,
0.0006336282822303474,
0.03684572875499725,
0.055323682725429535,
-0.004141270183026791,
0.04521201550960541,
-0.01344393938779831,
0.03933862969279289,
0.07149900496006012,
0.03673136979341507,
-0.009359682910144329,
0.03612598776817322,
0.06013185903429985,
0.0024174100253731012,
0.00586408656090498,
0.05258578807115555,
-0.06183096393942833,
0.010646235197782516,
-0.006506422068923712,
0.034405164420604706,
-0.014543693512678146,
-0.019415773451328278,
0.02925550565123558,
0.02662995085120201,
-0.02122126705944538,
0.004951412323862314,
0.004875650629401207,
-0.000021818908862769604,
0.01485983282327652,
-0.013455323874950409,
0.004154551308602095,
-0.027263246476650238,
-0.05025944486260414,
0.01146291196346283,
-0.07932472974061966,
-0.026524143293499947,
0.006058685481548309,
-0.013291784562170506,
0.021229229867458344,
-0.07004544138908386,
-0.03017057478427887,
-0.05608898028731346,
-0.01679496094584465,
0.036245424300432205,
0.020234694704413414,
0.007766382768750191,
-0.03350764885544777,
0.011034468188881874,
-0.07594867795705795,
-0.029596565291285515,
-0.07393115758895874,
-0.05408366024494171,
-0.0402359813451767,
-0.03285173699259758,
0.02481757663190365,
0.00735847931355238,
-0.0009384456789121032,
0.022890033200383186,
-0.022906651720404625,
-0.02246624045073986,
-0.036072708666324615,
0.04950378090143204,
0.03372102603316307,
-0.011068939231336117,
-0.02943415381014347,
0.023349199444055557,
-0.008338470943272114,
0.02128724567592144,
-0.011188953183591366,
-0.03977721184492111,
0.07372314482927322,
0.08034101128578186,
0.02607349306344986,
0.016095230355858803,
-0.03269271180033684,
-0.05820263549685478,
-0.033113278448581696,
-0.03899884968996048,
-0.0672716349363327,
-0.017378712072968483,
-0.006329223047941923,
-0.04078284278512001,
-0.012111524119973183,
-0.05088905990123749,
-0.02838718704879284,
0.0033827300649136305,
-0.017244866117835045,
0.058322254568338394,
0.05600055307149887,
0.02493615821003914,
0.03517299145460129,
-0.043482258915901184,
0.014138254337012768,
0.08042234927415848,
0.02122100628912449,
0.016601258888840675,
-0.07447262108325958,
-0.04730132594704628,
0.04658030346035957,
0.037625208497047424,
0.008624410256743431,
-0.014194885268807411,
0.07911132276058197,
0.012194407172501087,
-0.00655572721734643,
0.001423307228833437,
-0.0049933078698813915,
-0.01613544672727585,
-0.016320988535881042,
0.003633958287537098,
-0.016481131315231323,
-0.04191732406616211,
-0.01965652033686638,
-0.036005690693855286,
0.031024031341075897,
-0.04700234904885292,
-0.0362495593726635,
-0.00163443258497864,
0.014635855332016945,
0.037837423384189606,
-0.0032446933910250664,
-0.039281103760004044,
0.009100939147174358,
-0.0389312282204628,
-0.008202929981052876,
-0.022307654842734337,
-0.011143133044242859,
0.009052055887877941,
0.015452049672603607,
0.025792744010686874,
-0.020062368363142014,
0.02033587358891964,
0.01390806958079338,
0.04436352849006653,
0.02801124006509781,
-0.04318852350115776,
0.03737972304224968,
-0.020847957581281662,
0.03673651069402695,
-0.018354719504714012,
-0.013353262096643448,
-0.043350156396627426,
-0.06352224946022034,
-0.012385336682200432,
0.023148836567997932,
-0.0263983141630888,
0.02081393450498581,
0.02806156873703003,
-0.020453287288546562,
-0.017788130789995193,
-0.0005422322428785264,
0.02254161238670349,
0.03942430019378662,
-0.06335803866386414,
0.05444396287202835,
-0.036010097712278366,
0.054088253527879715,
-0.05740133300423622,
0.00297544919885695,
-0.031067585572600365,
-0.008584770374000072,
0.016792068257927895,
0.047628968954086304,
0.005344084929674864,
0.05294377729296684,
0.05772840976715088,
0.05386409908533096,
-0.032228875905275345,
0.0480295829474926,
0.07200469821691513,
-0.019369054585695267,
-0.06599295139312744,
0.017582252621650696,
-0.031184222549200058,
-0.021915461868047714,
-0.015161409042775631,
-0.030748626217246056,
0.014029211364686489,
0.030050763860344887,
-0.003968106582760811,
0.0001044710079440847,
-0.00964087899774313,
-0.011678357608616352,
-0.02916305512189865,
-0.07026233524084091,
-0.03940415009856224,
-0.005698755849152803,
-0.016813816502690315,
0.027238594368100166,
0.040359701961278915,
0.0031728476751595736,
0.04867850989103317,
0.052472881972789764,
-0.014442670159041882,
-0.043014511466026306,
0.033111557364463806,
0.020011182874441147,
-0.048383016139268875,
-0.05563432350754738,
-0.04319839924573898,
0.024627799168229103,
0.06386587023735046,
-0.038157593458890915,
-0.1009269431233406,
-0.005736639257520437,
0.04674583673477173,
-0.04017455503344536,
0.027104709297418594,
-0.015741202980279922,
0.03167280554771423,
0.046675290912389755,
-0.020035743713378906,
0.03536034747958183,
-0.018965091556310654,
-0.0025744326412677765,
0.01827303133904934,
0.03586745262145996,
-0.017507122829556465,
-0.03248537331819534,
-0.018881427124142647,
0.04481042921543121,
0.02235904149711132,
0.018178392201662064,
0.061302825808525085,
-0.02006014809012413,
-0.06899737566709518,
0.0015760118840262294,
0.02733401209115982,
-0.044159743934869766,
0.01829374022781849,
0.010336657054722309,
0.05780038237571716,
-0.04296956583857536,
-0.027523722499608994,
-0.022340839728713036,
0.01055784709751606,
0.03668184205889702,
0.008792528882622719,
-0.019647393375635147,
-0.052128866314888,
0.030020786449313164,
0.008638190105557442,
-0.03789115324616432,
-0.08448752015829086,
0.0445653460919857,
0.012003260664641857,
-0.017950471490621567,
0.04184824228286743,
0.011511208489537239,
0.04423947632312775,
0.05771259590983391,
0.009203007444739342,
0.0059541696682572365,
-0.03283800929784775,
0.034637145698070526,
-0.030735008418560028,
0.0015497079584747553,
0.0035139534156769514,
-0.07093135267496109,
0.0011764329392462969,
-0.025904279202222824,
-0.03980793431401253,
-0.04302224516868591,
-0.032915327697992325,
0.043719302862882614,
0.0018322031246498227,
0.007755418308079243,
-0.005267132073640823,
0.03968728333711624,
0.008464289829134941,
-0.026935113593935966,
-0.051128920167684555,
-0.04616079851984978,
-0.052150826901197433,
-0.038878656923770905,
0.03584405407309532,
0.005481773987412453,
0.024360416457057,
-0.014355124905705452,
0.011141443625092506,
0.03541513532400131,
0.009868179447948933,
-0.060140132904052734,
0.045557547360658646,
-0.0029562879353761673,
-0.0403374582529068,
-0.025686798617243767,
0.002209919970482588,
0.010282831266522408,
-0.00488904258236289,
-0.033776961266994476,
0.01672675646841526,
0.009557030163705349,
-0.007428347133100033,
-0.0187983438372612,
0.025699276477098465,
0.014212989248335361,
-0.052608247846364975,
-0.03927707299590111,
-0.023003660142421722,
-0.035668469965457916,
0.032014913856983185,
-0.005094894673675299,
-0.027359338477253914,
0.021325411275029182,
0.030535370111465454,
0.012322644703090191,
-0.016462408006191254,
-0.010900041088461876,
0.04038133844733238,
-0.030950721353292465,
0.012285582721233368,
-0.07550039142370224,
0.03763855621218681,
-0.038571812212467194,
0.010674305260181427,
-0.017237523570656776,
-0.011326555162668228,
-0.04124642163515091,
0.03394908830523491,
-0.0005852807662449777,
-0.008808949962258339,
-0.01236753910779953,
0.01676984317600727,
-0.030895531177520752,
0.03377782925963402,
-0.01925833709537983,
0.04046180099248886,
-0.022943072021007538,
0.03040536493062973,
-0.02856685407459736,
-0.007482820190489292,
-0.02835645154118538,
0.031202426180243492,
-0.031217897310853004,
-0.036711156368255615,
-0.015559136867523193,
-0.0334613062441349,
0.03277100995182991,
0.04368102550506592,
0.017237050458788872,
0.029320307075977325,
-0.010250279679894447,
0.027034860104322433,
0.04435106739401817,
-0.0806131586432457,
-0.02870197594165802,
-0.004658092278987169,
-0.02547498606145382,
-0.017359010875225067,
0.031952470541000366,
0.023992162197828293,
-0.05892206355929375,
-0.048086389899253845,
0.047613225877285004,
0.019834458827972412,
0.021557891741394997,
-0.007274349685758352,
0.028182193636894226,
0.04470213130116463,
0.04336349666118622,
-0.03954702243208885,
-0.004156986717134714,
-0.003464737441390753,
-0.028881536796689034,
0.006507859565317631,
-0.013867811299860477,
0.01566024124622345,
-0.011882618069648743,
-0.04164979234337807,
-0.03233112767338753,
0.07758098095655441,
0.03854677453637123,
0.0053252060897648335,
0.003228274406865239,
-0.040184564888477325,
0.043979380279779434,
0.001283520832657814,
-0.06658848375082016,
0.025553494691848755,
0.00750976474955678,
-0.025511162355542183,
0.05983557924628258,
-0.01766815222799778,
0.012854811735451221,
0.04667724668979645,
0.02869478240609169,
-0.025080785155296326,
0.018881026655435562,
-0.04174714908003807,
0.012622049078345299,
0.04126840829849243,
-0.04451383650302887,
-0.022485880181193352,
-0.03926587477326393,
0.07056938111782074,
-0.05652280151844025,
0.04441884532570839,
0.05010461434721947,
0.003569028340280056,
0.0015328832669183612,
0.007311549969017506,
-0.061197150498628616,
0.0034382077865302563,
-0.03797663748264313,
0.0694640651345253,
-0.01595361903309822,
-0.08745218813419342,
0.06927767395973206,
0.022593282163143158,
-0.05390153452754021,
0.06351754814386368,
0.06764496117830276,
0.02702138014137745,
0.02881186455488205,
0.021758070215582848,
-0.0427851602435112,
0.008592159487307072,
-0.03234988451004028,
0.0286053866147995,
-0.05477138236165047,
-0.019446393474936485,
0.025423681363463402,
-0.023222392424941063,
-0.002076192758977413,
0.026867933571338654,
0.0004569874727167189,
-0.003510324750095606,
0.010418570600450039,
-0.062483012676239014,
-0.055279117077589035,
-0.026951083913445473,
0.012281722389161587,
-0.040182508528232574,
0.04383450001478195,
-0.012856168672442436,
0.020376333966851234,
0.004458088893443346,
0.0069177038967609406,
-0.017554599791765213,
0.024505026638507843,
0.011522861197590828,
-0.06339053809642792,
-0.03609362244606018,
0.043881140649318695,
0.03799727186560631,
-0.011834496632218361,
0.013689791783690453,
-0.009866396896541119,
-0.001158644212409854,
-0.0024879113771021366,
-0.027584824711084366,
0.02465059421956539,
-0.08684486895799637,
-0.018262596800923347,
0.02604210376739502,
0.03868953883647919,
0.020801134407520294,
-0.014814402908086777,
0.02381330542266369,
0.042990054935216904,
0.013186250813305378,
0.010956144891679287,
-0.006664822809398174,
-0.02185267023742199,
0.014922323636710644,
-0.05441485717892647,
0.02559562586247921,
0.009791050106287003,
-0.058288123458623886,
-0.02262422814965248,
0.006783667020499706,
-0.0299668088555336,
0.02319137379527092,
-0.07609200477600098,
-0.0032145874574780464,
0.040309906005859375,
-0.004914541263133287,
-0.05833663418889046,
-0.06534645706415176,
-0.044026631861925125,
-0.04136672243475914,
0.031666990369558334,
0.025946132838726044,
-0.04563494399189949,
0.01893353834748268,
-0.043195050209760666,
-0.037361547350883484,
0.06327962130308151,
0.009802930057048798,
-0.015381659381091595,
0.05101316422224045,
0.029731184244155884,
-0.04014768451452255,
0.024553684517741203,
0.027774428948760033,
-0.02725965343415737,
0.04045068472623825,
0.007394977379590273,
0.03597544506192207,
0.02879931777715683,
0.017526596784591675,
-0.011563344858586788,
-0.02683369815349579,
-0.019567763432860374,
-0.04984614998102188,
-0.04261191561818123,
0.007297990377992392,
0.04995756223797798
] |
BigSalmon/GPTNeo350MInformalToFormalLincoln4 | [
"pytorch",
"gpt_neo",
"text-generation",
"transformers",
"has_space"
] | text-generation | {
"architectures": [
"GPTNeoForCausalLM"
],
"model_type": "gpt_neo",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 11 | null | Trained on this model: https://huggingface.co/xhyi/PT_GPTNEO350_ATG/tree/main
```
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln3")
model = AutoModelForCausalLM.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln3")
```
```
How To Make Prompt:
informal english: i am very ready to do that just that.
Translated into the Style of Abraham Lincoln: you can assure yourself of my readiness to work toward this end.
Translated into the Style of Abraham Lincoln: please be assured that i am most ready to undertake this laborious task.
***
informal english: space is huge and needs to be explored.
Translated into the Style of Abraham Lincoln: space awaits traversal, a new world whose boundaries are endless.
Translated into the Style of Abraham Lincoln: space is a ( limitless / boundless ) expanse, a vast virgin domain awaiting exploration.
***
informal english: corn fields are all across illinois, visible once you leave chicago.
Translated into the Style of Abraham Lincoln: corn fields ( permeate illinois / span the state of illinois / ( occupy / persist in ) all corners of illinois / line the horizon of illinois / envelop the landscape of illinois ), manifesting themselves visibly as one ventures beyond chicago.
informal english:
```
```
- declining viewership facing the nba.
- does not have to be this way.
- in fact, many solutions exist.
- the four point line would surely draw in eyes.
Text: failing to draw in the masses, the NBA has fallen into disrepair. such does not have to be the case, however. in fact, a myriad of simple, relatively cheap solutions could revive the league. the addition of the much-hyped four-point line would surely juice viewership.
***
-
```
```
infill: chrome extensions [MASK] accomplish everyday tasks.
Translated into the Style of Abraham Lincoln: chrome extensions ( expedite the ability to / unlock the means to more readily ) accomplish everyday tasks.
infill: at a time when nintendo has become inflexible, [MASK] consoles that are tethered to a fixed iteration, sega diligently curates its legacy of classic video games on handheld devices.
Translated into the Style of Abraham Lincoln: at a time when nintendo has become inflexible, ( stubbornly [MASK] on / firmly set on / unyielding in its insistence on ) consoles that are tethered to a fixed iteration, sega diligently curates its legacy of classic video games on handheld devices.
infill:
```
```
Essay Intro (California High-Speed Rail): built with an eye on the future, california's high-speed rail service resolves to change the face of travel.
Essay Intro (YIMBY's Need To Win): home to the most expensive housing market in the united states, san francisco is the city in which the yimby and anti-yimby hordes wage an eternal battle.
Essay Intro (
``` | [
-0.016229333356022835,
-0.021687304601073265,
-0.043301358819007874,
0.04428170621395111,
0.0484401136636734,
0.04743526875972748,
-0.012504461221396923,
0.013840561732649803,
-0.044716477394104004,
0.0410531610250473,
0.021178487688302994,
-0.01315922662615776,
0.008407344110310078,
0.015400226227939129,
-0.01521615032106638,
-0.014462998136878014,
-0.03978483006358147,
0.015852205455303192,
-0.032371167093515396,
-0.031271982938051224,
0.03395088389515877,
-0.006097443401813507,
0.003461394226178527,
0.028437461704015732,
-0.011251953430473804,
0.007033124566078186,
-0.0057367742992937565,
0.03007226623594761,
0.03074825182557106,
-0.0708913803100586,
0.007669226732105017,
-0.05256311222910881,
0.002862147754058242,
-0.026171285659074783,
-0.056438181549310684,
0.03130539879202843,
-0.0014932946069166064,
0.01220590528100729,
0.020870475098490715,
0.0480763204395771,
-0.010217968374490738,
0.016734352335333824,
0.012427134439349174,
-0.01624412089586258,
0.03162098675966263,
0.002988493535667658,
-0.0362032987177372,
-0.0377730056643486,
0.05736870318651199,
-0.007137705106288195,
-0.029175465926527977,
-0.0718880295753479,
0.00006706758722430095,
0.015616598539054394,
0.0027040434069931507,
-0.0017733793938532472,
-0.07661929726600647,
-0.0288945734500885,
0.08967149257659912,
-0.06820489466190338,
-0.03559618443250656,
0.03915783390402794,
-0.06642643362283707,
0.046683598309755325,
0.040392521768808365,
-0.03469517081975937,
0.01059618592262268,
-0.029516076669096947,
0.014602923765778542,
-0.015481984242796898,
0.033225007355213165,
-0.04512592777609825,
0.02693205326795578,
-0.08406432718038559,
-0.009220674633979797,
-0.006618703715503216,
0.04228992760181427,
0.024828683584928513,
-0.05911588296294212,
0.07707910984754562,
0.023030225187540054,
0.002536446088925004,
0.01952635496854782,
-0.006754688452929258,
-0.013360511511564255,
0.03433782234787941,
-0.04294538125395775,
-0.008239801973104477,
0.011379910632967949,
0.04448077827692032,
-0.026276832446455956,
-0.06558631360530853,
-0.012153343297541142,
-0.04594647139310837,
-0.0035883081145584583,
0.028109261766076088,
0.06431524455547333,
-0.006328968796879053,
0.04141790047287941,
0.011161125265061855,
0.041876912117004395,
0.041040025651454926,
-0.006181191653013229,
0.038525670766830444,
-0.006819464266300201,
0.005871329922229052,
-0.034450650215148926,
-0.04000387713313103,
-0.049755167216062546,
0.027467619627714157,
0.01457915361970663,
-0.049276359379291534,
-0.03054116480052471,
0.025347143411636353,
0.020373867824673653,
-0.016183439642190933,
0.04139158874750137,
-0.03259102255105972,
-0.05480841174721718,
-0.027930106967687607,
0.03845515474677086,
0.017972653731703758,
0.01013787928968668,
0.002095400355756283,
-0.08228746056556702,
0.04089775308966637,
-0.06126411259174347,
-0.05826510488986969,
-0.04061897099018097,
0.05317584425210953,
-0.001251790439710021,
0.0327242948114872,
0.031054221093654633,
-0.07760721445083618,
0.027989983558654785,
0.0261547788977623,
-0.06570389866828918,
0.040027301758527756,
0.004061141517013311,
0.0957321748137474,
-0.05745595321059227,
-0.061249811202287674,
0.014009211212396622,
0.004982693120837212,
-0.023444604128599167,
0.014358778484165668,
0.011409464292228222,
-0.04441041871905327,
-0.024876901879906654,
0.020012663677334785,
0.07337035238742828,
-0.04651203751564026,
-0.010172495618462563,
0.03813319653272629,
0.0034748336765915155,
0.05862899124622345,
-0.029281198978424072,
-0.01927814818918705,
0.0032425152603536844,
0.026308003813028336,
-0.040623702108860016,
0.03245912864804268,
-0.03214463219046593,
-0.020486917346715927,
-0.0539986677467823,
-0.03983644023537636,
0.013580064289271832,
0.0526653416454792,
-0.014501065015792847,
-0.013563431799411774,
-0.035088758915662766,
0.007576842326670885,
0.04414049908518791,
0.03237217664718628,
-0.02088608779013157,
0.04351278021931648,
0.04516447335481644,
0.03139696642756462,
-0.056419819593429565,
0.04628688469529152,
0.030242864042520523,
-0.033425383269786835,
-0.034071534872055054,
0.04502993822097778,
-0.002716749208047986,
-0.03719773143529892,
0.02396770566701889,
0.05098763853311539,
-0.013814772479236126,
-0.028810136020183563,
-0.017754629254341125,
0.06254906207323074,
-0.012259513139724731,
0.008038903586566448,
-0.008013928309082985,
-0.03330381214618683,
-0.01896650157868862,
0.04438907280564308,
-0.04504681006073952,
0.005317014642059803,
-0.0355200469493866,
-0.04371361434459686,
0.0019422243349254131,
0.023668406531214714,
0.035719387233257294,
0.05082618445158005,
-0.01601935364305973,
0.12006111443042755,
-0.03689645230770111,
0.004646363668143749,
-0.07161486148834229,
-0.05374050512909889,
0.008027905598282814,
0.047056782990694046,
-0.003407557960599661,
0.04462413489818573,
0.012492049485445023,
-0.05448565632104874,
0.034766457974910736,
0.06587422639131546,
0.04198256507515907,
0.01042392011731863,
-0.02100558765232563,
0.016523435711860657,
0.028540458530187607,
0.06469223648309708,
-0.024320971220731735,
-0.03964061662554741,
0.04161233827471733,
0.054125674068927765,
-0.03480323404073715,
0.016903312876820564,
-0.018855050206184387,
0.017179785296320915,
-0.029303237795829773,
-0.06072290614247322,
0.03093840926885605,
0.05423463135957718,
0.0022602668032050133,
0.04375156760215759,
-0.010577913373708725,
0.029201198369264603,
0.023060552775859833,
0.005684635601937771,
-0.0005828284192830324,
-0.035671837627887726,
-0.020449386909604073,
0.006721091456711292,
0.06478344649076462,
-0.0604177862405777,
0.061713993549346924,
-0.004201018251478672,
0.00957497488707304,
0.030287379398941994,
0.0008525024750269949,
0.04077662155032158,
0.0687478631734848,
0.018268316984176636,
-0.032729119062423706,
0.026160024106502533,
0.0006336282822303474,
0.03684572875499725,
0.055323682725429535,
-0.004141270183026791,
0.04521201550960541,
-0.01344393938779831,
0.03933862969279289,
0.07149900496006012,
0.03673136979341507,
-0.009359682910144329,
0.03612598776817322,
0.06013185903429985,
0.0024174100253731012,
0.00586408656090498,
0.05258578807115555,
-0.06183096393942833,
0.010646235197782516,
-0.006506422068923712,
0.034405164420604706,
-0.014543693512678146,
-0.019415773451328278,
0.02925550565123558,
0.02662995085120201,
-0.02122126705944538,
0.004951412323862314,
0.004875650629401207,
-0.000021818908862769604,
0.01485983282327652,
-0.013455323874950409,
0.004154551308602095,
-0.027263246476650238,
-0.05025944486260414,
0.01146291196346283,
-0.07932472974061966,
-0.026524143293499947,
0.006058685481548309,
-0.013291784562170506,
0.021229229867458344,
-0.07004544138908386,
-0.03017057478427887,
-0.05608898028731346,
-0.01679496094584465,
0.036245424300432205,
0.020234694704413414,
0.007766382768750191,
-0.03350764885544777,
0.011034468188881874,
-0.07594867795705795,
-0.029596565291285515,
-0.07393115758895874,
-0.05408366024494171,
-0.0402359813451767,
-0.03285173699259758,
0.02481757663190365,
0.00735847931355238,
-0.0009384456789121032,
0.022890033200383186,
-0.022906651720404625,
-0.02246624045073986,
-0.036072708666324615,
0.04950378090143204,
0.03372102603316307,
-0.011068939231336117,
-0.02943415381014347,
0.023349199444055557,
-0.008338470943272114,
0.02128724567592144,
-0.011188953183591366,
-0.03977721184492111,
0.07372314482927322,
0.08034101128578186,
0.02607349306344986,
0.016095230355858803,
-0.03269271180033684,
-0.05820263549685478,
-0.033113278448581696,
-0.03899884968996048,
-0.0672716349363327,
-0.017378712072968483,
-0.006329223047941923,
-0.04078284278512001,
-0.012111524119973183,
-0.05088905990123749,
-0.02838718704879284,
0.0033827300649136305,
-0.017244866117835045,
0.058322254568338394,
0.05600055307149887,
0.02493615821003914,
0.03517299145460129,
-0.043482258915901184,
0.014138254337012768,
0.08042234927415848,
0.02122100628912449,
0.016601258888840675,
-0.07447262108325958,
-0.04730132594704628,
0.04658030346035957,
0.037625208497047424,
0.008624410256743431,
-0.014194885268807411,
0.07911132276058197,
0.012194407172501087,
-0.00655572721734643,
0.001423307228833437,
-0.0049933078698813915,
-0.01613544672727585,
-0.016320988535881042,
0.003633958287537098,
-0.016481131315231323,
-0.04191732406616211,
-0.01965652033686638,
-0.036005690693855286,
0.031024031341075897,
-0.04700234904885292,
-0.0362495593726635,
-0.00163443258497864,
0.014635855332016945,
0.037837423384189606,
-0.0032446933910250664,
-0.039281103760004044,
0.009100939147174358,
-0.0389312282204628,
-0.008202929981052876,
-0.022307654842734337,
-0.011143133044242859,
0.009052055887877941,
0.015452049672603607,
0.025792744010686874,
-0.020062368363142014,
0.02033587358891964,
0.01390806958079338,
0.04436352849006653,
0.02801124006509781,
-0.04318852350115776,
0.03737972304224968,
-0.020847957581281662,
0.03673651069402695,
-0.018354719504714012,
-0.013353262096643448,
-0.043350156396627426,
-0.06352224946022034,
-0.012385336682200432,
0.023148836567997932,
-0.0263983141630888,
0.02081393450498581,
0.02806156873703003,
-0.020453287288546562,
-0.017788130789995193,
-0.0005422322428785264,
0.02254161238670349,
0.03942430019378662,
-0.06335803866386414,
0.05444396287202835,
-0.036010097712278366,
0.054088253527879715,
-0.05740133300423622,
0.00297544919885695,
-0.031067585572600365,
-0.008584770374000072,
0.016792068257927895,
0.047628968954086304,
0.005344084929674864,
0.05294377729296684,
0.05772840976715088,
0.05386409908533096,
-0.032228875905275345,
0.0480295829474926,
0.07200469821691513,
-0.019369054585695267,
-0.06599295139312744,
0.017582252621650696,
-0.031184222549200058,
-0.021915461868047714,
-0.015161409042775631,
-0.030748626217246056,
0.014029211364686489,
0.030050763860344887,
-0.003968106582760811,
0.0001044710079440847,
-0.00964087899774313,
-0.011678357608616352,
-0.02916305512189865,
-0.07026233524084091,
-0.03940415009856224,
-0.005698755849152803,
-0.016813816502690315,
0.027238594368100166,
0.040359701961278915,
0.0031728476751595736,
0.04867850989103317,
0.052472881972789764,
-0.014442670159041882,
-0.043014511466026306,
0.033111557364463806,
0.020011182874441147,
-0.048383016139268875,
-0.05563432350754738,
-0.04319839924573898,
0.024627799168229103,
0.06386587023735046,
-0.038157593458890915,
-0.1009269431233406,
-0.005736639257520437,
0.04674583673477173,
-0.04017455503344536,
0.027104709297418594,
-0.015741202980279922,
0.03167280554771423,
0.046675290912389755,
-0.020035743713378906,
0.03536034747958183,
-0.018965091556310654,
-0.0025744326412677765,
0.01827303133904934,
0.03586745262145996,
-0.017507122829556465,
-0.03248537331819534,
-0.018881427124142647,
0.04481042921543121,
0.02235904149711132,
0.018178392201662064,
0.061302825808525085,
-0.02006014809012413,
-0.06899737566709518,
0.0015760118840262294,
0.02733401209115982,
-0.044159743934869766,
0.01829374022781849,
0.010336657054722309,
0.05780038237571716,
-0.04296956583857536,
-0.027523722499608994,
-0.022340839728713036,
0.01055784709751606,
0.03668184205889702,
0.008792528882622719,
-0.019647393375635147,
-0.052128866314888,
0.030020786449313164,
0.008638190105557442,
-0.03789115324616432,
-0.08448752015829086,
0.0445653460919857,
0.012003260664641857,
-0.017950471490621567,
0.04184824228286743,
0.011511208489537239,
0.04423947632312775,
0.05771259590983391,
0.009203007444739342,
0.0059541696682572365,
-0.03283800929784775,
0.034637145698070526,
-0.030735008418560028,
0.0015497079584747553,
0.0035139534156769514,
-0.07093135267496109,
0.0011764329392462969,
-0.025904279202222824,
-0.03980793431401253,
-0.04302224516868591,
-0.032915327697992325,
0.043719302862882614,
0.0018322031246498227,
0.007755418308079243,
-0.005267132073640823,
0.03968728333711624,
0.008464289829134941,
-0.026935113593935966,
-0.051128920167684555,
-0.04616079851984978,
-0.052150826901197433,
-0.038878656923770905,
0.03584405407309532,
0.005481773987412453,
0.024360416457057,
-0.014355124905705452,
0.011141443625092506,
0.03541513532400131,
0.009868179447948933,
-0.060140132904052734,
0.045557547360658646,
-0.0029562879353761673,
-0.0403374582529068,
-0.025686798617243767,
0.002209919970482588,
0.010282831266522408,
-0.00488904258236289,
-0.033776961266994476,
0.01672675646841526,
0.009557030163705349,
-0.007428347133100033,
-0.0187983438372612,
0.025699276477098465,
0.014212989248335361,
-0.052608247846364975,
-0.03927707299590111,
-0.023003660142421722,
-0.035668469965457916,
0.032014913856983185,
-0.005094894673675299,
-0.027359338477253914,
0.021325411275029182,
0.030535370111465454,
0.012322644703090191,
-0.016462408006191254,
-0.010900041088461876,
0.04038133844733238,
-0.030950721353292465,
0.012285582721233368,
-0.07550039142370224,
0.03763855621218681,
-0.038571812212467194,
0.010674305260181427,
-0.017237523570656776,
-0.011326555162668228,
-0.04124642163515091,
0.03394908830523491,
-0.0005852807662449777,
-0.008808949962258339,
-0.01236753910779953,
0.01676984317600727,
-0.030895531177520752,
0.03377782925963402,
-0.01925833709537983,
0.04046180099248886,
-0.022943072021007538,
0.03040536493062973,
-0.02856685407459736,
-0.007482820190489292,
-0.02835645154118538,
0.031202426180243492,
-0.031217897310853004,
-0.036711156368255615,
-0.015559136867523193,
-0.0334613062441349,
0.03277100995182991,
0.04368102550506592,
0.017237050458788872,
0.029320307075977325,
-0.010250279679894447,
0.027034860104322433,
0.04435106739401817,
-0.0806131586432457,
-0.02870197594165802,
-0.004658092278987169,
-0.02547498606145382,
-0.017359010875225067,
0.031952470541000366,
0.023992162197828293,
-0.05892206355929375,
-0.048086389899253845,
0.047613225877285004,
0.019834458827972412,
0.021557891741394997,
-0.007274349685758352,
0.028182193636894226,
0.04470213130116463,
0.04336349666118622,
-0.03954702243208885,
-0.004156986717134714,
-0.003464737441390753,
-0.028881536796689034,
0.006507859565317631,
-0.013867811299860477,
0.01566024124622345,
-0.011882618069648743,
-0.04164979234337807,
-0.03233112767338753,
0.07758098095655441,
0.03854677453637123,
0.0053252060897648335,
0.003228274406865239,
-0.040184564888477325,
0.043979380279779434,
0.001283520832657814,
-0.06658848375082016,
0.025553494691848755,
0.00750976474955678,
-0.025511162355542183,
0.05983557924628258,
-0.01766815222799778,
0.012854811735451221,
0.04667724668979645,
0.02869478240609169,
-0.025080785155296326,
0.018881026655435562,
-0.04174714908003807,
0.012622049078345299,
0.04126840829849243,
-0.04451383650302887,
-0.022485880181193352,
-0.03926587477326393,
0.07056938111782074,
-0.05652280151844025,
0.04441884532570839,
0.05010461434721947,
0.003569028340280056,
0.0015328832669183612,
0.007311549969017506,
-0.061197150498628616,
0.0034382077865302563,
-0.03797663748264313,
0.0694640651345253,
-0.01595361903309822,
-0.08745218813419342,
0.06927767395973206,
0.022593282163143158,
-0.05390153452754021,
0.06351754814386368,
0.06764496117830276,
0.02702138014137745,
0.02881186455488205,
0.021758070215582848,
-0.0427851602435112,
0.008592159487307072,
-0.03234988451004028,
0.0286053866147995,
-0.05477138236165047,
-0.019446393474936485,
0.025423681363463402,
-0.023222392424941063,
-0.002076192758977413,
0.026867933571338654,
0.0004569874727167189,
-0.003510324750095606,
0.010418570600450039,
-0.062483012676239014,
-0.055279117077589035,
-0.026951083913445473,
0.012281722389161587,
-0.040182508528232574,
0.04383450001478195,
-0.012856168672442436,
0.020376333966851234,
0.004458088893443346,
0.0069177038967609406,
-0.017554599791765213,
0.024505026638507843,
0.011522861197590828,
-0.06339053809642792,
-0.03609362244606018,
0.043881140649318695,
0.03799727186560631,
-0.011834496632218361,
0.013689791783690453,
-0.009866396896541119,
-0.001158644212409854,
-0.0024879113771021366,
-0.027584824711084366,
0.02465059421956539,
-0.08684486895799637,
-0.018262596800923347,
0.02604210376739502,
0.03868953883647919,
0.020801134407520294,
-0.014814402908086777,
0.02381330542266369,
0.042990054935216904,
0.013186250813305378,
0.010956144891679287,
-0.006664822809398174,
-0.02185267023742199,
0.014922323636710644,
-0.05441485717892647,
0.02559562586247921,
0.009791050106287003,
-0.058288123458623886,
-0.02262422814965248,
0.006783667020499706,
-0.0299668088555336,
0.02319137379527092,
-0.07609200477600098,
-0.0032145874574780464,
0.040309906005859375,
-0.004914541263133287,
-0.05833663418889046,
-0.06534645706415176,
-0.044026631861925125,
-0.04136672243475914,
0.031666990369558334,
0.025946132838726044,
-0.04563494399189949,
0.01893353834748268,
-0.043195050209760666,
-0.037361547350883484,
0.06327962130308151,
0.009802930057048798,
-0.015381659381091595,
0.05101316422224045,
0.029731184244155884,
-0.04014768451452255,
0.024553684517741203,
0.027774428948760033,
-0.02725965343415737,
0.04045068472623825,
0.007394977379590273,
0.03597544506192207,
0.02879931777715683,
0.017526596784591675,
-0.011563344858586788,
-0.02683369815349579,
-0.019567763432860374,
-0.04984614998102188,
-0.04261191561818123,
0.007297990377992392,
0.04995756223797798
] |
BigSalmon/GPTNeo350MInformalToFormalLincoln5 | [
"pytorch",
"gpt_neo",
"text-generation",
"transformers",
"has_space"
] | text-generation | {
"architectures": [
"GPTNeoForCausalLM"
],
"model_type": "gpt_neo",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 11 | null | Trained on this model: https://huggingface.co/xhyi/PT_GPTNEO350_ATG/tree/main
```
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln3")
model = AutoModelForCausalLM.from_pretrained("BigSalmon/GPTNeo350MInformalToFormalLincoln3")
```
```
How To Make Prompt:
informal english: i am very ready to do that just that.
Translated into the Style of Abraham Lincoln: you can assure yourself of my readiness to work toward this end.
Translated into the Style of Abraham Lincoln: please be assured that i am most ready to undertake this laborious task.
***
informal english: space is huge and needs to be explored.
Translated into the Style of Abraham Lincoln: space awaits traversal, a new world whose boundaries are endless.
Translated into the Style of Abraham Lincoln: space is a ( limitless / boundless ) expanse, a vast virgin domain awaiting exploration.
***
informal english: corn fields are all across illinois, visible once you leave chicago.
Translated into the Style of Abraham Lincoln: corn fields ( permeate illinois / span the state of illinois / ( occupy / persist in ) all corners of illinois / line the horizon of illinois / envelop the landscape of illinois ), manifesting themselves visibly as one ventures beyond chicago.
informal english:
```
```
- declining viewership facing the nba.
- does not have to be this way.
- in fact, many solutions exist.
- the four point line would surely draw in eyes.
Text: failing to draw in the masses, the NBA has fallen into disrepair. such does not have to be the case, however. in fact, a myriad of simple, relatively cheap solutions could revive the league. the addition of the much-hyped four-point line would surely juice viewership.
***
-
```
```
infill: chrome extensions [MASK] accomplish everyday tasks.
Translated into the Style of Abraham Lincoln: chrome extensions ( expedite the ability to / unlock the means to more readily ) accomplish everyday tasks.
infill: at a time when nintendo has become inflexible, [MASK] consoles that are tethered to a fixed iteration, sega diligently curates its legacy of classic video games on handheld devices.
Translated into the Style of Abraham Lincoln: at a time when nintendo has become inflexible, ( stubbornly [MASK] on / firmly set on / unyielding in its insistence on ) consoles that are tethered to a fixed iteration, sega diligently curates its legacy of classic video games on handheld devices.
infill:
```
```
Essay Intro (California High-Speed Rail): built with an eye on the future, california's high-speed rail service resolves to change the face of travel.
Essay Intro (YIMBY's Need To Win): home to the most expensive housing market in the united states, san francisco is the city in which the yimby and anti-yimby hordes wage an eternal battle.
Essay Intro (
```
```
Search: What is the definition of Checks and Balances?
https://en.wikipedia.org/wiki/Checks_and_balances
Checks and Balances is the idea of having a system where each and every action in government should be subject to one or more checks that would not allow one branch or the other to overly dominate.
https://www.harvard.edu/glossary/Checks_and_Balances
Checks and Balances is a system that allows each branch of government to limit the powers of the other branches in order to prevent abuse of power
https://www.law.cornell.edu/library/constitution/Checks_and_Balances
Checks and Balances is a system of separation through which branches of government can control the other, thus preventing excess power.
***
Search: What is the definition of Separation of Powers?
https://en.wikipedia.org/wiki/Separation_of_powers
The separation of powers is a principle in government, whereby governmental powers are separated into different branches, each with their own set of powers, that are prevent one branch from aggregating too much power.
https://www.yale.edu/tcf/Separation_of_Powers.html
Separation of Powers is the division of governmental functions between the executive, legislative and judicial branches, clearly demarcating each branch's authority, in the interest of ensuring that individual liberty or security is not undermined.
***
Search: What is the definition of Connection of Powers?
https://en.wikipedia.org/wiki/Connection_of_powers
Connection of Powers is a feature of some parliamentary forms of government where different branches of government are intermingled, typically the executive and legislative branches.
https://simple.wikipedia.org/wiki/Connection_of_powers
The term Connection of Powers describes a system of government in which there is overlap between different parts of the government.
***
Search: What is the definition of
```
```
Search: What are phrase synonyms for "second-guess"?
https://www.powerthesaurus.org/second-guess/synonyms
Shortest to Longest:
- feel dubious about
- raise an eyebrow at
- wrinkle their noses at
- cast a jaundiced eye at
- teeter on the fence about
***
Search: What are phrase synonyms for "mean to newbies"?
https://www.powerthesaurus.org/mean_to_newbies/synonyms
Shortest to Longest:
- readiness to balk at rookies
- absence of tolerance for novices
- hostile attitude toward newcomers
***
Search: What are phrase synonyms for "make use of"?
https://www.powerthesaurus.org/make_use_of/synonyms
Shortest to Longest:
- call upon
- glean value from
- reap benefits from
- derive utility from
- seize on the merits of
- draw on the strength of
- tap into the potential of
***
Search: What are phrase synonyms for "hurting itself"?
https://www.powerthesaurus.org/hurting_itself/synonyms
Shortest to Longest:
- erring
- slighting itself
- forfeiting its integrity
- doing itself a disservice
- evincing a lack of backbone
***
Search: What are phrase synonyms for "
``` | [
-0.016229333356022835,
-0.021687304601073265,
-0.043301358819007874,
0.04428170621395111,
0.0484401136636734,
0.04743526875972748,
-0.012504461221396923,
0.013840561732649803,
-0.044716477394104004,
0.0410531610250473,
0.021178487688302994,
-0.01315922662615776,
0.008407344110310078,
0.015400226227939129,
-0.01521615032106638,
-0.014462998136878014,
-0.03978483006358147,
0.015852205455303192,
-0.032371167093515396,
-0.031271982938051224,
0.03395088389515877,
-0.006097443401813507,
0.003461394226178527,
0.028437461704015732,
-0.011251953430473804,
0.007033124566078186,
-0.0057367742992937565,
0.03007226623594761,
0.03074825182557106,
-0.0708913803100586,
0.007669226732105017,
-0.05256311222910881,
0.002862147754058242,
-0.026171285659074783,
-0.056438181549310684,
0.03130539879202843,
-0.0014932946069166064,
0.01220590528100729,
0.020870475098490715,
0.0480763204395771,
-0.010217968374490738,
0.016734352335333824,
0.012427134439349174,
-0.01624412089586258,
0.03162098675966263,
0.002988493535667658,
-0.0362032987177372,
-0.0377730056643486,
0.05736870318651199,
-0.007137705106288195,
-0.029175465926527977,
-0.0718880295753479,
0.00006706758722430095,
0.015616598539054394,
0.0027040434069931507,
-0.0017733793938532472,
-0.07661929726600647,
-0.0288945734500885,
0.08967149257659912,
-0.06820489466190338,
-0.03559618443250656,
0.03915783390402794,
-0.06642643362283707,
0.046683598309755325,
0.040392521768808365,
-0.03469517081975937,
0.01059618592262268,
-0.029516076669096947,
0.014602923765778542,
-0.015481984242796898,
0.033225007355213165,
-0.04512592777609825,
0.02693205326795578,
-0.08406432718038559,
-0.009220674633979797,
-0.006618703715503216,
0.04228992760181427,
0.024828683584928513,
-0.05911588296294212,
0.07707910984754562,
0.023030225187540054,
0.002536446088925004,
0.01952635496854782,
-0.006754688452929258,
-0.013360511511564255,
0.03433782234787941,
-0.04294538125395775,
-0.008239801973104477,
0.011379910632967949,
0.04448077827692032,
-0.026276832446455956,
-0.06558631360530853,
-0.012153343297541142,
-0.04594647139310837,
-0.0035883081145584583,
0.028109261766076088,
0.06431524455547333,
-0.006328968796879053,
0.04141790047287941,
0.011161125265061855,
0.041876912117004395,
0.041040025651454926,
-0.006181191653013229,
0.038525670766830444,
-0.006819464266300201,
0.005871329922229052,
-0.034450650215148926,
-0.04000387713313103,
-0.049755167216062546,
0.027467619627714157,
0.01457915361970663,
-0.049276359379291534,
-0.03054116480052471,
0.025347143411636353,
0.020373867824673653,
-0.016183439642190933,
0.04139158874750137,
-0.03259102255105972,
-0.05480841174721718,
-0.027930106967687607,
0.03845515474677086,
0.017972653731703758,
0.01013787928968668,
0.002095400355756283,
-0.08228746056556702,
0.04089775308966637,
-0.06126411259174347,
-0.05826510488986969,
-0.04061897099018097,
0.05317584425210953,
-0.001251790439710021,
0.0327242948114872,
0.031054221093654633,
-0.07760721445083618,
0.027989983558654785,
0.0261547788977623,
-0.06570389866828918,
0.040027301758527756,
0.004061141517013311,
0.0957321748137474,
-0.05745595321059227,
-0.061249811202287674,
0.014009211212396622,
0.004982693120837212,
-0.023444604128599167,
0.014358778484165668,
0.011409464292228222,
-0.04441041871905327,
-0.024876901879906654,
0.020012663677334785,
0.07337035238742828,
-0.04651203751564026,
-0.010172495618462563,
0.03813319653272629,
0.0034748336765915155,
0.05862899124622345,
-0.029281198978424072,
-0.01927814818918705,
0.0032425152603536844,
0.026308003813028336,
-0.040623702108860016,
0.03245912864804268,
-0.03214463219046593,
-0.020486917346715927,
-0.0539986677467823,
-0.03983644023537636,
0.013580064289271832,
0.0526653416454792,
-0.014501065015792847,
-0.013563431799411774,
-0.035088758915662766,
0.007576842326670885,
0.04414049908518791,
0.03237217664718628,
-0.02088608779013157,
0.04351278021931648,
0.04516447335481644,
0.03139696642756462,
-0.056419819593429565,
0.04628688469529152,
0.030242864042520523,
-0.033425383269786835,
-0.034071534872055054,
0.04502993822097778,
-0.002716749208047986,
-0.03719773143529892,
0.02396770566701889,
0.05098763853311539,
-0.013814772479236126,
-0.028810136020183563,
-0.017754629254341125,
0.06254906207323074,
-0.012259513139724731,
0.008038903586566448,
-0.008013928309082985,
-0.03330381214618683,
-0.01896650157868862,
0.04438907280564308,
-0.04504681006073952,
0.005317014642059803,
-0.0355200469493866,
-0.04371361434459686,
0.0019422243349254131,
0.023668406531214714,
0.035719387233257294,
0.05082618445158005,
-0.01601935364305973,
0.12006111443042755,
-0.03689645230770111,
0.004646363668143749,
-0.07161486148834229,
-0.05374050512909889,
0.008027905598282814,
0.047056782990694046,
-0.003407557960599661,
0.04462413489818573,
0.012492049485445023,
-0.05448565632104874,
0.034766457974910736,
0.06587422639131546,
0.04198256507515907,
0.01042392011731863,
-0.02100558765232563,
0.016523435711860657,
0.028540458530187607,
0.06469223648309708,
-0.024320971220731735,
-0.03964061662554741,
0.04161233827471733,
0.054125674068927765,
-0.03480323404073715,
0.016903312876820564,
-0.018855050206184387,
0.017179785296320915,
-0.029303237795829773,
-0.06072290614247322,
0.03093840926885605,
0.05423463135957718,
0.0022602668032050133,
0.04375156760215759,
-0.010577913373708725,
0.029201198369264603,
0.023060552775859833,
0.005684635601937771,
-0.0005828284192830324,
-0.035671837627887726,
-0.020449386909604073,
0.006721091456711292,
0.06478344649076462,
-0.0604177862405777,
0.061713993549346924,
-0.004201018251478672,
0.00957497488707304,
0.030287379398941994,
0.0008525024750269949,
0.04077662155032158,
0.0687478631734848,
0.018268316984176636,
-0.032729119062423706,
0.026160024106502533,
0.0006336282822303474,
0.03684572875499725,
0.055323682725429535,
-0.004141270183026791,
0.04521201550960541,
-0.01344393938779831,
0.03933862969279289,
0.07149900496006012,
0.03673136979341507,
-0.009359682910144329,
0.03612598776817322,
0.06013185903429985,
0.0024174100253731012,
0.00586408656090498,
0.05258578807115555,
-0.06183096393942833,
0.010646235197782516,
-0.006506422068923712,
0.034405164420604706,
-0.014543693512678146,
-0.019415773451328278,
0.02925550565123558,
0.02662995085120201,
-0.02122126705944538,
0.004951412323862314,
0.004875650629401207,
-0.000021818908862769604,
0.01485983282327652,
-0.013455323874950409,
0.004154551308602095,
-0.027263246476650238,
-0.05025944486260414,
0.01146291196346283,
-0.07932472974061966,
-0.026524143293499947,
0.006058685481548309,
-0.013291784562170506,
0.021229229867458344,
-0.07004544138908386,
-0.03017057478427887,
-0.05608898028731346,
-0.01679496094584465,
0.036245424300432205,
0.020234694704413414,
0.007766382768750191,
-0.03350764885544777,
0.011034468188881874,
-0.07594867795705795,
-0.029596565291285515,
-0.07393115758895874,
-0.05408366024494171,
-0.0402359813451767,
-0.03285173699259758,
0.02481757663190365,
0.00735847931355238,
-0.0009384456789121032,
0.022890033200383186,
-0.022906651720404625,
-0.02246624045073986,
-0.036072708666324615,
0.04950378090143204,
0.03372102603316307,
-0.011068939231336117,
-0.02943415381014347,
0.023349199444055557,
-0.008338470943272114,
0.02128724567592144,
-0.011188953183591366,
-0.03977721184492111,
0.07372314482927322,
0.08034101128578186,
0.02607349306344986,
0.016095230355858803,
-0.03269271180033684,
-0.05820263549685478,
-0.033113278448581696,
-0.03899884968996048,
-0.0672716349363327,
-0.017378712072968483,
-0.006329223047941923,
-0.04078284278512001,
-0.012111524119973183,
-0.05088905990123749,
-0.02838718704879284,
0.0033827300649136305,
-0.017244866117835045,
0.058322254568338394,
0.05600055307149887,
0.02493615821003914,
0.03517299145460129,
-0.043482258915901184,
0.014138254337012768,
0.08042234927415848,
0.02122100628912449,
0.016601258888840675,
-0.07447262108325958,
-0.04730132594704628,
0.04658030346035957,
0.037625208497047424,
0.008624410256743431,
-0.014194885268807411,
0.07911132276058197,
0.012194407172501087,
-0.00655572721734643,
0.001423307228833437,
-0.0049933078698813915,
-0.01613544672727585,
-0.016320988535881042,
0.003633958287537098,
-0.016481131315231323,
-0.04191732406616211,
-0.01965652033686638,
-0.036005690693855286,
0.031024031341075897,
-0.04700234904885292,
-0.0362495593726635,
-0.00163443258497864,
0.014635855332016945,
0.037837423384189606,
-0.0032446933910250664,
-0.039281103760004044,
0.009100939147174358,
-0.0389312282204628,
-0.008202929981052876,
-0.022307654842734337,
-0.011143133044242859,
0.009052055887877941,
0.015452049672603607,
0.025792744010686874,
-0.020062368363142014,
0.02033587358891964,
0.01390806958079338,
0.04436352849006653,
0.02801124006509781,
-0.04318852350115776,
0.03737972304224968,
-0.020847957581281662,
0.03673651069402695,
-0.018354719504714012,
-0.013353262096643448,
-0.043350156396627426,
-0.06352224946022034,
-0.012385336682200432,
0.023148836567997932,
-0.0263983141630888,
0.02081393450498581,
0.02806156873703003,
-0.020453287288546562,
-0.017788130789995193,
-0.0005422322428785264,
0.02254161238670349,
0.03942430019378662,
-0.06335803866386414,
0.05444396287202835,
-0.036010097712278366,
0.054088253527879715,
-0.05740133300423622,
0.00297544919885695,
-0.031067585572600365,
-0.008584770374000072,
0.016792068257927895,
0.047628968954086304,
0.005344084929674864,
0.05294377729296684,
0.05772840976715088,
0.05386409908533096,
-0.032228875905275345,
0.0480295829474926,
0.07200469821691513,
-0.019369054585695267,
-0.06599295139312744,
0.017582252621650696,
-0.031184222549200058,
-0.021915461868047714,
-0.015161409042775631,
-0.030748626217246056,
0.014029211364686489,
0.030050763860344887,
-0.003968106582760811,
0.0001044710079440847,
-0.00964087899774313,
-0.011678357608616352,
-0.02916305512189865,
-0.07026233524084091,
-0.03940415009856224,
-0.005698755849152803,
-0.016813816502690315,
0.027238594368100166,
0.040359701961278915,
0.0031728476751595736,
0.04867850989103317,
0.052472881972789764,
-0.014442670159041882,
-0.043014511466026306,
0.033111557364463806,
0.020011182874441147,
-0.048383016139268875,
-0.05563432350754738,
-0.04319839924573898,
0.024627799168229103,
0.06386587023735046,
-0.038157593458890915,
-0.1009269431233406,
-0.005736639257520437,
0.04674583673477173,
-0.04017455503344536,
0.027104709297418594,
-0.015741202980279922,
0.03167280554771423,
0.046675290912389755,
-0.020035743713378906,
0.03536034747958183,
-0.018965091556310654,
-0.0025744326412677765,
0.01827303133904934,
0.03586745262145996,
-0.017507122829556465,
-0.03248537331819534,
-0.018881427124142647,
0.04481042921543121,
0.02235904149711132,
0.018178392201662064,
0.061302825808525085,
-0.02006014809012413,
-0.06899737566709518,
0.0015760118840262294,
0.02733401209115982,
-0.044159743934869766,
0.01829374022781849,
0.010336657054722309,
0.05780038237571716,
-0.04296956583857536,
-0.027523722499608994,
-0.022340839728713036,
0.01055784709751606,
0.03668184205889702,
0.008792528882622719,
-0.019647393375635147,
-0.052128866314888,
0.030020786449313164,
0.008638190105557442,
-0.03789115324616432,
-0.08448752015829086,
0.0445653460919857,
0.012003260664641857,
-0.017950471490621567,
0.04184824228286743,
0.011511208489537239,
0.04423947632312775,
0.05771259590983391,
0.009203007444739342,
0.0059541696682572365,
-0.03283800929784775,
0.034637145698070526,
-0.030735008418560028,
0.0015497079584747553,
0.0035139534156769514,
-0.07093135267496109,
0.0011764329392462969,
-0.025904279202222824,
-0.03980793431401253,
-0.04302224516868591,
-0.032915327697992325,
0.043719302862882614,
0.0018322031246498227,
0.007755418308079243,
-0.005267132073640823,
0.03968728333711624,
0.008464289829134941,
-0.026935113593935966,
-0.051128920167684555,
-0.04616079851984978,
-0.052150826901197433,
-0.038878656923770905,
0.03584405407309532,
0.005481773987412453,
0.024360416457057,
-0.014355124905705452,
0.011141443625092506,
0.03541513532400131,
0.009868179447948933,
-0.060140132904052734,
0.045557547360658646,
-0.0029562879353761673,
-0.0403374582529068,
-0.025686798617243767,
0.002209919970482588,
0.010282831266522408,
-0.00488904258236289,
-0.033776961266994476,
0.01672675646841526,
0.009557030163705349,
-0.007428347133100033,
-0.0187983438372612,
0.025699276477098465,
0.014212989248335361,
-0.052608247846364975,
-0.03927707299590111,
-0.023003660142421722,
-0.035668469965457916,
0.032014913856983185,
-0.005094894673675299,
-0.027359338477253914,
0.021325411275029182,
0.030535370111465454,
0.012322644703090191,
-0.016462408006191254,
-0.010900041088461876,
0.04038133844733238,
-0.030950721353292465,
0.012285582721233368,
-0.07550039142370224,
0.03763855621218681,
-0.038571812212467194,
0.010674305260181427,
-0.017237523570656776,
-0.011326555162668228,
-0.04124642163515091,
0.03394908830523491,
-0.0005852807662449777,
-0.008808949962258339,
-0.01236753910779953,
0.01676984317600727,
-0.030895531177520752,
0.03377782925963402,
-0.01925833709537983,
0.04046180099248886,
-0.022943072021007538,
0.03040536493062973,
-0.02856685407459736,
-0.007482820190489292,
-0.02835645154118538,
0.031202426180243492,
-0.031217897310853004,
-0.036711156368255615,
-0.015559136867523193,
-0.0334613062441349,
0.03277100995182991,
0.04368102550506592,
0.017237050458788872,
0.029320307075977325,
-0.010250279679894447,
0.027034860104322433,
0.04435106739401817,
-0.0806131586432457,
-0.02870197594165802,
-0.004658092278987169,
-0.02547498606145382,
-0.017359010875225067,
0.031952470541000366,
0.023992162197828293,
-0.05892206355929375,
-0.048086389899253845,
0.047613225877285004,
0.019834458827972412,
0.021557891741394997,
-0.007274349685758352,
0.028182193636894226,
0.04470213130116463,
0.04336349666118622,
-0.03954702243208885,
-0.004156986717134714,
-0.003464737441390753,
-0.028881536796689034,
0.006507859565317631,
-0.013867811299860477,
0.01566024124622345,
-0.011882618069648743,
-0.04164979234337807,
-0.03233112767338753,
0.07758098095655441,
0.03854677453637123,
0.0053252060897648335,
0.003228274406865239,
-0.040184564888477325,
0.043979380279779434,
0.001283520832657814,
-0.06658848375082016,
0.025553494691848755,
0.00750976474955678,
-0.025511162355542183,
0.05983557924628258,
-0.01766815222799778,
0.012854811735451221,
0.04667724668979645,
0.02869478240609169,
-0.025080785155296326,
0.018881026655435562,
-0.04174714908003807,
0.012622049078345299,
0.04126840829849243,
-0.04451383650302887,
-0.022485880181193352,
-0.03926587477326393,
0.07056938111782074,
-0.05652280151844025,
0.04441884532570839,
0.05010461434721947,
0.003569028340280056,
0.0015328832669183612,
0.007311549969017506,
-0.061197150498628616,
0.0034382077865302563,
-0.03797663748264313,
0.0694640651345253,
-0.01595361903309822,
-0.08745218813419342,
0.06927767395973206,
0.022593282163143158,
-0.05390153452754021,
0.06351754814386368,
0.06764496117830276,
0.02702138014137745,
0.02881186455488205,
0.021758070215582848,
-0.0427851602435112,
0.008592159487307072,
-0.03234988451004028,
0.0286053866147995,
-0.05477138236165047,
-0.019446393474936485,
0.025423681363463402,
-0.023222392424941063,
-0.002076192758977413,
0.026867933571338654,
0.0004569874727167189,
-0.003510324750095606,
0.010418570600450039,
-0.062483012676239014,
-0.055279117077589035,
-0.026951083913445473,
0.012281722389161587,
-0.040182508528232574,
0.04383450001478195,
-0.012856168672442436,
0.020376333966851234,
0.004458088893443346,
0.0069177038967609406,
-0.017554599791765213,
0.024505026638507843,
0.011522861197590828,
-0.06339053809642792,
-0.03609362244606018,
0.043881140649318695,
0.03799727186560631,
-0.011834496632218361,
0.013689791783690453,
-0.009866396896541119,
-0.001158644212409854,
-0.0024879113771021366,
-0.027584824711084366,
0.02465059421956539,
-0.08684486895799637,
-0.018262596800923347,
0.02604210376739502,
0.03868953883647919,
0.020801134407520294,
-0.014814402908086777,
0.02381330542266369,
0.042990054935216904,
0.013186250813305378,
0.010956144891679287,
-0.006664822809398174,
-0.02185267023742199,
0.014922323636710644,
-0.05441485717892647,
0.02559562586247921,
0.009791050106287003,
-0.058288123458623886,
-0.02262422814965248,
0.006783667020499706,
-0.0299668088555336,
0.02319137379527092,
-0.07609200477600098,
-0.0032145874574780464,
0.040309906005859375,
-0.004914541263133287,
-0.05833663418889046,
-0.06534645706415176,
-0.044026631861925125,
-0.04136672243475914,
0.031666990369558334,
0.025946132838726044,
-0.04563494399189949,
0.01893353834748268,
-0.043195050209760666,
-0.037361547350883484,
0.06327962130308151,
0.009802930057048798,
-0.015381659381091595,
0.05101316422224045,
0.029731184244155884,
-0.04014768451452255,
0.024553684517741203,
0.027774428948760033,
-0.02725965343415737,
0.04045068472623825,
0.007394977379590273,
0.03597544506192207,
0.02879931777715683,
0.017526596784591675,
-0.011563344858586788,
-0.02683369815349579,
-0.019567763432860374,
-0.04984614998102188,
-0.04261191561818123,
0.007297990377992392,
0.04995756223797798
] |
BigSalmon/InformalToFormalLincoln20 | [
"pytorch",
"gpt2",
"text-generation",
"transformers"
] | text-generation | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": true,
"max_length": 50
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8 | null | Informal to Formal:
Wordy to Concise:
Fill Missing Phrase:
```
from transformers import AutoTokenizer, AutoModelWithLMHead
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln20")
model = AutoModelWithLMHead.from_pretrained("BigSalmon/InformalToFormalLincoln20")
```
```
https://huggingface.co/spaces/BigSalmon/GPT2 (The model for this space changes over time)
```
```
https://huggingface.co/spaces/BigSalmon/GPT2_Most_Probable (The model for this space changes over time)
```
```
How To Make Prompt:
informal english: i am very ready to do that just that.
Translated into the Style of Abraham Lincoln: you can assure yourself of my readiness to work toward this end.
Translated into the Style of Abraham Lincoln: please be assured that i am most ready to undertake this laborious task.
informal english: space is huge and needs to be explored.
Translated into the Style of Abraham Lincoln: space awaits traversal, a new world whose boundaries are endless.
Translated into the Style of Abraham Lincoln: space is a ( limitless / boundless ) expanse, a vast virgin domain awaiting exploration.
informal english: corn fields are all across illinois, visible once you leave chicago.
Translated into the Style of Abraham Lincoln: corn fields ( permeate illinois / span the state of illinois / ( occupy / persist in ) all corners of illinois / line the horizon of illinois / envelop the landscape of illinois ), manifesting themselves visibly as one ventures beyond chicago.
informal english:
````
```
infill: increasing the number of sidewalks in suburban areas will [MASK].
Translated into the Style of Abraham Lincoln: increasing the number of sidewalks in suburban areas will ( ( enhance / maximize ) community cohesion / facilitate ( communal ties / the formation of neighborhood camaraderie ) / forge neighborly relations / lend themselves to the advancement of neighborly ties / plant the seeds of community building / flower anew the bonds of friendship / invite the budding of neighborhood rapport / enrich neighborhood life ).
infill: corn fields [MASK], [MASK] visibly as one ventures beyond chicago.
Translated into the Style of Abraham Lincoln: corn fields ( permeate illinois / span the state of illinois / ( occupy / persist in ) all corners of illinois / line the horizon of illinois / envelop the landscape of illinois ), ( manifesting themselves ) visibly as one ventures beyond chicago.
infill: the [MASK] the SAT will soon be [MASK]. [MASK] an examination undertaken on one's laptop. [MASK] will allow students to retrieve test results promptly.
Translated into the Style of Abraham Lincoln: the ( conventional form of ) the SAT will soon be ( consigned to history ). ( replacing it will be ) an examination undertaken on one's laptop. ( so doing ) will allow students to retrieve test results promptly.
infill:
```
```
***
wordy: chancing upon a linux user is a rare occurrence in the present day.
Translate into Concise Text: present-day linux users are rare.
***
wordy: an interest in classical music is becoming more and more less popular.
Translate into Concise Text: classical music appreciation is dwindling.
Translate into Concise Text: waning interest in classic music persists.
Translate into Concise Text: interest in classic music is fading.
***
wordy: the ice cream was only one dollar, but it was not a good value for the size.
Translate into Concise Text: the one dollar ice cream was overpriced for its size.
Translate into Concise Text: overpriced, the one dollar ice cream was small.
***
wordy:
``` | [
-0.011801662854850292,
-0.024971021339297295,
-0.050752636045217514,
0.056445278227329254,
0.04556282237172127,
0.0531407855451107,
-0.01527677197009325,
0.01368956733494997,
-0.037175048142671585,
0.05845023691654205,
0.014057337306439877,
-0.004734967369586229,
0.01702575385570526,
0.016212955117225647,
-0.011206129565834999,
-0.013541756197810173,
-0.03795251250267029,
0.003987375181168318,
-0.022829918190836906,
-0.035351503640413284,
0.029337070882320404,
-0.004672451410442591,
-0.0007744686445221305,
0.02120453305542469,
-0.014000805094838142,
0.0067723277024924755,
-0.00560534093528986,
0.013094373978674412,
0.02748730219900608,
-0.07299551367759705,
-0.003624767530709505,
-0.047436367720365524,
-0.010060986503958702,
-0.017028072848916054,
-0.05576765164732933,
0.013232378289103508,
-0.006782985292375088,
0.009005575440824032,
0.02444709837436676,
0.0535261407494545,
0.006467449013143778,
0.007844124920666218,
0.016050660982728004,
-0.014225538820028305,
0.05156372860074043,
0.0021636351011693478,
-0.03604486584663391,
-0.03011743724346161,
0.05841218680143356,
-0.006260738708078861,
-0.029165402054786682,
-0.06712929904460907,
-0.00704592140391469,
0.008478096686303616,
-0.009064637124538422,
-0.0005168142961338162,
-0.07671675831079483,
-0.03925605118274689,
0.07879312336444855,
-0.06151425838470459,
-0.03019675612449646,
0.03913436084985733,
-0.07187297940254211,
0.055447276681661606,
0.040692176669836044,
-0.03354008123278618,
0.007948027923703194,
-0.03760146349668503,
0.01728157326579094,
-0.021115422248840332,
0.03385573998093605,
-0.036285657435655594,
0.021628469228744507,
-0.08578145503997803,
-0.013145145028829575,
-0.011121027171611786,
0.04704811051487923,
0.023279862478375435,
-0.05231397598981857,
0.07400001585483551,
0.02293476089835167,
0.008532296866178513,
0.022873185575008392,
-0.0058856382966041565,
-0.012387235648930073,
0.028570109978318214,
-0.03675992414355278,
-0.007457434665411711,
0.009301873855292797,
0.05211357772350311,
-0.03289537504315376,
-0.06689726561307907,
-0.01819421537220478,
-0.04736311361193657,
-0.011080034077167511,
0.010417881421744823,
0.0626549944281578,
-0.02130870334804058,
0.03144316002726555,
0.008309412747621536,
0.04274164140224457,
0.04473121091723442,
-0.004388593602925539,
0.04359080269932747,
-0.0074233864434063435,
0.01558477059006691,
-0.023141629993915558,
-0.03353346511721611,
-0.04653170704841614,
0.03865211084485054,
0.015227889642119408,
-0.036208197474479675,
-0.02900618128478527,
0.02323272079229355,
0.012537885457277298,
-0.023515358567237854,
0.03501547500491142,
-0.01215458195656538,
-0.04409971833229065,
-0.029867269098758698,
0.046047501266002655,
0.013539829291403294,
0.006535527762025595,
0.011872764676809311,
-0.06289160996675491,
0.04061140492558479,
-0.05388759821653366,
-0.04920130968093872,
-0.021185800433158875,
0.055235330015420914,
-0.006452652160078287,
0.0365261547267437,
0.022785821929574013,
-0.07003243267536163,
0.008837966248393059,
0.029707981273531914,
-0.06617126613855362,
0.032868701964616776,
0.014463448897004128,
0.10089382529258728,
-0.05092897638678551,
-0.057366568595170975,
0.008888483978807926,
0.0068518249318003654,
-0.02471049875020981,
0.01424429938197136,
0.023546714335680008,
-0.04029444605112076,
-0.01965595968067646,
0.023163672536611557,
0.08040408790111542,
-0.05010039359331131,
-0.007833789102733135,
0.03242803364992142,
0.004768573213368654,
0.05796659365296364,
-0.035610612481832504,
-0.0349428616464138,
0.011830294504761696,
0.02039146237075329,
-0.026570577174425125,
0.04161306470632553,
-0.02242012321949005,
-0.02456292137503624,
-0.04826626926660538,
-0.019964929670095444,
0.02301505021750927,
0.04973604157567024,
-0.011683503165841103,
-0.007609897293150425,
-0.02705332636833191,
0.01526446733623743,
0.03842562437057495,
0.03137418255209923,
-0.008490347303450108,
0.048511236906051636,
0.04232378304004669,
0.040136855095624924,
-0.05277545005083084,
0.046295166015625,
0.021420083940029144,
-0.03353302553296089,
-0.04103928431868553,
0.05129319056868553,
-0.0006392391514964402,
-0.026288501918315887,
0.02296137996017933,
0.06772605329751968,
-0.020442040637135506,
-0.03165833279490471,
-0.005718037486076355,
0.056949254125356674,
-0.011156996712088585,
0.002498321933671832,
-0.010870061814785004,
-0.033172961324453354,
-0.01949969492852688,
0.036424294114112854,
-0.04494092985987663,
0.005837340373545885,
-0.027480902150273323,
-0.047602735459804535,
-0.0007791650132276118,
0.03884458914399147,
0.044834546744823456,
0.04842931777238846,
-0.01626472920179367,
0.09826305508613586,
-0.034058310091495514,
0.005418548360466957,
-0.06984509527683258,
-0.06683081388473511,
0.0006664438406005502,
0.051432184875011444,
-0.005070576444268227,
0.055923111736774445,
0.004994806833565235,
-0.05041271820664406,
0.02083888277411461,
0.05667249858379364,
0.0425245501101017,
0.007083021104335785,
-0.026735270395874977,
0.015495691448450089,
0.02943659946322441,
0.047828949987888336,
-0.025678180158138275,
-0.03892048820853233,
0.033969979733228683,
0.04908614233136177,
-0.04428491368889809,
0.0050597526133060455,
-0.005701879505068064,
0.01289944164454937,
-0.03704669699072838,
-0.05788707360625267,
0.021331019699573517,
0.05033278465270996,
-0.0061165569350123405,
0.04556373879313469,
-0.003978730645030737,
0.018792742863297462,
0.02731030061841011,
0.010280736722052097,
0.008210383355617523,
-0.047100525349378586,
-0.005933850537985563,
0.013834281824529171,
0.0796244889497757,
-0.0735156238079071,
0.05464142560958862,
-0.008834213018417358,
0.012158067896962166,
0.041143324226140976,
0.003790082409977913,
0.04130729287862778,
0.055877935141325,
0.01769353821873665,
-0.033094655722379684,
0.035730212926864624,
0.005655838642269373,
0.04686640202999115,
0.06813719123601913,
-0.006287374533712864,
0.049596600234508514,
-0.013122422620654106,
0.04757074639201164,
0.07005471736192703,
0.04380852356553078,
-0.005066935438662767,
0.03566485643386841,
0.054828278720378876,
-0.0028044097125530243,
0.002556866267696023,
0.07082027941942215,
-0.06000835821032524,
0.016167428344488144,
-0.008875992149114609,
0.05422135069966316,
0.0011443585390225053,
-0.029389742761850357,
0.024996861815452576,
0.026806531473994255,
-0.021847670897841454,
0.012527372688055038,
-0.0008611130760982633,
0.0021899554412811995,
0.017846615985035896,
-0.005029370076954365,
0.008337304927408695,
-0.021837549284100533,
-0.04457417502999306,
0.0035965670831501484,
-0.09823581576347351,
-0.025042785331606865,
0.012415656819939613,
-0.015179555863142014,
0.03022286482155323,
-0.05792054906487465,
-0.027623824775218964,
-0.04527638107538223,
-0.020650168880820274,
0.0373411625623703,
0.017241187393665314,
0.0014011561870574951,
-0.006256281863898039,
0.00579257495701313,
-0.08269847929477692,
-0.018959593027830124,
-0.07975058257579803,
-0.043119899928569794,
-0.02810531109571457,
-0.028511488810181618,
0.02492350898683071,
-0.0031108215916901827,
0.008115828037261963,
0.028727956116199493,
-0.014509893953800201,
-0.044520169496536255,
-0.012312816455960274,
0.048135288059711456,
0.014297976158559322,
-0.017128124833106995,
-0.028707323595881462,
0.027438824996352196,
-0.010011862963438034,
0.02100650779902935,
-0.01664675772190094,
-0.03276557847857475,
0.07627622038125992,
0.07750552892684937,
0.03083324059844017,
0.011471818201243877,
-0.02530468814074993,
-0.058383163064718246,
-0.01986870728433132,
-0.03248550742864609,
-0.05809982493519783,
-0.018603896722197533,
-0.012896880507469177,
-0.03678025305271149,
-0.015399822033941746,
-0.046732015907764435,
-0.034188270568847656,
0.008383546024560928,
-0.001838129130192101,
0.06565596163272858,
0.060899149626493454,
0.022879714146256447,
0.040174297988414764,
-0.040591176599264145,
0.02063780650496483,
0.0791323259472847,
0.01264837384223938,
0.015256929211318493,
-0.07223852723836899,
-0.05475135147571564,
0.048724737018346786,
0.02290695533156395,
0.012873928062617779,
-0.026988690719008446,
0.07440920174121857,
0.018978029489517212,
-0.011738701723515987,
0.004597111605107784,
0.009709090925753117,
-0.0133798373863101,
-0.003277536714449525,
-0.010162933729588985,
-0.011325787752866745,
-0.04385082796216011,
-0.012683052569627762,
-0.05042460188269615,
0.026910418644547462,
-0.06199575960636139,
-0.048728737980127335,
-0.00038007760304026306,
0.022240212187170982,
0.034665465354919434,
0.00721973879262805,
-0.04306638240814209,
-0.002846934599801898,
-0.04013647511601448,
0.0020826836116611958,
-0.02140030451118946,
0.002356740180402994,
0.011462531983852386,
0.02158782258629799,
0.009118531830608845,
-0.0198456272482872,
-0.0016078553162515163,
0.014102713204920292,
0.04359498620033264,
0.02296617068350315,
-0.03145913407206535,
0.042015377432107925,
-0.018278680741786957,
0.03184376284480095,
-0.010700907558202744,
-0.009653091430664062,
-0.060488104820251465,
-0.07260610163211823,
-0.008633068762719631,
0.02423585020005703,
-0.02303854562342167,
0.022912537679076195,
0.03135950490832329,
-0.023727845400571823,
-0.01795237511396408,
0.0005167728522792459,
0.010828597471117973,
0.049084652215242386,
-0.05569344013929367,
0.047680724412202835,
-0.04660065844655037,
0.05672505497932434,
-0.053316038101911545,
-0.008848726749420166,
-0.03124992921948433,
-0.01136371772736311,
0.009599319659173489,
0.04336882382631302,
0.0053077093325555325,
0.048670172691345215,
0.04541778191924095,
0.04134896770119667,
-0.0389237143099308,
0.05270935222506523,
0.06800289452075958,
0.000911198032554239,
-0.05979016795754433,
0.008712641894817352,
-0.030168727040290833,
-0.033490508794784546,
-0.011981887742877007,
-0.027250617742538452,
0.01362962182611227,
0.0185591708868742,
0.0019774935208261013,
-0.006421150639653206,
-0.011476296931505203,
-0.015014613047242165,
-0.022591931745409966,
-0.06002238020300865,
-0.04419682174921036,
-0.010476778261363506,
-0.02310739830136299,
0.0443226583302021,
0.04157884418964386,
-0.0006815212545916438,
0.062402233481407166,
0.04751870781183243,
-0.0033541428856551647,
-0.04930868744850159,
0.03233812749385834,
0.02328410930931568,
-0.042622726410627365,
-0.055003318935632706,
-0.05331204831600189,
0.0132670309394598,
0.061283424496650696,
-0.031182173639535904,
-0.10142844915390015,
-0.008912329562008381,
0.053801313042640686,
-0.04649592936038971,
0.03204543516039848,
-0.008041856810450554,
0.023070339113473892,
0.0387154258787632,
-0.0201326422393322,
0.02628043293952942,
-0.009860926307737827,
0.00031289755133911967,
0.024602103978395462,
0.04347706586122513,
-0.019448405131697655,
-0.026570871472358704,
-0.040185969322919846,
0.04189344868063927,
0.00906092394143343,
0.024288687855005264,
0.06514604389667511,
-0.014715610072016716,
-0.0748920664191246,
0.0027342024259269238,
0.02123393677175045,
-0.047609247267246246,
0.02057807333767414,
0.012581500224769115,
0.04730799049139023,
-0.03394405171275139,
-0.04192724823951721,
-0.022004473954439163,
0.01014748401939869,
0.027215389534831047,
-0.009636951610445976,
-0.02504953369498253,
-0.04699311405420303,
0.03376521170139313,
-0.001645128708332777,
-0.035886745899915695,
-0.08264683932065964,
0.03840847313404083,
0.015212836675345898,
-0.01730961538851261,
0.02825789526104927,
0.0034696143120527267,
0.041064806282520294,
0.05990099534392357,
0.018582861870527267,
0.01593535579741001,
-0.03868425637483597,
0.025292793288826942,
-0.033278223127126694,
0.006469047628343105,
-0.0018244516104459763,
-0.072858527302742,
-0.017175521701574326,
-0.026622522622346878,
-0.05647784098982811,
-0.04305242374539375,
-0.023567842319607735,
0.047893017530441284,
-0.006223607808351517,
-0.0019039680482819676,
-0.01038516964763403,
0.02684059739112854,
0.009818144142627716,
-0.014728429727256298,
-0.04076468199491501,
-0.0483710877597332,
-0.0699755847454071,
-0.03212543576955795,
0.0197413582354784,
0.0019189328886568546,
0.018159782513976097,
-0.021690357476472855,
0.00905445497483015,
0.04522619768977165,
0.0053020319901406765,
-0.057553887367248535,
0.05552266910672188,
-0.01604153960943222,
-0.03921062499284744,
-0.029976043850183487,
0.00484462222084403,
0.007808605674654245,
-0.009074671193957329,
-0.03195297718048096,
0.02093764767050743,
0.01128761563450098,
-0.027281302958726883,
-0.006501036696135998,
0.03609795495867729,
0.009217338636517525,
-0.05963648110628128,
-0.04104435816407204,
-0.00790828000754118,
-0.03838648647069931,
0.030671460554003716,
-0.0028025370556861162,
-0.026738036423921585,
0.020599080249667168,
0.025732485577464104,
0.019524019211530685,
-0.020514825358986855,
-0.006138531491160393,
0.03243439272046089,
-0.021179288625717163,
0.00610756641253829,
-0.06531374901533127,
0.040035150945186615,
-0.03291173651814461,
-0.0074820504523813725,
-0.01325931865721941,
-0.0061990637332201,
-0.04866689071059227,
0.041217606514692307,
-0.00014236268179956824,
-0.002916271099820733,
-0.02979508601129055,
0.014047871343791485,
-0.030688505619764328,
0.03442942351102829,
-0.017277797684073448,
0.04035433754324913,
-0.030196666717529297,
0.03476215898990631,
-0.030839834362268448,
-0.02001255564391613,
-0.02912066876888275,
0.02030218578875065,
-0.0410534143447876,
-0.029650576412677765,
-0.014994699507951736,
-0.04533352702856064,
0.030353035777807236,
0.033082250505685806,
0.015709294006228447,
0.030504504218697548,
-0.005996451713144779,
0.02783891186118126,
0.045884937047958374,
-0.07699175924062729,
-0.013986429199576378,
-0.014943000860512257,
-0.023139355704188347,
-0.01665416732430458,
0.02713867649435997,
0.027888106182217598,
-0.053050316870212555,
-0.04733792319893837,
0.06299411505460739,
0.006970370654016733,
0.023178067058324814,
0.004472141619771719,
0.02830389328300953,
0.05324943736195564,
0.03995819017291069,
-0.045249730348587036,
-0.0017626959597691894,
-0.006010756362229586,
-0.02614312805235386,
0.009179136715829372,
-0.020234810188412666,
0.011935705319046974,
-0.022100569680333138,
-0.04073961824178696,
-0.04373325780034065,
0.07153958082199097,
0.032338351011276245,
0.008993889205157757,
0.013699707575142384,
-0.037770289927721024,
0.04791479557752609,
-0.0054406155832111835,
-0.06454988569021225,
0.02247762493789196,
0.008080628700554371,
-0.022491276264190674,
0.06991452723741531,
-0.017201939597725868,
0.012042351067066193,
0.05163650959730148,
0.03625994920730591,
-0.015353440307080746,
0.008650226518511772,
-0.04447194188833237,
0.0016443954082205892,
0.045035697519779205,
-0.049745943397283554,
-0.009029421024024487,
-0.038897085934877396,
0.0703933984041214,
-0.05460694059729576,
0.046397365629673004,
0.045002494007349014,
0.012074947357177734,
0.015749884769320488,
0.014764498919248581,
-0.06342175602912903,
0.013761739246547222,
-0.03276780620217323,
0.07007699459791183,
-0.0006955454591661692,
-0.09098660200834274,
0.08013702183961868,
0.023099856451153755,
-0.07571549713611603,
0.06773736327886581,
0.05388220027089119,
0.016333088278770447,
0.0396621935069561,
0.020729199051856995,
-0.037261225283145905,
0.014308756217360497,
-0.03039133921265602,
0.029448989778757095,
-0.05839868634939194,
-0.016316037625074387,
0.029765715822577477,
-0.03123115375638008,
-0.017341090366244316,
0.02648673579096794,
-0.004664891865104437,
-0.0009576277225278318,
0.006984164472669363,
-0.06833142042160034,
-0.057979024946689606,
-0.01674494333565235,
0.00742550753057003,
-0.06351084262132645,
0.030677180737257004,
-0.021433258429169655,
0.01595938578248024,
0.012956252321600914,
0.006290581542998552,
-0.025048768147826195,
0.019697019830346107,
0.025648579001426697,
-0.05582720786333084,
-0.03066282905638218,
0.0426742322742939,
0.04423786699771881,
-0.012654297985136509,
0.02174299955368042,
-0.005599797237664461,
0.008697559125721455,
-0.005391002632677555,
-0.02969793789088726,
0.014744709245860577,
-0.07508594542741776,
-0.01117977499961853,
0.02652818337082863,
0.038130681961774826,
0.01790131814777851,
-0.015673520043492317,
0.021382784470915794,
0.04085080698132515,
0.016547074541449547,
0.01672905869781971,
-0.004550227429717779,
-0.032859593629837036,
0.017034141346812248,
-0.04566920921206474,
0.03386085480451584,
0.006833290681242943,
-0.05705813318490982,
-0.031486328691244125,
-0.0021883794106543064,
0.0028006460051983595,
0.022080594673752785,
-0.0797308161854744,
-0.015123702585697174,
0.03887900337576866,
-0.01108104083687067,
-0.05728248506784439,
-0.06857247650623322,
-0.03903844207525253,
-0.042312733829021454,
0.03140110522508621,
0.021996552124619484,
-0.05209023877978325,
0.022153200581669807,
-0.04826795309782028,
-0.037522293627262115,
0.05988891050219536,
0.018899399787187576,
-0.01843329146504402,
0.04789159819483757,
0.03165017440915108,
-0.02953506074845791,
0.03489706665277481,
0.022440487518906593,
-0.02196018025279045,
0.05098271369934082,
-0.004273880273103714,
0.03131643310189247,
0.025482317432761192,
0.02191002666950226,
-0.018777886405587196,
-0.028101077303290367,
-0.022387860342860222,
-0.036225028336048126,
-0.049659471958875656,
0.014147372916340828,
0.05253900960087776
] |
BigSalmon/InformalToFormalLincoln21 | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"has_space"
] | text-generation | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": true,
"max_length": 50
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8 | null | Informal to Formal:
Wordy to Concise:
Fill Missing Phrase:
```
from transformers import AutoTokenizer, AutoModelWithLMHead
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln21")
model = AutoModelWithLMHead.from_pretrained("BigSalmon/InformalToFormalLincoln21")
```
```
https://huggingface.co/spaces/BigSalmon/GPT2 (The model for this space changes over time)
```
```
https://huggingface.co/spaces/BigSalmon/GPT2_Most_Probable (The model for this space changes over time)
```
```
How To Make Prompt:
informal english: i am very ready to do that just that.
Translated into the Style of Abraham Lincoln: you can assure yourself of my readiness to work toward this end.
Translated into the Style of Abraham Lincoln: please be assured that i am most ready to undertake this laborious task.
informal english: space is huge and needs to be explored.
Translated into the Style of Abraham Lincoln: space awaits traversal, a new world whose boundaries are endless.
Translated into the Style of Abraham Lincoln: space is a ( limitless / boundless ) expanse, a vast virgin domain awaiting exploration.
informal english: corn fields are all across illinois, visible once you leave chicago.
Translated into the Style of Abraham Lincoln: corn fields ( permeate illinois / span the state of illinois / ( occupy / persist in ) all corners of illinois / line the horizon of illinois / envelop the landscape of illinois ), manifesting themselves visibly as one ventures beyond chicago.
informal english:
````
```
infill: increasing the number of sidewalks in suburban areas will [MASK].
Translated into the Style of Abraham Lincoln: increasing the number of sidewalks in suburban areas will ( ( enhance / maximize ) community cohesion / facilitate ( communal ties / the formation of neighborhood camaraderie ) / forge neighborly relations / lend themselves to the advancement of neighborly ties / plant the seeds of community building / flower anew the bonds of friendship / invite the budding of neighborhood rapport / enrich neighborhood life ).
infill: corn fields [MASK], [MASK] visibly as one ventures beyond chicago.
Translated into the Style of Abraham Lincoln: corn fields ( permeate illinois / span the state of illinois / ( occupy / persist in ) all corners of illinois / line the horizon of illinois / envelop the landscape of illinois ), ( manifesting themselves ) visibly as one ventures beyond chicago.
infill: the [MASK] the SAT will soon be [MASK]. [MASK] an examination undertaken on one's laptop. [MASK] will allow students to retrieve test results promptly.
Translated into the Style of Abraham Lincoln: the ( conventional form of ) the SAT will soon be ( consigned to history ). ( replacing it will be ) an examination undertaken on one's laptop. ( so doing ) will allow students to retrieve test results promptly.
infill:
```
```
***
wordy: chancing upon a linux user is a rare occurrence in the present day.
Translate into Concise Text: present-day linux users are rare.
***
wordy: an interest in classical music is becoming more and more less popular.
Translate into Concise Text: classical music appreciation is dwindling.
Translate into Concise Text: waning interest in classic music persists.
Translate into Concise Text: interest in classic music is fading.
***
wordy: the ice cream was only one dollar, but it was not a good value for the size.
Translate into Concise Text: the one dollar ice cream was overpriced for its size.
Translate into Concise Text: overpriced, the one dollar ice cream was small.
***
wordy:
``` | [
-0.01176526304334402,
-0.024500081315636635,
-0.051123954355716705,
0.0567518025636673,
0.04597460851073265,
0.05313839390873909,
-0.015442253090441227,
0.013666965067386627,
-0.03715664520859718,
0.05843978002667427,
0.013788234442472458,
-0.004334715195000172,
0.017095064744353294,
0.0158913005143404,
-0.011442514136433601,
-0.01329118199646473,
-0.03789987787604332,
0.004051422234624624,
-0.022443080320954323,
-0.034733980894088745,
0.029431652277708054,
-0.0048494357615709305,
-0.0006755067151971161,
0.021535780280828476,
-0.013936654664576054,
0.006790453102439642,
-0.005937506910413504,
0.013129201717674732,
0.027651522308588028,
-0.07280392944812775,
-0.003087804187089205,
-0.04793710261583328,
-0.010069085285067558,
-0.01700332574546337,
-0.05576750636100769,
0.013398117385804653,
-0.006819786969572306,
0.009406153112649918,
0.024506380781531334,
0.05318307876586914,
0.006414998322725296,
0.007699856534600258,
0.015975438058376312,
-0.014113220386207104,
0.05195242911577225,
0.0024720714427530766,
-0.036342110484838486,
-0.030106380581855774,
0.058618173003196716,
-0.006613545585423708,
-0.029171133413910866,
-0.06700864434242249,
-0.007072198670357466,
0.008554416708648205,
-0.008833847939968109,
-0.0003324991266708821,
-0.07658147811889648,
-0.0390918031334877,
0.07922414690256119,
-0.06164314225316048,
-0.030296338722109795,
0.03902653604745865,
-0.07171811908483505,
0.0556345172226429,
0.04080513119697571,
-0.03354961797595024,
0.00820141565054655,
-0.037673745304346085,
0.0170600488781929,
-0.021099014207720757,
0.03373242914676666,
-0.03607102856040001,
0.021382996812462807,
-0.08560226857662201,
-0.0133861368522048,
-0.01092532742768526,
0.0470740869641304,
0.02369905821979046,
-0.052746281027793884,
0.0744103342294693,
0.0226804930716753,
0.0080714151263237,
0.023135194554924965,
-0.005727341398596764,
-0.012068950571119785,
0.02858460508286953,
-0.0367136225104332,
-0.007297969423234463,
0.009034710004925728,
0.052137576043605804,
-0.033114369958639145,
-0.06720487028360367,
-0.01826549507677555,
-0.04754702374339104,
-0.011233516968786716,
0.010742805898189545,
0.06300970166921616,
-0.021439654752612114,
0.03124372661113739,
0.008331483229994774,
0.042370446026325226,
0.04458944499492645,
-0.004513533785939217,
0.043101511895656586,
-0.007745044305920601,
0.015833692625164986,
-0.022790739312767982,
-0.033609990030527115,
-0.04635240510106087,
0.038413867354393005,
0.015194232575595379,
-0.036406971514225006,
-0.02897157333791256,
0.02344745211303234,
0.012709389440715313,
-0.023074215278029442,
0.035161275416612625,
-0.012520484626293182,
-0.043957021087408066,
-0.0296331774443388,
0.04574144259095192,
0.013311349786818027,
0.0061004855670034885,
0.012227511033415794,
-0.06293947994709015,
0.04046419635415077,
-0.0540827251970768,
-0.04943859204649925,
-0.02108151465654373,
0.05500844493508339,
-0.006801429204642773,
0.0368897020816803,
0.02254835143685341,
-0.06986474245786667,
0.008521171286702156,
0.02997283637523651,
-0.06616106629371643,
0.03281618654727936,
0.014334692619740963,
0.100925974547863,
-0.050862930715084076,
-0.05734679475426674,
0.008446924388408661,
0.006532536819577217,
-0.02507409267127514,
0.014034309424459934,
0.02379351481795311,
-0.04025169461965561,
-0.01965801976621151,
0.023665066808462143,
0.08003386855125427,
-0.05029330775141716,
-0.007725086994469166,
0.03255815431475639,
0.004492984153330326,
0.05802782252430916,
-0.03552711755037308,
-0.034882545471191406,
0.011887766420841217,
0.020189736038446426,
-0.026607681065797806,
0.041918352246284485,
-0.022535914555191994,
-0.024821700528264046,
-0.04812115058302879,
-0.020077873021364212,
0.02297055535018444,
0.05018951743841171,
-0.011461954563856125,
-0.007929008454084396,
-0.026578422635793686,
0.01497125905007124,
0.03828369453549385,
0.03144939988851547,
-0.008047636598348618,
0.04893254488706589,
0.04228408262133598,
0.04000617936253548,
-0.05298120155930519,
0.04636000469326973,
0.02114519663155079,
-0.03392038494348526,
-0.0409926101565361,
0.051563918590545654,
-0.0007632750202901661,
-0.026323458179831505,
0.02319813333451748,
0.06755903363227844,
-0.02051086165010929,
-0.03175262734293938,
-0.005394679959863424,
0.05687766522169113,
-0.011279002763330936,
0.0025238175876438618,
-0.01048153918236494,
-0.03229150176048279,
-0.019098855555057526,
0.03583524003624916,
-0.04488556832075119,
0.006173807196319103,
-0.02801378071308136,
-0.047305747866630554,
-0.0010927458060905337,
0.038688093423843384,
0.04483921080827713,
0.04850636050105095,
-0.016325540840625763,
0.09845207631587982,
-0.034090835601091385,
0.005283197853714228,
-0.06963836401700974,
-0.06686844676733017,
0.0008566553005948663,
0.051355812698602676,
-0.0043600271455943584,
0.056243110448122025,
0.005357165355235338,
-0.05100167542695999,
0.020734470337629318,
0.057266928255558014,
0.042278487235307693,
0.007022074423730373,
-0.027376940473914146,
0.015580655075609684,
0.029833542183041573,
0.04800945520401001,
-0.025528185069561005,
-0.039054203778505325,
0.033802732825279236,
0.04911233112215996,
-0.043828047811985016,
0.004984807223081589,
-0.005587514955550432,
0.012800433672964573,
-0.036707568913698196,
-0.058052632957696915,
0.021690871566534042,
0.050540804862976074,
-0.006300379056483507,
0.045765649527311325,
-0.004397386685013771,
0.019513526931405067,
0.027597973123192787,
0.010324979200959206,
0.008280000649392605,
-0.047177571803331375,
-0.005641849711537361,
0.013819824904203415,
0.07922067493200302,
-0.07330428063869476,
0.054596442729234695,
-0.008617454208433628,
0.012517540715634823,
0.041040629148483276,
0.004023954272270203,
0.04162413254380226,
0.056068483740091324,
0.017435668036341667,
-0.03291190415620804,
0.035493653267621994,
0.005970824509859085,
0.04704120755195618,
0.0679759532213211,
-0.006336161866784096,
0.049366798251867294,
-0.01281749177724123,
0.047581110149621964,
0.06974323838949203,
0.04381272941827774,
-0.004805440548807383,
0.035757895559072495,
0.05473081395030022,
-0.0028741538990288973,
0.0025963354855775833,
0.07062706351280212,
-0.06049393117427826,
0.01630188524723053,
-0.009076462127268314,
0.054298754781484604,
0.0008922676788643003,
-0.029653064906597137,
0.025029124692082405,
0.027316633611917496,
-0.02163327857851982,
0.012451419606804848,
-0.0011363067897036672,
0.0023751233238726854,
0.018052006140351295,
-0.00481830071657896,
0.008652545511722565,
-0.021542126312851906,
-0.04477742686867714,
0.003588787978515029,
-0.09808222204446793,
-0.025251682847738266,
0.012889651581645012,
-0.015102443285286427,
0.03032747656106949,
-0.05786952003836632,
-0.02743588015437126,
-0.04521268978714943,
-0.02032560668885708,
0.037150222808122635,
0.016733473166823387,
0.00119581981562078,
-0.005852808244526386,
0.005347317550331354,
-0.08251842111349106,
-0.018687861040234566,
-0.07951957732439041,
-0.04310016334056854,
-0.028144214302301407,
-0.028697915375232697,
0.024738026782870293,
-0.003081132424995303,
0.00844554603099823,
0.028669819235801697,
-0.01448229979723692,
-0.044504374265670776,
-0.012585674412548542,
0.04822220653295517,
0.013748702593147755,
-0.01739470846951008,
-0.028543053194880486,
0.0274044256657362,
-0.0101007716730237,
0.021321794018149376,
-0.016339143738150597,
-0.032723318785429,
0.07624266296625137,
0.0773061066865921,
0.03064671903848648,
0.01120801828801632,
-0.02518519014120102,
-0.05854536592960358,
-0.019814133644104004,
-0.03240368142724037,
-0.058153361082077026,
-0.0185975581407547,
-0.012703623622655869,
-0.03665708750486374,
-0.015968862920999527,
-0.046542249619960785,
-0.03375999629497528,
0.008443883620202541,
-0.001980988308787346,
0.06572160869836807,
0.06106420233845711,
0.02280203439295292,
0.03982776403427124,
-0.040646787732839584,
0.02045237086713314,
0.07882507145404816,
0.012577870860695839,
0.015180855058133602,
-0.07216328382492065,
-0.05486605316400528,
0.04913011193275452,
0.02332059107720852,
0.013175380416214466,
-0.02676635980606079,
0.07424786686897278,
0.019446585327386856,
-0.01149019505828619,
0.004686630796641111,
0.00947857741266489,
-0.013256046921014786,
-0.0031710565090179443,
-0.010224123485386372,
-0.011271115392446518,
-0.04374121502041817,
-0.012863392010331154,
-0.050773072987794876,
0.026928169652819633,
-0.062390878796577454,
-0.048237431794404984,
-0.00031238989322446287,
0.022275295108556747,
0.03487816080451012,
0.007431209087371826,
-0.04307917505502701,
-0.0030071691144257784,
-0.04018989950418472,
0.0018962613539770246,
-0.02139117568731308,
0.00196060910820961,
0.011249266564846039,
0.021882792934775352,
0.008573499508202076,
-0.020113931968808174,
-0.0015649209963157773,
0.014565600082278252,
0.04344983026385307,
0.022511979565024376,
-0.03168213367462158,
0.04229366406798363,
-0.018225690349936485,
0.03161347657442093,
-0.011303767561912537,
-0.0098972637206316,
-0.06065545231103897,
-0.0724991038441658,
-0.008514654822647572,
0.023638704791665077,
-0.023046394810080528,
0.023110488429665565,
0.031058773398399353,
-0.02373235486447811,
-0.017799315974116325,
0.0004588140291161835,
0.01085610780864954,
0.04930713027715683,
-0.0555596761405468,
0.04783216118812561,
-0.04631857946515083,
0.05699022114276886,
-0.05333463475108147,
-0.008778770454227924,
-0.03149188682436943,
-0.01146729290485382,
0.0095144584774971,
0.04359666258096695,
0.00546387629583478,
0.04865531250834465,
0.04551899805665016,
0.04145896062254906,
-0.0390985868871212,
0.05286214500665665,
0.06781427562236786,
0.0009485069895163178,
-0.06024516373872757,
0.008551674894988537,
-0.029842359945178032,
-0.03315141424536705,
-0.011517544277012348,
-0.026716239750385284,
0.013154735788702965,
0.01861385814845562,
0.001931473147124052,
-0.00624481588602066,
-0.011434303596615791,
-0.014864583499729633,
-0.022734273225069046,
-0.059718791395425797,
-0.04409690201282501,
-0.010286880657076836,
-0.022607531398534775,
0.04460006207227707,
0.04179351031780243,
-0.0007233345531858504,
0.06196886673569679,
0.047614097595214844,
-0.0032148989848792553,
-0.049152031540870667,
0.03220410272479057,
0.02317015640437603,
-0.04241349175572395,
-0.055325452238321304,
-0.05313142016530037,
0.013651702553033829,
0.06110314652323723,
-0.03120899572968483,
-0.1013747975230217,
-0.009247998706996441,
0.053661514073610306,
-0.04653989523649216,
0.03197065740823746,
-0.008257639594376087,
0.02311440370976925,
0.03845949470996857,
-0.02030838094651699,
0.026045363396406174,
-0.009871033951640129,
0.0005359329516068101,
0.024672500789165497,
0.043343592435121536,
-0.019993813708424568,
-0.026266077533364296,
-0.04039281606674194,
0.04179396852850914,
0.009550613351166248,
0.0245850570499897,
0.06482551246881485,
-0.014590109698474407,
-0.07517591863870621,
0.002632409567013383,
0.021064678207039833,
-0.04779677838087082,
0.020399052649736404,
0.012961030006408691,
0.04739416763186455,
-0.033870331943035126,
-0.04193867743015289,
-0.022303998470306396,
0.009993291459977627,
0.02704809419810772,
-0.009736685082316399,
-0.02514081448316574,
-0.04702339321374893,
0.03389514237642288,
-0.0015991306863725185,
-0.0364336259663105,
-0.08237621933221817,
0.038210999220609665,
0.01560722105205059,
-0.017243212088942528,
0.028541555628180504,
0.003723889822140336,
0.04071834683418274,
0.05972887948155403,
0.01903040148317814,
0.016433311626315117,
-0.038789618760347366,
0.025414081290364265,
-0.03290515020489693,
0.006492866203188896,
-0.0017408246640115976,
-0.07269468903541565,
-0.017159100621938705,
-0.0269699115306139,
-0.056205831468105316,
-0.04312970116734505,
-0.023451009765267372,
0.04806138947606087,
-0.005751105025410652,
-0.0018069547368213534,
-0.010609953664243221,
0.02689751237630844,
0.009959467686712742,
-0.014717166312038898,
-0.041016437113285065,
-0.048586465418338776,
-0.06963036209344864,
-0.03205382078886032,
0.019634857773780823,
0.0019276220118626952,
0.018017778173089027,
-0.02171464078128338,
0.008648524060845375,
0.045030295848846436,
0.005058846902102232,
-0.057687319815158844,
0.05566389486193657,
-0.015957776457071304,
-0.03891408443450928,
-0.02982761710882187,
0.0046449946239590645,
0.007911588065326214,
-0.009419101290404797,
-0.03190264850854874,
0.02110849693417549,
0.011152603663504124,
-0.02735711820423603,
-0.00658573629334569,
0.03591373562812805,
0.009209713898599148,
-0.05967608839273453,
-0.040926601737737656,
-0.00794394314289093,
-0.03813476115465164,
0.030763188377022743,
-0.00273247086443007,
-0.02717491239309311,
0.020410047844052315,
0.025681136175990105,
0.01945507898926735,
-0.020402101799845695,
-0.006174030248075724,
0.03231796249747276,
-0.021232036873698235,
0.006328893359750509,
-0.06547053903341293,
0.0398825965821743,
-0.033407170325517654,
-0.007359070237725973,
-0.01346481591463089,
-0.005797546822577715,
-0.04875560104846954,
0.04108533263206482,
0.00026844703825190663,
-0.003014735644683242,
-0.030136190354824066,
0.014252940192818642,
-0.03091072291135788,
0.034450408071279526,
-0.017399070784449577,
0.0405159555375576,
-0.030024763196706772,
0.034540317952632904,
-0.03096177615225315,
-0.020291833207011223,
-0.029696540907025337,
0.019858207553625107,
-0.040936119854450226,
-0.029674595221877098,
-0.015145569108426571,
-0.045550908893346786,
0.03005937673151493,
0.032954100519418716,
0.015795132145285606,
0.030512802302837372,
-0.006045526824891567,
0.028109189122915268,
0.04618145897984505,
-0.07698757946491241,
-0.01402965746819973,
-0.014855924062430859,
-0.023507284000515938,
-0.016437843441963196,
0.02753221057355404,
0.027674375101923943,
-0.05329776555299759,
-0.04753541573882103,
0.0625552088022232,
0.006718053016811609,
0.02353670820593834,
0.005108820740133524,
0.02814384549856186,
0.0529821515083313,
0.0399925671517849,
-0.04462646320462227,
-0.0014001147355884314,
-0.005798113066703081,
-0.026126332581043243,
0.009112452156841755,
-0.02068648301064968,
0.011738990433514118,
-0.021672474220395088,
-0.04069678485393524,
-0.043646346777677536,
0.0717737078666687,
0.03218347951769829,
0.00869040098041296,
0.013507219962775707,
-0.03789190948009491,
0.04834223538637161,
-0.005844729952514172,
-0.06476272642612457,
0.02254410833120346,
0.007865280844271183,
-0.023019490763545036,
0.06987324357032776,
-0.017031652852892876,
0.011801735498011112,
0.05144139751791954,
0.036310672760009766,
-0.015433932654559612,
0.008679298684000969,
-0.044576287269592285,
0.0018200322519987822,
0.04486360773444176,
-0.050099294632673264,
-0.008832410909235477,
-0.03922457620501518,
0.07011238485574722,
-0.05423080176115036,
0.046296585351228714,
0.04520813375711441,
0.01227119192481041,
0.015907490625977516,
0.014959568157792091,
-0.06366977840662003,
0.01368353795260191,
-0.03283337503671646,
0.07012634724378586,
-0.0006348066381178796,
-0.09099693596363068,
0.07994373142719269,
0.022939151152968407,
-0.0758914053440094,
0.06776334345340729,
0.05408092215657234,
0.01631835103034973,
0.04017011821269989,
0.020392190665006638,
-0.0372341051697731,
0.014626121148467064,
-0.030521219596266747,
0.029551882296800613,
-0.05831628665328026,
-0.016066843643784523,
0.029537726193666458,
-0.03128109127283096,
-0.016628336161375046,
0.026812179014086723,
-0.004939788021147251,
-0.0008708690875209868,
0.007127928081899881,
-0.06830864399671555,
-0.05841786786913872,
-0.01655232347548008,
0.007800224237143993,
-0.06335446983575821,
0.031063204631209373,
-0.021458903327584267,
0.01600595749914646,
0.012899098917841911,
0.006311837583780289,
-0.025051388889551163,
0.019732628017663956,
0.025547904893755913,
-0.05587602034211159,
-0.031093506142497063,
0.04318217933177948,
0.04426002874970436,
-0.012552834115922451,
0.02159457840025425,
-0.0054182023741304874,
0.008378126658499241,
-0.005269122309982777,
-0.03002426214516163,
0.014578946866095066,
-0.07499926537275314,
-0.010714299976825714,
0.027060410007834435,
0.03833722323179245,
0.017981527373194695,
-0.015469244681298733,
0.021318066865205765,
0.0402030386030674,
0.016210030764341354,
0.016574839130043983,
-0.004772124346345663,
-0.03289225697517395,
0.01699705608189106,
-0.04532841220498085,
0.03354030102491379,
0.00701336283236742,
-0.05726165324449539,
-0.03136285021901131,
-0.0019247690215706825,
0.0028014478739351034,
0.022095302119851112,
-0.07952163368463516,
-0.015422542579472065,
0.03855905309319496,
-0.011047237552702427,
-0.05657985061407089,
-0.0685177594423294,
-0.039110079407691956,
-0.042423103004693985,
0.031180214136838913,
0.021696755662560463,
-0.05207665264606476,
0.021994132548570633,
-0.04791965335607529,
-0.03717315196990967,
0.060002438724040985,
0.018977675586938858,
-0.018551021814346313,
0.04773550480604172,
0.03167319297790527,
-0.029728788882493973,
0.03468041494488716,
0.021852510049939156,
-0.02196241356432438,
0.05101694166660309,
-0.004270973149687052,
0.031737782061100006,
0.02514633908867836,
0.022097500041127205,
-0.01880487985908985,
-0.02786683849990368,
-0.022458545863628387,
-0.0362895242869854,
-0.049347084015607834,
0.014189654029905796,
0.05275985971093178
] |
BigSalmon/InformalToFormalLincoln22 | [
"pytorch",
"gpt2",
"text-generation",
"transformers"
] | text-generation | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": true,
"max_length": 50
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 6 | null | ```
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln22")
model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln22")
```
```
How To Make Prompt:
informal english: i am very ready to do that just that.
Translated into the Style of Abraham Lincoln: you can assure yourself of my readiness to work toward this end.
Translated into the Style of Abraham Lincoln: please be assured that i am most ready to undertake this laborious task.
***
informal english: space is huge and needs to be explored.
Translated into the Style of Abraham Lincoln: space awaits traversal, a new world whose boundaries are endless.
Translated into the Style of Abraham Lincoln: space is a ( limitless / boundless ) expanse, a vast virgin domain awaiting exploration.
***
informal english: corn fields are all across illinois, visible once you leave chicago.
Translated into the Style of Abraham Lincoln: corn fields ( permeate illinois / span the state of illinois / ( occupy / persist in ) all corners of illinois / line the horizon of illinois / envelop the landscape of illinois ), manifesting themselves visibly as one ventures beyond chicago.
informal english:
```
```
- declining viewership facing the nba.
- does not have to be this way.
- in fact, many solutions exist.
- the four point line would surely draw in eyes.
Text: failing to draw in the masses, the NBA has fallen into disrepair. such does not have to be the case, however. in fact, a myriad of simple, relatively cheap solutions could revive the league. the addition of the much-hyped four-point line would surely juice viewership.
***
-
```
```
infill: chrome extensions [MASK] accomplish everyday tasks.
Translated into the Style of Abraham Lincoln: chrome extensions ( expedite the ability to / unlock the means to more readily ) accomplish everyday tasks.
infill: at a time when nintendo has become inflexible, [MASK] consoles that are tethered to a fixed iteration, sega diligently curates its legacy of classic video games on handheld devices.
Translated into the Style of Abraham Lincoln: at a time when nintendo has become inflexible, ( stubbornly [MASK] on / firmly set on / unyielding in its insistence on ) consoles that are tethered to a fixed iteration, sega diligently curates its legacy of classic video games on handheld devices.
infill:
```
```
Essay Intro (California High-Speed Rail): built with an eye on the future, california's high-speed rail service resolves to change the face of travel.
Essay Intro (YIMBY's Need To Win): home to the most expensive housing market in the united states, san francisco is the city in which the yimby and anti-yimby hordes wage an eternal battle.
Essay Intro (
```
```
Search: What is the definition of Checks and Balances?
https://en.wikipedia.org/wiki/Checks_and_balances
Checks and Balances is the idea of having a system where each and every action in government should be subject to one or more checks that would not allow one branch or the other to overly dominate.
https://www.harvard.edu/glossary/Checks_and_Balances
Checks and Balances is a system that allows each branch of government to limit the powers of the other branches in order to prevent abuse of power
https://www.law.cornell.edu/library/constitution/Checks_and_Balances
Checks and Balances is a system of separation through which branches of government can control the other, thus preventing excess power.
***
Search: What is the definition of Separation of Powers?
https://en.wikipedia.org/wiki/Separation_of_powers
The separation of powers is a principle in government, whereby governmental powers are separated into different branches, each with their own set of powers, that are prevent one branch from aggregating too much power.
https://www.yale.edu/tcf/Separation_of_Powers.html
Separation of Powers is the division of governmental functions between the executive, legislative and judicial branches, clearly demarcating each branch's authority, in the interest of ensuring that individual liberty or security is not undermined.
***
Search: What is the definition of Connection of Powers?
https://en.wikipedia.org/wiki/Connection_of_powers
Connection of Powers is a feature of some parliamentary forms of government where different branches of government are intermingled, typically the executive and legislative branches.
https://simple.wikipedia.org/wiki/Connection_of_powers
The term Connection of Powers describes a system of government in which there is overlap between different parts of the government.
***
Search: What is the definition of
```
```
Search: What are phrase synonyms for "second-guess"?
https://www.powerthesaurus.org/second-guess/synonyms
Shortest to Longest:
- feel dubious about
- raise an eyebrow at
- wrinkle their noses at
- cast a jaundiced eye at
- teeter on the fence about
***
Search: What are phrase synonyms for "mean to newbies"?
https://www.powerthesaurus.org/mean_to_newbies/synonyms
Shortest to Longest:
- readiness to balk at rookies
- absence of tolerance for novices
- hostile attitude toward newcomers
***
Search: What are phrase synonyms for "make use of"?
https://www.powerthesaurus.org/make_use_of/synonyms
Shortest to Longest:
- call upon
- glean value from
- reap benefits from
- derive utility from
- seize on the merits of
- draw on the strength of
- tap into the potential of
***
Search: What are phrase synonyms for "hurting itself"?
https://www.powerthesaurus.org/hurting_itself/synonyms
Shortest to Longest:
- erring
- slighting itself
- forfeiting its integrity
- doing itself a disservice
- evincing a lack of backbone
***
Search: What are phrase synonyms for "
``` | [
-0.01176405604928732,
-0.022455161437392235,
-0.04534149542450905,
0.05058502405881882,
0.046598706394433975,
0.05235234275460243,
-0.013470984064042568,
0.010916869156062603,
-0.04486363008618355,
0.05223394185304642,
0.01998881995677948,
-0.01085381768643856,
0.009754030033946037,
0.0116990115493536,
-0.025577949360013008,
-0.011242654174566269,
-0.042059190571308136,
0.014342238195240498,
-0.026935210451483727,
-0.03679552674293518,
0.03134305030107498,
-0.010117295198142529,
0.0037754494696855545,
0.0275637898594141,
-0.014753952622413635,
-0.000010397755431768019,
0.000013760814908891916,
0.02012825757265091,
0.03374762460589409,
-0.06879492104053497,
-0.0031813643872737885,
-0.050885457545518875,
0.000539109343662858,
-0.02855036035180092,
-0.0604354627430439,
0.030947143211960793,
-0.003881895449012518,
0.00935045350342989,
0.020718835294246674,
0.043273042887449265,
-0.0050951517187058926,
0.008339064195752144,
0.010837812907993793,
-0.01290366891771555,
0.03728865087032318,
0.00561056612059474,
-0.033727362751960754,
-0.03546903282403946,
0.061007048934698105,
-0.003378096502274275,
-0.03322780504822731,
-0.06907620280981064,
-0.003939968068152666,
0.01355288177728653,
-0.005595823749899864,
-0.0006679781945422292,
-0.07848423719406128,
-0.030781934037804604,
0.08460097014904022,
-0.0671762079000473,
-0.02980404533445835,
0.03538026660680771,
-0.07054314762353897,
0.05528232455253601,
0.039437297731637955,
-0.031765591353178024,
0.014326618053019047,
-0.03736956790089607,
0.009972279891371727,
-0.018255343660712242,
0.03377257287502289,
-0.0422247014939785,
0.020848901942372322,
-0.0821080133318901,
-0.006222724448889494,
-0.007501200772821903,
0.045761920511722565,
0.019278470426797867,
-0.05623086541891098,
0.07333660125732422,
0.021798353642225266,
0.00969419814646244,
0.019957080483436584,
-0.010454424656927586,
-0.014071708545088768,
0.030570071190595627,
-0.04763226583600044,
-0.00905548594892025,
0.015682775527238846,
0.050138991326093674,
-0.031918250024318695,
-0.06702301651239395,
-0.015784533694386482,
-0.05252502113580704,
-0.003915779292583466,
0.024748140946030617,
0.06492169946432114,
-0.011064337566494942,
0.033257272094488144,
0.01063863281160593,
0.04392154514789581,
0.040857262909412384,
-0.0006131257978267968,
0.03553226962685585,
-0.00788862444460392,
0.009016016498208046,
-0.02997969277203083,
-0.03625616058707237,
-0.04661649093031883,
0.031426213681697845,
0.013237174600362778,
-0.04134095460176468,
-0.02331065572798252,
0.022556055337190628,
0.018367262557148933,
-0.016035733744502068,
0.03885277360677719,
-0.024555979296565056,
-0.05293915048241615,
-0.022157778963446617,
0.03893023356795311,
0.021899010986089706,
0.014586708508431911,
0.002268508542329073,
-0.07775774598121643,
0.040739525109529495,
-0.059660691767930984,
-0.058539070188999176,
-0.032547593116760254,
0.05716448649764061,
0.003946243319660425,
0.03439662978053093,
0.022134294733405113,
-0.0744025707244873,
0.023222967982292175,
0.029606301337480545,
-0.06432338804006577,
0.037038397043943405,
0.004757256247103214,
0.09634087234735489,
-0.059896647930145264,
-0.059949591755867004,
0.017757438123226166,
0.004313370678573847,
-0.025753777474164963,
0.012939387932419777,
0.014455731958150864,
-0.042930636554956436,
-0.026496775448322296,
0.02591756545007229,
0.07481007277965546,
-0.05036124959588051,
-0.00831450242549181,
0.03432644158601761,
0.007720265071839094,
0.0589246042072773,
-0.030372370034456253,
-0.021959157660603523,
0.0074143186211586,
0.023051245138049126,
-0.03581919148564339,
0.03603276237845421,
-0.02476915717124939,
-0.02379888854920864,
-0.04895343631505966,
-0.02889762446284294,
0.00814020074903965,
0.052650876343250275,
-0.016115697100758553,
-0.010862017050385475,
-0.03568984568119049,
0.010439951904118061,
0.04231444001197815,
0.029750831425189972,
-0.01801065355539322,
0.04474854841828346,
0.04844757542014122,
0.0362638384103775,
-0.05492253601551056,
0.046002279967069626,
0.03336799517273903,
-0.0290933009237051,
-0.034074604511260986,
0.047472935169935226,
0.001509706024080515,
-0.03518122807145119,
0.01963900960981846,
0.054507747292518616,
-0.01719786785542965,
-0.019762882962822914,
-0.015090285800397396,
0.06115279346704483,
-0.017094694077968597,
0.004213078413158655,
-0.0036747106350958347,
-0.03557538241147995,
-0.021518878638744354,
0.03567984700202942,
-0.04582500830292702,
0.0057723927311599255,
-0.027801694348454475,
-0.0449170283973217,
0.0056211999617516994,
0.02387153171002865,
0.0360327884554863,
0.052436940371990204,
-0.01463098730891943,
0.11328314244747162,
-0.03460563346743584,
0.005701785441488028,
-0.07381884008646011,
-0.058167461305856705,
0.010178517550230026,
0.043239776045084,
-0.0005877924850210547,
0.04367581754922867,
0.011576375924050808,
-0.05417843163013458,
0.030009213835000992,
0.055796295404434204,
0.03920436650514603,
0.008196224458515644,
-0.025543365627527237,
0.007962671108543873,
0.023106582462787628,
0.06379665434360504,
-0.02275911346077919,
-0.039803728461265564,
0.04062013328075409,
0.050613533705472946,
-0.0401301234960556,
0.01914416439831257,
-0.014476309530436993,
0.017053937539458275,
-0.030857190489768982,
-0.05581522360444069,
0.027643714100122452,
0.04897599667310715,
-0.0007832219125702977,
0.05194597318768501,
-0.006293891463428736,
0.024721290916204453,
0.02417331002652645,
0.006542134564369917,
0.002449213759973645,
-0.038320451974868774,
-0.022857479751110077,
0.009531327523291111,
0.06500574201345444,
-0.06397725641727448,
0.06364128738641739,
-0.012466348707675934,
0.008902478963136673,
0.03189779072999954,
0.0068857017904520035,
0.04789815470576286,
0.06007099524140358,
0.018882552161812782,
-0.03014318086206913,
0.03133236989378929,
0.005786585621535778,
0.039720568805933,
0.05619615316390991,
0.00010064813250210136,
0.05027370899915695,
-0.015249236486852169,
0.0463397391140461,
0.07398764789104462,
0.03879329562187195,
-0.013584725558757782,
0.04139988496899605,
0.057402268052101135,
0.003958464600145817,
0.0000056616800065967254,
0.05713421478867531,
-0.06601285934448242,
0.015402384102344513,
-0.007613827474415302,
0.040941301733255386,
-0.015148061327636242,
-0.024377131834626198,
0.021165957674384117,
0.029718512669205666,
-0.019737297669053078,
0.0030491966754198074,
0.004003811161965132,
0.0016219784738495946,
0.01715615577995777,
-0.009453090839087963,
0.0029498268850147724,
-0.028487956151366234,
-0.05425800755620003,
0.013289830647408962,
-0.0850389376282692,
-0.02359010837972164,
0.015024534426629543,
-0.012689439579844475,
0.028299858793616295,
-0.07152250409126282,
-0.033837731927633286,
-0.05403700843453407,
-0.021451080217957497,
0.04080259054899216,
0.01793106459081173,
0.008527195081114769,
-0.0202648863196373,
0.013473768718540668,
-0.08000744134187698,
-0.01957242377102375,
-0.0785365104675293,
-0.052381888031959534,
-0.031757652759552,
-0.028973715379834175,
0.028783151879906654,
0.0020029006991535425,
0.00012452818918973207,
0.02793227881193161,
-0.018925387412309647,
-0.03280249238014221,
-0.031122170388698578,
0.04804310202598572,
0.027910670265555382,
-0.012292572297155857,
-0.03161891549825668,
0.02597116306424141,
-0.004990690387785435,
0.025402598083019257,
-0.007972867228090763,
-0.040807489305734634,
0.07562033832073212,
0.07434241473674774,
0.024794045835733414,
0.010173836722970009,
-0.029878845438361168,
-0.05255728214979172,
-0.03163887560367584,
-0.03464188799262047,
-0.05977782979607582,
-0.025766396895051003,
-0.0023961144033819437,
-0.04084094986319542,
-0.014745798893272877,
-0.05186164751648903,
-0.03583855181932449,
0.003994807600975037,
-0.00749457161873579,
0.05175645649433136,
0.05701907351613045,
0.023778092116117477,
0.03818897157907486,
-0.04911789298057556,
0.009792523458600044,
0.08301687240600586,
0.02078757807612419,
0.018543416634202003,
-0.07529285550117493,
-0.04837808012962341,
0.04947643727064133,
0.03539707884192467,
0.004765381570905447,
-0.015089131891727448,
0.07794086635112762,
0.012451231479644775,
-0.010626555420458317,
0.0048652212135493755,
-0.0013654978247359395,
-0.0097946273162961,
-0.01235170941799879,
-0.005594879388809204,
-0.01169648952782154,
-0.042219873517751694,
-0.01909503899514675,
-0.03775734826922417,
0.03143354505300522,
-0.04690730571746826,
-0.040408406406641006,
-0.000821780355181545,
0.018257249146699905,
0.04115978255867958,
0.0007731153746135533,
-0.03703087195754051,
0.004992426838725805,
-0.038195203989744186,
-0.01017006766051054,
-0.021594198420643806,
-0.005368783138692379,
0.003941380884498358,
0.014979199506342411,
0.019056295976042747,
-0.018962526693940163,
0.015797853469848633,
0.016466235741972923,
0.039709657430648804,
0.028155870735645294,
-0.042828574776649475,
0.03976857289671898,
-0.024219386279582977,
0.03597469627857208,
-0.018425311893224716,
-0.01682869903743267,
-0.04633209854364395,
-0.06576816737651825,
-0.012413661926984787,
0.02829098142683506,
-0.02213319018483162,
0.02268902026116848,
0.029578080400824547,
-0.02454940229654312,
-0.019832490012049675,
0.001498459605500102,
0.018532000482082367,
0.0383387990295887,
-0.06515755504369736,
0.053115639835596085,
-0.038079164922237396,
0.06253941357135773,
-0.05313657596707344,
0.005543328355997801,
-0.02781127393245697,
-0.0008457743097096682,
0.018989939242601395,
0.047562144696712494,
0.009793922305107117,
0.04554871842265129,
0.0540027841925621,
0.04891151189804077,
-0.03207818791270256,
0.04509899020195007,
0.07322581112384796,
-0.00949923601001501,
-0.06713828444480896,
0.020191272720694542,
-0.03188440948724747,
-0.02828064374625683,
-0.014702199026942253,
-0.02632724866271019,
0.016839701682329178,
0.02612311579287052,
-0.00213232240639627,
-0.0004755985864903778,
-0.011985345743596554,
-0.007399743422865868,
-0.03077542409300804,
-0.07274170964956284,
-0.04179335758090019,
-0.010619730688631535,
-0.02458382025361061,
0.031208554282784462,
0.03815271705389023,
0.0031123971566557884,
0.051673851907253265,
0.048870835453271866,
-0.002349613467231393,
-0.041139841079711914,
0.03285212814807892,
0.018272509798407555,
-0.043763384222984314,
-0.05927345156669617,
-0.043769534677267075,
0.019762450829148293,
0.0669574961066246,
-0.037286169826984406,
-0.10144127160310745,
-0.011856229975819588,
0.05704779550433159,
-0.03551611304283142,
0.029045674949884415,
-0.004990082234144211,
0.03103778325021267,
0.045448094606399536,
-0.018951090052723885,
0.04195768013596535,
-0.018635964021086693,
-0.0018346816068515182,
0.020030353218317032,
0.038009464740753174,
-0.014245539903640747,
-0.027708979323506355,
-0.020902592688798904,
0.042657289654016495,
0.020621176809072495,
0.023478876799345016,
0.06813092529773712,
-0.022450987249612808,
-0.07219865173101425,
-0.004801639821380377,
0.0224959384649992,
-0.04445222392678261,
0.019368160516023636,
0.011925684288144112,
0.05253560096025467,
-0.03419509530067444,
-0.0300891175866127,
-0.0180605910718441,
0.019047345966100693,
0.037590984255075455,
0.013053923845291138,
-0.016651984304189682,
-0.051825713366270065,
0.03634663671255112,
0.00746722100302577,
-0.03326934948563576,
-0.08530595898628235,
0.04639461636543274,
0.015308668836951256,
-0.01783468760550022,
0.03314705938100815,
0.0048403264954686165,
0.047838546335697174,
0.056414294987916946,
0.00850472878664732,
0.007707167882472277,
-0.03592665493488312,
0.032913949340581894,
-0.0313393771648407,
0.00013791672245133668,
0.005930986255407333,
-0.074547179043293,
-0.005256266798824072,
-0.02037624455988407,
-0.05057964846491814,
-0.04749973118305206,
-0.03388171270489693,
0.04932552948594093,
0.0009319952223449945,
-0.0011497704545035958,
-0.003981149289757013,
0.03947651386260986,
0.011017536744475365,
-0.022442925721406937,
-0.05328383669257164,
-0.047370947897434235,
-0.060944780707359314,
-0.02879701927304268,
0.027863694354891777,
0.006124574225395918,
0.02167474664747715,
-0.013222204521298409,
0.00881981197744608,
0.040724389255046844,
0.009432967752218246,
-0.054226167500019073,
0.04328703135251999,
-0.004235357511788607,
-0.04536878317594528,
-0.018391340970993042,
0.009547525085508823,
0.00606793537735939,
-0.0070833563804626465,
-0.038081590086221695,
0.01986289583146572,
0.010267381556332111,
-0.007062401622533798,
-0.019162094220519066,
0.022906167432665825,
0.014222916215658188,
-0.054971277713775635,
-0.03352244570851326,
-0.020077992230653763,
-0.03905799239873886,
0.036708440631628036,
-0.00043332253699190915,
-0.029354412108659744,
0.02586151473224163,
0.038798000663518906,
0.008014447055757046,
-0.015691934153437614,
-0.007014517672359943,
0.03799484670162201,
-0.025908466428518295,
0.008589226752519608,
-0.07687998563051224,
0.03237016871571541,
-0.029580987989902496,
0.005001168232411146,
-0.012074931524693966,
-0.007908516563475132,
-0.036284856498241425,
0.03538819029927254,
0.00036751097650267184,
-0.010102986358106136,
-0.018816210329532623,
0.01909048669040203,
-0.035966746509075165,
0.032486360520124435,
-0.017637580633163452,
0.04274839162826538,
-0.022417979314923286,
0.029165733605623245,
-0.030399903655052185,
-0.00797024741768837,
-0.02320730686187744,
0.02912311628460884,
-0.025948205962777138,
-0.03325101360678673,
-0.014141813851892948,
-0.03589778393507004,
0.03399326279759407,
0.041361548006534576,
0.019235903397202492,
0.029642075300216675,
-0.0019349621143192053,
0.028053252026438713,
0.0384620800614357,
-0.09040374308824539,
-0.028302088379859924,
-0.009733838029205799,
-0.02937990054488182,
-0.01310307253152132,
0.026749929413199425,
0.029262535274028778,
-0.05852934345602989,
-0.047582391649484634,
0.0526345893740654,
0.01612849347293377,
0.018231278285384178,
-0.00045755316386930645,
0.03570064157247543,
0.049619171768426895,
0.040959443897008896,
-0.03804940730333328,
-0.003976084757596254,
-0.0043941680341959,
-0.023384438827633858,
0.004831110592931509,
-0.017502211034297943,
0.012584476731717587,
-0.022780634462833405,
-0.04291732981801033,
-0.037081457674503326,
0.07879403233528137,
0.037819307297468185,
0.008046536706387997,
0.007366487290710211,
-0.04043439030647278,
0.04356144741177559,
-0.004300740081816912,
-0.06843270361423492,
0.025367701426148415,
0.012101794593036175,
-0.02409115806221962,
0.060505036264657974,
-0.014005417935550213,
0.012953892350196838,
0.047819290310144424,
0.03197913616895676,
-0.0244633536785841,
0.011464457027614117,
-0.04845954477787018,
0.015377381816506386,
0.03457079827785492,
-0.03986518457531929,
-0.023092584684491158,
-0.040594205260276794,
0.06768684834241867,
-0.05783040449023247,
0.04499560594558716,
0.047718994319438934,
0.008386664092540741,
0.0061648935079574585,
0.008820573799312115,
-0.06570257991552353,
0.007625494617968798,
-0.04200359061360359,
0.06723549962043762,
-0.013058989308774471,
-0.08954379707574844,
0.0711386427283287,
0.025831537321209908,
-0.06301868706941605,
0.06452373415231705,
0.06505550444126129,
0.024897631257772446,
0.02902096137404442,
0.020268743857741356,
-0.03948087617754936,
0.015375448390841484,
-0.03721875324845314,
0.027675610035657883,
-0.05955282226204872,
-0.014681374654173851,
0.025000598281621933,
-0.02162824012339115,
-0.008244320750236511,
0.027976270765066147,
0.0007868307875469327,
-0.004512908402830362,
0.001078994246199727,
-0.06353428214788437,
-0.050569891929626465,
-0.02079457975924015,
0.005731557495892048,
-0.042036138474941254,
0.04701066017150879,
-0.0110259298235178,
0.02252313680946827,
-0.0006506089703179896,
0.0018220306374132633,
-0.029057569801807404,
0.022770872339606285,
0.011236078105866909,
-0.06655588746070862,
-0.03095228411257267,
0.04223692789673805,
0.039119791239500046,
-0.012705551460385323,
0.016247296705842018,
-0.005457375664263964,
0.00400316808372736,
-0.0035670320503413677,
-0.02688007429242134,
0.014569424092769623,
-0.08324943482875824,
-0.010779809206724167,
0.026508303359150887,
0.0436943955719471,
0.022685911506414413,
-0.009978095069527626,
0.025600744411349297,
0.04470134526491165,
0.010851046070456505,
0.008770987391471863,
-0.0028853530529886484,
-0.02500476874411106,
0.016781534999608994,
-0.05153873562812805,
0.03030545637011528,
0.015549177303910255,
-0.051596499979496,
-0.029380615800619125,
0.004352261312305927,
-0.023018624633550644,
0.016772594302892685,
-0.07213596254587173,
-0.006295916624367237,
0.03504500538110733,
-0.004561000503599644,
-0.05262787267565727,
-0.05796424299478531,
-0.052223846316337585,
-0.043933190405368805,
0.029875321313738823,
0.03095952980220318,
-0.05329931154847145,
0.009025489911437035,
-0.044523973017930984,
-0.03570970520377159,
0.06324765831232071,
0.013488101772964,
-0.015415002591907978,
0.04403344914317131,
0.024550367146730423,
-0.03973504900932312,
0.021727679297327995,
0.02458898350596428,
-0.02707681991159916,
0.041760630905628204,
0.007165691815316677,
0.03703096881508827,
0.026105500757694244,
0.021382644772529602,
-0.006505202502012253,
-0.031734902411699295,
-0.020085683092474937,
-0.04890046268701553,
-0.04373481497168541,
0.007800807245075703,
0.04799677059054375
] |
BigSalmon/InformalToFormalLincoln24 | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"has_space"
] | text-generation | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": true,
"max_length": 50
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 5 | null | ```
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln24")
model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln24")
```
```
How To Make Prompt:
informal english: i am very ready to do that just that.
Translated into the Style of Abraham Lincoln: you can assure yourself of my readiness to work toward this end.
Translated into the Style of Abraham Lincoln: please be assured that i am most ready to undertake this laborious task.
***
informal english: space is huge and needs to be explored.
Translated into the Style of Abraham Lincoln: space awaits traversal, a new world whose boundaries are endless.
Translated into the Style of Abraham Lincoln: space is a ( limitless / boundless ) expanse, a vast virgin domain awaiting exploration.
***
informal english: corn fields are all across illinois, visible once you leave chicago.
Translated into the Style of Abraham Lincoln: corn fields ( permeate illinois / span the state of illinois / ( occupy / persist in ) all corners of illinois / line the horizon of illinois / envelop the landscape of illinois ), manifesting themselves visibly as one ventures beyond chicago.
informal english:
```
```
- declining viewership facing the nba.
- does not have to be this way.
- in fact, many solutions exist.
- the four point line would surely draw in eyes.
Text: failing to draw in the masses, the NBA has fallen into disrepair. such does not have to be the case, however. in fact, a myriad of simple, relatively cheap solutions could revive the league. the addition of the much-hyped four-point line would surely juice viewership.
***
-
```
```
infill: chrome extensions [MASK] accomplish everyday tasks.
Translated into the Style of Abraham Lincoln: chrome extensions ( expedite the ability to / unlock the means to more readily ) accomplish everyday tasks.
infill: at a time when nintendo has become inflexible, [MASK] consoles that are tethered to a fixed iteration, sega diligently curates its legacy of classic video games on handheld devices.
Translated into the Style of Abraham Lincoln: at a time when nintendo has become inflexible, ( stubbornly [MASK] on / firmly set on / unyielding in its insistence on ) consoles that are tethered to a fixed iteration, sega diligently curates its legacy of classic video games on handheld devices.
infill:
```
```
Essay Intro (California High-Speed Rail): built with an eye on the future, california's high-speed rail service resolves to change the face of travel.
Essay Intro (YIMBY's Need To Win): home to the most expensive housing market in the united states, san francisco is the city in which the yimby and anti-yimby hordes wage an eternal battle.
Essay Intro (
```
```
Search: What is the definition of Checks and Balances?
https://en.wikipedia.org/wiki/Checks_and_balances
Checks and Balances is the idea of having a system where each and every action in government should be subject to one or more checks that would not allow one branch or the other to overly dominate.
https://www.harvard.edu/glossary/Checks_and_Balances
Checks and Balances is a system that allows each branch of government to limit the powers of the other branches in order to prevent abuse of power
https://www.law.cornell.edu/library/constitution/Checks_and_Balances
Checks and Balances is a system of separation through which branches of government can control the other, thus preventing excess power.
***
Search: What is the definition of Separation of Powers?
https://en.wikipedia.org/wiki/Separation_of_powers
The separation of powers is a principle in government, whereby governmental powers are separated into different branches, each with their own set of powers, that are prevent one branch from aggregating too much power.
https://www.yale.edu/tcf/Separation_of_Powers.html
Separation of Powers is the division of governmental functions between the executive, legislative and judicial branches, clearly demarcating each branch's authority, in the interest of ensuring that individual liberty or security is not undermined.
***
Search: What is the definition of Connection of Powers?
https://en.wikipedia.org/wiki/Connection_of_powers
Connection of Powers is a feature of some parliamentary forms of government where different branches of government are intermingled, typically the executive and legislative branches.
https://simple.wikipedia.org/wiki/Connection_of_powers
The term Connection of Powers describes a system of government in which there is overlap between different parts of the government.
***
Search: What is the definition of
```
```
Search: What are phrase synonyms for "second-guess"?
https://www.powerthesaurus.org/second-guess/synonyms
Shortest to Longest:
- feel dubious about
- raise an eyebrow at
- wrinkle their noses at
- cast a jaundiced eye at
- teeter on the fence about
***
Search: What are phrase synonyms for "mean to newbies"?
https://www.powerthesaurus.org/mean_to_newbies/synonyms
Shortest to Longest:
- readiness to balk at rookies
- absence of tolerance for novices
- hostile attitude toward newcomers
***
Search: What are phrase synonyms for "make use of"?
https://www.powerthesaurus.org/make_use_of/synonyms
Shortest to Longest:
- call upon
- glean value from
- reap benefits from
- derive utility from
- seize on the merits of
- draw on the strength of
- tap into the potential of
***
Search: What are phrase synonyms for "hurting itself"?
https://www.powerthesaurus.org/hurting_itself/synonyms
Shortest to Longest:
- erring
- slighting itself
- forfeiting its integrity
- doing itself a disservice
- evincing a lack of backbone
***
Search: What are phrase synonyms for "
``` | [
-0.012405578047037125,
-0.022211186587810516,
-0.04571541026234627,
0.05047396942973137,
0.046721406280994415,
0.052777789533138275,
-0.01324998028576374,
0.010628785938024521,
-0.04505458474159241,
0.05259140580892563,
0.019643694162368774,
-0.011460582725703716,
0.00943343248218298,
0.011711567640304565,
-0.024775858968496323,
-0.011233748868107796,
-0.042008399963378906,
0.013764344155788422,
-0.026728790253400803,
-0.035954851657152176,
0.0311596617102623,
-0.009667630307376385,
0.004127526190131903,
0.02694544941186905,
-0.01458841934800148,
0.00040429786895401776,
-0.00021976008429192007,
0.02023240365087986,
0.033561550080776215,
-0.06909587979316711,
-0.0027722937520593405,
-0.05085841566324234,
0.00034558348124846816,
-0.028347432613372803,
-0.06033710762858391,
0.031124139204621315,
-0.003035746980458498,
0.009953223168849945,
0.020593054592609406,
0.04376685246825218,
-0.005245549138635397,
0.007743427064269781,
0.01155969500541687,
-0.013072391971945763,
0.03671696409583092,
0.004843825940042734,
-0.033474262803792953,
-0.03515036031603813,
0.06062872335314751,
-0.0030902891885489225,
-0.033868785947561264,
-0.06906900554895401,
-0.004045328125357628,
0.014105298556387424,
-0.006712971720844507,
-0.0013937908224761486,
-0.07848989218473434,
-0.030759237706661224,
0.08381526917219162,
-0.06723597645759583,
-0.029874514788389206,
0.03644546866416931,
-0.07027050852775574,
0.05485614761710167,
0.04016169160604477,
-0.031658291816711426,
0.01408668328076601,
-0.03698781132698059,
0.009285645559430122,
-0.018795214593410492,
0.033543527126312256,
-0.042601440101861954,
0.02099514752626419,
-0.08208943903446198,
-0.005696121137589216,
-0.00748789357021451,
0.04573061689734459,
0.019573457539081573,
-0.056463245302438736,
0.07296653836965561,
0.022212263196706772,
0.008910837583243847,
0.02027004584670067,
-0.010791532695293427,
-0.014545352198183537,
0.030017374083399773,
-0.04787523299455643,
-0.009186569601297379,
0.0158843956887722,
0.05043047294020653,
-0.03237168863415718,
-0.0662795752286911,
-0.016235969960689545,
-0.0527133084833622,
-0.0034130574204027653,
0.02476835437119007,
0.06502020359039307,
-0.010556281544268131,
0.033678170293569565,
0.010527774691581726,
0.04404693469405174,
0.04042111337184906,
-0.0012021990260109305,
0.03517541289329529,
-0.007839827798306942,
0.008476653136312962,
-0.02978949062526226,
-0.036097507923841476,
-0.04614454507827759,
0.03131488338112831,
0.013401022180914879,
-0.041288431733846664,
-0.02348598651587963,
0.022661946713924408,
0.018746497109532356,
-0.015624482184648514,
0.0381300114095211,
-0.024072591215372086,
-0.05244908481836319,
-0.022222129628062248,
0.038769446313381195,
0.021830664947628975,
0.015457256697118282,
0.002011842094361782,
-0.0778614953160286,
0.040830645710229874,
-0.05928950384259224,
-0.05889864265918732,
-0.03314035385847092,
0.05724851042032242,
0.004082652740180492,
0.03472254425287247,
0.02184370346367359,
-0.07425310462713242,
0.02339630015194416,
0.029399268329143524,
-0.06422284245491028,
0.037238962948322296,
0.005535001866519451,
0.09616488218307495,
-0.06008558347821236,
-0.06047075614333153,
0.018272969871759415,
0.004703469108790159,
-0.02656097337603569,
0.013190891593694687,
0.013612844981253147,
-0.042817480862140656,
-0.026816636323928833,
0.026035474613308907,
0.07448817789554596,
-0.04994884133338928,
-0.008260187692940235,
0.03393023833632469,
0.00891735777258873,
0.058624267578125,
-0.0304690133780241,
-0.02180360071361065,
0.006655263714492321,
0.023052267730236053,
-0.03630516678094864,
0.0359189510345459,
-0.02506328746676445,
-0.023923320695757866,
-0.048374470323324203,
-0.02852928824722767,
0.008169498294591904,
0.05199892446398735,
-0.015579838305711746,
-0.010757390409708023,
-0.035373471677303314,
0.010063676163554192,
0.041391514241695404,
0.029537994414567947,
-0.018067216500639915,
0.0450180359184742,
0.04833720996975899,
0.03582673892378807,
-0.05470428243279457,
0.045971911400556564,
0.033966511487960815,
-0.028667306527495384,
-0.03377547115087509,
0.04716024920344353,
0.0009772084886208177,
-0.03491688892245293,
0.0190762709826231,
0.05470961704850197,
-0.01728651486337185,
-0.019912239164114,
-0.01537800021469593,
0.06146519258618355,
-0.01681012101471424,
0.0046730381436645985,
-0.00413540517911315,
-0.03549345210194588,
-0.0217641182243824,
0.03518550843000412,
-0.045315202325582504,
0.005860410165041685,
-0.027861375361680984,
-0.04599815234541893,
0.005342779215425253,
0.024257222190499306,
0.03623930364847183,
0.052885446697473526,
-0.014523911289870739,
0.11345718801021576,
-0.034983448684215546,
0.005541105289012194,
-0.07399113476276398,
-0.05807451531291008,
0.010243621654808521,
0.043458253145217896,
-0.0004738739808090031,
0.04351627081632614,
0.010709288530051708,
-0.05402054265141487,
0.029642432928085327,
0.055901821702718735,
0.038446079939603806,
0.008335860446095467,
-0.025676283985376358,
0.008457374759018421,
0.023751020431518555,
0.06420668959617615,
-0.02275046706199646,
-0.039067212492227554,
0.040862586349248886,
0.05046113580465317,
-0.04025164246559143,
0.019122224301099777,
-0.014167802408337593,
0.016742022708058357,
-0.03094310499727726,
-0.05586739256978035,
0.028392428532242775,
0.04905388876795769,
-0.0009136935113929212,
0.05240318551659584,
-0.006230509374290705,
0.02434522658586502,
0.023879773914813995,
0.006292468868196011,
0.002047074493020773,
-0.037813570350408554,
-0.023209378123283386,
0.009151699021458626,
0.06514893472194672,
-0.063705675303936,
0.06283123046159744,
-0.012125390581786633,
0.00875251367688179,
0.032155171036720276,
0.006851918064057827,
0.047476112842559814,
0.0606875941157341,
0.018742257729172707,
-0.030370285734534264,
0.030939901247620583,
0.005353825632482767,
0.038980882614851,
0.05551815405488014,
-0.0001549170701764524,
0.050416432321071625,
-0.015206469222903252,
0.046094443649053574,
0.07449699938297272,
0.03869860991835594,
-0.013569766655564308,
0.041377704590559006,
0.057826533913612366,
0.004162841010838747,
0.0003319470561109483,
0.056701719760894775,
-0.06662601232528687,
0.015479106456041336,
-0.007794138975441456,
0.04059493541717529,
-0.014650269411504269,
-0.024352744221687317,
0.02131725661456585,
0.02898431569337845,
-0.019694697111845016,
0.002815974410623312,
0.004758694674819708,
0.002071916591376066,
0.017564069479703903,
-0.010371359065175056,
0.002460033865645528,
-0.02849280647933483,
-0.05420953407883644,
0.01352757215499878,
-0.08463628590106964,
-0.02327834442257881,
0.014675267040729523,
-0.013053002767264843,
0.028389720246195793,
-0.07211066782474518,
-0.03368810936808586,
-0.053905680775642395,
-0.021457863971590996,
0.04088843613862991,
0.01739705540239811,
0.00839073397219181,
-0.020789695903658867,
0.013427209109067917,
-0.07952426373958588,
-0.019608918577432632,
-0.07866841554641724,
-0.05278884619474411,
-0.03157718852162361,
-0.02915944531559944,
0.02933787927031517,
0.002128309104591608,
0.00031732904608361423,
0.026961665600538254,
-0.01846037432551384,
-0.03322138264775276,
-0.0314330980181694,
0.04753171280026436,
0.028480349108576775,
-0.011316768825054169,
-0.03183314576745033,
0.02588590420782566,
-0.004742490593343973,
0.02573380619287491,
-0.007401497568935156,
-0.040748365223407745,
0.07611865550279617,
0.0743652954697609,
0.024462366476655006,
0.009981769137084484,
-0.029935872182250023,
-0.05315142869949341,
-0.033064354211091995,
-0.034579332917928696,
-0.06040574237704277,
-0.02583876997232437,
-0.0017413332825526595,
-0.04046895354986191,
-0.01518837921321392,
-0.051873769611120224,
-0.03563502058386803,
0.0042664543725550175,
-0.006792863365262747,
0.05139957368373871,
0.056773532181978226,
0.024617334827780724,
0.03805593028664589,
-0.04887006804347038,
0.009746321476995945,
0.08293770998716354,
0.021462688222527504,
0.01909627765417099,
-0.07521829754114151,
-0.04814838245511055,
0.04971691593527794,
0.035741645842790604,
0.004715592134743929,
-0.015502282418310642,
0.0785394161939621,
0.013023613020777702,
-0.011062277480959892,
0.005201662890613079,
-0.0012640097411349416,
-0.010233948938548565,
-0.0123202009126544,
-0.0055360933765769005,
-0.011417759582400322,
-0.04196309298276901,
-0.019974613562226295,
-0.03810986876487732,
0.031496137380599976,
-0.04714207351207733,
-0.04043761268258095,
-0.0009144993382506073,
0.01828552782535553,
0.04097272455692291,
0.0009519471204839647,
-0.037703439593315125,
0.005134260281920433,
-0.037786975502967834,
-0.009625858627259731,
-0.020909713581204414,
-0.005147169344127178,
0.00399757269769907,
0.014790753833949566,
0.01885632425546646,
-0.019207138568162918,
0.015328958630561829,
0.016477806493639946,
0.03987276554107666,
0.028055395931005478,
-0.04280715435743332,
0.039696063846349716,
-0.023939039558172226,
0.035344723612070084,
-0.01917923614382744,
-0.01724419556558132,
-0.04609764739871025,
-0.0660688653588295,
-0.013003647327423096,
0.028513498604297638,
-0.02195090614259243,
0.022575126960873604,
0.029404953122138977,
-0.024450000375509262,
-0.020046314224600792,
0.0015309073496609926,
0.018720848485827446,
0.03735031932592392,
-0.06535686552524567,
0.052872054278850555,
-0.03787391260266304,
0.06190989911556244,
-0.05384775996208191,
0.006148417480289936,
-0.02805468998849392,
-0.00021190685220062733,
0.019089223816990852,
0.04742223769426346,
0.008859696798026562,
0.04671020433306694,
0.05369536951184273,
0.04836440831422806,
-0.03203421086072922,
0.04521751403808594,
0.0732836201786995,
-0.009879826568067074,
-0.06713219732046127,
0.020287949591875076,
-0.031922485679388046,
-0.028027014806866646,
-0.014345324598252773,
-0.027245476841926575,
0.0166019219905138,
0.026063894852995872,
-0.0019163911929354072,
-0.00028366249171085656,
-0.011696276254951954,
-0.00745360879227519,
-0.030500300228595734,
-0.07232532650232315,
-0.04271627217531204,
-0.010317058302462101,
-0.024715155363082886,
0.031416155397892,
0.03777581825852394,
0.0030654699075967073,
0.05132028087973595,
0.048349298536777496,
-0.0023919048253446817,
-0.04053878039121628,
0.03322096914052963,
0.018219679594039917,
-0.04363664612174034,
-0.059682607650756836,
-0.043322838842868805,
0.019351862370967865,
0.06701932847499847,
-0.03737452253699303,
-0.10141803324222565,
-0.012175257317721844,
0.056873880326747894,
-0.03491891548037529,
0.029089737683534622,
-0.004907350055873394,
0.03159747272729874,
0.04549867659807205,
-0.019212381914258003,
0.04196171462535858,
-0.018963711336255074,
-0.0014060536632314324,
0.019413284957408905,
0.03797856718301773,
-0.014715923927724361,
-0.027013929560780525,
-0.020913146436214447,
0.04254075139760971,
0.020434238016605377,
0.022972989827394485,
0.06798393279314041,
-0.022389214485883713,
-0.07279232889413834,
-0.004426346160471439,
0.02242365851998329,
-0.044841475784778595,
0.02002275548875332,
0.011819252744317055,
0.0523776151239872,
-0.03427084907889366,
-0.030077774077653885,
-0.017667893320322037,
0.018491176888346672,
0.03704221546649933,
0.012682151980698109,
-0.0173463337123394,
-0.05177409574389458,
0.03632998839020729,
0.007569903042167425,
-0.03311143442988396,
-0.08601929247379303,
0.04628094658255577,
0.0150488605722785,
-0.01764148287475109,
0.033656083047389984,
0.00528959184885025,
0.04782923683524132,
0.05645929276943207,
0.009362297132611275,
0.007190137170255184,
-0.03594277426600456,
0.03305431082844734,
-0.0313679538667202,
0.0006499920855276287,
0.005568543914705515,
-0.07479718327522278,
-0.004784454591572285,
-0.020321467891335487,
-0.05071680620312691,
-0.04728914424777031,
-0.034126151353120804,
0.04979194328188896,
0.0010042664362117648,
-0.0012164433719590306,
-0.004339586477726698,
0.03939841315150261,
0.011402110569179058,
-0.02244429662823677,
-0.053371962159872055,
-0.04744764789938927,
-0.06044440716505051,
-0.029498791322112083,
0.02812696434557438,
0.006462115328758955,
0.02205636166036129,
-0.013253611512482166,
0.008656641468405724,
0.04067137464880943,
0.009637421928346157,
-0.054006580263376236,
0.04316277056932449,
-0.004021478816866875,
-0.04534738510847092,
-0.01845550164580345,
0.0091419517993927,
0.005927872844040394,
-0.005459840875118971,
-0.03834565356373787,
0.02020668424665928,
0.010448543354868889,
-0.006817696616053581,
-0.018870269879698753,
0.022547751665115356,
0.014606639742851257,
-0.05487627908587456,
-0.033870674669742584,
-0.0202752947807312,
-0.0393902063369751,
0.03650161623954773,
-0.0006459791329689324,
-0.029784029349684715,
0.02556220255792141,
0.03827926144003868,
0.008516991510987282,
-0.014579917304217815,
-0.007075485307723284,
0.038068078458309174,
-0.025490213185548782,
0.008399063721299171,
-0.07663140445947647,
0.03244103491306305,
-0.029691556468605995,
0.005415625404566526,
-0.01246566604822874,
-0.008579936809837818,
-0.03589266538619995,
0.0358257070183754,
0.00007198419189080596,
-0.01083286851644516,
-0.01850760541856289,
0.01927359029650688,
-0.03600427880883217,
0.03329973667860031,
-0.017290150746703148,
0.043092917650938034,
-0.02228529378771782,
0.02969766966998577,
-0.030383490025997162,
-0.008032442070543766,
-0.02290569804608822,
0.02903716079890728,
-0.02599526196718216,
-0.03344662860035896,
-0.014126855880022049,
-0.03595937788486481,
0.03433987498283386,
0.04134875163435936,
0.019548077136278152,
0.030124222859740257,
-0.0017338000470772386,
0.028134655207395554,
0.038202326744794846,
-0.09022737294435501,
-0.028367722406983376,
-0.009672471322119236,
-0.029588371515274048,
-0.012812100350856781,
0.02677925117313862,
0.02995465137064457,
-0.05809839814901352,
-0.047451868653297424,
0.05275909975171089,
0.015945998951792717,
0.01810467429459095,
-0.0004041971988044679,
0.03537577763199806,
0.04914750158786774,
0.041075460612773895,
-0.03784766420722008,
-0.003934341948479414,
-0.0038879639469087124,
-0.023448623716831207,
0.005481610540300608,
-0.01731090620160103,
0.012968395836651325,
-0.022844688966870308,
-0.0433012917637825,
-0.036391787230968475,
0.07868769019842148,
0.03804886341094971,
0.007821829058229923,
0.007015117909759283,
-0.04045025631785393,
0.043866243213415146,
-0.004141264129430056,
-0.06849458813667297,
0.025419294834136963,
0.012404781766235828,
-0.02369510382413864,
0.060540735721588135,
-0.014104047790169716,
0.013314309529960155,
0.04870422184467316,
0.03230156749486923,
-0.024884242564439774,
0.011403528042137623,
-0.048146624118089676,
0.015985822305083275,
0.03471507504582405,
-0.04012683779001236,
-0.0234077051281929,
-0.04093468561768532,
0.06809840351343155,
-0.057284578680992126,
0.04506644606590271,
0.047399796545505524,
0.00826752558350563,
0.006419752258807421,
0.008656343445181847,
-0.06581141799688339,
0.0080731101334095,
-0.04206336662173271,
0.06735355406999588,
-0.013362763449549675,
-0.0897049680352211,
0.07096141576766968,
0.025486482307314873,
-0.06282268464565277,
0.06443186104297638,
0.0650717094540596,
0.024950863793492317,
0.028880523517727852,
0.020328547805547714,
-0.039394885301589966,
0.015746314078569412,
-0.037125565111637115,
0.02813144400715828,
-0.059493470937013626,
-0.014558544382452965,
0.024807093665003777,
-0.021720847114920616,
-0.008427751250565052,
0.028286432847380638,
0.001132761244662106,
-0.0047804974019527435,
0.0017871912568807602,
-0.06329283863306046,
-0.0513545498251915,
-0.02078113704919815,
0.005710906349122524,
-0.042072441428899765,
0.046643421053886414,
-0.0110356779769063,
0.0226462222635746,
-0.0005646588397212327,
0.0016466241795569658,
-0.029304264113307,
0.022421253845095634,
0.011494779959321022,
-0.06704889237880707,
-0.030592551454901695,
0.043461788445711136,
0.03891411051154137,
-0.012638699263334274,
0.016165604814887047,
-0.006161383353173733,
0.004014307167381048,
-0.003537786891683936,
-0.026716290041804314,
0.014336724765598774,
-0.08269622921943665,
-0.011171900667250156,
0.026798119768500328,
0.043187789618968964,
0.022371236234903336,
-0.010107852518558502,
0.025887224823236465,
0.04458422586321831,
0.01029923651367426,
0.008818469010293484,
-0.0035974765196442604,
-0.025630448013544083,
0.016578607261180878,
-0.05166076868772507,
0.029888121411204338,
0.015710998326539993,
-0.05149077624082565,
-0.028998907655477524,
0.0041506486013531685,
-0.02344384789466858,
0.016174735501408577,
-0.07163778692483902,
-0.006181053817272186,
0.03474635258316994,
-0.0043647377751767635,
-0.052917417138814926,
-0.05839702859520912,
-0.05244819447398186,
-0.04328922927379608,
0.02971898764371872,
0.031084412708878517,
-0.053378161042928696,
0.009126303717494011,
-0.04461761936545372,
-0.0359577052295208,
0.06287682801485062,
0.013859527185559273,
-0.015820937231183052,
0.04401177167892456,
0.025130167603492737,
-0.03970307484269142,
0.021379021927714348,
0.024290869012475014,
-0.02670307271182537,
0.04219401627779007,
0.007518693804740906,
0.036341965198516846,
0.02647615782916546,
0.021917782723903656,
-0.006559135392308235,
-0.03123202733695507,
-0.019839074462652206,
-0.04920047149062157,
-0.04349137097597122,
0.007771122269332409,
0.04868809133768082
] |
BigSalmon/InformalToFormalLincoln25 | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"has_space"
] | text-generation | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": true,
"max_length": 50
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 10 | null | ```
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln25")
model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln25")
```
```
How To Make Prompt:
informal english: i am very ready to do that just that.
Translated into the Style of Abraham Lincoln: you can assure yourself of my readiness to work toward this end.
Translated into the Style of Abraham Lincoln: please be assured that i am most ready to undertake this laborious task.
***
informal english: space is huge and needs to be explored.
Translated into the Style of Abraham Lincoln: space awaits traversal, a new world whose boundaries are endless.
Translated into the Style of Abraham Lincoln: space is a ( limitless / boundless ) expanse, a vast virgin domain awaiting exploration.
***
informal english: corn fields are all across illinois, visible once you leave chicago.
Translated into the Style of Abraham Lincoln: corn fields ( permeate illinois / span the state of illinois / ( occupy / persist in ) all corners of illinois / line the horizon of illinois / envelop the landscape of illinois ), manifesting themselves visibly as one ventures beyond chicago.
informal english:
```
```
- declining viewership facing the nba.
- does not have to be this way.
- in fact, many solutions exist.
- the four point line would surely draw in eyes.
Text: failing to draw in the masses, the NBA has fallen into disrepair. such does not have to be the case, however. in fact, a myriad of simple, relatively cheap solutions could revive the league. the addition of the much-hyped four-point line would surely juice viewership.
***
-
```
```
infill: chrome extensions [MASK] accomplish everyday tasks.
Translated into the Style of Abraham Lincoln: chrome extensions ( expedite the ability to / unlock the means to more readily ) accomplish everyday tasks.
infill: at a time when nintendo has become inflexible, [MASK] consoles that are tethered to a fixed iteration, sega diligently curates its legacy of classic video games on handheld devices.
Translated into the Style of Abraham Lincoln: at a time when nintendo has become inflexible, ( stubbornly [MASK] on / firmly set on / unyielding in its insistence on ) consoles that are tethered to a fixed iteration, sega diligently curates its legacy of classic video games on handheld devices.
infill:
```
```
Essay Intro (California High-Speed Rail): built with an eye on the future, california's high-speed rail service resolves to change the face of travel.
Essay Intro (YIMBY's Need To Win): home to the most expensive housing market in the united states, san francisco is the city in which the yimby and anti-yimby hordes wage an eternal battle.
Essay Intro (
```
```
Search: What is the definition of Checks and Balances?
https://en.wikipedia.org/wiki/Checks_and_balances
Checks and Balances is the idea of having a system where each and every action in government should be subject to one or more checks that would not allow one branch or the other to overly dominate.
https://www.harvard.edu/glossary/Checks_and_Balances
Checks and Balances is a system that allows each branch of government to limit the powers of the other branches in order to prevent abuse of power
https://www.law.cornell.edu/library/constitution/Checks_and_Balances
Checks and Balances is a system of separation through which branches of government can control the other, thus preventing excess power.
***
Search: What is the definition of Separation of Powers?
https://en.wikipedia.org/wiki/Separation_of_powers
The separation of powers is a principle in government, whereby governmental powers are separated into different branches, each with their own set of powers, that are prevent one branch from aggregating too much power.
https://www.yale.edu/tcf/Separation_of_Powers.html
Separation of Powers is the division of governmental functions between the executive, legislative and judicial branches, clearly demarcating each branch's authority, in the interest of ensuring that individual liberty or security is not undermined.
***
Search: What is the definition of Connection of Powers?
https://en.wikipedia.org/wiki/Connection_of_powers
Connection of Powers is a feature of some parliamentary forms of government where different branches of government are intermingled, typically the executive and legislative branches.
https://simple.wikipedia.org/wiki/Connection_of_powers
The term Connection of Powers describes a system of government in which there is overlap between different parts of the government.
***
Search: What is the definition of
```
```
Search: What are phrase synonyms for "second-guess"?
https://www.powerthesaurus.org/second-guess/synonyms
Shortest to Longest:
- feel dubious about
- raise an eyebrow at
- wrinkle their noses at
- cast a jaundiced eye at
- teeter on the fence about
***
Search: What are phrase synonyms for "mean to newbies"?
https://www.powerthesaurus.org/mean_to_newbies/synonyms
Shortest to Longest:
- readiness to balk at rookies
- absence of tolerance for novices
- hostile attitude toward newcomers
***
Search: What are phrase synonyms for "make use of"?
https://www.powerthesaurus.org/make_use_of/synonyms
Shortest to Longest:
- call upon
- glean value from
- reap benefits from
- derive utility from
- seize on the merits of
- draw on the strength of
- tap into the potential of
***
Search: What are phrase synonyms for "hurting itself"?
https://www.powerthesaurus.org/hurting_itself/synonyms
Shortest to Longest:
- erring
- slighting itself
- forfeiting its integrity
- doing itself a disservice
- evincing a lack of backbone
***
Search: What are phrase synonyms for "
```
```
original: sports teams are profitable for owners. [MASK], their valuations experience a dramatic uptick.
infill: sports teams are profitable for owners. ( accumulating vast sums / stockpiling treasure / realizing benefits / cashing in / registering robust financials / scoring on balance sheets ), their valuations experience a dramatic uptick.
***
original:
``` | [
-0.012255819514393806,
-0.021744299679994583,
-0.04514593631029129,
0.0504138208925724,
0.04677058383822441,
0.052675988525152206,
-0.013924854807555676,
0.010773180052638054,
-0.045161448419094086,
0.05258424952626228,
0.020001213997602463,
-0.010886340402066708,
0.009446763433516026,
0.01149643026292324,
-0.025425195693969727,
-0.011096900328993797,
-0.04212905094027519,
0.013575425371527672,
-0.027185775339603424,
-0.03599147871136665,
0.03119443915784359,
-0.01024453341960907,
0.004303971771150827,
0.02732941322028637,
-0.014308305457234383,
0.00016713138029444963,
-0.0005114433006383479,
0.020512454211711884,
0.033820316195487976,
-0.0687713623046875,
-0.0028485413640737534,
-0.05065116286277771,
0.0004066586261615157,
-0.028580863028764725,
-0.06066761165857315,
0.030891990289092064,
-0.0034181340597569942,
0.009219401516020298,
0.020660297945141792,
0.04402066394686699,
-0.0049352822825312614,
0.008286147378385067,
0.011121557094156742,
-0.01260634046047926,
0.037326615303754807,
0.004947857465595007,
-0.033436380326747894,
-0.03552096337080002,
0.061452943831682205,
-0.0031186414416879416,
-0.03369438275694847,
-0.06911768764257431,
-0.004530825186520815,
0.01328998152166605,
-0.006443366874009371,
-0.0012579620815813541,
-0.07856949418783188,
-0.030455980449914932,
0.0839427188038826,
-0.06793007999658585,
-0.030183304101228714,
0.03630761057138443,
-0.07050854712724686,
0.05492376163601875,
0.03948993980884552,
-0.03178918734192848,
0.013528009876608849,
-0.03682362660765648,
0.009733936749398708,
-0.018869739025831223,
0.033385004848241806,
-0.04204000532627106,
0.020998045802116394,
-0.08200734108686447,
-0.0060163396410644054,
-0.007776313461363316,
0.04510705545544624,
0.019655991345643997,
-0.05662008002400398,
0.07316955924034119,
0.022032614797353745,
0.008900816552340984,
0.020286429673433304,
-0.01054223719984293,
-0.01448042318224907,
0.03010445460677147,
-0.04785660654306412,
-0.008948644623160362,
0.0157125536352396,
0.050043974071741104,
-0.03206745162606239,
-0.06692714989185333,
-0.015688803046941757,
-0.05282757803797722,
-0.003527997760102153,
0.024482587352395058,
0.06488727033138275,
-0.01110374741256237,
0.03340436518192291,
0.01013218890875578,
0.04453288018703461,
0.040623947978019714,
-0.0008733784197829664,
0.03456982597708702,
-0.007907820865511894,
0.008764819242060184,
-0.029528029263019562,
-0.036023277789354324,
-0.046094223856925964,
0.03153422102332115,
0.013115816749632359,
-0.04109268635511398,
-0.023277422413229942,
0.02264096774160862,
0.018314501270651817,
-0.01590370014309883,
0.038199737668037415,
-0.02461937814950943,
-0.05274783447384834,
-0.021783411502838135,
0.03852240741252899,
0.02153017558157444,
0.01544558722525835,
0.001878543058410287,
-0.07750996947288513,
0.04086796194314957,
-0.059340208768844604,
-0.058306533843278885,
-0.0336725153028965,
0.0577571727335453,
0.004022874869406223,
0.034791070967912674,
0.02163827233016491,
-0.07384063303470612,
0.023148775100708008,
0.029111288487911224,
-0.06418895721435547,
0.03724564239382744,
0.00465101283043623,
0.09626113623380661,
-0.0594169944524765,
-0.06058671697974205,
0.018402783200144768,
0.004893703851848841,
-0.026068424805998802,
0.013146922923624516,
0.013876484706997871,
-0.04307512566447258,
-0.026705723255872726,
0.025831036269664764,
0.07404989749193192,
-0.04965181648731232,
-0.00803880300372839,
0.034289803355932236,
0.008484546095132828,
0.05881096050143242,
-0.029995566233992577,
-0.022022794932127,
0.006867960561066866,
0.023027269169688225,
-0.03571789339184761,
0.035597946494817734,
-0.024985600262880325,
-0.024040954187512398,
-0.048640262335538864,
-0.028642388060688972,
0.008270155638456345,
0.05207383632659912,
-0.01570550538599491,
-0.01073838584125042,
-0.03567333519458771,
0.010304589755833149,
0.042331762611866,
0.029643524438142776,
-0.017760030925273895,
0.045057255774736404,
0.048455312848091125,
0.035875868052244186,
-0.05521261319518089,
0.04663717374205589,
0.03364342078566551,
-0.02826046198606491,
-0.033843427896499634,
0.04770567640662193,
0.0014858911745250225,
-0.03525287285447121,
0.019340813159942627,
0.05505454167723656,
-0.01677984930574894,
-0.02005869708955288,
-0.01508571021258831,
0.061469633132219315,
-0.016672683879733086,
0.004602121654897928,
-0.004652141593396664,
-0.03580918535590172,
-0.021428992971777916,
0.035436343401670456,
-0.04593529552221298,
0.005680161528289318,
-0.02834271639585495,
-0.045700348913669586,
0.006044164765626192,
0.024097401648759842,
0.03636452183127403,
0.05263315141201019,
-0.014564701355993748,
0.11290882527828217,
-0.035502996295690536,
0.0053748381324112415,
-0.07377015054225922,
-0.05799470096826553,
0.010472137480974197,
0.04371706768870354,
-0.0005449392483569682,
0.043298184871673584,
0.011223063804209232,
-0.05383697897195816,
0.02960730530321598,
0.055625319480895996,
0.038601163774728775,
0.008098754100501537,
-0.02515953965485096,
0.008635791949927807,
0.023799100890755653,
0.06418440490961075,
-0.02321169525384903,
-0.038894928991794586,
0.04032590240240097,
0.05063007026910782,
-0.040243733674287796,
0.019326766952872276,
-0.014587938785552979,
0.016774984076619148,
-0.03140752390027046,
-0.05550144612789154,
0.028345987200737,
0.048667922616004944,
-0.0004833037964999676,
0.05233248695731163,
-0.006177499890327454,
0.024314705282449722,
0.024394245818257332,
0.006667169276624918,
0.002035905607044697,
-0.0377999022603035,
-0.023149114102125168,
0.009144973941147327,
0.06510782986879349,
-0.0636226087808609,
0.0634172260761261,
-0.01235521025955677,
0.008741994388401508,
0.03180605173110962,
0.007059052120894194,
0.04742727428674698,
0.060118213295936584,
0.018621809780597687,
-0.030223775655031204,
0.031226059421896935,
0.00561560271307826,
0.039179880172014236,
0.055767208337783813,
-0.0002340029168408364,
0.04981593042612076,
-0.015479360707104206,
0.04647856205701828,
0.07471109181642532,
0.038708966225385666,
-0.013677545823156834,
0.04129169136285782,
0.058248069137334824,
0.004133906215429306,
-0.0001151927062892355,
0.05711266025900841,
-0.06638848781585693,
0.015385747887194157,
-0.007815667428076267,
0.0408049114048481,
-0.015021421946585178,
-0.024317845702171326,
0.02111584134399891,
0.0297651719301939,
-0.01971631497144699,
0.0030545357149094343,
0.004495555069297552,
0.0018788425950333476,
0.017603866755962372,
-0.009760498069226742,
0.0025683303829282522,
-0.02822798863053322,
-0.05416453629732132,
0.013308134861290455,
-0.08449479192495346,
-0.023649461567401886,
0.014175036922097206,
-0.013039004988968372,
0.02864612080156803,
-0.07206876575946808,
-0.03418906405568123,
-0.054173894226551056,
-0.021887043491005898,
0.04086622595787048,
0.017914816737174988,
0.008525887504220009,
-0.02052782103419304,
0.013330088928341866,
-0.08032168447971344,
-0.019632983952760696,
-0.07890210300683975,
-0.052653808146715164,
-0.03124840557575226,
-0.02926023118197918,
0.029372522607445717,
0.002036105841398239,
0.0009716144995763898,
0.02729025110602379,
-0.018882345408201218,
-0.032926447689533234,
-0.031380243599414825,
0.04705053195357323,
0.027930205687880516,
-0.011473395861685276,
-0.0320730060338974,
0.025935661047697067,
-0.004693780560046434,
0.02537369728088379,
-0.007506128866225481,
-0.0405697301030159,
0.07612492144107819,
0.0744059607386589,
0.024497060105204582,
0.010235731489956379,
-0.030061600729823112,
-0.05289408937096596,
-0.03192858397960663,
-0.03476947918534279,
-0.0598093718290329,
-0.025525463744997978,
-0.0017378863412886858,
-0.04074520617723465,
-0.014966422691941261,
-0.05202709883451462,
-0.035686638206243515,
0.004492451436817646,
-0.0070258863270282745,
0.0517755001783371,
0.05712687969207764,
0.024303026497364044,
0.03798922151327133,
-0.04883589223027229,
0.009923270903527737,
0.08284828811883926,
0.021279891952872276,
0.01870591752231121,
-0.07568346709012985,
-0.048284176737070084,
0.0496714785695076,
0.03564336150884628,
0.004780225455760956,
-0.01524451281875372,
0.07821713387966156,
0.012483264319598675,
-0.010965367779135704,
0.005112943705171347,
-0.0016430390533059835,
-0.010685390792787075,
-0.0120595283806324,
-0.006014982238411903,
-0.011426622048020363,
-0.04214727506041527,
-0.019353413954377174,
-0.03777018189430237,
0.03177677094936371,
-0.046695370227098465,
-0.0404854416847229,
-0.0012515902053564787,
0.01814873516559601,
0.04098038747906685,
0.0010128504363819957,
-0.037817925214767456,
0.005088095087558031,
-0.03759130463004112,
-0.009609458036720753,
-0.020950118079781532,
-0.005357485730201006,
0.004296077881008387,
0.014763525687158108,
0.018979549407958984,
-0.018864145502448082,
0.015413496643304825,
0.016909105703234673,
0.03979063406586647,
0.02769959531724453,
-0.04263215512037277,
0.03951229900121689,
-0.024095594882965088,
0.035139814019203186,
-0.018783770501613617,
-0.01704147458076477,
-0.04618892818689346,
-0.0659281462430954,
-0.01281903125345707,
0.028762226924300194,
-0.021495984867215157,
0.023081155493855476,
0.029299620538949966,
-0.024698661640286446,
-0.02002495341002941,
0.0017129963962361217,
0.01849726401269436,
0.037888865917921066,
-0.06539962440729141,
0.05318086966872215,
-0.037685930728912354,
0.062021657824516296,
-0.05358905717730522,
0.006155852228403091,
-0.02731332555413246,
-0.000554875296074897,
0.018734851852059364,
0.047646231949329376,
0.009854576550424099,
0.04611760750412941,
0.053656045347452164,
0.04880567640066147,
-0.03212779015302658,
0.04511917009949684,
0.07354647666215897,
-0.00968076754361391,
-0.06680143624544144,
0.020825406536459923,
-0.03183331340551376,
-0.027961745858192444,
-0.014206677675247192,
-0.027522007003426552,
0.016217803582549095,
0.026039933785796165,
-0.0021572280675172806,
-0.0005049774190410972,
-0.011823181994259357,
-0.007528971415013075,
-0.031015291810035706,
-0.07281120866537094,
-0.04264843091368675,
-0.00996360182762146,
-0.024686358869075775,
0.031257010996341705,
0.0378800630569458,
0.0035331121180206537,
0.051268864423036575,
0.04903784021735191,
-0.0022097905166447163,
-0.040676310658454895,
0.032670747488737106,
0.018875407055020332,
-0.043615538626909256,
-0.059715259820222855,
-0.0437752790749073,
0.019285062327980995,
0.06721027940511703,
-0.03729116544127464,
-0.1017625629901886,
-0.011975454166531563,
0.0568552128970623,
-0.03528822585940361,
0.029137933626770973,
-0.004783337935805321,
0.031806785613298416,
0.045016251504421234,
-0.019193630665540695,
0.042235929518938065,
-0.019008541479706764,
-0.0016684946604073048,
0.01923343539237976,
0.03798224404454231,
-0.014619091525673866,
-0.027487045153975487,
-0.020738163962960243,
0.042718224227428436,
0.020740842446684837,
0.02320265583693981,
0.06859485805034637,
-0.021998858079314232,
-0.07237967848777771,
-0.004296545870602131,
0.02219308353960514,
-0.045073747634887695,
0.01944657973945141,
0.012328553944826126,
0.0525512732565403,
-0.03444335609674454,
-0.029555974528193474,
-0.017820004373788834,
0.01861327886581421,
0.036912091076374054,
0.012699631042778492,
-0.017336569726467133,
-0.05193937569856644,
0.03621871396899223,
0.007829532958567142,
-0.03335392847657204,
-0.08583511412143707,
0.04625934734940529,
0.014973437413573265,
-0.01738871820271015,
0.033353667706251144,
0.0048234183341264725,
0.04756829887628555,
0.056489311158657074,
0.009265806525945663,
0.007856043055653572,
-0.035826798528432846,
0.033357761800289154,
-0.030706899240612984,
0.0007166946888901293,
0.005829296074807644,
-0.07451608031988144,
-0.0044061713851988316,
-0.019672134891152382,
-0.05060345306992531,
-0.047414202243089676,
-0.03387962654232979,
0.04947376996278763,
0.0011034355266019702,
-0.0014618728309869766,
-0.0039534843526780605,
0.03932486101984978,
0.010632386431097984,
-0.022554147988557816,
-0.05340457335114479,
-0.04723845794796944,
-0.060587283223867416,
-0.029201999306678772,
0.027815472334623337,
0.00657897861674428,
0.021619146689772606,
-0.013099984265863895,
0.008454663679003716,
0.04093620181083679,
0.009375338442623615,
-0.0536947138607502,
0.04325750097632408,
-0.004179827868938446,
-0.04539591819047928,
-0.018717385828495026,
0.009090316481888294,
0.006459523923695087,
-0.006057208403944969,
-0.03847493603825569,
0.019915884360671043,
0.010932572185993195,
-0.006322991568595171,
-0.019169066101312637,
0.022505883127450943,
0.014751475304365158,
-0.054948024451732635,
-0.03325674310326576,
-0.020353935658931732,
-0.039060767740011215,
0.03649253025650978,
-0.0009447059710510075,
-0.029802745208144188,
0.025720510631799698,
0.03839704766869545,
0.008320903405547142,
-0.014855829998850822,
-0.0067489719949662685,
0.03768293187022209,
-0.025615887716412544,
0.00860570278018713,
-0.07663321495056152,
0.03238381817936897,
-0.02926081418991089,
0.005393063183873892,
-0.012514734640717506,
-0.008398322388529778,
-0.036382246762514114,
0.03559412062168121,
-0.00011870143498526886,
-0.0107046440243721,
-0.018394961953163147,
0.01950564607977867,
-0.035785406827926636,
0.03282855823636055,
-0.017392756417393684,
0.04283112660050392,
-0.022405536845326424,
0.029166970402002335,
-0.03026745282113552,
-0.007894402369856834,
-0.023254187777638435,
0.028779013082385063,
-0.025557076558470726,
-0.03353637456893921,
-0.014025774784386158,
-0.0360550731420517,
0.03397400677204132,
0.041760705411434174,
0.01952926069498062,
0.03007522039115429,
-0.0015522633912041783,
0.028279369696974754,
0.03809363394975662,
-0.09066005796194077,
-0.028377730399370193,
-0.009550673887133598,
-0.029184600338339806,
-0.012836446054279804,
0.026508033275604248,
0.029127515852451324,
-0.05834788456559181,
-0.04721756651997566,
0.05247185379266739,
0.016369367018342018,
0.01828455552458763,
-0.00014682448818348348,
0.0360470786690712,
0.04906637594103813,
0.041032787412405014,
-0.03775213286280632,
-0.0035372120328247547,
-0.003998917527496815,
-0.02343083918094635,
0.005354857537895441,
-0.01708373799920082,
0.012959614396095276,
-0.02246839553117752,
-0.042947202920913696,
-0.0368683822453022,
0.07871565967798233,
0.03781619295477867,
0.007373446598649025,
0.006869256962090731,
-0.0407748706638813,
0.04408566281199455,
-0.003517803270369768,
-0.06884469836950302,
0.02558273822069168,
0.011990869417786598,
-0.023437539115548134,
0.06023496761918068,
-0.013960388489067554,
0.01342691294848919,
0.048323992639780045,
0.03210309520363808,
-0.024413909763097763,
0.011300782673060894,
-0.048252951353788376,
0.015554645098745823,
0.034114547073841095,
-0.040051139891147614,
-0.023437224328517914,
-0.04069749638438225,
0.06776091456413269,
-0.05755104869604111,
0.0449037067592144,
0.047347500920295715,
0.008461724035441875,
0.006103276275098324,
0.009025290608406067,
-0.06636212766170502,
0.007821132428944111,
-0.04219953343272209,
0.06696154922246933,
-0.012589761056005955,
-0.0897364392876625,
0.07055287808179855,
0.025594595819711685,
-0.06293784826993942,
0.06431278586387634,
0.06518612056970596,
0.025168931111693382,
0.0292984489351511,
0.020195171236991882,
-0.03917434811592102,
0.015804721042513847,
-0.03670371323823929,
0.028172850608825684,
-0.05969139188528061,
-0.01473876554518938,
0.024878449738025665,
-0.022053468972444534,
-0.008390895090997219,
0.028580520302057266,
0.0008370282012037933,
-0.004714431706815958,
0.0015384258003905416,
-0.06342961639165878,
-0.05105017125606537,
-0.021232865750789642,
0.005195594858378172,
-0.04202182590961456,
0.04684382304549217,
-0.010920630767941475,
0.022806301712989807,
-0.0006507059442810714,
0.0016238321550190449,
-0.02924300730228424,
0.022767964750528336,
0.011017904616892338,
-0.06658359616994858,
-0.03057863377034664,
0.043443720787763596,
0.03878280147910118,
-0.012673718854784966,
0.0162913016974926,
-0.005727679934352636,
0.004210249520838261,
-0.00350038125179708,
-0.026901669800281525,
0.01475539617240429,
-0.08314041793346405,
-0.010853779502213001,
0.02668606862425804,
0.043751440942287445,
0.022149495780467987,
-0.010091770440340042,
0.02583617903292179,
0.044734906405210495,
0.010612515732645988,
0.008246193639934063,
-0.003409627126529813,
-0.025331569835543633,
0.0167132206261158,
-0.05167394503951073,
0.030227461829781532,
0.015680767595767975,
-0.05168285220861435,
-0.029118351638317108,
0.004313313402235508,
-0.023847315460443497,
0.016651496291160583,
-0.07216867804527283,
-0.006745141930878162,
0.035220686346292496,
-0.00449324818328023,
-0.05247002840042114,
-0.05831409990787506,
-0.05206412449479103,
-0.043817128986120224,
0.029698515310883522,
0.03124304488301277,
-0.05334949493408203,
0.009385939687490463,
-0.044431328773498535,
-0.036030061542987823,
0.0632159411907196,
0.013972078450024128,
-0.015857219696044922,
0.044289298355579376,
0.025013212114572525,
-0.03991573676466942,
0.02171727456152439,
0.023898812010884285,
-0.026655346155166626,
0.0415370836853981,
0.007413061335682869,
0.03625883907079697,
0.02657293528318405,
0.02113300934433937,
-0.00641690893098712,
-0.03189036250114441,
-0.019796673208475113,
-0.04884997382760048,
-0.04336167499423027,
0.007759348955005407,
0.04829538241028786
] |
BigSalmon/MrLincoln11 | [
"pytorch",
"gpt2",
"text-generation",
"transformers"
] | text-generation | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": true,
"max_length": 50
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 9 | null | Informal to Formal:
```
from transformers import AutoTokenizer, AutoModelWithLMHead
tokenizer = AutoTokenizer.from_pretrained("gpt2")
model = AutoModelWithLMHead.from_pretrained("BigSalmon/MrLincoln11")
```
```
How To Make Prompt:
Original: freedom of the press is a check against political corruption.
Edited: fundamental to the spirit of democracy, freedom of the press is a check against political corruption.
Edited 2: ever at odds with tyranny, freedom of the press is a check against political corruption.
Edited 3: never to be neglected, freedom of the press is a check against political corruption.
Original: solar is a beacon of achievement.
Edited: central to decoupling from the perils of unsustainable energy, solar is a beacon of achievement.
Edited 2: key to a future beyond fossil fuels, solar is a beacon of achievement.
Original: milan is nevertheless ambivalent towards his costly terms.
Edited: keen on contracting him, milan is nevertheless ambivalent towards his costly terms.
Edited 2: intent on securing his services, milan is nevertheless ambivalent towards his costly terms.
Original:
```
```
How To Make Prompt:
informal english: i am very ready to do that just that.
Translated into the Style of Abraham Lincoln: you can assure yourself of my readiness to work toward this end.
Translated into the Style of Abraham Lincoln: please be assured that i am most ready to undertake this laborious task.
informal english: space is huge and needs to be explored.
Translated into the Style of Abraham Lincoln: space awaits traversal, a new world whose boundaries are endless.
Translated into the Style of Abraham Lincoln: space is a ( limitless / boundless ) expanse, a vast virgin domain awaiting exploration.
informal english: meteors are much harder to see, because they are only there for a fraction of a second.
Translated into the Style of Abraham Lincoln: meteors are not ( easily / readily ) detectable, lasting for mere fractions of a second.
informal english:
```` | [
-0.003404434770345688,
-0.023724356666207314,
-0.05269227921962738,
0.04670790210366249,
0.06434885412454605,
0.049067627638578415,
-0.008898092433810234,
0.006701183505356312,
-0.051563411951065063,
0.06268665194511414,
0.03160163015127182,
-0.000633456336800009,
0.01451146136969328,
0.020751306787133217,
-0.023145779967308044,
-0.028787069022655487,
-0.033300332725048065,
0.0024488286580890417,
-0.021916713565587997,
-0.03504764661192894,
0.020911701023578644,
-0.014909645542502403,
0.0023258437868207693,
0.014403796754777431,
-0.009129314683377743,
0.002897192258387804,
0.006642547436058521,
0.01656443253159523,
0.028163239359855652,
-0.07908152788877487,
-0.006497372407466173,
-0.053010083734989166,
-0.005344695877283812,
-0.02165265940129757,
-0.04627571254968643,
0.017922235652804375,
0.001419099629856646,
-0.00878650788217783,
0.02800346165895462,
0.05228786543011665,
-0.006969247478991747,
0.01160652469843626,
0.01363747101277113,
-0.015268363058567047,
0.05828377604484558,
0.011888529174029827,
-0.04780475050210953,
-0.023968085646629333,
0.05622657388448715,
-0.012448492459952831,
-0.05703238770365715,
-0.07614041119813919,
-0.014416341669857502,
0.006396406330168247,
-0.012936968356370926,
-0.0003412439546082169,
-0.0847652330994606,
-0.014149326831102371,
0.08551213890314102,
-0.059587717056274414,
-0.026051700115203857,
0.05929698050022125,
-0.08184453099966049,
0.04338829964399338,
0.04472506046295166,
-0.025756530463695526,
0.0007423966308124363,
-0.02951054275035858,
0.024479540064930916,
-0.014400049112737179,
0.05203213915228844,
-0.052401889115571976,
0.021274464204907417,
-0.06689529120922089,
-0.031349409371614456,
-0.01874498836696148,
0.03244577720761299,
0.03278522938489914,
-0.053733181208372116,
0.05735250934958458,
0.027464326471090317,
0.010481239296495914,
0.03328673541545868,
-0.03477928787469864,
-0.026020832359790802,
0.0126565583050251,
-0.0381891168653965,
-0.011346006765961647,
0.011967750266194344,
0.05822199955582619,
-0.048081327229738235,
-0.07325620204210281,
-0.017129652202129364,
-0.034423165023326874,
-0.00850578024983406,
0.012151922099292278,
0.07668966054916382,
-0.011716668494045734,
0.01047531794756651,
0.005223624873906374,
0.041864875704050064,
0.04704556614160538,
0.003801872720941901,
0.03835579752922058,
0.0021139951422810555,
0.000008827555575408041,
-0.017536640167236328,
-0.04430433362722397,
-0.050872527062892914,
0.03578970208764076,
0.009764082729816437,
-0.03419046476483345,
-0.0357283353805542,
0.025782683864235878,
0.028249921277165413,
-0.006058361381292343,
0.017091674730181694,
-0.013309339992702007,
-0.049812328070402145,
-0.039606187492609024,
0.03480033203959465,
0.018017437309026718,
-0.0019895252771675587,
0.010317434556782246,
-0.038523685187101364,
0.033693231642246246,
-0.054188113659620285,
-0.04438600689172745,
-0.027829693630337715,
0.04397181421518326,
-0.002484336029738188,
0.04635251685976982,
0.015128622762858868,
-0.07583878189325333,
0.00459968950599432,
0.012062355875968933,
-0.04608193412423134,
0.04418538138270378,
0.01102080661803484,
0.0924701914191246,
-0.03663056716322899,
-0.029182422906160355,
0.006484404671937227,
0.005617876537144184,
-0.022914588451385498,
0.019507810473442078,
0.015027020126581192,
-0.04001183062791824,
-0.012324880808591843,
0.03458389639854431,
0.06904846429824829,
-0.04650881886482239,
-0.0022935920860618353,
0.040692321956157684,
0.0075537944212555885,
0.05900294706225395,
-0.02837858349084854,
-0.02809428982436657,
0.00413664523512125,
0.018704108893871307,
-0.02208537794649601,
0.04779714718461037,
-0.021937785670161247,
-0.027819309383630753,
-0.03569505736231804,
-0.028087690472602844,
0.017570622265338898,
0.06878089904785156,
-0.0024773182813078165,
-0.017169512808322906,
-0.01932513155043125,
-0.0014902439434081316,
0.03982324153184891,
0.027637628838419914,
-0.0011997410329058766,
0.0647766962647438,
0.03387021645903587,
0.03245207294821739,
-0.06040819361805916,
0.0462496392428875,
0.0377328060567379,
-0.04684459790587425,
-0.03180253133177757,
0.03912338986992836,
-0.007228328846395016,
-0.018168561160564423,
0.03878359869122505,
0.04518513381481171,
-0.009704162366688251,
-0.012164274230599403,
-0.010364994406700134,
0.08213688433170319,
-0.024622561410069466,
0.008154988288879395,
-0.01879100315272808,
-0.017422473058104515,
-0.024833904579281807,
0.03366441652178764,
-0.028534233570098877,
0.01180131733417511,
-0.013846205547451973,
-0.04893895238637924,
-0.00212004198692739,
0.03620181977748871,
0.04411905258893967,
0.05979212000966072,
-0.011159121058881283,
0.11054836213588715,
-0.03674326464533806,
-0.0010084914974868298,
-0.0713268369436264,
-0.060328297317028046,
0.013468349352478981,
0.05929720401763916,
0.011652876622974873,
0.048652373254299164,
0.007720934227108955,
-0.059893619269132614,
0.0348130539059639,
0.026763195171952248,
0.039360880851745605,
0.007824897766113281,
-0.04120856523513794,
0.003638317110016942,
0.03444403037428856,
0.060554247349500656,
-0.032984279096126556,
-0.03356161713600159,
0.01614261604845524,
0.05194399505853653,
-0.023530902341008186,
0.015286315232515335,
-0.006340594496577978,
0.018575631082057953,
-0.027561509981751442,
-0.07484671473503113,
0.035207320004701614,
0.03292141482234001,
-0.009420312009751797,
0.043288055807352066,
-0.017058318480849266,
0.029385384172201157,
0.02476438879966736,
0.0009784225840121508,
0.003136737272143364,
-0.05170860514044762,
0.008287067525088787,
0.015590082854032516,
0.09212043881416321,
-0.05905412510037422,
0.05978371202945709,
-0.0003361745912116021,
-0.0012380637926980853,
0.021172810345888138,
-0.017554108053445816,
0.053049132227897644,
0.04800422862172127,
0.02339254505932331,
-0.04961536079645157,
0.03465242311358452,
0.005010669585317373,
0.042704999446868896,
0.06331487745046616,
-0.007275748997926712,
0.051493894308805466,
0.004831245634704828,
0.05311465263366699,
0.06491615623235703,
0.03349556773900986,
-0.007382323034107685,
0.047350455075502396,
0.05022259056568146,
-0.004477101843804121,
-0.0040845307521522045,
0.04921950027346611,
-0.053213946521282196,
0.011330613866448402,
-0.021002668887376785,
0.03722457215189934,
-0.015959149226546288,
-0.021701926365494728,
0.029674623161554337,
0.03338552638888359,
-0.016850387677550316,
-0.00340936123393476,
-0.0063910214230418205,
-0.004070058465003967,
0.03008246421813965,
-0.009943881072103977,
0.00788714736700058,
-0.030277688056230545,
-0.055870525538921356,
0.005114701576530933,
-0.08105892688035965,
-0.022630389779806137,
0.007646585814654827,
-0.016032947227358818,
0.00835665874183178,
-0.08259458839893341,
-0.04054588824510574,
-0.048890359699726105,
-0.006364952772855759,
0.04562532529234886,
0.007699181791394949,
0.009786161594092846,
-0.02282479591667652,
0.0017367323162034154,
-0.06667809188365936,
-0.034734632819890976,
-0.06069306656718254,
-0.04664667695760727,
-0.03292660042643547,
-0.05195417255163193,
0.012574514374136925,
0.008133653551340103,
0.012639423832297325,
0.004657172132283449,
0.0034722902346402407,
-0.02306770160794258,
-0.01626843400299549,
0.03849615901708603,
0.018816392868757248,
-0.01542517077177763,
-0.039047908037900925,
0.04981054738163948,
-0.02843570150434971,
0.03155441954731941,
0.008127953857183456,
-0.052568428218364716,
0.06147286668419838,
0.07248281687498093,
0.028270872309803963,
0.02151809073984623,
-0.02022397518157959,
-0.06573253870010376,
-0.02704753912985325,
-0.01937555894255638,
-0.05835876241326332,
-0.03765665739774704,
-0.00357691734097898,
-0.03498268499970436,
-0.03963734209537506,
-0.04484277963638306,
-0.033355019986629486,
0.015742894262075424,
0.0025666418951004744,
0.06894010305404663,
0.06779313832521439,
0.02521873638033867,
0.03540023788809776,
-0.04406312480568886,
0.005076643545180559,
0.09492755681276321,
0.010227030143141747,
0.022551199421286583,
-0.08121661841869354,
-0.04648934304714203,
0.05276551470160484,
0.03424549847841263,
0.013778150081634521,
-0.015593464486300945,
0.07238192856311798,
0.0316372886300087,
-0.013431116938591003,
-0.013143337331712246,
0.016229495406150818,
-0.02946089208126068,
-0.015387576073408127,
0.0017115931259468198,
-0.007676481269299984,
-0.04170994833111763,
-0.02876221388578415,
-0.03543282300233841,
0.02990799769759178,
-0.05250160023570061,
-0.05024046450853348,
-0.007540939841419458,
0.029891034588217735,
0.026970237493515015,
0.0011865133419632912,
-0.03002960979938507,
0.008850996382534504,
-0.04085758700966835,
-0.01166024524718523,
-0.007895124144852161,
0.024652067571878433,
0.024308305233716965,
0.024342648684978485,
0.03468957543373108,
-0.02169024385511875,
-0.004188497085124254,
0.034878723323345184,
0.042909931391477585,
0.013941602781414986,
-0.03698768466711044,
0.035661034286022186,
-0.01920768991112709,
0.00913400948047638,
-0.01432120893150568,
-0.0123372133821249,
-0.056403595954179764,
-0.08961573243141174,
0.006220467388629913,
0.0230556707829237,
-0.011786031536757946,
0.018492545932531357,
0.011723429895937443,
-0.018166571855545044,
-0.012257193215191364,
-0.002417981158941984,
0.010067718103528023,
0.04816439375281334,
-0.07422666251659393,
0.06314485520124435,
-0.03842002525925636,
0.07253317534923553,
-0.06129889190196991,
-0.00867992639541626,
-0.020452724769711494,
-0.0008158878772519529,
0.02740318328142166,
0.04326958954334259,
0.01597149483859539,
0.03842958062887192,
0.05519964173436165,
0.034922096878290176,
-0.029951514676213264,
0.04892249032855034,
0.07781590521335602,
-0.008558757603168488,
-0.05256640166044235,
0.01139349676668644,
-0.013304808177053928,
-0.028712769970297813,
-0.0005280324257910252,
-0.02346411719918251,
0.01845780946314335,
0.008458527736365795,
-0.004173900932073593,
-0.011705596931278706,
-0.01407960057258606,
-0.005517806392163038,
-0.038796503096818924,
-0.06496521830558777,
-0.04693520814180374,
-0.007539829704910517,
-0.009624580852687359,
0.025542251765727997,
0.03856347128748894,
-0.004687972832471132,
0.06394719332456589,
0.04645531624555588,
0.0105598708614707,
-0.03717678785324097,
0.02797301672399044,
0.03183601051568985,
-0.05218873545527458,
-0.07126260548830032,
-0.05315724015235901,
0.01716422289609909,
0.05704309046268463,
-0.025178400799632072,
-0.11162852495908737,
0.013896833173930645,
0.05404875800013542,
-0.0439862459897995,
0.028392435982823372,
-0.010328670032322407,
0.016032883897423744,
0.03811194375157356,
-0.02995148114860058,
0.015659524127840996,
-0.014324297197163105,
-0.009979083202779293,
0.012452460825443268,
0.050762616097927094,
-0.020212393254041672,
-0.025852680206298828,
-0.04311739653348923,
0.04095125198364258,
0.025712447240948677,
0.03558062016963959,
0.07023666799068451,
-0.027498219162225723,
-0.06137888878583908,
0.0047432249411940575,
0.039793916046619415,
-0.06465797871351242,
0.021672172471880913,
0.029412003234028816,
0.027213850989937782,
-0.0255634356290102,
-0.026286371052265167,
-0.016080617904663086,
0.013364756479859352,
0.0510140135884285,
-0.015699265524744987,
-0.0407964289188385,
-0.034790635108947754,
0.053778357803821564,
0.007348072249442339,
-0.03220987692475319,
-0.08997216075658798,
0.04121176898479462,
0.014500926248729229,
-0.011025135405361652,
0.02813451550900936,
0.0011934497160837054,
0.043636322021484375,
0.06709112972021103,
0.0022229664027690887,
0.010341193526983261,
-0.05083930119872093,
0.0205395445227623,
-0.01883293315768242,
0.0055700549855828285,
-0.007973795756697655,
-0.04278086498379707,
0.008030281402170658,
-0.02231702208518982,
-0.05341242998838425,
-0.051847461611032486,
-0.02037632092833519,
0.049736138433218,
-0.005089396145194769,
-0.006884241942316294,
-0.012517325580120087,
0.04555537551641464,
-0.0016919247573241591,
-0.02823658473789692,
-0.03553279489278793,
-0.029167797416448593,
-0.0579419881105423,
-0.029131712391972542,
0.02203848399221897,
0.007859883829951286,
0.014532740227878094,
-0.009507639333605766,
0.009011977352201939,
0.04197637364268303,
-0.007405589334666729,
-0.05182034894824028,
0.028840197250247,
-0.0027717140037566423,
-0.038176726549863815,
-0.0264531672000885,
0.0019010630203410983,
-0.0061700791120529175,
0.01120814960449934,
-0.02509329281747341,
0.019919248297810555,
0.019242417067289352,
-0.008904357440769672,
-0.0000653873648843728,
0.01731196977198124,
0.01873018406331539,
-0.07001592218875885,
-0.027895858511328697,
-0.008888295851647854,
-0.028686411678791046,
0.028411099687218666,
0.0070655024610459805,
-0.025966422632336617,
0.01771915890276432,
0.020831555128097534,
0.014240731485188007,
-0.0068200137466192245,
-0.019791189581155777,
0.015335885807871819,
-0.039921604096889496,
0.00647940207272768,
-0.06543698161840439,
0.023170409724116325,
-0.021765386685729027,
0.0038603160064667463,
-0.014927338808774948,
-0.011454525403678417,
-0.03542132303118706,
0.04020371288061142,
0.004759104922413826,
0.003988668322563171,
-0.023603321984410286,
0.010569914244115353,
-0.040011413395404816,
0.03827037289738655,
-0.007318172603845596,
0.037409283220767975,
-0.01838807389140129,
0.03321121633052826,
-0.03357289358973503,
-0.008471136912703514,
-0.026456307619810104,
0.020401939749717712,
-0.032409291714429855,
-0.025414757430553436,
-0.010175603441894054,
-0.02792094089090824,
0.02552434243261814,
0.04589318856596947,
0.028223836794495583,
0.01749826967716217,
-0.016770921647548676,
0.028384460136294365,
0.021219402551651,
-0.07172484695911407,
-0.019656149670481682,
-0.013410316780209541,
-0.0410635806620121,
-0.005704802460968494,
0.031160159036517143,
0.0386909581720829,
-0.06370909512042999,
-0.04641232639551163,
0.03428811952471733,
0.01135987602174282,
0.022645078599452972,
0.004436424933373928,
0.020588183775544167,
0.05307869240641594,
0.028269900009036064,
-0.03484910726547241,
0.009556934237480164,
-0.013382213190197945,
-0.03691624850034714,
0.020675525069236755,
-0.023088937625288963,
0.034986019134521484,
-0.010040722787380219,
-0.033548444509506226,
-0.02390366978943348,
0.07250215858221054,
0.024081075564026833,
0.002968604676425457,
-0.009093375876545906,
-0.035383518785238266,
0.04015742614865303,
0.007009353954344988,
-0.05283689871430397,
0.026768965646624565,
0.011369767598807812,
-0.04412662237882614,
0.06867434829473495,
-0.01770949736237526,
0.020203033462166786,
0.04489986225962639,
0.029605304822325706,
-0.009707548655569553,
0.036258265376091,
-0.04938686639070511,
0.025460928678512573,
0.031019942834973335,
-0.04388466477394104,
-0.010774930939078331,
-0.04169180989265442,
0.06239865720272064,
-0.05678154528141022,
0.043746910989284515,
0.05844634026288986,
0.015810465440154076,
0.037177663296461105,
0.003691122867166996,
-0.054220862686634064,
0.022492114454507828,
-0.036711424589157104,
0.07086753100156784,
0.006536615081131458,
-0.09146823734045029,
0.08672535419464111,
0.021319450810551643,
-0.0685100257396698,
0.05740146338939667,
0.040872972458601,
0.02533058635890484,
0.03251123055815697,
0.03286202996969223,
-0.037178102880716324,
0.013793600723147392,
-0.0585038959980011,
0.02492339536547661,
-0.0697190910577774,
-0.0064836302772164345,
0.03861871361732483,
-0.033197421580553055,
-0.014217528514564037,
0.012038882821798325,
-0.011131837032735348,
-0.013096402399241924,
0.013064946979284286,
-0.05026305094361305,
-0.03798990696668625,
-0.02016952447593212,
0.0102162417024374,
-0.039373185485601425,
0.029217785224318504,
-0.02327861450612545,
0.030714085325598717,
0.010896610096096992,
0.003046979196369648,
-0.021218735724687576,
0.032226063311100006,
0.010659032501280308,
-0.06482072174549103,
-0.03714190050959587,
0.05484982579946518,
0.03040897287428379,
-0.01495995931327343,
0.029775265604257584,
-0.011025063693523407,
0.0008310262346640229,
0.006108238361775875,
-0.02262045629322529,
0.009484135545790195,
-0.06244704872369766,
-0.0016455008881166577,
0.0250021293759346,
0.03663790598511696,
0.044479601085186005,
-0.008862223476171494,
0.03857281431555748,
0.026911074295639992,
0.0032854110468178988,
0.007853719405829906,
-0.009107395075261593,
-0.024217691272497177,
0.015688026323914528,
-0.042425986379384995,
0.020044060423970222,
0.013277694582939148,
-0.06046067550778389,
-0.025280117988586426,
-0.001123649999499321,
-0.01204588171094656,
0.008157368749380112,
-0.07059136033058167,
-0.019074395298957825,
0.030507242307066917,
0.0012350650504231453,
-0.03782835602760315,
-0.0809442475438118,
-0.048407264053821564,
-0.04772770404815674,
0.039071664214134216,
0.011379027739167213,
-0.049657996743917465,
0.0022413446567952633,
-0.06038932502269745,
-0.04866396635770798,
0.051106881350278854,
0.0077287303283810616,
-0.03346337378025055,
0.031130723655223846,
0.02570091374218464,
-0.03466465696692467,
0.020408090204000473,
0.023810913786292076,
-0.025034913793206215,
0.03153633326292038,
0.010508749634027481,
0.02561694197356701,
0.009930510073900223,
0.03074076771736145,
-0.031456220895051956,
-0.008666022680699825,
-0.025802263990044594,
-0.03828524798154831,
-0.037696633487939835,
-0.010976342484354973,
0.049968790262937546
] |
BigSalmon/MrLincoln12 | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"has_space"
] | text-generation | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": true,
"max_length": 50
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 9 | null | Informal to Formal:
```
from transformers import AutoTokenizer, AutoModelWithLMHead
tokenizer = AutoTokenizer.from_pretrained("gpt2")
model = AutoModelWithLMHead.from_pretrained("BigSalmon/MrLincoln12")
```
```
https://huggingface.co/spaces/BigSalmon/InformalToFormal
```
```
How To Make Prompt:
informal english: i am very ready to do that just that.
Translated into the Style of Abraham Lincoln: you can assure yourself of my readiness to work toward this end.
Translated into the Style of Abraham Lincoln: please be assured that i am most ready to undertake this laborious task.
informal english: space is huge and needs to be explored.
Translated into the Style of Abraham Lincoln: space awaits traversal, a new world whose boundaries are endless.
Translated into the Style of Abraham Lincoln: space is a ( limitless / boundless ) expanse, a vast virgin domain awaiting exploration.
informal english: meteors are much harder to see, because they are only there for a fraction of a second.
Translated into the Style of Abraham Lincoln: meteors are not ( easily / readily ) detectable, lasting for mere fractions of a second.
informal english:
```` | [
-0.018987350165843964,
-0.018078604713082314,
-0.0513143390417099,
0.05077909305691719,
0.049341119825839996,
0.0586482472717762,
-0.027485987171530724,
0.0037162171211093664,
-0.03300939500331879,
0.05681924894452095,
0.03274529054760933,
-0.003923197276890278,
0.022535128518939018,
0.025081830099225044,
-0.015986958518624306,
-0.0002807935525197536,
-0.037789203226566315,
0.026607470586895943,
-0.013908751308918,
-0.029571112245321274,
0.025193190202116966,
-0.002347102854400873,
0.00712892459705472,
0.027546320110559464,
-0.007349140476435423,
0.01458358857780695,
-0.015285136178135872,
0.014854931272566319,
0.03174611181020737,
-0.06490184366703033,
0.006715119816362858,
-0.056665219366550446,
-0.007861016318202019,
-0.025487465783953667,
-0.050871625542640686,
0.014373722486197948,
-0.0023576642852276564,
0.010621440596878529,
0.030912714079022408,
0.040852051228284836,
0.0006578654865734279,
0.004195528570562601,
0.02472468465566635,
-0.0057905674912035465,
0.07007841765880585,
0.016316842287778854,
-0.039314188063144684,
-0.03588929772377014,
0.06589656323194504,
-0.008892329409718513,
-0.0282000545412302,
-0.07502973079681396,
-0.01507120206952095,
-0.0020736318547278643,
0.006344526540488005,
-0.004363678395748138,
-0.07246144860982895,
-0.029751107096672058,
0.09946625679731369,
-0.06735642999410629,
-0.026090560480952263,
0.04577851668000221,
-0.07158628106117249,
0.06336867809295654,
0.038284555077552795,
-0.03581613302230835,
0.01201771479099989,
-0.03600257262587547,
0.013428309932351112,
-0.02923070266842842,
0.039382729679346085,
-0.034619156271219254,
0.01642996072769165,
-0.07068190723657608,
-0.030569974333047867,
-0.013569929637014866,
0.050525687634944916,
0.022045521065592766,
-0.05052737891674042,
0.07937586307525635,
0.016503645107150078,
0.01272480096668005,
0.035072434693574905,
-0.00993170216679573,
-0.022344086319208145,
0.030003877356648445,
-0.04695272445678711,
-0.008931339718401432,
0.004724474158138037,
0.03732455521821976,
-0.04362966865301132,
-0.08123115450143814,
-0.02508203126490116,
-0.04684703052043915,
-0.005913374479860067,
0.024015698581933975,
0.05966480076313019,
-0.02124853804707527,
0.036145273596048355,
0.0018496176926419139,
0.046934403479099274,
0.035934824496507645,
0.006190045736730099,
0.02366524748504162,
-0.020213743671774864,
0.01931009627878666,
-0.014806676656007767,
-0.03884688392281532,
-0.046402957290410995,
0.04402716085314751,
0.007045818027108908,
-0.038292963057756424,
-0.03335780277848244,
0.01636413298547268,
0.020088784396648407,
-0.01205497421324253,
0.041797295212745667,
-0.006151167675852776,
-0.04253039509057999,
-0.03204820305109024,
0.031328342854976654,
0.014584844000637531,
0.0011435745982453227,
0.0109906867146492,
-0.059285931289196014,
0.055578235536813736,
-0.06501391530036926,
-0.0484907291829586,
-0.018040843307971954,
0.05185743793845177,
0.0010260801063850522,
0.029647409915924072,
0.007653652690351009,
-0.0671805664896965,
0.010072681121528149,
0.026154235005378723,
-0.04095501825213432,
0.024562206119298935,
0.007536055985838175,
0.0812096893787384,
-0.03153413534164429,
-0.04779869690537453,
0.007245843764394522,
0.006389134097844362,
-0.029033737257122993,
0.012844362296164036,
0.027111630886793137,
-0.050049010664224625,
-0.02623242884874344,
0.03717361018061638,
0.060716964304447174,
-0.051188185811042786,
-0.008608789183199406,
0.031837623566389084,
0.009228243492543697,
0.05600830540060997,
-0.029704084619879723,
-0.03482427820563316,
-0.0014924973947927356,
0.023428183048963547,
-0.027833906933665276,
0.038545966148376465,
-0.03764106705784798,
-0.042026542127132416,
-0.04733569547533989,
-0.024995943531394005,
0.036463744938373566,
0.05955323204398155,
-0.00781917478889227,
-0.003375891363248229,
0.0011361432261765003,
0.003728780196979642,
0.06323102116584778,
0.014325495809316635,
-0.004239190369844437,
0.05651601776480675,
0.028676837682724,
0.032969631254673004,
-0.07200553268194199,
0.06376279145479202,
0.0248810313642025,
-0.03721597045660019,
-0.03833447024226189,
0.0490790419280529,
0.012484874576330185,
-0.01215431559830904,
0.04532364383339882,
0.053104616701602936,
-0.019194401800632477,
-0.007088060956448317,
0.00037874048575758934,
0.0636141449213028,
-0.026569344103336334,
-0.0021193777211010456,
-0.017364701256155968,
-0.009386491030454636,
-0.014333592727780342,
0.026538152247667313,
-0.05348348990082741,
0.014775767922401428,
-0.038673050701618195,
-0.036494478583335876,
0.004961329512298107,
0.05556648224592209,
0.0399475172162056,
0.05876186490058899,
-0.030791884288191795,
0.1114032045006752,
-0.040217988193035126,
-0.006237367168068886,
-0.06729976087808609,
-0.0594935268163681,
0.006512841675430536,
0.049529388546943665,
0.00829383172094822,
0.053446244448423386,
0.0149732306599617,
-0.058791935443878174,
0.027331864461302757,
0.0497731938958168,
0.03957443684339523,
-0.008627291768789291,
-0.040114764124155045,
0.014970598742365837,
0.040174711495637894,
0.05025920644402504,
-0.017787698656320572,
-0.02615971490740776,
0.0013633278431370854,
0.048813287168741226,
-0.0254127848893404,
0.02503495290875435,
-0.0016267109895125031,
0.0201075691729784,
-0.028133828192949295,
-0.0688912644982338,
0.0454011932015419,
0.040479257702827454,
-0.000012355868420854677,
0.06205936148762703,
-0.021213915199041367,
0.021104007959365845,
0.02418641932308674,
-0.00038456908077932894,
0.00547011848539114,
-0.045128051191568375,
0.008075730875134468,
-0.0028497467283159494,
0.09214703738689423,
-0.0642978698015213,
0.05869167670607567,
-0.0065606930293142796,
0.003743578912690282,
0.03181351721286774,
0.0071073006838560104,
0.0522744320333004,
0.0477256253361702,
0.014526949264109135,
-0.022080956026911736,
0.04937034845352173,
0.008842812851071358,
0.06593483686447144,
0.06906739622354507,
0.0017680906457826495,
0.03759527578949928,
0.015824412927031517,
0.05581483989953995,
0.05608310550451279,
0.034348342567682266,
0.009393800981342793,
0.044820111244916916,
0.0546533428132534,
-0.007987167686223984,
0.013553586788475513,
0.0666753426194191,
-0.05035204440355301,
0.017897829413414,
-0.00863264687359333,
0.042561180889606476,
-0.007893322966992855,
-0.015701601281762123,
0.019884226843714714,
0.040102407336235046,
-0.018064480274915695,
0.001418197643943131,
0.0010560005903244019,
-0.00539432093501091,
0.029257724061608315,
0.010237227194011211,
0.008761509321630001,
-0.021805519238114357,
-0.048465169966220856,
0.011134174652397633,
-0.07374808937311172,
-0.02927570417523384,
0.012097381055355072,
-0.028136121109128,
0.02108791097998619,
-0.06648162752389908,
-0.025299426168203354,
-0.043110787868499756,
-0.002591063966974616,
0.029125794768333435,
0.011941839940845966,
0.01864701882004738,
0.003274589078500867,
-0.0009479327709414065,
-0.08847792446613312,
-0.016195841133594513,
-0.06681254506111145,
-0.03397216275334358,
-0.02944342792034149,
-0.03603114187717438,
0.020087936893105507,
0.0004541279631666839,
0.02225412242114544,
0.025598058477044106,
-0.01652209646999836,
-0.030769789591431618,
-0.019380196928977966,
0.040977321565151215,
0.004380571655929089,
-0.02436758764088154,
-0.025300735607743263,
0.03142787143588066,
-0.0236648116260767,
0.04070225730538368,
-0.00022104644449427724,
-0.034416068345308304,
0.06475362926721573,
0.06094713881611824,
0.02051173709332943,
0.012718500569462776,
-0.02101719193160534,
-0.059458598494529724,
-0.02708054520189762,
-0.02759312093257904,
-0.0453798770904541,
-0.030497614294290543,
0.007106904871761799,
-0.023645423352718353,
-0.022079693153500557,
-0.04975690320134163,
-0.038247596472501755,
-0.003582848235964775,
0.011265593580901623,
0.06374458223581314,
0.06516449898481369,
0.022143946960568428,
0.03555894270539284,
-0.04689839109778404,
0.02780597284436226,
0.07606104761362076,
0.0041089351288974285,
0.013539878651499748,
-0.07952413707971573,
-0.06045868992805481,
0.06742019951343536,
0.0426768884062767,
0.017447568476200104,
-0.021620457991957664,
0.07779202610254288,
0.035193026065826416,
0.0015961569733917713,
-0.0005826244014315307,
0.012620307505130768,
-0.013166183605790138,
-0.00824232492595911,
-0.0027639493346214294,
0.00045404108823277056,
-0.04019973427057266,
-0.0161613617092371,
-0.0467868372797966,
0.02998810075223446,
-0.06447764486074448,
-0.029599320143461227,
-0.006451169494539499,
0.021990256384015083,
0.029627665877342224,
0.021402332931756973,
-0.028274185955524445,
0.008234930224716663,
-0.041674744337797165,
-0.0014742728089913726,
-0.021210869774222374,
0.004067511763423681,
0.014700442552566528,
0.016566358506679535,
0.022761903703212738,
-0.010312562808394432,
-0.007953430525958538,
0.020708300173282623,
0.040311675518751144,
0.011020558886229992,
-0.042598526924848557,
0.04283469170331955,
-0.014119073748588562,
0.021230243146419525,
-0.022045670077204704,
-0.00964407529681921,
-0.05809321254491806,
-0.06446424126625061,
0.00503337848931551,
0.018822740763425827,
-0.02004067227244377,
0.02296890877187252,
0.024222305044531822,
-0.027781914919614792,
-0.009605206549167633,
-0.015907233580946922,
0.012518763542175293,
0.043147146701812744,
-0.06291883438825607,
0.04558563977479935,
-0.04842814430594444,
0.07776308804750443,
-0.04629014432430267,
-0.013764805160462856,
-0.03650587052106857,
-0.013778441585600376,
0.024098912253975868,
0.05490503087639809,
0.014084255322813988,
0.04975643754005432,
0.045234810560941696,
0.04540856555104256,
-0.04145512729883194,
0.050361812114715576,
0.06620562076568604,
0.0005486001609824598,
-0.0588812381029129,
0.020444266498088837,
-0.012026933953166008,
-0.039370082318782806,
-0.0026086752768605947,
-0.011695794761180878,
0.006395496893674135,
0.017509939149022102,
-0.008951854892075062,
-0.006404734682291746,
-0.007630496751517057,
-0.006764536257833242,
-0.025844421237707138,
-0.06532111018896103,
-0.059396058320999146,
-0.0005109926569275558,
-0.01308318879455328,
0.04365026205778122,
0.038630370050668716,
-0.0037419931031763554,
0.050303198397159576,
0.05572684481739998,
0.008289692923426628,
-0.043321363627910614,
0.015467043034732342,
0.02789834886789322,
-0.04449639469385147,
-0.06725600361824036,
-0.0685475766658783,
0.010144002735614777,
0.06792037934064865,
-0.027774909511208534,
-0.10136594623327255,
0.006635269150137901,
0.03868823125958443,
-0.0547129288315773,
0.03210628405213356,
-0.02078908681869507,
0.020456800237298012,
0.032811496406793594,
-0.024992790073156357,
0.03094675950706005,
-0.014123301021754742,
0.006824890151619911,
0.03796818479895592,
0.06266742944717407,
-0.030724486336112022,
-0.02181941457092762,
-0.05801347270607948,
0.0377117283642292,
0.04167447239160538,
0.021579314023256302,
0.084811270236969,
-0.009082505479454994,
-0.06780751049518585,
0.0028000897727906704,
0.012697003781795502,
-0.04584613814949989,
0.009785262867808342,
0.024181170389056206,
0.04526237025856972,
-0.0141755947843194,
-0.028890959918498993,
-0.011035029776394367,
0.012965133413672447,
0.034842874854803085,
-0.005928383208811283,
-0.03850770369172096,
-0.034433674067258835,
0.03898453339934349,
-0.0007474346202798188,
-0.04332790523767471,
-0.07517322897911072,
0.03781547024846077,
0.02669410966336727,
-0.01977250725030899,
0.022708717733621597,
0.007114784326404333,
0.03942957520484924,
0.06197817251086235,
0.008278013207018375,
0.011905400082468987,
-0.04284190014004707,
0.008855104446411133,
-0.02294009178876877,
0.005698289256542921,
-0.009946765378117561,
-0.04422742500901222,
-0.015501097775995731,
-0.03284316137433052,
-0.0634939968585968,
-0.04912305995821953,
-0.006765902042388916,
0.04563140869140625,
-0.015080476179718971,
-0.010264148004353046,
-0.004550289362668991,
0.03121587261557579,
-0.001420607790350914,
-0.008000888861715794,
-0.04092351719737053,
-0.037387665361166,
-0.060250233858823776,
-0.019274910911917686,
0.013577127829194069,
-0.0006979634054005146,
-0.0011165539035573602,
-0.025331133976578712,
0.008911462500691414,
0.03990021347999573,
-0.011538766324520111,
-0.0583539679646492,
0.05448755621910095,
-0.0070743137039244175,
-0.03064224123954773,
-0.018655765801668167,
0.011874459683895111,
0.0026815044693648815,
-0.006481727119535208,
-0.025258947163820267,
0.01770796626806259,
0.015329469926655293,
-0.017747439444065094,
0.001617977162823081,
0.024348795413970947,
0.003891070606186986,
-0.05431497097015381,
-0.02527538873255253,
0.005026708357036114,
-0.02636069431900978,
0.03260091692209244,
-0.01832781359553337,
-0.029675308614969254,
0.011873218230903149,
0.02109459787607193,
0.017679037526249886,
-0.004543268121778965,
-0.009048952721059322,
0.03015301562845707,
-0.032432470470666885,
-0.004407993983477354,
-0.06355118006467819,
0.017713112756609917,
-0.04389769211411476,
-0.003569355234503746,
-0.018189338967204094,
0.00458409171551466,
-0.045936305075883865,
0.030003022402524948,
0.004015351179987192,
0.011526173911988735,
-0.0357934907078743,
0.022449791431427002,
-0.018496986478567123,
0.033144380897283554,
-0.0016196301439777017,
0.038033440709114075,
-0.03545331954956055,
0.024856673553586006,
-0.028345463797450066,
-0.019183732569217682,
-0.033611051738262177,
0.0028457832522690296,
-0.039845582097768784,
-0.03692948445677757,
-0.0007873058202676475,
-0.035038746893405914,
0.03095434419810772,
0.03541714325547218,
0.007229972165077925,
0.028905389830470085,
0.0037007492501288652,
0.024190666154026985,
0.042296070605516434,
-0.07991883903741837,
-0.015514383092522621,
-0.01459041889756918,
-0.03190059959888458,
-0.006493850611150265,
0.0163502786308527,
0.02379603311419487,
-0.06504350155591965,
-0.04534438997507095,
0.052402906119823456,
0.005181899759918451,
0.032956562936306,
0.005457104649394751,
0.025080718100070953,
0.05063489079475403,
0.03412911295890808,
-0.02184251695871353,
0.005102246999740601,
-0.018117748200893402,
-0.025516312569379807,
-0.006017237901687622,
-0.039082955569028854,
0.005328555125743151,
-0.010157724842429161,
-0.03964230418205261,
-0.036087766289711,
0.07866241037845612,
0.0277508907020092,
0.005649243481457233,
0.010977347381412983,
-0.026039769873023033,
0.039387430995702744,
0.010653111152350903,
-0.04911455884575844,
0.0411374531686306,
0.0010171268368139863,
-0.0289116483181715,
0.06247251108288765,
-0.026762543246150017,
0.013216200284659863,
0.05716370791196823,
0.03344660997390747,
-0.012064514681696892,
0.016297169029712677,
-0.05221716687083244,
0.006849891971796751,
0.03349824249744415,
-0.057944558560848236,
-0.017163369804620743,
-0.04921896010637283,
0.0674375668168068,
-0.039350658655166626,
0.037918657064437866,
0.04614477604627609,
0.02629716694355011,
0.011546679772436619,
0.01136326789855957,
-0.06844925135374069,
0.01596713438630104,
-0.029663944616913795,
0.06442220509052277,
-0.016137540340423584,
-0.0915958359837532,
0.06664687395095825,
0.023431627079844475,
-0.08933396637439728,
0.060341715812683105,
0.049267761409282684,
0.03126555681228638,
0.039778899401426315,
0.024198144674301147,
-0.03208233788609505,
0.018272709101438522,
-0.04394403100013733,
0.028069276362657547,
-0.06911677867174149,
-0.004432118032127619,
0.024033701047301292,
-0.03669845685362816,
0.0015348413726314902,
0.019732464104890823,
-0.008653463795781136,
-0.00619115587323904,
0.014862032607197762,
-0.05717455968260765,
-0.06155432388186455,
-0.01668805256485939,
-0.0012591517297551036,
-0.0608823224902153,
0.029671067371964455,
-0.025158898904919624,
0.017685944214463234,
0.019136831164360046,
-0.002278808271512389,
-0.02796347439289093,
0.02142062410712242,
0.014089162461459637,
-0.05918041989207268,
-0.03836901858448982,
0.05642052739858627,
0.037173885852098465,
-0.003661591559648514,
0.028105100616812706,
-0.006827967241406441,
0.0064130607061088085,
-0.0026414075400680304,
-0.03612701594829559,
0.011785745620727539,
-0.07659173756837845,
0.005788484122604132,
0.019351013004779816,
0.049775976687669754,
0.03545178472995758,
-0.01753353700041771,
0.022305097430944443,
0.03690860792994499,
-0.0011701424373313785,
0.020909350365400314,
-0.006329771596938372,
-0.025152601301670074,
0.018303006887435913,
-0.0485910028219223,
0.03367503359913826,
0.011135179549455643,
-0.05650285258889198,
-0.030114447697997093,
-0.0044443667866289616,
-0.014654118567705154,
0.003177455859258771,
-0.06907863169908524,
-0.023464538156986237,
0.028560513630509377,
-0.016240987926721573,
-0.03451945632696152,
-0.06922280788421631,
-0.04355907812714577,
-0.04073379561305046,
0.02744125947356224,
0.013344348408281803,
-0.04594341665506363,
0.002843024441972375,
-0.04618116095662117,
-0.039038002490997314,
0.0528300441801548,
0.017178399488329887,
-0.019596412777900696,
0.041874196380376816,
0.03075805865228176,
-0.041067373007535934,
0.02286413125693798,
0.014977327547967434,
-0.0160114336758852,
0.04587692394852638,
-0.002160723553970456,
0.03818082436919212,
0.014458793215453625,
0.021811729297041893,
-0.03461083397269249,
-0.023285558447241783,
-0.02524002268910408,
-0.0452411063015461,
-0.03282295539975166,
0.0018132362747564912,
0.05648684501647949
] |
BigSalmon/MrLincoln7 | [] | null | {
"architectures": null,
"model_type": null,
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 0 | null | Informal to Formal:
```
from transformers import AutoTokenizer, AutoModelWithLMHead
tokenizer = AutoTokenizer.from_pretrained("gpt2")
model = AutoModelWithLMHead.from_pretrained("BigSalmon/MrLincoln7")
```
```
How To Make Prompt:
informal english: i am very ready to do that just that.
Translated into the Style of Abraham Lincoln: you can assure yourself of my readiness to work toward this end.
Translated into the Style of Abraham Lincoln: please be assured that i am most ready to undertake this laborious task.
informal english: space is huge and needs to be explored.
Translated into the Style of Abraham Lincoln: space awaits traversal, a new world whose boundaries are endless.
Translated into the Style of Abraham Lincoln: space is a ( limitless / boundless ) expanse, a vast virgin domain awaiting exploration.
informal english: meteors are much harder to see, because they are only there for a fraction of a second.
Translated into the Style of Abraham Lincoln: meteors are not ( easily / readily ) detectable, lasting for mere fractions of a second.
informal english:
```` | [
-0.020124252885580063,
-0.017495179548859596,
-0.05458509922027588,
0.05039902403950691,
0.05250277742743492,
0.056157421320676804,
-0.01963670551776886,
0.001101418980397284,
-0.03400440514087677,
0.057039059698581696,
0.029299337416887283,
-0.007586364634335041,
0.01901877112686634,
0.027386467903852463,
-0.015486286953091621,
-0.007456227205693722,
-0.03834701329469681,
0.026424072682857513,
-0.01735728420317173,
-0.029323872178792953,
0.025086281821131706,
0.0013299474958330393,
0.01279132254421711,
0.02341209538280964,
-0.01109074056148529,
0.013239446096122265,
-0.0147578539326787,
0.01201354619115591,
0.03426242619752884,
-0.06728281080722809,
0.002909456379711628,
-0.050368696451187134,
-0.00817481055855751,
-0.028903642669320107,
-0.04811439290642738,
0.011728622950613499,
-0.005108240060508251,
0.004668796434998512,
0.0324898287653923,
0.043071966618299484,
-0.0019526355899870396,
0.00663564121350646,
0.019481396302580833,
-0.011600174009799957,
0.06253940612077713,
0.012773090042173862,
-0.03864911571145058,
-0.026869840919971466,
0.06604926288127899,
-0.008053697645664215,
-0.02998456172645092,
-0.07746519893407822,
-0.014280308969318867,
-0.0025502063799649477,
0.003247008426114917,
-0.0016861874610185623,
-0.07195454090833664,
-0.03446998447179794,
0.09753858298063278,
-0.06618195027112961,
-0.030234182253479958,
0.044996246695518494,
-0.07362919300794601,
0.05870701000094414,
0.03914083540439606,
-0.03075323812663555,
0.009875600226223469,
-0.037949807941913605,
0.011429858393967152,
-0.026269564405083656,
0.043910764157772064,
-0.03670875355601311,
0.018927842378616333,
-0.07255195826292038,
-0.029482567682862282,
-0.012768619693815708,
0.04644574224948883,
0.02244504727423191,
-0.05174196511507034,
0.07531548291444778,
0.01651449128985405,
0.01124633103609085,
0.0346149280667305,
-0.019526489078998566,
-0.02524707280099392,
0.027334552258253098,
-0.04400084167718887,
-0.011046557687222958,
0.0021845747251063585,
0.046929094940423965,
-0.043577030301094055,
-0.07938279211521149,
-0.02375657483935356,
-0.04787927120923996,
-0.004462575074285269,
0.021326525136828423,
0.06380058079957962,
-0.02373792603611946,
0.03661724925041199,
0.0002344923559576273,
0.04942745715379715,
0.038350675255060196,
0.005908675026148558,
0.02639680542051792,
-0.017694853246212006,
0.016403306275606155,
-0.013511283323168755,
-0.0409531444311142,
-0.04515714943408966,
0.046043265610933304,
0.007763105444610119,
-0.03702738881111145,
-0.033983297646045685,
0.021763861179351807,
0.027025900781154633,
-0.013719217851758003,
0.03840120509266853,
-0.008729222230613232,
-0.048785194754600525,
-0.032578010112047195,
0.03419044241309166,
0.015616231597959995,
0.003300923854112625,
0.014402205124497414,
-0.05964779481291771,
0.05949985235929489,
-0.06895169615745544,
-0.05109714716672897,
-0.01884453557431698,
0.052525926381349564,
-0.0021934963297098875,
0.030710063874721527,
0.011004585772752762,
-0.06706303358078003,
0.012693037278950214,
0.024878431111574173,
-0.040057018399238586,
0.02426544949412346,
0.0076611838303506374,
0.08101450651884079,
-0.0355372354388237,
-0.05169668421149254,
0.009771136566996574,
0.004115963354706764,
-0.02719326689839363,
0.012125487439334393,
0.01979844644665718,
-0.05165459215641022,
-0.02652634307742119,
0.03456651419401169,
0.06311148405075073,
-0.05350629612803459,
-0.008058630861341953,
0.03453375771641731,
0.010202424600720406,
0.05563102662563324,
-0.024110551923513412,
-0.03196104243397713,
-0.0032752894330769777,
0.0258130244910717,
-0.029878918081521988,
0.04223055765032768,
-0.03750712051987648,
-0.04007464274764061,
-0.0439799427986145,
-0.026502709835767746,
0.027220001444220543,
0.05987006798386574,
-0.003962728660553694,
-0.004280203953385353,
0.003283510450273752,
0.005107103381305933,
0.05598610267043114,
0.01639370433986187,
-0.005755413789302111,
0.05528385192155838,
0.030814753845334053,
0.031815215945243835,
-0.06634418666362762,
0.06620338559150696,
0.02954181842505932,
-0.036630503833293915,
-0.036004167050123215,
0.04741836339235306,
0.007220576982945204,
-0.012402379885315895,
0.03947471082210541,
0.05028793588280678,
-0.01810917630791664,
-0.006155832204967737,
0.00717625068500638,
0.06379024684429169,
-0.027643496170639992,
0.0008812008309178054,
-0.011412317864596844,
-0.006435830146074295,
-0.01595330983400345,
0.02989339455962181,
-0.04972110688686371,
0.012981344945728779,
-0.03561520576477051,
-0.03570673614740372,
0.0001840302429627627,
0.053720489144325256,
0.04417140409350395,
0.06234867498278618,
-0.025087449699640274,
0.10616017132997513,
-0.035043004900217056,
-0.003440194996073842,
-0.07028794288635254,
-0.056894246488809586,
0.00974197220057249,
0.04996825382113457,
0.004178755916655064,
0.04758760705590248,
0.012166471220552921,
-0.06105254963040352,
0.028854887932538986,
0.05106145143508911,
0.040742941200733185,
-0.0022883834317326546,
-0.0447598472237587,
0.020980829373002052,
0.036104075610637665,
0.052785247564315796,
-0.02249617502093315,
-0.029166819527745247,
0.008841338567435741,
0.047411251813173294,
-0.023129401728510857,
0.022280720993876457,
0.0010865662479773164,
0.01699591986835003,
-0.031453199684619904,
-0.06884988397359848,
0.03752228990197182,
0.04193359985947609,
0.0017920422833412886,
0.06064973399043083,
-0.016521481797099113,
0.02220986969769001,
0.025736628100275993,
0.004217928275465965,
0.004254631698131561,
-0.05115627124905586,
0.006557546090334654,
-0.0003069656959269196,
0.089852474629879,
-0.06338594853878021,
0.057421404868364334,
-0.006876291707158089,
0.0014065332943573594,
0.031207170337438583,
0.0025505993980914354,
0.04960784688591957,
0.042325928807258606,
0.015987392514944077,
-0.032475169748067856,
0.04299876093864441,
0.004408453591167927,
0.06139148771762848,
0.06913706660270691,
-0.004092813469469547,
0.04161839932203293,
0.006795738358050585,
0.05404592677950859,
0.05893654003739357,
0.036278754472732544,
0.003717595711350441,
0.04597819596529007,
0.053937964141368866,
-0.009531022980809212,
0.012269146740436554,
0.06725512444972992,
-0.05393437296152115,
0.014179234392940998,
-0.010991697199642658,
0.04226154088973999,
-0.0068526677787303925,
-0.01876020058989525,
0.023128731176257133,
0.03809724375605583,
-0.01862894371151924,
-0.00043117787572555244,
0.0025756333488970995,
-0.003811744973063469,
0.02499990537762642,
0.010128764435648918,
0.010725271888077259,
-0.01902855932712555,
-0.05013369396328926,
0.008804390206933022,
-0.07736904919147491,
-0.030629770830273628,
0.006227768491953611,
-0.023625118657946587,
0.022151755169034004,
-0.073270283639431,
-0.026215407997369766,
-0.038502078503370285,
-0.0055879149585962296,
0.02656206116080284,
0.010724556632339954,
0.015235349535942078,
0.0021987820509821177,
0.0005152201629243791,
-0.08579740673303604,
-0.019852694123983383,
-0.06296616792678833,
-0.03366566821932793,
-0.03167201951146126,
-0.03606445714831352,
0.024666791781783104,
0.0027649153489619493,
0.01889241673052311,
0.027058420702815056,
-0.015045689418911934,
-0.030422231182456017,
-0.019717827439308167,
0.0411088690161705,
0.010559041984379292,
-0.01944035291671753,
-0.027881279587745667,
0.03234744071960449,
-0.022763723507523537,
0.04044293612241745,
0.003512145485728979,
-0.036107536405324936,
0.06813959777355194,
0.06741807609796524,
0.01891334354877472,
0.008103355765342712,
-0.01936865597963333,
-0.05959682911634445,
-0.029196256771683693,
-0.027397627010941505,
-0.04791152477264404,
-0.033989500254392624,
0.003756168531253934,
-0.020275946706533432,
-0.019552594050765038,
-0.049612026661634445,
-0.036760326474905014,
-0.0033552555833011866,
0.013311919756233692,
0.06414834409952164,
0.0651407539844513,
0.0225038081407547,
0.03514327108860016,
-0.0470912829041481,
0.025924861431121826,
0.07573943585157394,
0.0031522964127361774,
0.015847133472561836,
-0.07883093506097794,
-0.054535165429115295,
0.066361203789711,
0.037545423954725266,
0.016689134761691093,
-0.02128431387245655,
0.07502088695764542,
0.031240584328770638,
-0.0017112806672230363,
0.0019690224435180426,
0.008093508891761303,
-0.014162213541567326,
-0.009257666766643524,
-0.00288291834294796,
-0.001689568511210382,
-0.03977592661976814,
-0.020393777638673782,
-0.044701553881168365,
0.03347332775592804,
-0.060629986226558685,
-0.031091798096895218,
-0.006057477556169033,
0.01958581991493702,
0.031946323812007904,
0.018064290285110474,
-0.029686124995350838,
0.007333224639296532,
-0.043251581490039825,
-0.0026371481362730265,
-0.021257221698760986,
0.001910779974423349,
0.013492253609001637,
0.015465757809579372,
0.022383615374565125,
-0.005649377591907978,
-0.0049420567229390144,
0.024361584335565567,
0.042551640421152115,
0.00793300848454237,
-0.0363282784819603,
0.03641034662723541,
-0.009411814622581005,
0.02088344842195511,
-0.023906458169221878,
-0.009746197611093521,
-0.054075103253126144,
-0.07094768434762955,
0.0018631629645824432,
0.01764415018260479,
-0.026080569252371788,
0.019634505733847618,
0.026223868131637573,
-0.02531532384455204,
-0.008983193896710873,
-0.015854869037866592,
0.012414230965077877,
0.044611115008592606,
-0.06487821787595749,
0.046859778463840485,
-0.04618946462869644,
0.07885173708200455,
-0.05396765470504761,
-0.013607664033770561,
-0.035192910581827164,
-0.00960481632500887,
0.018972128629684448,
0.05812642350792885,
0.01584993489086628,
0.054526038467884064,
0.044733963906764984,
0.036547012627124786,
-0.03955072909593582,
0.049601081758737564,
0.06449971348047256,
-0.0015498446300625801,
-0.06053982302546501,
0.018460702151060104,
-0.01251049991697073,
-0.03592425212264061,
0.0030096648260951042,
-0.012823612429201603,
0.0059896549209952354,
0.018509715795516968,
-0.012306064367294312,
-0.006116908974945545,
-0.006990052293986082,
-0.006228796672075987,
-0.02918117679655552,
-0.05990418419241905,
-0.0565941147506237,
0.0009255773038603365,
-0.013926982879638672,
0.0436847098171711,
0.04044048488140106,
-0.00015465676551684737,
0.05326659977436066,
0.05764082074165344,
0.004193949978798628,
-0.04135739058256149,
0.014542539604008198,
0.023424768820405006,
-0.04652673378586769,
-0.07206065952777863,
-0.06978975236415863,
0.010045232251286507,
0.06867077946662903,
-0.028140738606452942,
-0.10702134668827057,
0.006986433640122414,
0.04240501672029495,
-0.054419659078121185,
0.03685837611556053,
-0.021608607843518257,
0.023629501461982727,
0.0361371748149395,
-0.029492607340216637,
0.027193231508135796,
-0.011334918439388275,
0.007048589177429676,
0.0340375192463398,
0.06327562034130096,
-0.026651699095964432,
-0.025752704590559006,
-0.056789811700582504,
0.039351675659418106,
0.036628324538469315,
0.025194231420755386,
0.07679381966590881,
-0.012181485071778297,
-0.06939524412155151,
0.003717796877026558,
0.015066927298903465,
-0.04653388634324074,
0.009426617994904518,
0.02499794214963913,
0.04637898504734039,
-0.01645016483962536,
-0.023791654035449028,
-0.010709009133279324,
0.016613908112049103,
0.03652782365679741,
-0.010612986981868744,
-0.0391690768301487,
-0.03814135864377022,
0.042659711092710495,
-0.0017489501042291522,
-0.0413670651614666,
-0.0808415412902832,
0.03524174913764,
0.02961941622197628,
-0.020249037072062492,
0.027902429923415184,
0.014710928313434124,
0.03966016694903374,
0.061283841729164124,
0.011087960563600063,
0.012703938409686089,
-0.04129409044981003,
0.014002998359501362,
-0.021983370184898376,
0.007704616524279118,
-0.014666387811303139,
-0.04195117577910423,
-0.015268974006175995,
-0.03285883367061615,
-0.06517662107944489,
-0.048169251531362534,
-0.01338315661996603,
0.04647315293550491,
-0.013719138689339161,
-0.011435623280704021,
-0.005938546732068062,
0.0387306734919548,
-0.00023267509823199362,
-0.013376093469560146,
-0.04134858772158623,
-0.037138745188713074,
-0.057563889771699905,
-0.023392654955387115,
0.018059169873595238,
0.0005198803846724331,
-0.0023231313098222017,
-0.021528080105781555,
0.009126506745815277,
0.04300769045948982,
-0.009319176897406578,
-0.05292203649878502,
0.05469582974910736,
-0.005198760889470577,
-0.03047887794673443,
-0.015069263055920601,
0.007916792295873165,
0.000874263932928443,
-0.010695166885852814,
-0.026199616491794586,
0.022219115868210793,
0.016493063420057297,
-0.01901312917470932,
0.003937732893973589,
0.0190635547041893,
0.007542323786765337,
-0.061551593244075775,
-0.020516473799943924,
0.004895349964499474,
-0.029320526868104935,
0.03601319342851639,
-0.01170046441257,
-0.034236062318086624,
0.010159555822610855,
0.01997039094567299,
0.015084427781403065,
-0.005009979475289583,
-0.008911107666790485,
0.029420433565974236,
-0.03469603881239891,
-0.006603871937841177,
-0.05783707648515701,
0.01793673262000084,
-0.04383839666843414,
-0.0012193137081339955,
-0.011205659247934818,
0.004268110264092684,
-0.04433629289269447,
0.03132501244544983,
0.001733300625346601,
0.009145359508693218,
-0.0373523123562336,
0.021285735070705414,
-0.01531563326716423,
0.03557579219341278,
-0.0028791972436010838,
0.03734093904495239,
-0.03267311677336693,
0.027954598888754845,
-0.030455326661467552,
-0.016082484275102615,
-0.03310300409793854,
0.005996531806886196,
-0.03697345778346062,
-0.03252977877855301,
0.0009220491629093885,
-0.03731917589902878,
0.030451836064457893,
0.03852834552526474,
0.016515366733074188,
0.02749779261648655,
0.005726260598748922,
0.022672992199659348,
0.037927910685539246,
-0.0742759183049202,
-0.016773251816630363,
-0.01475349348038435,
-0.03258442506194115,
-0.006051836535334587,
0.019909096881747246,
0.02856764942407608,
-0.06425740569829941,
-0.0451713465154171,
0.04818284511566162,
0.008154338225722313,
0.03377355635166168,
0.006294055376201868,
0.021959511563181877,
0.05046942085027695,
0.03617146611213684,
-0.025834843516349792,
0.00553133012726903,
-0.017245519906282425,
-0.028721386566758156,
-0.00698139937594533,
-0.03441504389047623,
0.006685094907879829,
-0.006089536473155022,
-0.04140384495258331,
-0.03248449042439461,
0.07750857621431351,
0.029782734811306,
0.004859178327023983,
0.008697392418980598,
-0.02655501291155815,
0.043576959520578384,
0.007613839115947485,
-0.049488890916109085,
0.03594842553138733,
0.0019259609980508685,
-0.031337156891822815,
0.06214555725455284,
-0.027919135987758636,
0.017700061202049255,
0.057591889053583145,
0.029910774901509285,
-0.00958649069070816,
0.012376946397125721,
-0.052123911678791046,
0.009225036948919296,
0.03256044164299965,
-0.05288728326559067,
-0.015163668431341648,
-0.04422951862215996,
0.06962207704782486,
-0.03976393863558769,
0.03963637351989746,
0.046751800924539566,
0.03073638305068016,
0.012080133892595768,
0.011889778077602386,
-0.06056095287203789,
0.019734956324100494,
-0.029737384989857674,
0.06703564524650574,
-0.00897509977221489,
-0.09200886636972427,
0.06795143336057663,
0.023865243420004845,
-0.08931419998407364,
0.06405821442604065,
0.04931534081697464,
0.030781174078583717,
0.03977097198367119,
0.030927635729312897,
-0.029834773391485214,
0.02450139820575714,
-0.046564698219299316,
0.024479316547513008,
-0.06516549736261368,
-0.005158266518265009,
0.02380616031587124,
-0.03417110815644264,
-0.0003060807939618826,
0.016739660874009132,
-0.006723152939230204,
-0.008124096319079399,
0.01725529134273529,
-0.05952891334891319,
-0.06391238421201706,
-0.020287051796913147,
0.003671568352729082,
-0.05919427424669266,
0.035008031874895096,
-0.025663066655397415,
0.01947368122637272,
0.01806987076997757,
-0.000702981255017221,
-0.024058446288108826,
0.02465425245463848,
0.015093554742634296,
-0.06556510180234909,
-0.03587739169597626,
0.05824743211269379,
0.04010435566306114,
-0.002569093368947506,
0.030414920300245285,
-0.005618531722575426,
0.0089446771889925,
-0.0012198264012113214,
-0.0325593501329422,
0.014651604928076267,
-0.07934731245040894,
0.0072923325933516026,
0.02355661243200302,
0.05027003213763237,
0.0338476225733757,
-0.01585227996110916,
0.02212194912135601,
0.035910673439502716,
-0.003916625864803791,
0.022142397239804268,
-0.00349983642809093,
-0.02091180346906185,
0.01608438603579998,
-0.050556667149066925,
0.03345976397395134,
0.011246256530284882,
-0.05983350798487663,
-0.02802293933928013,
-0.002599122002720833,
-0.01417808048427105,
0.005578686483204365,
-0.06764909625053406,
-0.024242209270596504,
0.02485267072916031,
-0.0140683613717556,
-0.03499004244804382,
-0.07303591072559357,
-0.0462653711438179,
-0.04039013013243675,
0.03330415114760399,
0.015789348632097244,
-0.044934313744306564,
0.002290690317749977,
-0.05027928948402405,
-0.0440928116440773,
0.04983489215373993,
0.018241675570607185,
-0.0235756766051054,
0.04111825302243233,
0.035113222897052765,
-0.03988853469491005,
0.022882264107465744,
0.015389136970043182,
-0.014605386182665825,
0.04139183834195137,
-0.002029214520007372,
0.03419187664985657,
0.00989706814289093,
0.022665414959192276,
-0.03333602845668793,
-0.02049747295677662,
-0.03067338466644287,
-0.04354959726333618,
-0.03492167592048645,
-0.0013189486926421523,
0.053272441029548645
] |
BigSalmon/MrLincoln8 | [
"pytorch",
"gpt2",
"text-generation",
"transformers"
] | text-generation | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": true,
"max_length": 50
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 12 | null | Informal to Formal:
```
from transformers import AutoTokenizer, AutoModelWithLMHead
tokenizer = AutoTokenizer.from_pretrained("gpt2")
model = AutoModelWithLMHead.from_pretrained("BigSalmon/MrLincoln7")
```
```
How To Make Prompt:
informal english: i am very ready to do that just that.
Translated into the Style of Abraham Lincoln: you can assure yourself of my readiness to work toward this end.
Translated into the Style of Abraham Lincoln: please be assured that i am most ready to undertake this laborious task.
informal english: space is huge and needs to be explored.
Translated into the Style of Abraham Lincoln: space awaits traversal, a new world whose boundaries are endless.
Translated into the Style of Abraham Lincoln: space is a ( limitless / boundless ) expanse, a vast virgin domain awaiting exploration.
informal english: meteors are much harder to see, because they are only there for a fraction of a second.
Translated into the Style of Abraham Lincoln: meteors are not ( easily / readily ) detectable, lasting for mere fractions of a second.
informal english:
```` | [
-0.020124252885580063,
-0.017495179548859596,
-0.05458509922027588,
0.05039902403950691,
0.05250277742743492,
0.056157421320676804,
-0.01963670551776886,
0.001101418980397284,
-0.03400440514087677,
0.057039059698581696,
0.029299337416887283,
-0.007586364634335041,
0.01901877112686634,
0.027386467903852463,
-0.015486286953091621,
-0.007456227205693722,
-0.03834701329469681,
0.026424072682857513,
-0.01735728420317173,
-0.029323872178792953,
0.025086281821131706,
0.0013299474958330393,
0.01279132254421711,
0.02341209538280964,
-0.01109074056148529,
0.013239446096122265,
-0.0147578539326787,
0.01201354619115591,
0.03426242619752884,
-0.06728281080722809,
0.002909456379711628,
-0.050368696451187134,
-0.00817481055855751,
-0.028903642669320107,
-0.04811439290642738,
0.011728622950613499,
-0.005108240060508251,
0.004668796434998512,
0.0324898287653923,
0.043071966618299484,
-0.0019526355899870396,
0.00663564121350646,
0.019481396302580833,
-0.011600174009799957,
0.06253940612077713,
0.012773090042173862,
-0.03864911571145058,
-0.026869840919971466,
0.06604926288127899,
-0.008053697645664215,
-0.02998456172645092,
-0.07746519893407822,
-0.014280308969318867,
-0.0025502063799649477,
0.003247008426114917,
-0.0016861874610185623,
-0.07195454090833664,
-0.03446998447179794,
0.09753858298063278,
-0.06618195027112961,
-0.030234182253479958,
0.044996246695518494,
-0.07362919300794601,
0.05870701000094414,
0.03914083540439606,
-0.03075323812663555,
0.009875600226223469,
-0.037949807941913605,
0.011429858393967152,
-0.026269564405083656,
0.043910764157772064,
-0.03670875355601311,
0.018927842378616333,
-0.07255195826292038,
-0.029482567682862282,
-0.012768619693815708,
0.04644574224948883,
0.02244504727423191,
-0.05174196511507034,
0.07531548291444778,
0.01651449128985405,
0.01124633103609085,
0.0346149280667305,
-0.019526489078998566,
-0.02524707280099392,
0.027334552258253098,
-0.04400084167718887,
-0.011046557687222958,
0.0021845747251063585,
0.046929094940423965,
-0.043577030301094055,
-0.07938279211521149,
-0.02375657483935356,
-0.04787927120923996,
-0.004462575074285269,
0.021326525136828423,
0.06380058079957962,
-0.02373792603611946,
0.03661724925041199,
0.0002344923559576273,
0.04942745715379715,
0.038350675255060196,
0.005908675026148558,
0.02639680542051792,
-0.017694853246212006,
0.016403306275606155,
-0.013511283323168755,
-0.0409531444311142,
-0.04515714943408966,
0.046043265610933304,
0.007763105444610119,
-0.03702738881111145,
-0.033983297646045685,
0.021763861179351807,
0.027025900781154633,
-0.013719217851758003,
0.03840120509266853,
-0.008729222230613232,
-0.048785194754600525,
-0.032578010112047195,
0.03419044241309166,
0.015616231597959995,
0.003300923854112625,
0.014402205124497414,
-0.05964779481291771,
0.05949985235929489,
-0.06895169615745544,
-0.05109714716672897,
-0.01884453557431698,
0.052525926381349564,
-0.0021934963297098875,
0.030710063874721527,
0.011004585772752762,
-0.06706303358078003,
0.012693037278950214,
0.024878431111574173,
-0.040057018399238586,
0.02426544949412346,
0.0076611838303506374,
0.08101450651884079,
-0.0355372354388237,
-0.05169668421149254,
0.009771136566996574,
0.004115963354706764,
-0.02719326689839363,
0.012125487439334393,
0.01979844644665718,
-0.05165459215641022,
-0.02652634307742119,
0.03456651419401169,
0.06311148405075073,
-0.05350629612803459,
-0.008058630861341953,
0.03453375771641731,
0.010202424600720406,
0.05563102662563324,
-0.024110551923513412,
-0.03196104243397713,
-0.0032752894330769777,
0.0258130244910717,
-0.029878918081521988,
0.04223055765032768,
-0.03750712051987648,
-0.04007464274764061,
-0.0439799427986145,
-0.026502709835767746,
0.027220001444220543,
0.05987006798386574,
-0.003962728660553694,
-0.004280203953385353,
0.003283510450273752,
0.005107103381305933,
0.05598610267043114,
0.01639370433986187,
-0.005755413789302111,
0.05528385192155838,
0.030814753845334053,
0.031815215945243835,
-0.06634418666362762,
0.06620338559150696,
0.02954181842505932,
-0.036630503833293915,
-0.036004167050123215,
0.04741836339235306,
0.007220576982945204,
-0.012402379885315895,
0.03947471082210541,
0.05028793588280678,
-0.01810917630791664,
-0.006155832204967737,
0.00717625068500638,
0.06379024684429169,
-0.027643496170639992,
0.0008812008309178054,
-0.011412317864596844,
-0.006435830146074295,
-0.01595330983400345,
0.02989339455962181,
-0.04972110688686371,
0.012981344945728779,
-0.03561520576477051,
-0.03570673614740372,
0.0001840302429627627,
0.053720489144325256,
0.04417140409350395,
0.06234867498278618,
-0.025087449699640274,
0.10616017132997513,
-0.035043004900217056,
-0.003440194996073842,
-0.07028794288635254,
-0.056894246488809586,
0.00974197220057249,
0.04996825382113457,
0.004178755916655064,
0.04758760705590248,
0.012166471220552921,
-0.06105254963040352,
0.028854887932538986,
0.05106145143508911,
0.040742941200733185,
-0.0022883834317326546,
-0.0447598472237587,
0.020980829373002052,
0.036104075610637665,
0.052785247564315796,
-0.02249617502093315,
-0.029166819527745247,
0.008841338567435741,
0.047411251813173294,
-0.023129401728510857,
0.022280720993876457,
0.0010865662479773164,
0.01699591986835003,
-0.031453199684619904,
-0.06884988397359848,
0.03752228990197182,
0.04193359985947609,
0.0017920422833412886,
0.06064973399043083,
-0.016521481797099113,
0.02220986969769001,
0.025736628100275993,
0.004217928275465965,
0.004254631698131561,
-0.05115627124905586,
0.006557546090334654,
-0.0003069656959269196,
0.089852474629879,
-0.06338594853878021,
0.057421404868364334,
-0.006876291707158089,
0.0014065332943573594,
0.031207170337438583,
0.0025505993980914354,
0.04960784688591957,
0.042325928807258606,
0.015987392514944077,
-0.032475169748067856,
0.04299876093864441,
0.004408453591167927,
0.06139148771762848,
0.06913706660270691,
-0.004092813469469547,
0.04161839932203293,
0.006795738358050585,
0.05404592677950859,
0.05893654003739357,
0.036278754472732544,
0.003717595711350441,
0.04597819596529007,
0.053937964141368866,
-0.009531022980809212,
0.012269146740436554,
0.06725512444972992,
-0.05393437296152115,
0.014179234392940998,
-0.010991697199642658,
0.04226154088973999,
-0.0068526677787303925,
-0.01876020058989525,
0.023128731176257133,
0.03809724375605583,
-0.01862894371151924,
-0.00043117787572555244,
0.0025756333488970995,
-0.003811744973063469,
0.02499990537762642,
0.010128764435648918,
0.010725271888077259,
-0.01902855932712555,
-0.05013369396328926,
0.008804390206933022,
-0.07736904919147491,
-0.030629770830273628,
0.006227768491953611,
-0.023625118657946587,
0.022151755169034004,
-0.073270283639431,
-0.026215407997369766,
-0.038502078503370285,
-0.0055879149585962296,
0.02656206116080284,
0.010724556632339954,
0.015235349535942078,
0.0021987820509821177,
0.0005152201629243791,
-0.08579740673303604,
-0.019852694123983383,
-0.06296616792678833,
-0.03366566821932793,
-0.03167201951146126,
-0.03606445714831352,
0.024666791781783104,
0.0027649153489619493,
0.01889241673052311,
0.027058420702815056,
-0.015045689418911934,
-0.030422231182456017,
-0.019717827439308167,
0.0411088690161705,
0.010559041984379292,
-0.01944035291671753,
-0.027881279587745667,
0.03234744071960449,
-0.022763723507523537,
0.04044293612241745,
0.003512145485728979,
-0.036107536405324936,
0.06813959777355194,
0.06741807609796524,
0.01891334354877472,
0.008103355765342712,
-0.01936865597963333,
-0.05959682911634445,
-0.029196256771683693,
-0.027397627010941505,
-0.04791152477264404,
-0.033989500254392624,
0.003756168531253934,
-0.020275946706533432,
-0.019552594050765038,
-0.049612026661634445,
-0.036760326474905014,
-0.0033552555833011866,
0.013311919756233692,
0.06414834409952164,
0.0651407539844513,
0.0225038081407547,
0.03514327108860016,
-0.0470912829041481,
0.025924861431121826,
0.07573943585157394,
0.0031522964127361774,
0.015847133472561836,
-0.07883093506097794,
-0.054535165429115295,
0.066361203789711,
0.037545423954725266,
0.016689134761691093,
-0.02128431387245655,
0.07502088695764542,
0.031240584328770638,
-0.0017112806672230363,
0.0019690224435180426,
0.008093508891761303,
-0.014162213541567326,
-0.009257666766643524,
-0.00288291834294796,
-0.001689568511210382,
-0.03977592661976814,
-0.020393777638673782,
-0.044701553881168365,
0.03347332775592804,
-0.060629986226558685,
-0.031091798096895218,
-0.006057477556169033,
0.01958581991493702,
0.031946323812007904,
0.018064290285110474,
-0.029686124995350838,
0.007333224639296532,
-0.043251581490039825,
-0.0026371481362730265,
-0.021257221698760986,
0.001910779974423349,
0.013492253609001637,
0.015465757809579372,
0.022383615374565125,
-0.005649377591907978,
-0.0049420567229390144,
0.024361584335565567,
0.042551640421152115,
0.00793300848454237,
-0.0363282784819603,
0.03641034662723541,
-0.009411814622581005,
0.02088344842195511,
-0.023906458169221878,
-0.009746197611093521,
-0.054075103253126144,
-0.07094768434762955,
0.0018631629645824432,
0.01764415018260479,
-0.026080569252371788,
0.019634505733847618,
0.026223868131637573,
-0.02531532384455204,
-0.008983193896710873,
-0.015854869037866592,
0.012414230965077877,
0.044611115008592606,
-0.06487821787595749,
0.046859778463840485,
-0.04618946462869644,
0.07885173708200455,
-0.05396765470504761,
-0.013607664033770561,
-0.035192910581827164,
-0.00960481632500887,
0.018972128629684448,
0.05812642350792885,
0.01584993489086628,
0.054526038467884064,
0.044733963906764984,
0.036547012627124786,
-0.03955072909593582,
0.049601081758737564,
0.06449971348047256,
-0.0015498446300625801,
-0.06053982302546501,
0.018460702151060104,
-0.01251049991697073,
-0.03592425212264061,
0.0030096648260951042,
-0.012823612429201603,
0.0059896549209952354,
0.018509715795516968,
-0.012306064367294312,
-0.006116908974945545,
-0.006990052293986082,
-0.006228796672075987,
-0.02918117679655552,
-0.05990418419241905,
-0.0565941147506237,
0.0009255773038603365,
-0.013926982879638672,
0.0436847098171711,
0.04044048488140106,
-0.00015465676551684737,
0.05326659977436066,
0.05764082074165344,
0.004193949978798628,
-0.04135739058256149,
0.014542539604008198,
0.023424768820405006,
-0.04652673378586769,
-0.07206065952777863,
-0.06978975236415863,
0.010045232251286507,
0.06867077946662903,
-0.028140738606452942,
-0.10702134668827057,
0.006986433640122414,
0.04240501672029495,
-0.054419659078121185,
0.03685837611556053,
-0.021608607843518257,
0.023629501461982727,
0.0361371748149395,
-0.029492607340216637,
0.027193231508135796,
-0.011334918439388275,
0.007048589177429676,
0.0340375192463398,
0.06327562034130096,
-0.026651699095964432,
-0.025752704590559006,
-0.056789811700582504,
0.039351675659418106,
0.036628324538469315,
0.025194231420755386,
0.07679381966590881,
-0.012181485071778297,
-0.06939524412155151,
0.003717796877026558,
0.015066927298903465,
-0.04653388634324074,
0.009426617994904518,
0.02499794214963913,
0.04637898504734039,
-0.01645016483962536,
-0.023791654035449028,
-0.010709009133279324,
0.016613908112049103,
0.03652782365679741,
-0.010612986981868744,
-0.0391690768301487,
-0.03814135864377022,
0.042659711092710495,
-0.0017489501042291522,
-0.0413670651614666,
-0.0808415412902832,
0.03524174913764,
0.02961941622197628,
-0.020249037072062492,
0.027902429923415184,
0.014710928313434124,
0.03966016694903374,
0.061283841729164124,
0.011087960563600063,
0.012703938409686089,
-0.04129409044981003,
0.014002998359501362,
-0.021983370184898376,
0.007704616524279118,
-0.014666387811303139,
-0.04195117577910423,
-0.015268974006175995,
-0.03285883367061615,
-0.06517662107944489,
-0.048169251531362534,
-0.01338315661996603,
0.04647315293550491,
-0.013719138689339161,
-0.011435623280704021,
-0.005938546732068062,
0.0387306734919548,
-0.00023267509823199362,
-0.013376093469560146,
-0.04134858772158623,
-0.037138745188713074,
-0.057563889771699905,
-0.023392654955387115,
0.018059169873595238,
0.0005198803846724331,
-0.0023231313098222017,
-0.021528080105781555,
0.009126506745815277,
0.04300769045948982,
-0.009319176897406578,
-0.05292203649878502,
0.05469582974910736,
-0.005198760889470577,
-0.03047887794673443,
-0.015069263055920601,
0.007916792295873165,
0.000874263932928443,
-0.010695166885852814,
-0.026199616491794586,
0.022219115868210793,
0.016493063420057297,
-0.01901312917470932,
0.003937732893973589,
0.0190635547041893,
0.007542323786765337,
-0.061551593244075775,
-0.020516473799943924,
0.004895349964499474,
-0.029320526868104935,
0.03601319342851639,
-0.01170046441257,
-0.034236062318086624,
0.010159555822610855,
0.01997039094567299,
0.015084427781403065,
-0.005009979475289583,
-0.008911107666790485,
0.029420433565974236,
-0.03469603881239891,
-0.006603871937841177,
-0.05783707648515701,
0.01793673262000084,
-0.04383839666843414,
-0.0012193137081339955,
-0.011205659247934818,
0.004268110264092684,
-0.04433629289269447,
0.03132501244544983,
0.001733300625346601,
0.009145359508693218,
-0.0373523123562336,
0.021285735070705414,
-0.01531563326716423,
0.03557579219341278,
-0.0028791972436010838,
0.03734093904495239,
-0.03267311677336693,
0.027954598888754845,
-0.030455326661467552,
-0.016082484275102615,
-0.03310300409793854,
0.005996531806886196,
-0.03697345778346062,
-0.03252977877855301,
0.0009220491629093885,
-0.03731917589902878,
0.030451836064457893,
0.03852834552526474,
0.016515366733074188,
0.02749779261648655,
0.005726260598748922,
0.022672992199659348,
0.037927910685539246,
-0.0742759183049202,
-0.016773251816630363,
-0.01475349348038435,
-0.03258442506194115,
-0.006051836535334587,
0.019909096881747246,
0.02856764942407608,
-0.06425740569829941,
-0.0451713465154171,
0.04818284511566162,
0.008154338225722313,
0.03377355635166168,
0.006294055376201868,
0.021959511563181877,
0.05046942085027695,
0.03617146611213684,
-0.025834843516349792,
0.00553133012726903,
-0.017245519906282425,
-0.028721386566758156,
-0.00698139937594533,
-0.03441504389047623,
0.006685094907879829,
-0.006089536473155022,
-0.04140384495258331,
-0.03248449042439461,
0.07750857621431351,
0.029782734811306,
0.004859178327023983,
0.008697392418980598,
-0.02655501291155815,
0.043576959520578384,
0.007613839115947485,
-0.049488890916109085,
0.03594842553138733,
0.0019259609980508685,
-0.031337156891822815,
0.06214555725455284,
-0.027919135987758636,
0.017700061202049255,
0.057591889053583145,
0.029910774901509285,
-0.00958649069070816,
0.012376946397125721,
-0.052123911678791046,
0.009225036948919296,
0.03256044164299965,
-0.05288728326559067,
-0.015163668431341648,
-0.04422951862215996,
0.06962207704782486,
-0.03976393863558769,
0.03963637351989746,
0.046751800924539566,
0.03073638305068016,
0.012080133892595768,
0.011889778077602386,
-0.06056095287203789,
0.019734956324100494,
-0.029737384989857674,
0.06703564524650574,
-0.00897509977221489,
-0.09200886636972427,
0.06795143336057663,
0.023865243420004845,
-0.08931419998407364,
0.06405821442604065,
0.04931534081697464,
0.030781174078583717,
0.03977097198367119,
0.030927635729312897,
-0.029834773391485214,
0.02450139820575714,
-0.046564698219299316,
0.024479316547513008,
-0.06516549736261368,
-0.005158266518265009,
0.02380616031587124,
-0.03417110815644264,
-0.0003060807939618826,
0.016739660874009132,
-0.006723152939230204,
-0.008124096319079399,
0.01725529134273529,
-0.05952891334891319,
-0.06391238421201706,
-0.020287051796913147,
0.003671568352729082,
-0.05919427424669266,
0.035008031874895096,
-0.025663066655397415,
0.01947368122637272,
0.01806987076997757,
-0.000702981255017221,
-0.024058446288108826,
0.02465425245463848,
0.015093554742634296,
-0.06556510180234909,
-0.03587739169597626,
0.05824743211269379,
0.04010435566306114,
-0.002569093368947506,
0.030414920300245285,
-0.005618531722575426,
0.0089446771889925,
-0.0012198264012113214,
-0.0325593501329422,
0.014651604928076267,
-0.07934731245040894,
0.0072923325933516026,
0.02355661243200302,
0.05027003213763237,
0.0338476225733757,
-0.01585227996110916,
0.02212194912135601,
0.035910673439502716,
-0.003916625864803791,
0.022142397239804268,
-0.00349983642809093,
-0.02091180346906185,
0.01608438603579998,
-0.050556667149066925,
0.03345976397395134,
0.011246256530284882,
-0.05983350798487663,
-0.02802293933928013,
-0.002599122002720833,
-0.01417808048427105,
0.005578686483204365,
-0.06764909625053406,
-0.024242209270596504,
0.02485267072916031,
-0.0140683613717556,
-0.03499004244804382,
-0.07303591072559357,
-0.0462653711438179,
-0.04039013013243675,
0.03330415114760399,
0.015789348632097244,
-0.044934313744306564,
0.002290690317749977,
-0.05027928948402405,
-0.0440928116440773,
0.04983489215373993,
0.018241675570607185,
-0.0235756766051054,
0.04111825302243233,
0.035113222897052765,
-0.03988853469491005,
0.022882264107465744,
0.015389136970043182,
-0.014605386182665825,
0.04139183834195137,
-0.002029214520007372,
0.03419187664985657,
0.00989706814289093,
0.022665414959192276,
-0.03333602845668793,
-0.02049747295677662,
-0.03067338466644287,
-0.04354959726333618,
-0.03492167592048645,
-0.0013189486926421523,
0.053272441029548645
] |
BigSalmon/MrLincolnBerta | [
"pytorch",
"roberta",
"fill-mask",
"transformers",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"RobertaForMaskedLM"
],
"model_type": "roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8 | null | Example Prompt:
```
informal english: things are better when they are open source, because they are constantly being updated to enhance experience.
Translated into the Style of Abraham Lincoln: in the open-source paradigm, code is ( ceaselessly / perpetually ) being ( reengineered / revamped / polished ), thereby ( advancing / enhancing / optimizing / <mask> ) the user experience.
```
Demo: https://huggingface.co/spaces/BigSalmon/MASK2 | [
-0.021092049777507782,
-0.0110757602378726,
-0.022215787321329117,
0.01225197035819292,
0.05294300615787506,
0.037327226251363754,
-0.015481443144381046,
0.02460867166519165,
-0.016566315665841103,
0.058451347053050995,
0.02042338065803051,
0.018182335421442986,
0.034714505076408386,
0.011455242522060871,
-0.02530413679778576,
-0.014026181772351265,
-0.0514054112136364,
0.005945783108472824,
-0.029675794765353203,
0.001621688948944211,
0.03153863549232483,
0.009982888586819172,
-0.017633389681577682,
0.02739645354449749,
-0.009880776517093182,
-0.00818112213164568,
0.013430383056402206,
0.013233421370387077,
0.03315728157758713,
-0.047029249370098114,
-0.018245460465550423,
-0.06062861904501915,
-0.02729768492281437,
-0.021990837529301643,
-0.04363406077027321,
0.029086627066135406,
0.02313237264752388,
0.00947737880051136,
0.025251604616642,
0.03720111399888992,
-0.011830340139567852,
0.010853567160665989,
0.013120348565280437,
-0.022340310737490654,
0.028692178428173065,
-0.01933540776371956,
-0.029587017372250557,
-0.03223119676113129,
0.060762979090213776,
-0.015508649870753288,
-0.06252603232860565,
-0.08462835103273392,
-0.024212339892983437,
-0.012881407514214516,
-0.009297672659158707,
-0.020134607329964638,
-0.05778399854898453,
-0.022029219195246696,
0.0772319883108139,
-0.0737173929810524,
-0.04382336512207985,
0.019503040239214897,
-0.07145876437425613,
0.05922623723745346,
0.039667073637247086,
-0.04193095490336418,
0.022398261353373528,
-0.045755837112665176,
0.03152703866362572,
-0.031305670738220215,
0.048309195786714554,
-0.04788142070174217,
0.03776879236102104,
-0.06049024313688278,
-0.02527821809053421,
-0.02305777743458748,
0.04294674098491669,
0.03627297282218933,
-0.051712192595005035,
0.06487264484167099,
0.02797595225274563,
0.013332266360521317,
0.03646886348724365,
-0.004102254752069712,
-0.029117273166775703,
0.042381636798381805,
-0.06704070419073105,
0.022053983062505722,
-0.008118459023535252,
0.05170947685837746,
-0.00987646821886301,
-0.06056833267211914,
-0.01639293134212494,
-0.04489291459321976,
-0.004314632620662451,
0.026864731684327126,
0.10398421436548233,
-0.023386022076010704,
0.015010339207947254,
-0.0012634530430659652,
0.026452038437128067,
0.04599936679005623,
0.004364287480711937,
0.03326937183737755,
-0.004045787267386913,
0.011864753440022469,
-0.028898371383547783,
-0.0011921926634386182,
-0.03679030388593674,
0.0198921337723732,
0.052903544157743454,
-0.03176838904619217,
-0.041883621364831924,
0.037064939737319946,
0.004701763857156038,
-0.02426612190902233,
0.048309337347745895,
-0.02722959592938423,
-0.02388189360499382,
-0.039242397993803024,
0.06236094608902931,
0.007403569296002388,
-0.004585091024637222,
-0.013061385601758957,
-0.04878591001033783,
0.02952580899000168,
-0.05855623632669449,
-0.02665446512401104,
-0.006586022209376097,
0.0546722486615181,
0.005270346533507109,
0.052401717752218246,
0.03853048384189606,
-0.05768504738807678,
0.03500692918896675,
0.013261605985462666,
-0.04152125120162964,
0.03122560679912567,
0.029001867398619652,
0.08064981549978256,
-0.0548398494720459,
-0.056321438401937485,
-0.011282254941761494,
0.0023005877155810595,
-0.04270920529961586,
0.009017701260745525,
0.005647775251418352,
-0.03820178657770157,
-0.04078978672623634,
0.00814236793667078,
0.07053255289793015,
-0.06649871915578842,
0.00038007955299690366,
0.027651231735944748,
-0.003429052187129855,
0.0528687946498394,
-0.03983578830957413,
-0.009725313633680344,
0.0015061725862324238,
-0.010091143660247326,
-0.04076188802719116,
0.03589800000190735,
-0.007055451162159443,
-0.028188370168209076,
-0.040528345853090286,
-0.031636737287044525,
0.03463489189743996,
0.039909861981868744,
0.008849327452480793,
-0.02973560430109501,
-0.055296361446380615,
0.006385585758835077,
0.049018703401088715,
0.03824441507458687,
-0.0028260224498808384,
0.049729812890291214,
0.027283594012260437,
0.03073781728744507,
-0.015109645202755928,
0.054874833673238754,
0.031103063374757767,
-0.029160525649785995,
-0.031984180212020874,
0.033316127955913544,
0.03225431218743324,
-0.01059710793197155,
0.02575446479022503,
0.042209457606077194,
-0.010252873413264751,
-0.027968766167759895,
-0.035172976553440094,
0.051668718457221985,
-0.03371091187000275,
-0.03443014994263649,
0.0112296799197793,
-0.012549457140266895,
-0.014701439999043941,
0.02674730494618416,
-0.005296324845403433,
0.007371092215180397,
-0.032950542867183685,
-0.018869761377573013,
0.0028109271079301834,
0.03941214829683304,
0.028132865205407143,
0.045019954442977905,
0.0028248296584933996,
0.10094070434570312,
-0.02371944673359394,
-0.01486408431082964,
-0.07491480559110641,
-0.057997774332761765,
0.0019629579037427902,
0.05646310746669769,
0.027475155889987946,
0.035714976489543915,
0.002991502173244953,
-0.049547918140888214,
0.010671491734683514,
0.063786581158638,
0.05024479329586029,
0.017035694792866707,
-0.042534977197647095,
0.0023145454470068216,
0.05388849228620529,
0.02040109597146511,
-0.009225818328559399,
-0.04845934733748436,
0.02966821752488613,
0.06716278195381165,
-0.011184724047780037,
0.017914576455950737,
-0.00414125295355916,
0.014486175030469894,
-0.023910732939839363,
-0.057808633893728256,
0.0038208242040127516,
0.06344245374202728,
-0.029450146481394768,
0.04524168372154236,
-0.027391204610466957,
0.04241596907377243,
0.027730200439691544,
-0.0017376636387780309,
0.0020825425162911415,
-0.0552683100104332,
0.007588377222418785,
0.0031823490280658007,
0.08815170079469681,
-0.05205072462558746,
0.0771435797214508,
0.004865188151597977,
-0.015454733744263649,
0.02205905131995678,
0.008413986302912235,
0.0316203311085701,
0.07012446969747543,
0.017873086035251617,
-0.030440596863627434,
0.045971695333719254,
0.041125811636447906,
0.04141594097018242,
0.08937061578035355,
-0.012308244593441486,
0.07942689955234528,
-0.0016682061832398176,
0.055599600076675415,
0.052473265677690506,
0.025660833343863487,
0.00800376571714878,
0.032027725130319595,
0.06428899616003036,
0.014921304769814014,
-0.0012671133736148477,
0.07419932633638382,
-0.04927815496921539,
0.026053639128804207,
0.004663692321628332,
0.026718612760305405,
-0.006233946420252323,
-0.042374350130558014,
0.029234258458018303,
0.02716648206114769,
-0.03006623312830925,
-0.0021425425074994564,
-0.004246984142810106,
0.008658278733491898,
0.03404999524354935,
-0.01019724365323782,
0.00902827363461256,
-0.03039129264652729,
-0.02946641482412815,
0.02942200005054474,
-0.07931684702634811,
-0.043997034430503845,
0.019397305324673653,
-0.0027572703547775745,
0.03911958634853363,
-0.07937655597925186,
-0.0066895270720124245,
-0.07413382828235626,
-0.0008787369006313384,
0.059464678168296814,
0.01602761447429657,
0.0042351484298706055,
-0.009870706126093864,
-0.009355830028653145,
-0.03815240412950516,
-0.01376337744295597,
-0.07766614109277725,
-0.050111036747694016,
-0.017220620065927505,
-0.03624720871448517,
0.031443919986486435,
0.0269880760461092,
0.021823540329933167,
0.01432059332728386,
-0.011066120117902756,
-0.04188256338238716,
-0.03147227689623833,
0.06039737910032272,
0.03876741975545883,
-0.01767086051404476,
-0.006338458973914385,
0.018292246386408806,
-0.0012562283081933856,
0.031543515622615814,
-0.004841108340770006,
-0.019504867494106293,
0.07424446940422058,
0.07170117646455765,
0.03976760432124138,
-0.002595503581687808,
0.008000746369361877,
-0.04627537354826927,
-0.019455602392554283,
-0.031898271292448044,
-0.044381339102983475,
-0.06548074632883072,
-0.005045845173299313,
-0.03419991582632065,
-0.02679963782429695,
-0.04996088892221451,
-0.03723488003015518,
-0.03080107271671295,
-0.0029800599440932274,
0.03876965120434761,
0.06786959618330002,
0.012579458765685558,
0.015620467253029346,
-0.02996467985212803,
0.01570420153439045,
0.06228354573249817,
-0.011380338110029697,
0.0064778998494148254,
-0.06762412190437317,
-0.05749626085162163,
0.038641102612018585,
0.02045261673629284,
0.0006640760693699121,
-0.018776200711727142,
0.05914538726210594,
0.027381859719753265,
-0.0013709920458495617,
0.013972342014312744,
-0.010250719264149666,
-0.028951371088624,
0.007534443400800228,
-0.023908287286758423,
-0.011005518957972527,
-0.03575080633163452,
-0.0008994177915155888,
-0.005608986131846905,
0.03255076706409454,
-0.07144756615161896,
-0.03985465690493584,
0.006454318296164274,
0.006379095837473869,
0.04977411776781082,
0.016760509461164474,
-0.015255376696586609,
0.0015338718658313155,
-0.06419368833303452,
-0.025309942662715912,
-0.005240969825536013,
0.0021547761280089617,
0.018755469471216202,
0.033996108919382095,
0.007834384217858315,
-0.042844921350479126,
0.010853786021471024,
0.021374689415097237,
0.011168618686497211,
0.025851726531982422,
-0.020509734749794006,
0.028774399310350418,
-0.039775509387254715,
0.01874878816306591,
0.019127368927001953,
-0.03255883976817131,
-0.06312203407287598,
-0.04592717066407204,
-0.013485505245625973,
0.02948726713657379,
-0.017694272100925446,
0.02261589840054512,
0.031212719157338142,
-0.03643433377146721,
-0.0031830081716179848,
-0.007662351243197918,
0.00380913820117712,
0.03802477940917015,
-0.03471222147345543,
0.06026693806052208,
-0.05056994780898094,
0.05178141966462135,
-0.027567485347390175,
0.004600092768669128,
-0.012009911239147186,
0.012333298102021217,
0.012657351791858673,
0.04740339145064354,
0.027449186891317368,
0.06287264823913574,
0.04317130520939827,
0.04666607454419136,
-0.036408957093954086,
0.047142449766397476,
0.05567900463938713,
-0.021279899403452873,
-0.04423673450946808,
0.0041682044975459576,
-0.0375032052397728,
-0.021848829463124275,
0.0014661623863503337,
-0.006943762768059969,
0.014278814196586609,
0.023297229781746864,
-0.04315406456589699,
-0.015051879920065403,
0.0160977765917778,
0.007976681925356388,
-0.060561880469322205,
-0.08845566213130951,
-0.03590647876262665,
-0.006825833115726709,
-0.016443416476249695,
0.037446051836013794,
0.04489453136920929,
0.028984900563955307,
0.06702298671007156,
0.049914438277482986,
-0.024774372577667236,
-0.04132495075464249,
0.015955833718180656,
0.009464109316468239,
-0.04695025831460953,
-0.0703437551856041,
-0.036626871675252914,
0.022444354370236397,
0.03694618493318558,
-0.028278395533561707,
-0.10651054233312607,
0.00807556789368391,
0.02803788147866726,
-0.057068657130002975,
0.030430123209953308,
0.015363363549113274,
0.015414724126458168,
0.06275749951601028,
-0.006287159398198128,
0.03584201633930206,
-0.0035972159821540117,
-0.007326571736484766,
0.0021554213017225266,
0.028438527137041092,
-0.03908151760697365,
-0.020944831892848015,
-0.03955686092376709,
0.01617632992565632,
0.014910426922142506,
0.02087605744600296,
0.045866016298532486,
-0.04745396599173546,
-0.06479405611753464,
-0.014396479353308678,
0.05359328165650368,
-0.04234718531370163,
0.035669729113578796,
0.034303270280361176,
0.047211937606334686,
-0.026248645037412643,
-0.042809754610061646,
-0.03139803931117058,
0.021181952208280563,
0.047688908874988556,
-0.04392149671912193,
-0.04508323222398758,
-0.03944026678800583,
0.04981204867362976,
0.013787073083221912,
-0.04776068404316902,
-0.10494152456521988,
0.017275243997573853,
0.014845287427306175,
-0.02694043330848217,
0.008388376794755459,
0.009672450833022594,
0.034203071147203445,
0.07458929717540741,
0.0036344106774777174,
0.004658656194806099,
-0.04246575012803078,
0.03401095047593117,
-0.021820614114403725,
-0.005825061351060867,
0.009997736662626266,
-0.06184186413884163,
-0.0068658203817903996,
-0.02638767473399639,
-0.059376269578933716,
-0.059277310967445374,
-0.02445206232368946,
0.039244394749403,
-0.013783743605017662,
0.004892178811132908,
-0.007231245283037424,
0.024014785885810852,
0.021302824839949608,
-0.010075793601572514,
-0.025510946288704872,
-0.0540115162730217,
-0.06502727419137955,
-0.012263880111277103,
0.030087847262620926,
0.0032602366991341114,
0.02143724635243416,
-0.017385048791766167,
0.025731848552823067,
0.026177138090133667,
0.009991931729018688,
-0.048309337347745895,
0.033938247710466385,
0.011136611923575401,
-0.055473774671554565,
-0.028766710311174393,
0.004793740343302488,
0.021679969504475594,
0.01975323259830475,
-0.024079760536551476,
0.016005922108888626,
-0.007411868777126074,
-0.01800098642706871,
-0.023892072960734367,
0.02119108848273754,
0.01639440841972828,
-0.0631420761346817,
-0.03564516082406044,
-0.02567245252430439,
-0.022520942613482475,
0.019720520824193954,
-0.0112842982634902,
-0.0341736301779747,
0.040344201028347015,
0.03510013222694397,
0.001169403549283743,
-0.006047854200005531,
-0.022442156448960304,
0.015626030042767525,
0.0013611651957035065,
0.02287435345351696,
-0.07987218350172043,
0.05169807747006416,
-0.016265202313661575,
0.007007415406405926,
-0.015759440138936043,
-0.003512166440486908,
-0.03638375923037529,
0.060134679079055786,
0.014325571246445179,
-0.01854170858860016,
-0.006719544064253569,
0.009308567270636559,
-0.02727043256163597,
0.039577413350343704,
-0.020689424127340317,
0.009572053328156471,
-0.04512326046824455,
0.011191685684025288,
-0.030992785468697548,
-0.021129487082362175,
-0.020186446607112885,
0.004274119157344103,
-0.03296347334980965,
-0.009537438862025738,
-0.020258748903870583,
-0.048701897263526917,
0.02009897492825985,
0.018008532002568245,
0.007128254976123571,
0.03741922974586487,
-0.018929479643702507,
0.012938091531395912,
0.04758162051439285,
-0.10198298841714859,
-0.007830139249563217,
0.007290578912943602,
-0.03170528635382652,
0.003015299094840884,
0.031331855803728104,
0.014070473611354828,
-0.056703485548496246,
-0.05182149261236191,
0.03305672109127045,
0.03495442494750023,
0.0016550871077924967,
0.029461843892931938,
0.04366583004593849,
0.07024355232715607,
0.021035222336649895,
-0.021029502153396606,
0.02425495907664299,
-0.019277198240160942,
-0.009620895609259605,
0.01171449851244688,
-0.029286788776516914,
-0.0017046693246811628,
0.006579376757144928,
-0.02113262750208378,
-0.03574100881814957,
0.08769528567790985,
0.0353674553334713,
0.026486836373806,
0.017871083691716194,
-0.024752359837293625,
0.025340396910905838,
-0.002575961174443364,
-0.04507661983370781,
0.009286211803555489,
0.028384219855070114,
-0.04308884218335152,
0.0465109683573246,
-0.0030537063721567392,
0.005531670991331339,
0.026221562176942825,
0.039368513971567154,
-0.024310074746608734,
0.03438350185751915,
-0.03820423409342766,
0.0068783145397901535,
0.025594346225261688,
-0.023034008219838142,
-0.014553152024745941,
-0.03481067344546318,
0.05752931907773018,
-0.05876152217388153,
0.062989242374897,
0.04749320074915886,
-0.0012352125486359,
0.008044308051466942,
-0.0026117332745343447,
-0.0543120838701725,
0.01829374209046364,
-0.03950459137558937,
0.0479927584528923,
0.015382945537567139,
-0.08423149585723877,
0.07065415382385254,
0.03554413840174675,
-0.07876189798116684,
0.028077304363250732,
0.025938209146261215,
0.005576645489782095,
0.010877649299800396,
0.02465606853365898,
-0.054131124168634415,
0.010937942191958427,
-0.036028385162353516,
0.026667345315217972,
-0.07279334962368011,
-0.01966649666428566,
0.02658744342625141,
-0.04384405538439751,
-0.023450443521142006,
0.0054963077418506145,
-0.041531894356012344,
0.004936532583087683,
0.010798938572406769,
-0.05717255547642708,
-0.0758124366402626,
-0.013329965993762016,
0.03162427246570587,
-0.0407324954867363,
0.034797098487615585,
-0.011052113957703114,
0.03174062818288803,
0.002961641177535057,
0.025412818416953087,
-0.025871725752949715,
0.016041992232203484,
0.010125046595931053,
-0.05689748004078865,
-0.014086813665926456,
0.04235431179404259,
0.03873589262366295,
-0.00767506891861558,
0.0054377601481974125,
-0.0159876998513937,
0.013459633104503155,
0.015611588954925537,
-0.03988431394100189,
0.0030461344867944717,
-0.052734047174453735,
-0.002498081186786294,
0.03555319830775261,
0.034974999725818634,
0.020402148365974426,
-0.008829990401864052,
0.010676928795874119,
0.04598790779709816,
0.022068144753575325,
-0.0022140482906252146,
-0.006061108782887459,
-0.044540125876665115,
0.029641270637512207,
-0.03705650568008423,
0.044036149978637695,
0.010870338417589664,
-0.04224083200097084,
-0.050803933292627335,
0.01788175292313099,
-0.007150627672672272,
0.01980973407626152,
-0.06370753794908524,
0.011429715901613235,
0.0475948229432106,
0.004981119651347399,
-0.05177986994385719,
-0.06753134727478027,
-0.02807561866939068,
-0.050647325813770294,
0.02801945060491562,
0.05123313516378403,
-0.04749709367752075,
-0.005612198729068041,
-0.03085990622639656,
-0.04301194101572037,
0.04041794687509537,
-0.002665417268872261,
0.005852140486240387,
0.04325389862060547,
0.01686537079513073,
-0.03843170031905174,
0.032977525144815445,
0.013098794035613537,
-0.026516279205679893,
0.034148745238780975,
-0.0007827866356819868,
0.032931022346019745,
-0.0039357515051960945,
0.02580994740128517,
-0.009880783036351204,
-0.016948141157627106,
-0.031110957264900208,
-0.04589223861694336,
-0.040113963186740875,
0.022668955847620964,
0.07824457436800003
] |
BigTooth/DialoGPT-small-tohru | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 10 | null | ---
tags:
- conversational
---
# Tohru DialoGPT model | [
-0.025874244049191475,
0.006970817223191261,
0.02531878650188446,
0.022868873551487923,
0.016518086194992065,
0.008909503929316998,
0.001358427107334137,
0.029602013528347015,
-0.008077661506831646,
0.024391720071434975,
0.033415697515010834,
-0.029189985245466232,
0.021977977827191353,
0.03511478006839752,
-0.053955189883708954,
-0.02818862535059452,
-0.03248964250087738,
-0.00991876795887947,
-0.029986288398504257,
-0.02193831466138363,
0.04644342139363289,
0.008754917420446873,
-0.023230500519275665,
0.03263891115784645,
0.00031494011636823416,
0.030019929632544518,
-0.024014059454202652,
0.010200112126767635,
0.017203187569975853,
-0.03983968868851662,
0.007980492897331715,
-0.044394686818122864,
-0.023108726367354393,
-0.024459900334477425,
-0.029218455776572227,
-0.034959714859724045,
0.021129347383975983,
-0.015456093475222588,
-0.011924082413315773,
0.03623916208744049,
-0.025333961471915245,
-0.0035246340557932854,
0.0033201538026332855,
-0.03849482536315918,
0.06998199224472046,
-0.01974475383758545,
-0.03968442231416702,
-0.00962173379957676,
0.013812178745865822,
-0.040741994976997375,
-0.030454782769083977,
-0.07391191273927689,
-0.06177825480699539,
-0.015598425641655922,
0.015412530861794949,
-0.0622100755572319,
-0.06063547357916832,
-0.018589960411190987,
0.093882255256176,
-0.016703855246305466,
-0.009020106866955757,
-0.00840697344392538,
-0.07153923809528351,
0.0217666607350111,
0.019893692806363106,
-0.0655745342373848,
0.005430225282907486,
-0.05222034081816673,
0.0069824401289224625,
-0.03719789534807205,
0.049915339797735214,
-0.05331224575638771,
0.020084727555513382,
-0.07884825021028519,
-0.022985363379120827,
-0.0034494884312152863,
0.05103227123618126,
0.04584275558590889,
-0.03570711985230446,
0.05810343474149704,
0.04756845161318779,
-0.005170371849089861,
0.0579126700758934,
0.004038677550852299,
-0.0486239492893219,
0.047354646027088165,
-0.030084604397416115,
0.0027442453429102898,
-0.008045374415814877,
0.022056080400943756,
-0.04322526976466179,
-0.04922489821910858,
-0.02858157455921173,
-0.003486971603706479,
0.0006154727889224887,
0.04613169655203819,
0.026356777176260948,
-0.024799151346087456,
0.01955430395901203,
0.038322389125823975,
0.031114105135202408,
0.042514290660619736,
-0.021267887204885483,
0.02173367701470852,
-0.009389379993081093,
0.033079251646995544,
0.01803911104798317,
-0.021434463560581207,
-0.04167124629020691,
0.02904510498046875,
0.002303246408700943,
-0.056654516607522964,
-0.03817661106586456,
0.0355471707880497,
0.005979724694043398,
-0.013952991925179958,
0.0633881613612175,
-0.042900264263153076,
-0.015333378687500954,
-0.05961203575134277,
0.04709603637456894,
-0.022065237164497375,
-0.03054410219192505,
-0.013868161477148533,
-0.04820795729756355,
0.0007414264837279916,
-0.04314929246902466,
-0.018555473536252975,
-0.011139597743749619,
-0.0004218870308250189,
0.009188462980091572,
0.022170716896653175,
-0.028772244229912758,
-0.05952871963381767,
0.003936695866286755,
0.03196582943201065,
-0.06353340297937393,
0.01480786595493555,
0.0265258327126503,
0.08583282679319382,
-0.07370629906654358,
-0.033490292727947235,
-0.008027806878089905,
0.030934521928429604,
-0.01571805588901043,
-0.011757582426071167,
0.009855441749095917,
-0.012087288312613964,
-0.037952762097120285,
-0.008142172358930111,
0.016047753393650055,
-0.0638604387640953,
0.003371589817106724,
0.05244765058159828,
0.009582798928022385,
0.015625474974513054,
-0.027030445635318756,
-0.004573922138661146,
-0.005899705924093723,
-0.03966810554265976,
-0.061819881200790405,
0.038395896553993225,
-0.015637513250112534,
-0.03683919087052345,
-0.04403609782457352,
-0.03546077013015747,
0.01596219278872013,
0.06620979309082031,
0.01305324025452137,
-0.013392672874033451,
-0.026194695383310318,
0.028162799775600433,
0.06945668905973434,
0.04659626632928848,
-0.0015354951610788703,
0.01793038845062256,
0.04928157478570938,
0.03130459785461426,
-0.042315125465393066,
0.08546001464128494,
0.008149721659719944,
-0.023649629205465317,
-0.05348813906311989,
-0.0174697432667017,
0.028964128345251083,
-0.03537065535783768,
0.020853638648986816,
0.02042073756456375,
-0.039375025779008865,
-0.038345251232385635,
0.01641935296356678,
0.0502331368625164,
-0.017993364483118057,
0.0021253477316349745,
-0.02059844881296158,
-0.03465969115495682,
-0.028836412355303764,
0.026899972930550575,
-0.03355832397937775,
-0.013087525963783264,
-0.036302339285612106,
0.004836751613765955,
0.0376657210290432,
0.009681468829512596,
0.028693202883005142,
0.04115277901291847,
-0.013420836068689823,
0.050416313111782074,
-0.02899925783276558,
0.012402852065861225,
-0.04008768871426582,
-0.025981048122048378,
-0.020112473517656326,
0.03303154930472374,
0.0352058932185173,
0.04717223346233368,
-0.023330707103013992,
-0.04144071042537689,
0.03153863176703453,
0.063465915620327,
0.04479397088289261,
0.022515172138810158,
-0.02747821807861328,
-0.0006387894973158836,
0.029223617166280746,
0.03800136595964432,
-0.04844439774751663,
0.009660016745328903,
0.011965029872953892,
0.01949896104633808,
-0.017376558855175972,
-0.02451162226498127,
-0.04215596616268158,
-0.00551945436745882,
-0.06232282146811485,
-0.06347702443599701,
0.036665599793195724,
0.0440727137029171,
-0.006441183853894472,
0.03436649590730667,
-0.0058339908719062805,
0.002129875123500824,
0.03841293230652809,
0.0028581235092133284,
0.005958938505500555,
-0.10012704133987427,
0.005270663648843765,
0.035777173936367035,
0.08966070413589478,
-0.05384455621242523,
0.007100833114236593,
0.00988505408167839,
0.01667984575033188,
0.030885152518749237,
-0.02399253472685814,
0.030611777678132057,
0.027433112263679504,
0.04775069281458855,
-0.036478765308856964,
0.0330980122089386,
0.0026259045116603374,
0.03400149941444397,
0.0661989375948906,
-0.005932516884058714,
0.050072573125362396,
-0.017154701054096222,
0.019923580810427666,
0.061571091413497925,
0.0235091932117939,
-0.008261087350547314,
0.021297607570886612,
0.06372010707855225,
0.00641979556530714,
0.02544853277504444,
0.05044030770659447,
-0.0045443810522556305,
0.004514962434768677,
-0.03593796119093895,
0.0002192367537645623,
-0.00203110184520483,
-0.020489046350121498,
0.06283759325742722,
0.008544929325580597,
-0.01499984972178936,
0.002177686896175146,
-0.00961629394441843,
0.013224650174379349,
0.0629778727889061,
0.00909966230392456,
-0.03619333356618881,
0.010250438936054707,
-0.018272044137120247,
0.0193320419639349,
-0.056801218539476395,
-0.035863276571035385,
-0.007712983526289463,
-0.06600745767354965,
-0.006894561927765608,
-0.09918069839477539,
-0.04261502996087074,
-0.05253889411687851,
-0.026075171306729317,
0.0588017962872982,
0.01588999293744564,
0.016116507351398468,
-0.0004974168841727078,
0.007986839860677719,
-0.030696531757712364,
-0.05636719986796379,
-0.045966241508722305,
-0.04332948476076126,
-0.00868056807667017,
-0.052617743611335754,
0.041552938520908356,
0.027051638811826706,
0.03226315602660179,
0.014664767310023308,
-0.033054232597351074,
-0.03765275329351425,
-0.030379358679056168,
0.05342496559023857,
0.010158390738070011,
-0.046877045184373856,
-0.030867019668221474,
0.012731881812214851,
0.0038383163046091795,
-0.01084758248180151,
-0.025546887889504433,
-0.05574807897210121,
0.07381787896156311,
0.046178437769412994,
0.009775198064744473,
0.03554680570960045,
-0.004054050426930189,
-0.0364190973341465,
-0.01577393151819706,
-0.057573311030864716,
-0.04031873494386673,
0.005977135617285967,
-0.02550113946199417,
-0.04104462265968323,
-0.025742733851075172,
-0.033626653254032135,
-0.002346815774217248,
-0.0005032013868913054,
0.018512075766921043,
0.03128278627991676,
0.01949760504066944,
0.03157079964876175,
0.012773075141012669,
-0.01843791827559471,
-0.014731328934431076,
0.033049292862415314,
-0.025676194578409195,
-0.0029051967430859804,
-0.07016807794570923,
-0.03450658544898033,
0.03357107937335968,
-0.0008712652488611639,
-0.009159823879599571,
-0.009960247203707695,
0.032034821808338165,
0.01920725405216217,
-0.008893451653420925,
0.03852325305342674,
-0.0755373165011406,
0.019201496616005898,
-0.03885198384523392,
-0.015235529281198978,
-0.028887132182717323,
-0.025596393272280693,
-0.009467351250350475,
-0.008049391210079193,
0.027170954272150993,
-0.09716959297657013,
-0.03227631747722626,
-0.04036786034703255,
0.022707749158143997,
0.03975916653871536,
0.0038502123206853867,
-0.0630035400390625,
-0.0025550643913447857,
-0.04779202863574028,
-0.028173161670565605,
-0.002888634568080306,
-0.005984131246805191,
0.011897399090230465,
0.03633107244968414,
0.015748511999845505,
-0.014894600957632065,
0.05549348145723343,
0.016557589173316956,
0.07284431904554367,
0.04974949359893799,
-0.020677560940384865,
0.02085484191775322,
-0.01677573099732399,
0.028956620022654533,
-0.007800636813044548,
-0.03014080971479416,
-0.03818848356604576,
-0.10517675429582596,
-0.04895220324397087,
0.035918235778808594,
-0.027721265330910683,
0.007500572130084038,
0.03962108492851257,
-0.0391390435397625,
-0.009745986200869083,
-0.004938221536576748,
0.052759572863578796,
0.04052311182022095,
-0.04389697685837746,
0.04288633540272713,
0.023743225261569023,
0.022818315774202347,
-0.06402608007192612,
-0.01495624054223299,
-0.04648381099104881,
-0.01942654885351658,
-0.012837055139243603,
0.05817544460296631,
0.01578012853860855,
0.058953654021024704,
0.08672388643026352,
0.03299823775887489,
-0.04491111636161804,
0.059017978608608246,
0.0725855678319931,
-0.02428354322910309,
-0.04342750832438469,
-0.012358865700662136,
-0.011582026258111,
-0.026007134467363358,
-0.017680127173662186,
-0.04140051081776619,
0.03937507048249245,
0.05147583410143852,
-0.004125583916902542,
0.0027737177442759275,
0.009747963398694992,
-0.035539183765649796,
-0.019437478855252266,
-0.0624617300927639,
-0.013931860215961933,
0.001801930251531303,
-0.03379267081618309,
0.03944680839776993,
0.045675501227378845,
0.009752410463988781,
0.06326398998498917,
0.018997035920619965,
-0.032066334038972855,
-0.05975204333662987,
0.03305130824446678,
0.01978107914328575,
-0.037416934967041016,
-0.047540757805109024,
-0.05153362825512886,
0.0313875749707222,
0.03644970431923866,
-0.03359093889594078,
-0.08806740492582321,
0.021678287535905838,
0.03485705330967903,
-0.029851652681827545,
0.06813684850931168,
-0.01650789938867092,
0.04747183993458748,
0.038254883140325546,
0.013639867305755615,
0.04697820544242859,
-0.0685640424489975,
0.025070590898394585,
-0.015396996401250362,
0.018210038542747498,
-0.05874091386795044,
-0.0382675901055336,
-0.06193089857697487,
0.03702313080430031,
0.021014723926782608,
0.017600368708372116,
0.015590693801641464,
-0.03957393392920494,
-0.04911857843399048,
0.001090276287868619,
0.033535100519657135,
-0.027305223047733307,
0.024486249312758446,
0.0303304735571146,
0.044191211462020874,
-0.054807763546705246,
-0.0059235477820038795,
0.002313076751306653,
0.02854863554239273,
0.02068420872092247,
-0.0036679506301879883,
-0.03949420154094696,
-0.01184200868010521,
0.01860564760863781,
-0.035689592361450195,
-0.026704421266913414,
-0.0906342938542366,
0.02313198894262314,
-0.015595614910125732,
-0.029368167743086815,
0.07435673475265503,
0.07299279421567917,
0.061987608671188354,
0.06336454302072525,
-0.007709304802119732,
0.06906764954328537,
-0.032083962112665176,
0.005311043933033943,
-0.0379960723221302,
-0.03259469196200371,
-0.014491762034595013,
-0.07363428175449371,
-0.029077673330903053,
-0.025671284645795822,
-0.04773949831724167,
-0.04067593812942505,
0.007041055243462324,
0.009897629730403423,
-0.0071221510879695415,
0.0015637761680409312,
0.013744347728788853,
0.015766410157084465,
-0.03635762259364128,
-0.035443127155303955,
-0.004419221542775631,
-0.012067124247550964,
-0.0819566622376442,
-0.06300906836986542,
0.017814110964536667,
-0.03212402015924454,
0.004624706692993641,
-0.004409603774547577,
0.01802281104028225,
0.04843168333172798,
-0.013565399684011936,
-0.021582042798399925,
0.012397016398608685,
0.025902658700942993,
-0.02837873063981533,
-0.023379746824502945,
0.025221267715096474,
0.01648803800344467,
0.020140735432505608,
-0.03527163341641426,
0.038974080234766006,
0.01178754959255457,
-0.048243552446365356,
-0.011427350342273712,
0.014882639981806278,
0.023247892037034035,
-0.07992544025182724,
-0.007034993264824152,
-0.02605549618601799,
-0.029888423159718513,
-0.003041123505681753,
-0.05068480223417282,
-0.006223217584192753,
-0.013372094370424747,
0.04445047676563263,
0.03185034170746803,
-0.0023128425236791372,
-0.03298741579055786,
0.019367719069123268,
-0.015152321197092533,
-0.005322142969816923,
-0.0637073963880539,
0.020979225635528564,
-0.021487444639205933,
0.018062392249703407,
-0.0018586880760267377,
0.008666418492794037,
-0.038844186812639236,
0.040387239307165146,
-0.003917526453733444,
-0.0041127451695501804,
-0.006991639733314514,
-0.02344569005072117,
-0.010791216976940632,
0.062374863773584366,
0.025383662432432175,
-0.007361598778516054,
-0.029384944587945938,
0.05588657408952713,
-0.049487024545669556,
0.0096568763256073,
-0.0006297074141912162,
-0.013501595705747604,
-0.03530493378639221,
-0.0006226972327567637,
0.022263498976826668,
-0.06421749293804169,
0.029069555923342705,
0.041289184242486954,
0.020232120528817177,
0.037241969257593155,
-0.0041276137344539165,
0.010368643328547478,
0.02443048357963562,
-0.0386347733438015,
-0.034305136650800705,
-0.01539722178131342,
-0.015584228560328484,
0.012405488640069962,
0.06380794942378998,
0.02215154655277729,
-0.05388028174638748,
-0.0221833698451519,
0.05013806000351906,
0.020358068868517876,
0.007702947594225407,
-0.004110996145755053,
0.052491191774606705,
0.032014232128858566,
0.06371614336967468,
-0.01061420887708664,
-0.017007259652018547,
0.011599662713706493,
-0.01844208501279354,
-0.006989471614360809,
0.0014475473435595632,
-0.0013692810898646712,
-0.007973040454089642,
-0.01995573379099369,
-0.03291232883930206,
0.06456306576728821,
-0.010585579089820385,
0.0017457973444834352,
-0.013344472274184227,
-0.05115383863449097,
0.04972468316555023,
0.002181939547881484,
-0.028338095173239708,
-0.013533142395317554,
0.04827731102705002,
-0.027224591001868248,
0.050099968910217285,
-0.027895960956811905,
0.006566681433469057,
0.053173720836639404,
0.023784805089235306,
0.01527478825300932,
0.00369253265671432,
-0.023924866691231728,
-0.0016174217453226447,
0.01954524591565132,
-0.03710373491048813,
-0.010262356139719486,
-0.0224557276815176,
0.06567175686359406,
-0.046458106487989426,
0.06447819620370865,
0.020963292568922043,
0.03587135300040245,
0.01712924800813198,
-0.042889732867479324,
-0.0314168706536293,
-0.013968144543468952,
-0.02857411839067936,
0.07333613187074661,
0.0045163934119045734,
-0.039094746112823486,
0.06275960803031921,
0.02341623231768608,
-0.09196653962135315,
0.04547909274697304,
0.05202147737145424,
0.050056617707014084,
0.027089105919003487,
0.07376334816217422,
-0.05313720181584358,
0.019477179273962975,
-0.03009037859737873,
0.011539085768163204,
-0.048769332468509674,
-0.006428301800042391,
-0.015625737607479095,
-0.0485575869679451,
-0.005863557104021311,
0.02056189626455307,
-0.024652954190969467,
0.012356497347354889,
0.01082106214016676,
-0.018046477809548378,
-0.040199730545282364,
0.0024675491731613874,
0.05083587020635605,
-0.007145872339606285,
-0.004494550172239542,
-0.03125908598303795,
0.013070697896182537,
0.030508561059832573,
-0.013377958908677101,
-0.048817817121744156,
0.01406876277178526,
-0.0030964603647589684,
-0.06948553770780563,
-0.04870972782373428,
0.05010775104165077,
0.030396653339266777,
-0.01866624876856804,
0.014363331720232964,
0.03946336358785629,
0.029778704047203064,
0.03204847127199173,
-0.00905558280646801,
0.012989895418286324,
-0.067057766020298,
0.01320172380656004,
0.008527166210114956,
0.019306061789393425,
0.011588271707296371,
-0.011497318744659424,
0.03890179842710495,
0.07683517038822174,
0.04571511596441269,
-0.008982484228909016,
-0.06081274151802063,
-0.040270958095788956,
0.0036175926215946674,
-0.04168874770402908,
0.03978026658296585,
-0.005544274114072323,
-0.046049002557992935,
-0.033880945295095444,
-0.03653902933001518,
-0.01075014378875494,
0.03971260413527489,
-0.0364956371486187,
0.03299300745129585,
0.03060825541615486,
0.007464507129043341,
-0.031532205641269684,
-0.09330975264310837,
-0.036571670323610306,
-0.012136665172874928,
0.03281770646572113,
0.00884321704506874,
-0.05796946957707405,
0.022152435034513474,
-0.025240639224648476,
-0.007862660102546215,
0.057292915880680084,
-0.014954562298953533,
-0.018353739753365517,
0.06817849725484848,
0.07688221335411072,
-0.04596945270895958,
0.051778558641672134,
0.025964148342609406,
-0.03928101807832718,
0.05379838868975639,
0.006099014542996883,
0.029840173199772835,
0.017639223486185074,
0.029110383242368698,
-0.007957303896546364,
-0.019310612231492996,
-0.011971448548138142,
-0.03791287913918495,
0.014657561667263508,
-0.015267426148056984,
0.056627288460731506
] |
BigTooth/Megumin-v0.2 | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 13 | null | ---
tags:
- conversational
---
# Megumin-v0.2 model | [
-0.03686056286096573,
0.002734005218371749,
0.007450445089489222,
0.010403362102806568,
0.01556992158293724,
0.004977225326001644,
0.0027999302837997675,
0.026657257229089737,
-0.03292889893054962,
0.044811081141233444,
0.0342215932905674,
-0.0017599178245291114,
0.03382082283496857,
0.04439392313361168,
-0.03435196354985237,
-0.030921082943677902,
-0.019859718158841133,
-0.008847462013363838,
-0.04013809561729431,
-0.013293560594320297,
0.019802406430244446,
0.015955405309796333,
-0.027323966845870018,
0.05366872251033783,
0.00828603096306324,
0.022271092981100082,
-0.027881698682904243,
0.01767192967236042,
0.016626914963126183,
-0.04065733775496483,
0.014441505074501038,
-0.03917723894119263,
-0.017485592514276505,
-0.0420365035533905,
-0.020228326320648193,
-0.020604940131306648,
0.01562395691871643,
0.008706475608050823,
-0.021085642278194427,
0.045725010335445404,
-0.015371370129287243,
-0.004989595618098974,
-0.007609185762703419,
-0.012684782035648823,
0.06596721708774567,
0.016689075157046318,
-0.048794396221637726,
-0.01856471411883831,
0.024848124012351036,
-0.04093577340245247,
-0.050236526876688004,
-0.057821568101644516,
-0.027711283415555954,
-0.006533643696457148,
-0.0010954135796055198,
-0.046286795288324356,
-0.06030277907848358,
-0.007918783463537693,
0.07569878548383713,
-0.030032534152269363,
-0.016851264983415604,
-0.0042417836375534534,
-0.07661042362451553,
0.024809580296278,
0.022466521710157394,
-0.07812286168336868,
0.002811600686982274,
-0.055018629878759384,
0.0027277262415736914,
-0.03548995032906532,
0.05884375423192978,
-0.05120961368083954,
0.005767025984823704,
-0.07732594758272171,
-0.01536328811198473,
-0.004938427358865738,
0.05089050158858299,
0.0604289285838604,
-0.02978675626218319,
0.050402749329805374,
0.04128113389015198,
0.005042294971644878,
0.05287326127290726,
0.00015287088172044605,
-0.03271422162652016,
0.02951829694211483,
-0.0467228889465332,
0.003512756433337927,
0.000280854816082865,
0.022877562791109085,
-0.04744361713528633,
-0.04028394818305969,
-0.011923667974770069,
-0.018940066918730736,
-0.016385991126298904,
0.040575914084911346,
0.02405555360019207,
-0.021515225991606712,
0.022056085988879204,
0.021355386823415756,
0.023778824135661125,
0.05794914811849594,
-0.02246086299419403,
0.03446182236075401,
-0.04651657119393349,
0.014237075112760067,
0.00440579280257225,
-0.007864691317081451,
-0.044356390833854675,
0.02308395318686962,
-0.0026007199194282293,
-0.03754941746592522,
-0.033716123551130295,
0.026787176728248596,
0.018595682457089424,
-0.013230092823505402,
0.06155630946159363,
-0.03417993709445,
-0.02047903649508953,
-0.0703982338309288,
0.0667557492852211,
-0.01743733324110508,
-0.01886189915239811,
-0.001378867425955832,
-0.05751166492700577,
0.0032834229059517384,
-0.03797930106520653,
-0.016157077625393867,
-0.004806338343769312,
0.003844883292913437,
0.008025514893233776,
0.03060939908027649,
-0.042409177869558334,
-0.049987707287073135,
-0.005177148152142763,
0.022796791046857834,
-0.0734623521566391,
0.009065556339919567,
0.026236508041620255,
0.08576123416423798,
-0.06967046856880188,
-0.02423660270869732,
-0.0136072663590312,
0.02621084824204445,
-0.030150409787893295,
0.003513401374220848,
0.0034141733776777983,
-0.022315148264169693,
-0.03781786188483238,
-0.02728067710995674,
0.02907898835837841,
-0.06896017491817474,
-0.005125457886606455,
0.036040112376213074,
0.015986716374754906,
0.026588642969727516,
-0.02256114035844803,
0.02378295548260212,
0.013931790366768837,
-0.02015467919409275,
-0.05196582153439522,
0.04780719429254532,
-0.006503465119749308,
-0.03852864354848862,
-0.0381418913602829,
-0.046100638806819916,
0.017125902697443962,
0.0695950984954834,
-0.012366934679448605,
-0.006918329279869795,
-0.02423117682337761,
0.04053229093551636,
0.06930332630872726,
0.04271572455763817,
-0.011465626768767834,
0.017090583220124245,
0.06940516829490662,
0.031687892973423004,
-0.04381644353270531,
0.07271383702754974,
0.019762398675084114,
-0.03275727480649948,
-0.04926828294992447,
-0.012432295829057693,
0.030193708837032318,
-0.0014241629978641868,
0.015100528486073017,
0.050573091953992844,
-0.020458541810512543,
-0.044937338680028915,
0.011222222819924355,
0.046279922127723694,
-0.006938195787370205,
-0.02447432652115822,
-0.03602563589811325,
-0.04007000848650932,
-0.04311938211321831,
0.04067085683345795,
-0.024490078911185265,
-0.032908741384744644,
-0.05588475987315178,
-0.01993262767791748,
0.0417320542037487,
0.017830053344368935,
0.010674354620277882,
0.04288322106003761,
-0.013408835977315903,
0.059033989906311035,
-0.03707149252295494,
0.023812085390090942,
-0.02813069522380829,
-0.024645578116178513,
-0.012003857642412186,
0.039353374391794205,
0.0254355575889349,
0.06070799008011818,
-0.034089040011167526,
-0.03827596828341484,
0.033542171120643616,
0.067148357629776,
0.02490033023059368,
0.01838056743144989,
-0.028605187311768532,
-0.014700415544211864,
0.012984572909772396,
0.025214312598109245,
-0.0533272959291935,
0.007246231194585562,
0.005415144842118025,
0.07000267505645752,
-0.03158819302916527,
-0.03685162961483002,
-0.015554341487586498,
-0.0003333316999487579,
-0.04115588963031769,
-0.0743308737874031,
0.04866534098982811,
0.022467758506536484,
-0.00962022040039301,
0.04726184159517288,
0.009619328193366528,
0.008718214929103851,
0.03531670570373535,
0.019812367856502533,
0.009556129574775696,
-0.08385277539491653,
0.007423131261020899,
0.0322006419301033,
0.09732364118099213,
-0.05779947340488434,
0.037395332008600235,
-0.0024262627121061087,
-0.0003637686313595623,
0.021199854090809822,
-0.029982002452015877,
0.049445733428001404,
0.04353763163089752,
0.04488703981041908,
-0.008494652807712555,
0.050607528537511826,
0.013423250988125801,
0.021538760513067245,
0.05994690582156181,
-0.005338824354112148,
0.06322572380304337,
0.001736211241222918,
0.03776273876428604,
0.05978931486606598,
0.03887570649385452,
-0.029053863137960434,
0.0011724041542038321,
0.07845169305801392,
0.0027732476592063904,
0.019289135932922363,
0.04390605166554451,
-0.021240567788481712,
-0.006803842261433601,
-0.04938405379652977,
0.012278699316084385,
-0.002482363721355796,
-0.017106523737311363,
0.054155368357896805,
0.010248049162328243,
0.0005200267187319696,
-0.003810733091086149,
0.0014872943283990026,
0.008986576460301876,
0.05305265635251999,
0.009868795983493328,
-0.02696681208908558,
0.00730317085981369,
-0.03146849200129509,
0.028234824538230896,
-0.05874334275722504,
-0.045187100768089294,
0.00788755901157856,
-0.06232037767767906,
-0.0034535881131887436,
-0.08044762909412384,
-0.033293332904577255,
-0.05395318567752838,
-0.034060150384902954,
0.059581514447927475,
0.015581581741571426,
0.005809525493532419,
-0.0034840665757656097,
0.007598035037517548,
-0.024585632607340813,
-0.04874085262417793,
-0.04619840905070305,
-0.03809138759970665,
0.015102116391062737,
-0.04544192925095558,
0.035069964826107025,
0.019757185131311417,
0.04480386897921562,
0.008539920672774315,
-0.015827149152755737,
-0.05149492993950844,
-0.020838091149926186,
0.05008528381586075,
0.007154959719628096,
-0.028754230588674545,
-0.03445083647966385,
0.02049403078854084,
-0.0005175090045668185,
-0.01393465418368578,
-0.029689373448491096,
-0.04904773458838463,
0.0700741857290268,
0.023700648918747902,
0.0012558260932564735,
0.018832063302397728,
0.0016571555752307177,
-0.024341031908988953,
-0.01840999536216259,
-0.04409642517566681,
-0.03656517714262009,
-0.014394418336451054,
-0.035891350358724594,
-0.04911418259143829,
-0.028728554025292397,
-0.029175113886594772,
-0.019717464223504066,
-0.0018428144976496696,
-0.007143642287701368,
0.01839788444340229,
0.005699134897440672,
0.02004186250269413,
0.02313152700662613,
-0.01848686672747135,
-0.01684507541358471,
0.03743605688214302,
-0.02396402321755886,
-0.01241946779191494,
-0.07796943932771683,
-0.033146895468235016,
0.024380173534154892,
0.010373098775744438,
-0.021111994981765747,
-0.025836938992142677,
0.04979947954416275,
0.020732292905449867,
-0.003027314320206642,
0.02861170284450054,
-0.07504276186227798,
0.022041866555809975,
-0.03846528008580208,
-0.013989699073135853,
-0.020501254126429558,
-0.04329700767993927,
-0.0021888278424739838,
-0.00309269642457366,
0.03297334164381027,
-0.06572109460830688,
-0.03357726335525513,
-0.02352258749306202,
-0.000024977234716061503,
0.033046018332242966,
-0.0017170851351693273,
-0.05941902846097946,
-0.004563580267131329,
-0.037946972995996475,
-0.03186666592955589,
-0.0014874986372888088,
-0.003432096913456917,
0.0008899032254703343,
0.036613766103982925,
0.017481772229075432,
-0.030584275722503662,
0.055542320013046265,
0.016054904088377953,
0.06577271223068237,
0.040460385382175446,
-0.016499435529112816,
0.019269218668341637,
-0.021505258977413177,
0.023976340889930725,
0.006675934884697199,
-0.02315884456038475,
-0.04039748013019562,
-0.10380327701568604,
-0.04207189753651619,
0.03057301603257656,
-0.02888919785618782,
0.017556000500917435,
0.053708504885435104,
-0.03610152751207352,
-0.006648877169936895,
-0.01132088154554367,
0.06989757716655731,
0.048383526504039764,
-0.033789295703172684,
0.05386371538043022,
-0.0054076965898275375,
0.024242036044597626,
-0.06109309941530228,
-0.015502252615988255,
-0.0442381426692009,
-0.01941080018877983,
0.005111753474920988,
0.039369259029626846,
0.006655147299170494,
0.07490631937980652,
0.07809998840093613,
0.025481736287474632,
-0.03397693485021591,
0.05184795707464218,
0.08169252425432205,
-0.011368382722139359,
-0.04372713714838028,
0.014770237728953362,
0.005170248914510012,
-0.017523281276226044,
-0.01142763253301382,
-0.04349569231271744,
0.027092937380075455,
0.04773622751235962,
-0.008429369889199734,
0.0065242825075984,
0.007260760758072138,
-0.023876763880252838,
-0.019162870943546295,
-0.06927188485860825,
-0.0015627066604793072,
-0.003745440859347582,
-0.025710884481668472,
0.06045226380228996,
0.04903865605592728,
0.008403446525335312,
0.05850910395383835,
0.019212443381547928,
-0.00982907135039568,
-0.059290431439876556,
0.025650886818766594,
0.03618596866726875,
-0.03862321376800537,
-0.05461876094341278,
-0.029111068695783615,
0.03375145047903061,
0.04474996402859688,
-0.01791560649871826,
-0.09696085005998611,
0.03983806446194649,
0.03713793307542801,
-0.055235620588064194,
0.05875798687338829,
-0.0018973549595102668,
0.038529567420482635,
0.042721137404441833,
0.004167389590293169,
0.03754649683833122,
-0.043903958052396774,
0.006130465306341648,
-0.014702891930937767,
0.041309889405965805,
-0.03118857368826866,
-0.04137303680181503,
-0.042616795748472214,
0.03395308554172516,
0.019526753574609756,
0.01398078165948391,
0.031213195994496346,
-0.04980340600013733,
-0.053373824805021286,
-0.012693222612142563,
0.040087513625621796,
-0.018161756917834282,
0.018635030835866928,
0.03446398302912712,
0.04336041957139969,
-0.06539100408554077,
-0.0001115742270485498,
-0.001977562205865979,
0.015764471143484116,
0.018657052889466286,
0.002854712074622512,
-0.04817395284771919,
-0.009448088705539703,
0.01959584839642048,
-0.015284218825399876,
-0.031226450577378273,
-0.10650459676980972,
0.03456154093146324,
-0.0236947201192379,
-0.022654738277196884,
0.05930570885539055,
0.05667905882000923,
0.06114056706428528,
0.053494811058044434,
-0.01149209588766098,
0.035760439932346344,
-0.023350048810243607,
0.0004587391740642488,
-0.035214778035879135,
-0.04614037647843361,
0.011877655051648617,
-0.07249445468187332,
-0.02992912381887436,
-0.03546832501888275,
-0.04288414493203163,
-0.04503573477268219,
0.0003948742523789406,
0.018066689372062683,
-0.008249775506556034,
0.00011612500384217128,
0.0014399520587176085,
0.005852643866091967,
-0.04537815973162651,
-0.027371825650334358,
-0.002985764294862747,
-0.008298983797430992,
-0.0721108466386795,
-0.06898616999387741,
0.009420186281204224,
-0.013965439982712269,
0.005922586657106876,
-0.010813283734023571,
0.005958353169262409,
0.05190688744187355,
-0.007540667895227671,
-0.02374235913157463,
0.0002473943750374019,
0.020305929705500603,
-0.031095240265130997,
-0.0100293830037117,
0.027965087443590164,
0.008601387962698936,
0.04127974808216095,
-0.04067216441035271,
0.022551901638507843,
0.00296749803237617,
-0.05251605063676834,
-0.0174733716994524,
0.022188203409314156,
0.018850896507501602,
-0.07486779242753983,
-0.002272631274536252,
-0.03482891246676445,
-0.018540121614933014,
0.01887574978172779,
-0.04106075316667557,
-0.018609944730997086,
0.0010978663340210915,
0.02842995896935463,
0.02975677326321602,
-0.008202167227864265,
-0.015600351616740227,
0.013483197428286076,
-0.03094756230711937,
-0.008843646384775639,
-0.06268944591283798,
0.030056795105338097,
-0.015158179216086864,
0.022807352244853973,
-0.002539754379540682,
0.00404360331594944,
-0.04645581170916557,
0.05653107911348343,
-0.01101425476372242,
-0.02402529865503311,
-0.0030750047881156206,
0.00501259183511138,
-0.013995052315294743,
0.0438949353992939,
0.026876578107476234,
0.0002036877122009173,
-0.03477880731225014,
0.06203284114599228,
-0.047420382499694824,
0.006655192002654076,
-0.00042549974750727415,
-0.023851998150348663,
-0.026851387694478035,
-0.01345127820968628,
0.008395570330321789,
-0.08131947368383408,
0.015450665727257729,
0.01711527444422245,
0.023870976641774178,
0.04483999311923981,
-0.002603999339044094,
0.012101179920136929,
0.024641338735818863,
-0.04723820462822914,
-0.04079095274209976,
-0.015219192020595074,
-0.001388320466503501,
0.00806688517332077,
0.07576914131641388,
0.03753761202096939,
-0.05283378064632416,
-0.02075880765914917,
0.037895169109106064,
0.016197726130485535,
0.004775845445692539,
-0.006297477521002293,
0.03404863551259041,
0.06013163924217224,
0.052764393389225006,
-0.004891479853540659,
-0.015012042596936226,
-0.002101057441905141,
-0.019793741405010223,
-0.013876980170607567,
-0.004470060579478741,
0.00982725154608488,
-0.010982153937220573,
-0.03235701844096184,
-0.0474778488278389,
0.05641563981771469,
-0.0048543489538133144,
0.013846957124769688,
-0.008112618699669838,
-0.05609799176454544,
0.06122157350182533,
-0.0006959608290344477,
-0.025726865977048874,
-0.022681232541799545,
0.037238944321870804,
-0.026524176821112633,
0.040486447513103485,
-0.04254056140780449,
0.010351836681365967,
0.0637563019990921,
0.02558583952486515,
0.0033824099227786064,
0.012874169275164604,
-0.029402848333120346,
0.0166776143014431,
0.021123161539435387,
-0.053995586931705475,
-0.007915294729173183,
-0.02288350649178028,
0.048102281987667084,
-0.05658349394798279,
0.060927864164114,
0.04967864975333214,
0.02770829387009144,
0.03119903802871704,
-0.05486692860722542,
-0.043546464294195175,
-0.011484586633741856,
-0.038162071257829666,
0.07359576225280762,
-0.002772674197331071,
-0.03732892498373985,
0.06687963008880615,
0.02307095192372799,
-0.0781598910689354,
0.03450031578540802,
0.015984363853931427,
0.03621352091431618,
0.00152358238119632,
0.07306908071041107,
-0.05368594080209732,
0.04296033829450607,
-0.018231278285384178,
0.022641558200120926,
-0.06711262464523315,
-0.03877434879541397,
-0.01526980847120285,
-0.056298691779375076,
-0.005945869255810976,
0.03257761523127556,
-0.027093682438135147,
-0.00047208560863509774,
0.01494878251105547,
-0.013785872608423233,
-0.06742581725120544,
-0.0016782779712229967,
0.028431102633476257,
0.005580693017691374,
0.005856475327163935,
-0.02208438329398632,
0.016308618709445,
0.043394893407821655,
-0.021137064322829247,
-0.061243150383234024,
0.01637907698750496,
0.002729301108047366,
-0.08605843782424927,
-0.04758031293749809,
0.06547772884368896,
0.014805560000240803,
-0.012756417505443096,
-0.0010978041682392359,
0.046113163232803345,
0.04061659425497055,
0.029346248134970665,
-0.016679491847753525,
0.012801564298570156,
-0.08269240707159042,
-0.001271489541977644,
0.035152535885572433,
0.0019885452929884195,
-0.004107367713004351,
-0.003485999768599868,
0.012654266320168972,
0.07792238146066666,
0.04059254378080368,
-0.008802631869912148,
-0.045050520449876785,
-0.01833500526845455,
0.013215460814535618,
-0.03998274356126785,
0.048218850046396255,
-0.007652804721146822,
-0.031461551785469055,
-0.06278809159994125,
-0.0165687408298254,
-0.008042610250413418,
0.03410760685801506,
-0.032850466668605804,
0.018889708444476128,
0.033861856907606125,
0.002855281112715602,
-0.041714418679475784,
-0.1079976037144661,
-0.05316164344549179,
-0.013345676474273205,
0.018161585554480553,
0.021325960755348206,
-0.040823306888341904,
0.007440965157002211,
-0.023426342755556107,
-0.02319517359137535,
0.06329620629549026,
-0.015625281259417534,
-0.020102204754948616,
0.07225469499826431,
0.06241194158792496,
-0.021941978484392166,
0.021037980914115906,
0.017838336527347565,
-0.04675804451107979,
0.04676186293363571,
0.015141488052904606,
0.04492754489183426,
0.00827542319893837,
0.03434602543711662,
-0.02846185863018036,
-0.022942550480365753,
-0.02768689952790737,
-0.03716161102056503,
-0.010334813967347145,
-0.016477691009640694,
0.05175676569342613
] |
BigeS/DialoGPT-small-Rick | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 10 | null | ---
tags:
- conversational
---
#Rick Sanchez DialoGPT Model | [
-0.021968010812997818,
0.018857184797525406,
0.012789739295840263,
0.02265116013586521,
0.022460758686065674,
0.024874364957213402,
0.0008740343037061393,
0.02425774745643139,
-0.008485030382871628,
0.018829388543963432,
0.036424580961465836,
-0.03043542616069317,
0.013918130658566952,
0.0456622838973999,
-0.044550877064466476,
-0.032308295369148254,
-0.013882447965443134,
0.006697432603687048,
-0.031217603012919426,
-0.011654457077383995,
0.029146132990717888,
0.002897336846217513,
-0.014831075444817543,
0.012270936742424965,
-0.0018977908184751868,
0.025479363277554512,
0.003680070396512747,
-0.0006941751344129443,
0.025032255798578262,
-0.03513580933213234,
0.027372188866138458,
-0.04761231690645218,
-0.002145944396033883,
-0.02739613503217697,
-0.03367309272289276,
-0.04709793999791145,
0.0405743308365345,
-0.022676685824990273,
-0.011295776814222336,
0.026343200355768204,
-0.022756697610020638,
0.002858132589608431,
0.010337972082197666,
-0.03839464113116264,
0.0683138519525528,
-0.0041332426480948925,
-0.05043116584420204,
-0.030531611293554306,
0.022850606590509415,
-0.0210226159542799,
-0.03769158944487572,
-0.06339278817176819,
-0.06158554553985596,
-0.007018583361059427,
0.013276983052492142,
-0.06158168241381645,
-0.06580526381731033,
-0.022252986207604408,
0.09674929827451706,
-0.022508274763822556,
-0.007299894001334906,
-0.011516115628182888,
-0.08021833747625351,
0.017028456553816795,
0.022050809115171432,
-0.06984245777130127,
0.017751282081007957,
-0.04718834534287453,
0.02264290302991867,
-0.024206655099987984,
0.05296003073453903,
-0.04604344815015793,
0.021458949893712997,
-0.0883336216211319,
-0.0329408161342144,
-0.010163702070713043,
0.03917019069194794,
0.06550370901823044,
-0.054180268198251724,
0.04003645479679108,
0.04782469570636749,
0.0008301741909235716,
0.06907298415899277,
-0.012034009210765362,
-0.040745366364717484,
0.053866833448410034,
-0.05205058306455612,
-0.0011750265257433057,
-0.00043978498433716595,
0.01545986719429493,
-0.011128056794404984,
-0.05878432095050812,
-0.02198587916791439,
-0.013183899223804474,
0.0036744573153555393,
0.04588381201028824,
0.02656589075922966,
-0.021242551505565643,
0.02314932271838188,
0.034123439341783524,
0.02322029136121273,
0.04682183638215065,
-0.008867892436683178,
0.035924725234508514,
-0.0002897720842156559,
0.023788919672369957,
0.03391190618276596,
-0.027230706065893173,
-0.043617699295282364,
0.02997843734920025,
0.019852440804243088,
-0.04889556020498276,
-0.028012355789542198,
0.03426211327314377,
0.0027061619330197573,
0.012365803122520447,
0.06372664123773575,
-0.04454527422785759,
-0.03964807093143463,
-0.05074399337172508,
0.0568196102976799,
-0.006257172673940659,
0.0005354681634344161,
-0.007312549743801355,
-0.05379563197493553,
-0.010632289573550224,
-0.04092578962445259,
-0.009967993944883347,
-0.014689210802316666,
-0.0057238307781517506,
0.009014690294861794,
0.02526072785258293,
-0.01665210723876953,
-0.056108508259058,
-0.0010652750497683883,
0.05198650062084198,
-0.07385944575071335,
-0.001276087830774486,
0.056197863072156906,
0.0925908088684082,
-0.08311472088098526,
-0.05027429014444351,
-0.014823459088802338,
0.018217284232378006,
-0.030034050345420837,
-0.00815058033913374,
0.015146304853260517,
-0.01740862801671028,
-0.03174885734915733,
-0.01374754123389721,
0.03910881653428078,
-0.05401165038347244,
-0.009503208100795746,
0.04718048870563507,
0.012831210158765316,
0.011926795355975628,
-0.02252238057553768,
0.002077986253425479,
-0.01273355633020401,
-0.02168547920882702,
-0.06324267387390137,
0.05463531240820885,
-0.03060922957956791,
-0.060679756104946136,
-0.04899795353412628,
-0.023566117510199547,
0.02315359190106392,
0.06309416145086288,
0.009854843840003014,
-0.011677802540361881,
-0.020242370665073395,
0.03766780346632004,
0.04158385843038559,
0.04126165434718132,
-0.009589914232492447,
0.043111249804496765,
0.06974086165428162,
0.018972132354974747,
-0.04913897439837456,
0.06266430020332336,
0.011371652595698833,
-0.026598691940307617,
-0.046940576285123825,
-0.014755027368664742,
0.03216136246919632,
-0.019728902727365494,
0.02821696549654007,
0.043700192123651505,
-0.016016915440559387,
-0.03804224729537964,
-0.003866654820740223,
0.053312115371227264,
-0.018719520419836044,
0.012421785853803158,
-0.01926957629621029,
-0.024693688377738,
-0.03457118198275566,
0.01315401028841734,
-0.03604879975318909,
-0.010296992026269436,
-0.018544446676969528,
-0.003295478643849492,
0.03365950286388397,
-0.018278850242495537,
0.0018706731498241425,
0.052217550575733185,
-0.021063264459371567,
0.06903769820928574,
-0.0286587905138731,
0.026875201612710953,
-0.03746127337217331,
-0.0102000767365098,
-0.04251835122704506,
0.04736202210187912,
0.018913529813289642,
0.046109095215797424,
-0.04419601336121559,
-0.04312480613589287,
0.021869447082281113,
0.06014200672507286,
0.026913998648524284,
0.02388480119407177,
-0.02148059383034706,
0.017356667667627335,
0.040451958775520325,
0.019450386986136436,
-0.020073290914297104,
0.0046961610205471516,
0.012485120445489883,
0.014631565660238266,
-0.01842437870800495,
-0.014795791357755661,
-0.052572980523109436,
0.02553197741508484,
-0.04798145592212677,
-0.060871805995702744,
0.04515008255839348,
0.030283628031611443,
-0.00654476648196578,
0.04684627056121826,
-0.0065694535151124,
-0.0024720346555113792,
0.038576602935791016,
0.007346179336309433,
0.02267422340810299,
-0.08345755189657211,
0.014935921877622604,
0.022976361215114594,
0.08082679659128189,
-0.043880607932806015,
0.00830451026558876,
0.02662762813270092,
0.019399652257561684,
0.029736043885350227,
-0.020424965769052505,
0.04588433355093002,
0.05532738193869591,
0.042363326996564865,
-0.014206770807504654,
0.02046912908554077,
0.0035538384690880775,
0.025956997647881508,
0.04895472899079323,
-0.026370234787464142,
0.07144645601511002,
-0.021271783858537674,
0.008912293240427971,
0.05901515856385231,
0.013846728019416332,
-0.03252614289522171,
0.03019745461642742,
0.07794684916734695,
-0.0031569856218993664,
0.03113843873143196,
0.0315835066139698,
-0.0016848070081323385,
0.0009547148365527391,
-0.03825467824935913,
-0.009801938198506832,
0.0001857012539403513,
-0.043560296297073364,
0.06755058467388153,
0.011930186301469803,
-0.012119746766984463,
-0.0005284998915158212,
-0.004436177667230368,
-0.005782993044704199,
0.05227530747652054,
-0.009471024386584759,
-0.01762956939637661,
0.0010118242353200912,
-0.026797426864504814,
0.02085929736495018,
-0.05364837497472763,
-0.037690356373786926,
-0.017716120928525925,
-0.053151726722717285,
-0.010162590071558952,
-0.07622116059064865,
-0.04682392627000809,
-0.0883311778306961,
-0.026490429416298866,
0.04008760675787926,
0.009390483610332012,
0.009842085652053356,
0.0190342515707016,
-0.00006167053652461618,
-0.005558941047638655,
-0.059979211539030075,
-0.034693311899900436,
-0.01867014728486538,
-0.01471202727407217,
-0.04263889044523239,
0.023802870884537697,
0.036082684993743896,
0.0310486052185297,
0.0038912163581699133,
-0.006144240964204073,
-0.03345389664173126,
-0.025733869522809982,
0.04569193348288536,
0.021282222121953964,
-0.04380727559328079,
-0.05604176968336105,
0.006026966497302055,
0.007720614783465862,
-0.00442866887897253,
-0.01258543599396944,
-0.036266714334487915,
0.0587938018143177,
0.04288994520902634,
0.008963162079453468,
0.008389238268136978,
-0.0010378389852121472,
-0.018820224329829216,
-0.028396224603056908,
-0.06992817670106888,
-0.025306159630417824,
-0.014848615974187851,
-0.02403002791106701,
-0.04641401022672653,
-0.03304928168654442,
-0.03807149827480316,
0.002639454323798418,
0.004131571389734745,
-0.0007182200206443667,
0.04260089248418808,
0.02177445963025093,
0.03029700741171837,
0.018516363576054573,
-0.03548427298665047,
-0.01551806554198265,
0.042299240827560425,
-0.018483933061361313,
-0.017835350707173347,
-0.08215221762657166,
-0.057436224073171616,
0.040904730558395386,
0.005947822704911232,
0.01048186607658863,
-0.025620659813284874,
0.027200642973184586,
0.040618885308504105,
0.0035108302254229784,
0.0319298654794693,
-0.05939821898937225,
0.0039300075732171535,
-0.035936180502176285,
-0.026957973837852478,
-0.05139455944299698,
-0.022205675020813942,
-0.00994700938463211,
-0.008274927735328674,
0.04624716937541962,
-0.07954354584217072,
-0.03100281022489071,
-0.02628692425787449,
0.010923249647021294,
0.056420549750328064,
-0.006973983254283667,
-0.045114871114492416,
-0.01799953542649746,
-0.03478103503584862,
-0.013107202015817165,
0.007565776817500591,
-0.02603093907237053,
-0.00691783893853426,
0.030166558921337128,
0.0012350223260000348,
-0.017376959323883057,
0.042482420802116394,
0.0059150285087525845,
0.0658033937215805,
0.04853430017828941,
-0.031848665326833725,
0.0461970716714859,
-0.03819013386964798,
0.03208434581756592,
-0.015209358185529709,
-0.028460556641221046,
-0.027779079973697662,
-0.10922418534755707,
-0.054144151508808136,
0.030037209391593933,
-0.015060598030686378,
0.02933339960873127,
0.03118266351521015,
-0.062395934015512466,
0.008238720707595348,
0.020419860258698463,
0.04249168932437897,
0.04906605929136276,
-0.04196670278906822,
0.07667578756809235,
0.004823258146643639,
0.023448899388313293,
-0.05071930214762688,
-0.008212967775762081,
-0.06576888263225555,
-0.011068622581660748,
-0.009702084586024284,
0.04967234656214714,
-0.000332649884512648,
0.06260314583778381,
0.07037923485040665,
0.035352643579244614,
-0.04616907984018326,
0.03647336736321449,
0.07094313949346542,
-0.033602047711610794,
-0.03416312113404274,
-0.00322961644269526,
0.005371542181819677,
-0.02688509412109852,
0.0020336806774139404,
-0.031505733728408813,
0.03301110118627548,
0.030663248151540756,
-0.007279413752257824,
0.00949877966195345,
-0.0021669724956154823,
-0.03404649347066879,
-0.03185827657580376,
-0.06510823965072632,
-0.011853735893964767,
-0.0007808403461240232,
-0.010452164337038994,
0.03790166601538658,
0.046895381063222885,
0.011886341497302055,
0.04720813408493996,
0.026163358241319656,
-0.016386810690164566,
-0.05012422055006027,
0.02545182593166828,
0.014527501538395882,
-0.044610731303691864,
-0.050740864127874374,
-0.03421581909060478,
0.031326934695243835,
0.04427723214030266,
-0.011877719312906265,
-0.08574432134628296,
0.02220240980386734,
0.05341087654232979,
-0.038039740175008774,
0.04751799628138542,
0.002482606563717127,
0.056368883699178696,
0.02509511262178421,
0.0017454726621508598,
0.06011350080370903,
-0.06055963784456253,
0.026721308007836342,
-0.018753083422780037,
0.016141032800078392,
-0.044279973953962326,
-0.03753132000565529,
-0.0453464575111866,
0.03887179121375084,
0.01660243794322014,
0.009566829539835453,
0.02525343745946884,
-0.0435127355158329,
-0.04913170635700226,
-0.006531335413455963,
0.03942765295505524,
-0.02504514902830124,
0.009953020140528679,
0.040862757712602615,
0.053703583776950836,
-0.0602034293115139,
0.0001357480214210227,
0.02110319957137108,
0.0033016582019627094,
0.024935800582170486,
-0.016806088387966156,
-0.046982962638139725,
0.0018437107792124152,
0.03153929486870766,
-0.04786662012338638,
-0.028820360079407692,
-0.08616611361503601,
0.021698955446481705,
-0.02188705839216709,
-0.025546036660671234,
0.08079011738300323,
0.07022975385189056,
0.049724165350198746,
0.07260745763778687,
-0.007783847860991955,
0.040702056139707565,
-0.04169977828860283,
0.02304859273135662,
-0.025240376591682434,
-0.02294471673667431,
0.006083868909627199,
-0.058726999908685684,
-0.03461455926299095,
-0.050563544034957886,
-0.02792007476091385,
-0.023522712290287018,
0.014719650149345398,
0.007735953200608492,
0.00014698287122882903,
-0.0054579367861151695,
0.015073532238602638,
0.00804772786796093,
-0.0062398044392466545,
-0.025978362187743187,
-0.0022068116813898087,
-0.014026566408574581,
-0.06548010557889938,
-0.05888877063989639,
0.0329427570104599,
-0.024580003693699837,
0.01481937151402235,
-0.0013032517163082957,
0.031010759994387627,
0.03473527356982231,
-0.02441459149122238,
-0.032263144850730896,
0.0269309114664793,
0.03132065385580063,
-0.01829012669622898,
-0.02004706673324108,
-0.0005582572193816304,
0.01573297008872032,
0.044594768434762955,
-0.03304039314389229,
0.0505460761487484,
-0.0003660913498606533,
-0.058522891253232956,
-0.016125699505209923,
0.018773656338453293,
0.0037228199653327465,
-0.06575803458690643,
-0.035029295831918716,
-0.03543148934841156,
-0.02273268811404705,
0.010579200461506844,
-0.06474314630031586,
-0.012567799538373947,
-0.016796428710222244,
0.04310503229498863,
0.04025311395525932,
-0.004645499866455793,
-0.013762697577476501,
0.005600422155112028,
-0.014028787612915039,
0.019461821764707565,
-0.07840327173471451,
0.02645062655210495,
-0.03690637648105621,
0.01951778680086136,
-0.020726049318909645,
0.02509358339011669,
-0.04141523316502571,
0.059382010251283646,
-0.02008841000497341,
-0.014369560405611992,
-0.0033286220859736204,
-0.017308572307229042,
0.012974102050065994,
0.04668356850743294,
0.00697713578119874,
0.012470082379877567,
-0.04521592706441879,
0.07999363541603088,
-0.05000869184732437,
0.017699528485536575,
-0.01889275200664997,
-0.023463943973183632,
-0.02072947844862938,
-0.000725765188690275,
0.010860095731914043,
-0.07312528043985367,
0.020366037264466286,
0.04279032349586487,
0.051811378449201584,
0.04180891439318657,
0.00991365872323513,
0.008016007952392101,
0.03106854110956192,
-0.06569354236125946,
-0.03890646994113922,
0.002223663730546832,
-0.01404698844999075,
0.03987342491745949,
0.035453058779239655,
0.04356039687991142,
-0.03950124606490135,
-0.03531462699174881,
0.021995922550559044,
0.007565472740679979,
0.010180553421378136,
0.00893796980381012,
0.03593318909406662,
0.04157829284667969,
0.04687764495611191,
-0.008760698139667511,
0.011446191929280758,
0.025060927495360374,
-0.011851208284497261,
-0.012012711726129055,
-0.00020083639537915587,
0.015019414015114307,
0.0062595149502158165,
-0.029298756271600723,
-0.035953037440776825,
0.07846495509147644,
-0.014597327448427677,
0.0037882134784013033,
-0.014101390726864338,
-0.04911493882536888,
0.0793704241514206,
-0.01911177858710289,
-0.03681092709302902,
0.002404354978352785,
0.029849747195839882,
-0.012627343647181988,
0.0456932969391346,
-0.005848722532391548,
0.008422117680311203,
0.05052190646529198,
0.021952051669359207,
0.00045694675645790994,
-0.0023101649712771177,
-0.004857286345213652,
0.0013111605076119304,
0.015878859907388687,
-0.049431685358285904,
-0.012100184336304665,
-0.042732253670692444,
0.07066554576158524,
-0.03371938690543175,
0.05253482237458229,
0.029487742111086845,
0.04051883891224861,
0.020939022302627563,
-0.04259985685348511,
-0.046929266303777695,
-0.0344734713435173,
-0.03789639472961426,
0.043076205998659134,
-0.02281019650399685,
-0.032542634755373,
0.06141616404056549,
0.019144294783473015,
-0.08909279853105545,
0.04194243252277374,
0.03617474064230919,
0.02598089724779129,
0.04997560754418373,
0.031308338046073914,
-0.05042071267962456,
0.02981897071003914,
-0.03612014651298523,
0.013845279812812805,
-0.02762269414961338,
0.00492134178057313,
-0.02813068963587284,
-0.03533346578478813,
0.005950392223894596,
0.032937102019786835,
-0.019077211618423462,
0.008396686054766178,
0.012704654596745968,
-0.011625477112829685,
-0.05552877113223076,
-0.003914467059075832,
0.03064894676208496,
-0.014355289749801159,
-0.02702350541949272,
-0.03242138400673866,
0.018600864335894585,
0.042649999260902405,
0.009265058673918247,
-0.043179139494895935,
0.013119200244545937,
-0.013577275909483433,
-0.08287801593542099,
-0.05015970766544342,
0.06897664815187454,
0.008312870748341084,
-0.0027804633136838675,
0.0008772017317824066,
0.026139356195926666,
0.01737416535615921,
0.03402768820524216,
-0.0060529704205691814,
0.010914185084402561,
-0.08246549963951111,
-0.004275382962077856,
0.03421500325202942,
0.012372045777738094,
-0.0037897175643593073,
0.006018097046762705,
0.023996805772185326,
0.07454710453748703,
0.04035472497344017,
-0.012291334569454193,
-0.055033162236213684,
-0.011960698291659355,
0.009571908041834831,
-0.032084956765174866,
0.046707019209861755,
0.018437057733535767,
-0.05683187022805214,
-0.011974840424954891,
-0.01568157970905304,
0.008724527433514595,
0.03489220142364502,
-0.031660046428442,
0.017613358795642853,
0.022167714312672615,
-0.0035365161020308733,
-0.04163366183638573,
-0.10676563531160355,
-0.058221474289894104,
-0.00981854647397995,
0.02868632972240448,
0.03863093629479408,
-0.05320999398827553,
0.024025212973356247,
-0.039946138858795166,
0.004157860763370991,
0.054839927703142166,
-0.01531112752854824,
-0.018467005342245102,
0.0805632546544075,
0.06947334855794907,
-0.0363149531185627,
0.05845586210489273,
0.04016430675983429,
-0.030484067276120186,
0.05191878601908684,
-0.0011007760185748339,
0.012943905778229237,
0.008617556653916836,
0.013527555391192436,
-0.021801551803946495,
0.004185382276773453,
-0.014133711345493793,
-0.031802233308553696,
-0.011898908764123917,
-0.0004527045239228755,
0.047141045331954956
] |
Blaine-Mason/hackMIT-finetuned-sst2 | [
"pytorch",
"tensorboard",
"bert",
"text-classification",
"dataset:glue",
"transformers",
"generated_from_trainer"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 36 | null | ---
tags:
- generated_from_trainer
datasets:
- glue
metrics:
- accuracy
model_index:
- name: hackMIT-finetuned-sst2
results:
- task:
name: Text Classification
type: text-classification
dataset:
name: glue
type: glue
args: sst2
metric:
name: Accuracy
type: accuracy
value: 0.8027522935779816
---
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# hackMIT-finetuned-sst2
This model is a fine-tuned version of [Blaine-Mason/hackMIT-finetuned-sst2](https://huggingface.co/Blaine-Mason/hackMIT-finetuned-sst2) on the glue dataset.
It achieves the following results on the evaluation set:
- Loss: 1.1086
- Accuracy: 0.8028
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2.033238621168611e-06
- train_batch_size: 16
- eval_batch_size: 8
- seed: 30
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 1
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
| 0.0674 | 1.0 | 4210 | 1.1086 | 0.8028 |
### Framework versions
- Transformers 4.9.2
- Pytorch 1.9.0+cu102
- Datasets 1.11.0
- Tokenizers 0.10.3
| [
-0.038118548691272736,
-0.013683510944247246,
-0.0015163031639531255,
0.03443892300128937,
0.0524623841047287,
0.03702632710337639,
-0.008734983392059803,
-0.01175875123590231,
-0.04788300767540932,
0.06301329284906387,
0.02450977824628353,
0.003546252613887191,
0.021906999871134758,
0.03071935661137104,
-0.02199702151119709,
-0.030941694974899292,
-0.0174989216029644,
-0.019762957468628883,
-0.005264582112431526,
-0.010500230826437473,
-0.0019176679197698832,
0.007598296273499727,
-0.007798951119184494,
-0.0019745344761759043,
-0.007073562126606703,
-0.00515775429084897,
0.0014595913235098124,
-0.016285324469208717,
0.053435906767845154,
-0.06624280661344528,
0.005826657637953758,
-0.06780260801315308,
-0.045618705451488495,
-0.023677900433540344,
-0.025205332785844803,
0.005630972795188427,
0.0024884419981390238,
0.000995234353467822,
0.019201060757040977,
0.06089465692639351,
-0.009340447373688221,
0.010970991104841232,
-0.01596134714782238,
-0.02654198370873928,
0.038784805685281754,
0.023807566612958908,
-0.02703930251300335,
0.0046810670755803585,
0.028097236528992653,
-0.026142751798033714,
-0.0730074793100357,
-0.0815354511141777,
-0.027556704357266426,
0.02832079865038395,
-0.015503796748816967,
-0.012433352880179882,
-0.05503648519515991,
-0.01127367839217186,
0.049933090806007385,
-0.04261230304837227,
-0.0510161891579628,
0.03512140363454819,
-0.05115586146712303,
0.01182515174150467,
0.02089463360607624,
-0.04051458463072777,
-0.009720084257423878,
-0.033954232931137085,
0.03017181158065796,
-0.03080231510102749,
0.06242784857749939,
-0.016017811372876167,
0.03355235978960991,
-0.08974803239107132,
-0.017168257385492325,
-0.007651156280189753,
0.015292148105800152,
0.026539059355854988,
-0.03595687821507454,
0.04901401698589325,
0.05489809811115265,
-0.00697460537776351,
0.035589925944805145,
-0.013145579025149345,
-0.014607069082558155,
-0.005031762644648552,
-0.0627128928899765,
0.010416921228170395,
0.011311610229313374,
0.03946639597415924,
-0.035956162959337234,
-0.031163131818175316,
-0.0565759651362896,
-0.049876533448696136,
-0.02378825843334198,
0.004193512722849846,
0.019345348700881004,
-0.002197096822783351,
0.039791662245988846,
0.020581867545843124,
0.022650565952062607,
0.027336042374372482,
-0.027233753353357315,
0.06145899370312691,
0.008656028658151627,
0.011074659414589405,
-0.010040026158094406,
-0.004545088857412338,
-0.05385102704167366,
0.01717979647219181,
0.021605320274829865,
-0.020957304164767265,
-0.033284127712249756,
0.037952970713377,
0.012958910316228867,
-0.009886413812637329,
0.05834070220589638,
-0.022839194163680077,
-0.025616012513637543,
-0.06007678806781769,
0.04248984530568123,
0.02013476751744747,
0.024789150804281235,
0.008796964772045612,
-0.03004208393394947,
0.01267683133482933,
-0.01991960220038891,
-0.043814774602651596,
-0.029191048815846443,
0.02321082167327404,
0.00023287902877200395,
0.0640093982219696,
0.004371784161776304,
-0.06131788715720177,
-0.003402777248993516,
0.03642424941062927,
-0.05875794589519501,
0.034877948462963104,
0.037251319736242294,
0.12376346439123154,
-0.06805121153593063,
-0.06883084028959274,
0.01442019548267126,
0.023260343819856644,
-0.025412505492568016,
0.015945563092827797,
0.00655021145939827,
-0.05378543213009834,
-0.009727008640766144,
0.0010532693704590201,
0.05482305958867073,
-0.06473139673471451,
-0.005787021014839411,
0.04509921371936798,
0.007562927436083555,
0.03308830410242081,
-0.07146581262350082,
0.0004987955908291042,
0.01727137714624405,
-0.008590785786509514,
-0.01668415777385235,
0.03696158155798912,
0.0014949262840673327,
-0.008699193596839905,
-0.030714012682437897,
-0.054488204419612885,
0.008434468880295753,
0.07195750623941422,
-0.01290965173393488,
-0.02951681613922119,
-0.018485717475414276,
0.02657800354063511,
0.05980178713798523,
0.049284618347883224,
-0.024794986471533775,
0.049765974283218384,
0.060181550681591034,
0.04274441674351692,
-0.037321023643016815,
0.04682393744587898,
0.013722049072384834,
-0.01775381527841091,
-0.03258214890956879,
-0.0047370255924761295,
-0.007949898950755596,
-0.04265357181429863,
0.017928676679730415,
0.0012884280877187848,
0.010747442953288555,
-0.052543215453624725,
-0.05075135454535484,
0.06674069911241531,
0.003532909322530031,
-0.01673748530447483,
0.003250899026170373,
0.006615782622247934,
-0.02815099246799946,
0.026319708675146103,
-0.015561770647764206,
-0.0012083265464752913,
-0.026630299165844917,
-0.056406933814287186,
0.034965671598911285,
0.005163813475519419,
0.037416644394397736,
0.05820230767130852,
-0.0017535238293930888,
0.08879998326301575,
-0.0152511578053236,
0.020513733848929405,
-0.0323006808757782,
-0.05144655331969261,
0.0032998323440551758,
0.06660729646682739,
0.026701683178544044,
0.05349966883659363,
-0.000753967382479459,
-0.02871255949139595,
0.025804080069065094,
0.06734864413738251,
0.01805970072746277,
0.016705483198165894,
-0.04496855288743973,
-0.039244841784238815,
0.03447888791561127,
0.04785227030515671,
-0.05526088550686836,
-0.0378999300301075,
0.030881714075803757,
0.020557887852191925,
-0.01482130866497755,
0.0022896623704582453,
-0.010233927518129349,
0.027876684442162514,
-0.05000276491045952,
-0.05304984748363495,
0.035623736679553986,
0.019609546288847923,
-0.006685607600957155,
0.012558571062982082,
-0.003062288276851177,
0.013947892934083939,
0.023328406736254692,
0.008864660747349262,
-0.0036038137041032314,
-0.051405128091573715,
0.019646786153316498,
0.038275234401226044,
0.04860704764723778,
-0.037345997989177704,
0.03111518919467926,
-0.015489496290683746,
0.0005142780137248337,
0.03513719141483307,
-0.0390339158475399,
0.0177179966121912,
0.05760449543595314,
0.018878193572163582,
-0.014918666332960129,
0.002998259151354432,
0.02406470477581024,
0.046176180243492126,
0.038475994020700455,
0.0028150088619440794,
0.07512917369604111,
-0.020222797989845276,
0.07450097054243088,
0.077690489590168,
0.021589305251836777,
0.029509834945201874,
0.033774327486753464,
0.06268129497766495,
0.01001869235187769,
-0.012983039021492004,
0.05621703714132309,
-0.06729823350906372,
0.014811684377491474,
-0.04314587265253067,
0.022860189899802208,
-0.026514463126659393,
0.005716787651181221,
0.031547144055366516,
0.039391882717609406,
-0.021015267819166183,
-0.005622461903840303,
-0.006495700683444738,
-0.013535924255847931,
0.023321058601140976,
-0.010468486696481705,
-0.005226545501500368,
-0.010332884266972542,
-0.0026225873734802008,
-0.03165401890873909,
-0.07168333977460861,
-0.05679953843355179,
-0.02308579906821251,
-0.014295343309640884,
-0.009555744007229805,
-0.11591389775276184,
-0.013767409138381481,
-0.07588237524032593,
-0.029324768111109734,
0.036750905215740204,
0.022106323391199112,
0.004896058700978756,
-0.04587247595191002,
-0.010542153380811214,
-0.04571055248379707,
-0.037547726184129715,
-0.05425800755620003,
-0.037905022501945496,
-0.04415994510054588,
-0.06021338328719139,
0.02608846314251423,
0.01783437468111515,
0.03676028177142143,
0.0012807718012481928,
-0.008272872306406498,
-0.016005797311663628,
-0.004412821494042873,
0.06171750649809837,
0.049263421446084976,
-0.022793594747781754,
-0.03649965301156044,
0.04130842909216881,
-0.020734502002596855,
0.014188411645591259,
-0.0008584045572206378,
-0.033914823085069656,
0.0844559520483017,
0.07921406626701355,
0.020644498988986015,
0.003879031864926219,
-0.0051485029980540276,
-0.056428126990795135,
-0.07305949926376343,
-0.02357501909136772,
-0.03661280497908592,
-0.008938691578805447,
-0.031193705275654793,
-0.04370798170566559,
-0.03331025689840317,
-0.03979332372546196,
-0.008539600297808647,
-0.010611070320010185,
0.02573389559984207,
0.018801650032401085,
0.04094420745968819,
0.03017490915954113,
0.02866903506219387,
-0.052541881799697876,
-0.04831031337380409,
0.05521627515554428,
0.015478983521461487,
0.008735748007893562,
-0.0882824957370758,
-0.02144644781947136,
0.025683116167783737,
0.0014210825320333242,
-0.01882997341454029,
0.001196752768009901,
0.07544752955436707,
0.013468699529767036,
-0.005918105132877827,
0.01688317023217678,
-0.02521333657205105,
0.007996952161192894,
-0.0018498679855838418,
0.009027432650327682,
-0.01173669844865799,
-0.030093640089035034,
-0.019903138279914856,
-0.02098091132938862,
0.049977511167526245,
-0.0873483195900917,
-0.06436339765787125,
-0.0013707325560972095,
0.04780157282948494,
0.057880207896232605,
0.008952652104198933,
-0.026531141251325607,
-0.009023723192512989,
-0.06639035046100616,
-0.009255507029592991,
0.037437062710523605,
0.03197586163878441,
0.00020409845456015319,
0.03192344307899475,
0.01750907301902771,
-0.053261373192071915,
0.05260508880019188,
0.03872579336166382,
0.0491340309381485,
-0.009295742958784103,
-0.04604575037956238,
0.026196496561169624,
-0.02634589560329914,
0.03724529594182968,
0.006317168939858675,
-0.02753448858857155,
-0.035141073167324066,
-0.10555937886238098,
-0.016677403822541237,
-0.011586896143853664,
-0.012063808739185333,
-0.011129704304039478,
0.027363503351807594,
-0.024236386641860008,
-0.0222533717751503,
0.024645430967211723,
0.018856456503272057,
0.06261138617992401,
-0.029992438852787018,
0.06156328320503235,
-0.009508393704891205,
0.01069781742990017,
-0.056546758860349655,
-0.01171781774610281,
-0.021047625690698624,
-0.013992729596793652,
-0.0005565010942518711,
0.060551319271326065,
-0.013672892935574055,
0.05830882862210274,
0.0658508911728859,
0.025515994057059288,
-0.040565453469753265,
0.043578293174505234,
0.05623259395360947,
-0.015937795862555504,
-0.04325393587350845,
-0.004377779085189104,
0.01022386085242033,
-0.019034957513213158,
-0.01137715857475996,
-0.012084780260920525,
0.04154975712299347,
0.025050731375813484,
-0.008167045190930367,
0.012723861262202263,
0.000008682904990564566,
-0.03161150962114334,
-0.03890807926654816,
-0.06938786804676056,
-0.008899667300283909,
0.01801106706261635,
-0.025634093210101128,
0.02242213301360607,
0.05548591911792755,
0.012036970816552639,
0.063756063580513,
0.04731309041380882,
-0.015170125290751457,
-0.030303534120321274,
0.03421170637011528,
0.016964230686426163,
-0.025083009153604507,
-0.07957622408866882,
-0.022703252732753754,
0.03466453030705452,
0.04275587201118469,
-0.009400151669979095,
-0.06475035101175308,
0.000571983924601227,
0.05776996910572052,
-0.043807629495859146,
0.049426279962062836,
0.010009856894612312,
0.03720858693122864,
0.07212141156196594,
0.00009294284245697781,
0.044558726251125336,
-0.024897035211324692,
-0.006784595083445311,
0.014563054777681828,
0.015496811829507351,
-0.007449708413332701,
-0.025786947458982468,
-0.04166779667139053,
0.03845012187957764,
0.04733889177441597,
0.05316596478223801,
0.05313408002257347,
-0.01603645831346512,
-0.04716849699616432,
0.003758045844733715,
0.050000134855508804,
-0.0601373091340065,
0.006641526706516743,
0.031712405383586884,
0.04446719214320183,
-0.05385712534189224,
-0.04949311539530754,
-0.0372493751347065,
-0.03076918236911297,
0.032077450305223465,
-0.0010546086123213172,
-0.04158053547143936,
-0.03737792745232582,
0.03449121117591858,
0.009970643557608128,
-0.01913592219352722,
-0.08083512634038925,
0.0615217424929142,
0.008857281878590584,
-0.00820309016853571,
0.05426422134041786,
0.030859995633363724,
0.04688039422035217,
0.0557914674282074,
0.028987348079681396,
0.015391376800835133,
-0.03997353836894035,
0.039770226925611496,
-0.04402836039662361,
-0.0295115876942873,
0.01575942523777485,
-0.060544926673173904,
-0.0325763002038002,
-0.018129095435142517,
-0.03369105979800224,
-0.05743548646569252,
-0.035529542714357376,
0.006999444682151079,
-0.0005647196085192263,
-0.02522512711584568,
-0.017639121040701866,
0.029312079772353172,
-0.016803361475467682,
-0.028080152347683907,
-0.04039229080080986,
-0.03754417225718498,
-0.06089749187231064,
-0.06612822413444519,
0.02280830778181553,
-0.009553303010761738,
0.023753279820084572,
0.022727008908987045,
0.015286857262253761,
0.007060300093144178,
0.016477907076478004,
-0.02463272213935852,
0.014345021918416023,
-0.007072971668094397,
-0.015795718878507614,
-0.02315988764166832,
0.026191992685198784,
0.024168586358428,
0.02095787785947323,
-0.023271765559911728,
0.03525666519999504,
0.008433382958173752,
-0.011258705519139767,
-0.003840880934149027,
0.04589319974184036,
0.010870832949876785,
-0.05240296572446823,
-0.03874414414167404,
-0.010833033360540867,
-0.03161681070923805,
0.03517130762338638,
-0.02585756964981556,
-0.009198522195219994,
0.01878291927278042,
0.022579681128263474,
0.05157579481601715,
0.006077283527702093,
-0.016808191314339638,
0.019915999844670296,
-0.027933867648243904,
0.045243360102176666,
-0.03821229934692383,
0.04902192950248718,
-0.045346420258283615,
0.0009221323998644948,
-0.024343831464648247,
0.015895705670118332,
-0.008481962606310844,
0.06380362063646317,
-0.003964757546782494,
-0.011952411383390427,
-0.0070988512597978115,
0.02034849114716053,
-0.04993332177400589,
0.027023201808333397,
-0.0024197029415518045,
0.01570529118180275,
-0.05325641110539436,
0.04560673236846924,
-0.05635125935077667,
-0.004732028115540743,
-0.03638332709670067,
-0.005171000491827726,
-0.017533190548419952,
-0.013138332404196262,
-0.0371125191450119,
-0.03060244582593441,
0.032000504434108734,
0.03846371918916702,
0.015187910757958889,
0.01824573054909706,
-0.013289048336446285,
0.007468155585229397,
0.02817995660007,
-0.053000468760728836,
-0.023983478546142578,
0.005575151648372412,
-0.018280887976288795,
-0.027825625613331795,
0.05672333762049675,
0.03632785379886627,
-0.06033160910010338,
-0.073027104139328,
0.06483501195907593,
0.001556998468004167,
0.007520538754761219,
0.0007896111346781254,
0.04300982132554054,
0.056297991424798965,
0.033617857843637466,
-0.03681440278887749,
0.004817688371986151,
-0.005875937175005674,
-0.03740455582737923,
0.03930116444826126,
-0.0014447747962549329,
0.02444610930979252,
0.012314906343817711,
-0.03562583029270172,
-0.009801323525607586,
0.06491970270872116,
0.03345923498272896,
0.01871316134929657,
-0.024025706574320793,
-0.04581831768155098,
0.050289254635572433,
-0.0036097050178796053,
-0.04898027330636978,
0.0011621816083788872,
0.033651504665613174,
-0.031089814379811287,
0.055567897856235504,
0.005800541490316391,
-0.005431518889963627,
0.05289687588810921,
0.029681995511054993,
-0.005514221265912056,
0.0471765510737896,
-0.023325655609369278,
0.020943809300661087,
0.04586102440953255,
-0.06670612841844559,
-0.015154171735048294,
-0.03399777412414551,
0.08036878705024719,
-0.05626432225108147,
0.02426157332956791,
0.049167562276124954,
0.014241567812860012,
0.01359053049236536,
-0.026813562959432602,
-0.05236928537487984,
0.020871207118034363,
-0.053523723036050797,
0.07026825845241547,
0.00022286926105152816,
-0.04506825655698776,
0.05726275220513344,
0.00041998832602985203,
-0.07083959877490997,
0.047519512474536896,
0.027530094608664513,
0.04961735010147095,
0.017953626811504364,
0.03520900756120682,
-0.04679783061146736,
0.02083778567612171,
-0.04571932181715965,
0.03727289289236069,
-0.05165117233991623,
-0.01115003414452076,
0.02652585692703724,
-0.029641220346093178,
-0.02328730933368206,
0.0530841164290905,
-0.012313948944211006,
-0.008295655250549316,
0.036379922181367874,
-0.03737154230475426,
-0.04106789454817772,
0.025913599878549576,
0.02160927839577198,
-0.01759580336511135,
0.02098781429231167,
-0.035402487963438034,
0.01763256825506687,
0.026594722643494606,
-0.01571861281991005,
-0.012971300631761551,
-0.0013282452709972858,
0.03473181650042534,
-0.05563320219516754,
-0.03008541837334633,
0.042366500943899155,
0.0005399134242907166,
-0.02829885669052601,
0.020927567034959793,
0.03679715096950531,
0.027284547686576843,
0.014811775647103786,
-0.011821734718978405,
0.0095914825797081,
-0.04535806179046631,
-0.018616754561662674,
0.002051741350442171,
-0.01531854085624218,
0.024601049721240997,
-0.012706299312412739,
0.026689019054174423,
0.021414611488580704,
0.021552078425884247,
-0.013480466790497303,
-0.01748666726052761,
-0.04384990781545639,
0.018787488341331482,
-0.027156801894307137,
0.012500674463808537,
0.0009716917993500829,
-0.06662323325872421,
-0.0521133653819561,
0.0007866330561228096,
-0.019545773044228554,
0.027851780876517296,
-0.052637118846178055,
-0.0016601952956989408,
0.04763403534889221,
-0.012535316869616508,
-0.048979829996824265,
-0.10060814023017883,
-0.026306798681616783,
-0.025702008977532387,
0.002157237147912383,
0.03180529922246933,
-0.030047088861465454,
0.029027927666902542,
-0.019131967797875404,
-0.03990311548113823,
0.038653723895549774,
0.00427106162533164,
-0.027555076405405998,
0.03399425372481346,
0.03884868323802948,
-0.0423893928527832,
0.014085939154028893,
0.03771784156560898,
-0.04255710169672966,
0.006725509185343981,
0.019520988687872887,
0.024874137714505196,
0.016431080177426338,
-0.0017234584083780646,
-0.040828876197338104,
-0.013814528472721577,
-0.06183433532714844,
-0.04363541305065155,
-0.05962396785616875,
-0.009864084422588348,
0.053163621574640274
] |
Broadus20/DialoGPT-small-joshua | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 12 | null | ---
tags:
conversational
---
#Harry Potter DialoGPT Model | [
-0.029741521924734116,
0.002897911239415407,
0.01091400533914566,
0.03721969947218895,
0.010749089531600475,
0.020717674866318703,
0.0025528871919959784,
0.015362193807959557,
-0.01599299907684326,
0.007213645149022341,
0.030757982283830643,
-0.035539787262678146,
0.011860830709338188,
0.03561744466423988,
-0.02007669396698475,
-0.025027481839060783,
-0.04077756404876709,
-0.008715914562344551,
-0.009420705027878284,
-0.024118468165397644,
0.021930523216724396,
0.01881687343120575,
-0.0235780980437994,
0.03468391299247742,
0.0015319854719564319,
0.01787128858268261,
-0.01980397291481495,
0.007815816439688206,
0.028697751462459564,
-0.05162028968334198,
0.00689396308735013,
-0.05065996199846268,
-0.039406754076480865,
-0.018268810585141182,
-0.03073655255138874,
-0.03137553110718727,
0.01062045805156231,
0.00012661199434660375,
-0.0034967330284416676,
0.028811456635594368,
-0.023789942264556885,
0.008517669513821602,
-0.0012836931273341179,
-0.058682896196842194,
0.0831037163734436,
-0.0036365576088428497,
-0.045643534511327744,
-0.014189044944941998,
0.020411653444170952,
-0.042232315987348557,
-0.03135906159877777,
-0.06056193634867668,
-0.059978049248456955,
-0.020084042102098465,
0.025639230385422707,
-0.0447203554213047,
-0.07334551215171814,
-0.009829838760197163,
0.09566676616668701,
-0.01741825044155121,
-0.0021506166085600853,
-0.004721554461866617,
-0.062159135937690735,
0.0036116919945925474,
0.023175867274403572,
-0.08628078550100327,
0.024434862658381462,
-0.03329288214445114,
0.013076539151370525,
-0.03331732377409935,
0.05717743560671806,
-0.05699673667550087,
0.020913146436214447,
-0.0846589133143425,
-0.003766076173633337,
0.008694903925061226,
0.06566742807626724,
0.05844197794795036,
-0.052855052053928375,
0.05420505627989769,
0.03818356618285179,
0.01449869479984045,
0.03526904061436653,
-0.014024194329977036,
-0.04144854098558426,
0.04455289617180824,
-0.04475811868906021,
-0.0141438664868474,
0.003535612253472209,
0.042086414992809296,
-0.02538592368364334,
-0.05252658203244209,
-0.04208550974726677,
-0.015328806824982166,
0.0038707838393747807,
0.05920477956533432,
0.023689132183790207,
-0.03388368710875511,
0.0131145054474473,
0.05151247978210449,
0.02211674116551876,
0.04566771909594536,
-0.02991611510515213,
0.0326288677752018,
-0.01970049738883972,
0.027800559997558594,
0.03035939484834671,
-0.02284068800508976,
-0.03174136206507683,
0.026167092844843864,
0.009911423549056053,
-0.04088020697236061,
-0.032250627875328064,
0.043307363986968994,
0.02757021225988865,
0.015241592191159725,
0.027399906888604164,
-0.03768765926361084,
-0.040079470723867416,
-0.05791865661740303,
0.04517315700650215,
-0.00811917707324028,
0.004877607803791761,
-0.0017353419680148363,
-0.06279371678829193,
-0.004004690330475569,
-0.047111015766859055,
-0.02902541123330593,
-0.012457744218409061,
0.0047051431611180305,
0.02589118294417858,
0.03706635534763336,
-0.029698945581912994,
-0.06143039092421532,
0.018506530672311783,
0.04669935628771782,
-0.06054993346333504,
-0.00299580255523324,
0.04701267182826996,
0.09498850256204605,
-0.07394348084926605,
-0.024969113990664482,
0.013409260660409927,
0.011272095143795013,
-0.024089191108942032,
0.004491982515901327,
-0.000955259136389941,
-0.014955012127757072,
-0.060425981879234314,
-0.011444778181612492,
0.010941372253000736,
-0.054571326822042465,
-0.015027797780930996,
0.04571590945124626,
-0.015737619251012802,
0.007015608251094818,
-0.03444064036011696,
-0.0004171079199295491,
-0.024563703685998917,
-0.037457678467035294,
-0.05134546384215355,
0.03645118698477745,
-0.0211435928940773,
-0.028440935537219048,
-0.05928271263837814,
-0.04185623675584793,
0.016360891982913017,
0.07290718704462051,
0.012826468795537949,
-0.01911008730530739,
-0.02543455921113491,
0.04759151488542557,
0.0653679147362709,
0.04228101670742035,
-0.027097469195723534,
0.022758355364203453,
0.030905626714229584,
0.015643272548913956,
-0.029507944360375404,
0.06387408822774887,
0.014585129916667938,
-0.03808172792196274,
-0.04950089752674103,
-0.01968383975327015,
0.020256614312529564,
-0.013341065496206284,
0.02068481221795082,
0.04091709479689598,
-0.03678065538406372,
-0.04691234230995178,
0.018860427662730217,
0.05527208372950554,
-0.027812696993350983,
-0.0048310826532542706,
-0.012478960677981377,
-0.013737183064222336,
-0.02776620164513588,
0.039791155606508255,
-0.044285811483860016,
0.0039660693146288395,
-0.022736310958862305,
-0.00037030118983238935,
0.022330565378069878,
-0.0046866945922374725,
-0.00704561360180378,
0.035339098423719406,
0.0005153013626113534,
0.0851815938949585,
-0.022981878370046616,
0.026171553879976273,
-0.028144730255007744,
-0.00568545563146472,
-0.029608679935336113,
0.02440090849995613,
0.022400859743356705,
0.04339216649532318,
-0.05215348303318024,
-0.06037897989153862,
0.02843913435935974,
0.0641995444893837,
0.027035782113671303,
0.0313413105905056,
-0.018381813541054726,
-0.007559194695204496,
0.028890419751405716,
0.038396041840314865,
-0.03208320960402489,
-0.0008965953602455556,
-0.008075998164713383,
0.02707226574420929,
-0.008408191613852978,
-0.026700669899582863,
-0.037278156727552414,
0.002230822341516614,
-0.029341282323002815,
-0.08308999985456467,
0.049453940242528915,
0.031060021370649338,
-0.01401528064161539,
0.019747665151953697,
-0.017411720007658005,
0.019046641886234283,
0.03217851743102074,
0.002878350904211402,
0.004164853598922491,
-0.07456031441688538,
-0.004428816959261894,
0.0050292471423745155,
0.089205801486969,
-0.048104509711265564,
0.008914034813642502,
0.0156853087246418,
0.021723320707678795,
0.03555922210216522,
-0.0020984348375350237,
0.03141055628657341,
0.07029911875724792,
0.037300366908311844,
-0.0336635485291481,
0.03881330043077469,
0.004556940868496895,
0.05282016471028328,
0.048756714910268784,
-0.0036020134575664997,
0.05540091171860695,
-0.002006043214350939,
0.031962521374225616,
0.03327058255672455,
0.016586434096097946,
-0.035010725259780884,
0.04027934744954109,
0.07787573337554932,
0.002823460381478071,
0.03117859922349453,
0.03479984030127525,
-0.00017115670198109,
0.00362824066542089,
-0.03713599592447281,
-0.004204549826681614,
0.012471758760511875,
-0.01667163521051407,
0.06247226521372795,
0.01057166326791048,
-0.012928360141813755,
-0.011077710427343845,
-0.014443209394812584,
-0.013706919737160206,
0.0386800654232502,
-0.02032356709241867,
-0.015162552706897259,
-0.019573519006371498,
-0.0007332955137826502,
0.013074193149805069,
-0.06328383833169937,
-0.06840098649263382,
-0.007533201482146978,
-0.04510139673948288,
0.00918608345091343,
-0.10080815851688385,
-0.038169682025909424,
-0.05166684836149216,
-0.015771491453051567,
0.04404160752892494,
0.00975982565432787,
0.028125576674938202,
0.0010349954245612025,
-0.0025391196832060814,
-0.02670256420969963,
-0.054028674960136414,
-0.049395740032196045,
-0.01106287445873022,
-0.01181266363710165,
-0.06070571765303612,
0.032729778438806534,
0.02971334010362625,
0.05256306007504463,
0.004858735483139753,
-0.02662452682852745,
-0.044805459678173065,
-0.00887239072471857,
0.0497751347720623,
0.029551787301898003,
-0.04016390070319176,
-0.026265010237693787,
-0.001489279675297439,
0.014146141707897186,
0.009280753321945667,
-0.026842331513762474,
-0.05150504782795906,
0.06722544878721237,
0.03548131883144379,
0.014571625739336014,
0.00578528456389904,
-0.0054215737618505955,
-0.038196101784706116,
-0.01922968588769436,
-0.0414632149040699,
-0.04507899656891823,
-0.006193551234900951,
-0.035271335393190384,
-0.05877981707453728,
-0.02765965461730957,
-0.06143036484718323,
0.00878569670021534,
-0.0048985653556883335,
-0.00390666164457798,
0.02024461142718792,
0.023143397644162178,
0.0361962765455246,
0.02375076338648796,
-0.026368392631411552,
-0.008644641377031803,
0.026502320542931557,
-0.003202561754733324,
-0.024312222376465797,
-0.08255341649055481,
-0.06038627028465271,
0.00964975543320179,
0.01912025175988674,
-0.010841771960258484,
-0.0064820172265172005,
0.025290245190262794,
0.03281015902757645,
0.0021223039366304874,
0.024514326825737953,
-0.054297201335430145,
0.012923593632876873,
-0.04282113164663315,
-0.043130964040756226,
-0.031131135299801826,
-0.0262053944170475,
-0.021805524826049805,
-0.005782053340226412,
0.04525591433048248,
-0.08300737291574478,
-0.030191322788596153,
-0.012458902783691883,
0.01006398256868124,
0.024301644414663315,
0.003498320234939456,
-0.05756189674139023,
0.004723041318356991,
-0.0378185510635376,
-0.02843606285750866,
-0.0242582019418478,
-0.018978571519255638,
0.004424836952239275,
0.02840200439095497,
0.03483505919575691,
-0.042724329978227615,
0.04889284819364548,
0.006976097356528044,
0.059102192521095276,
0.06659369170665741,
-0.022012488916516304,
0.03528089076280594,
-0.04932142049074173,
0.03867136687040329,
0.0044399648904800415,
-0.04327457398176193,
-0.054247453808784485,
-0.09985020011663437,
-0.05565556511282921,
0.02938268706202507,
-0.011372166685760021,
0.008998023346066475,
0.035132378339767456,
-0.056886039674282074,
-0.04564371705055237,
0.020946308970451355,
0.036063700914382935,
0.04517746344208717,
-0.03651260957121849,
0.05826662853360176,
0.009597287513315678,
0.006427688058465719,
-0.05328047275543213,
0.006418246775865555,
-0.058230750262737274,
-0.026890167966485023,
-0.005763471592217684,
0.04909897223114967,
0.016144316643476486,
0.07249517738819122,
0.0657673254609108,
0.05121259391307831,
-0.05739239603281021,
0.06035646051168442,
0.07896686345338821,
-0.006723104044795036,
-0.03297455981373787,
-0.008797072805464268,
-0.010112132877111435,
-0.0064157359302043915,
0.006611246149986982,
-0.015439359471201897,
0.022349193692207336,
0.04025143012404442,
0.0008001865935511887,
0.0025687594898045063,
0.031356461346149445,
-0.00548214977607131,
-0.010694477707147598,
-0.07693769782781601,
0.006907286122441292,
-0.025022277608513832,
-0.027955494821071625,
0.051973238587379456,
0.04010636359453201,
0.004386407323181629,
0.05042436346411705,
0.018675722181797028,
-0.0055339462123811245,
-0.0500386506319046,
0.03445115685462952,
0.022877050563693047,
-0.051364488899707794,
-0.04938087239861488,
-0.05323508381843567,
0.03697257488965988,
0.055060677230358124,
-0.006082678213715553,
-0.09002161026000977,
0.02308320254087448,
0.04773210734128952,
-0.05441197380423546,
0.04540693759918213,
0.00951961986720562,
0.06465119123458862,
0.013903049752116203,
0.012107953429222107,
0.03444346413016319,
-0.061050329357385635,
0.01772414892911911,
-0.012227702885866165,
0.04290512576699257,
-0.046211134642362595,
-0.04223301261663437,
-0.06692209839820862,
0.04151931032538414,
0.027614470571279526,
0.020640375092625618,
0.00981722492724657,
-0.0460694283246994,
-0.02634662762284279,
-0.008693275041878223,
0.014268084429204464,
-0.008464653976261616,
0.02558533474802971,
0.017899468541145325,
0.05547364056110382,
-0.06338494271039963,
-0.00045601342571899295,
0.02537018619477749,
0.013825535774230957,
0.01592104882001877,
-0.02708202786743641,
-0.051916711032390594,
-0.006523940246552229,
0.03182084485888481,
-0.023571159690618515,
0.00718621164560318,
-0.09570937603712082,
0.013994588516652584,
-0.024741871282458305,
-0.024495426565408707,
0.06761264055967331,
0.04706360399723053,
0.0513884611427784,
0.07082443684339523,
-0.011053093709051609,
0.04403418302536011,
-0.020082108676433563,
0.046441420912742615,
-0.03557867184281349,
-0.025178655982017517,
-0.0005498069222085178,
-0.09264878928661346,
-0.025718646124005318,
-0.023710794746875763,
-0.024560460820794106,
-0.04522707313299179,
0.013161878101527691,
-0.003932619001716375,
-0.024532444775104523,
0.0016504621598869562,
-0.0027930939104408026,
0.03414381667971611,
-0.028909815475344658,
-0.041330937296152115,
-0.014405001886188984,
-0.012964780442416668,
-0.08400215953588486,
-0.05006096139550209,
0.03088284283876419,
-0.034505922347307205,
0.013052968308329582,
-0.008487526327371597,
0.011291664093732834,
0.06512125581502914,
0.01302503701299429,
-0.011805768124759197,
0.009849189780652523,
0.0353422574698925,
-0.04470639303326607,
-0.016621176153421402,
0.0005117259570397437,
0.007016419433057308,
0.016008006408810616,
-0.03577571362257004,
0.044916823506355286,
0.0034226425923407078,
-0.05269594117999077,
-0.0318385548889637,
0.042685143649578094,
0.006290782243013382,
-0.07609575986862183,
-0.00547437509521842,
-0.016413701698184013,
-0.03885843604803085,
0.00850039254873991,
-0.042616866528987885,
-0.01878633350133896,
-0.0027289530262351036,
0.029727160930633545,
0.02354276366531849,
-0.0027777061332017183,
-0.02180706337094307,
0.009213135577738285,
-0.013104813173413277,
0.03740963339805603,
-0.06372438371181488,
0.01795824244618416,
-0.029832663014531136,
0.029946910217404366,
-0.031210269778966904,
0.009288165718317032,
-0.03913067281246185,
0.049199141561985016,
-0.027591820806264877,
-0.01130092516541481,
0.00384057080373168,
-0.017978306859731674,
0.008256752043962479,
0.03162002936005592,
0.006016057450324297,
0.006259078625589609,
-0.04545734450221062,
0.0750153437256813,
-0.06153516471385956,
0.02171250991523266,
-0.02137557789683342,
-0.025670170783996582,
-0.026263181120157242,
0.011321247555315495,
-0.005824776366353035,
-0.056056201457977295,
0.023889604955911636,
0.026264943182468414,
0.012247741222381592,
0.052817970514297485,
0.008296649903059006,
-0.00015513901598751545,
0.03959251195192337,
-0.05242155119776726,
-0.04606572538614273,
0.015108807012438774,
-0.0073347194120287895,
0.014778799377381802,
0.0555855892598629,
0.02744595892727375,
-0.05383533984422684,
-0.03429272398352623,
0.03648056462407112,
0.043834276497364044,
0.01452814880758524,
0.01985873654484749,
0.039142072200775146,
0.04992379993200302,
0.06842325627803802,
-0.00790935568511486,
-0.010536185465753078,
0.020431844517588615,
-0.011303507722914219,
-0.015038642100989819,
-0.0008221181924454868,
0.0016682448331266642,
0.01919759064912796,
-0.02320714108645916,
-0.018922626972198486,
0.07611240446567535,
-0.006869502365589142,
-0.00042392819887027144,
0.003268999746069312,
-0.036116428673267365,
0.05884217843413353,
0.011719055473804474,
-0.04924458637833595,
-0.006273424252867699,
0.021645350381731987,
-0.03306836262345314,
0.02583126723766327,
-0.016760502010583878,
0.007728052791208029,
0.03979664295911789,
0.022938411682844162,
0.01679094508290291,
0.021169528365135193,
-0.02840391919016838,
-0.0012129759415984154,
0.019116245210170746,
-0.04396897181868553,
-0.029177352786064148,
-0.04638509079813957,
0.0366622656583786,
-0.04401890188455582,
0.04931894317269325,
0.01987265609204769,
0.04082122817635536,
-0.007131674792617559,
-0.0384882353246212,
-0.019154811277985573,
-0.023125458508729935,
-0.04450547695159912,
0.06066378206014633,
-0.022348221391439438,
-0.03561290353536606,
0.07780440151691437,
0.034415360540151596,
-0.0775097981095314,
0.03132866695523262,
0.032146550714969635,
0.04286288097500801,
0.018084313720464706,
0.06140468642115593,
-0.051580630242824554,
0.010295776650309563,
-0.03115767054259777,
0.0017846286064013839,
-0.033972062170505524,
-0.03172115609049797,
-0.00740582961589098,
-0.030950337648391724,
0.006995694246143103,
0.035755667835474014,
-0.029052214697003365,
0.024655556306242943,
0.011591273359954357,
-0.0378880612552166,
-0.043095193803310394,
-0.018953461199998856,
0.029429404065012932,
-0.0073539214208722115,
-0.007887803018093109,
-0.0009397879475727677,
0.018899500370025635,
0.027340948581695557,
-0.01658153533935547,
-0.055793553590774536,
0.01963219791650772,
-0.021186862140893936,
-0.04925641417503357,
-0.06060366332530975,
0.05818462371826172,
0.025295568630099297,
-0.01820932701230049,
-0.0016883921343833208,
0.03274117410182953,
0.009957142174243927,
0.03435194119811058,
-0.011451725848019123,
0.02532973513007164,
-0.07689069956541061,
-0.0002820703957695514,
0.0297210905700922,
0.022295508533716202,
-0.018890008330345154,
-0.009269025176763535,
0.0075233555398881435,
0.06716165691614151,
0.053066592663526535,
0.002839896595105529,
-0.05059901997447014,
-0.02638562209904194,
-0.015211474150419235,
-0.0394243448972702,
0.04660218209028244,
0.017705664038658142,
-0.05760680139064789,
-0.025465721264481544,
-0.009286493062973022,
0.0019475154113024473,
0.020831508561968803,
-0.046615324914455414,
0.02436448261141777,
0.008061273954808712,
-0.005718952510505915,
-0.03442401811480522,
-0.0860079750418663,
-0.03936896473169327,
-0.020318590104579926,
0.03015795722603798,
0.035842131823301315,
-0.06958190351724625,
0.017965679988265038,
-0.032551392912864685,
-0.016704779118299484,
0.044486191123723984,
0.009269733913242817,
-0.015344816260039806,
0.07968179136514664,
0.04239124432206154,
-0.0467449314892292,
0.05573337525129318,
0.021719645708799362,
-0.048361390829086304,
0.051311053335666656,
0.011805925518274307,
0.029103875160217285,
-0.002433457411825657,
0.015329953283071518,
-0.008505058474838734,
0.00864878948777914,
-0.02067505568265915,
-0.04558683559298515,
0.0005909524625167251,
0.009200875647366047,
0.03654094040393829
] |
Brykee/DialoGPT-medium-Morty | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 10 | null | ---
tags:
- conversational
---
# Morty DialoGPT Model | [
-0.03806515783071518,
0.024888930842280388,
-0.008238484151661396,
0.03387339413166046,
0.014492363668978214,
0.01041787676513195,
0.007610030472278595,
0.017734425142407417,
-0.008725607767701149,
0.015520081855356693,
0.0570480041205883,
-0.034636806696653366,
0.010876594111323357,
0.04355357214808464,
-0.04246704280376434,
-0.026367608457803726,
-0.0217563696205616,
-0.0004259370034560561,
-0.03395134583115578,
-0.014099800027906895,
0.016581835225224495,
0.00348845892585814,
-0.015863021835684776,
0.0366830937564373,
-0.0011433996260166168,
0.0035657885018736124,
-0.0012622789945453405,
0.010907209478318691,
0.010242371819913387,
-0.04220213741064072,
0.022580381482839584,
-0.04853782430291176,
-0.001233781105838716,
-0.018430432304739952,
-0.03260936588048935,
-0.03991095721721649,
0.02783767320215702,
-0.0016383661422878504,
-0.0005625927005894482,
0.035055212676525116,
-0.025512084364891052,
-0.014351049438118935,
0.01243516057729721,
-0.027473436668515205,
0.07052058726549149,
-0.004285966511815786,
-0.04403890669345856,
-0.03389619663357735,
0.021158477291464806,
-0.04001713916659355,
-0.02566421777009964,
-0.04468027874827385,
-0.04996973276138306,
0.00015028724737931043,
0.018913215026259422,
-0.057245735079050064,
-0.07010495662689209,
-0.016599489375948906,
0.09286429733037949,
-0.00937690120190382,
-0.011881393380463123,
-0.005824996158480644,
-0.06441488862037659,
0.013636150397360325,
0.03349800780415535,
-0.07065685838460922,
0.004628244787454605,
-0.042094841599464417,
0.018480123952031136,
-0.019855564460158348,
0.053468555212020874,
-0.037249866873025894,
0.015823427587747574,
-0.08687421679496765,
-0.0269460529088974,
-0.0011918717063963413,
0.05539305508136749,
0.05373920872807503,
-0.04843086749315262,
0.032968658953905106,
0.05098011717200279,
-0.0024719496723264456,
0.061842430382966995,
-0.01720375567674637,
-0.040179088711738586,
0.03620818257331848,
-0.049741797149181366,
0.00022504263324663043,
-0.011335919611155987,
0.03650447353720665,
-0.02998390421271324,
-0.04794713854789734,
-0.03411826118826866,
-0.011481513269245625,
0.004138684831559658,
0.04666757211089134,
0.025655506178736687,
-0.025578806176781654,
0.033012401312589645,
0.04395999386906624,
0.02811134234070778,
0.059511326253414154,
-0.019947078078985214,
0.027689624577760696,
-0.012658840976655483,
0.03343677893280983,
0.01897946558892727,
-0.01389753445982933,
-0.0415833443403244,
0.022780325263738632,
0.01564950682222843,
-0.05401794984936714,
-0.023955486714839935,
0.029027583077549934,
0.007399320602416992,
0.01058435533195734,
0.05968240275979042,
-0.03369791805744171,
-0.041099339723587036,
-0.055819589644670486,
0.06350727379322052,
-0.011890274472534657,
-0.007727224379777908,
-0.005520930513739586,
-0.05954400822520256,
0.005974356550723314,
-0.03719329461455345,
-0.004627693444490433,
-0.01723494753241539,
0.006176465190947056,
0.016550550237298012,
0.03790132701396942,
-0.027846548706293106,
-0.03942223638296127,
0.011099410243332386,
0.04918868839740753,
-0.0666450560092926,
0.004108549561351538,
0.042354900389909744,
0.09965251386165619,
-0.08886466920375824,
-0.05040479823946953,
0.0031268452294170856,
0.015056050382554531,
-0.03452672064304352,
-0.006376180332154036,
0.00021720532095059752,
-0.01175584364682436,
-0.03620082139968872,
-0.0018390845507383347,
0.03655268996953964,
-0.05114716291427612,
0.0036357229109853506,
0.0511908233165741,
0.004478441085666418,
0.01069727074354887,
-0.026030294597148895,
0.0036499593406915665,
-0.021374588832259178,
-0.018016206100583076,
-0.06072165071964264,
0.039416562765836716,
-0.034152802079916,
-0.05279706418514252,
-0.029741447418928146,
-0.03527617081999779,
0.0244306568056345,
0.07218079268932343,
0.009613482281565666,
-0.002701814053580165,
-0.024210305884480476,
0.038646064698696136,
0.046944450587034225,
0.04154296591877937,
-0.016848931089043617,
0.03424810990691185,
0.053521230816841125,
0.01951337791979313,
-0.054056230932474136,
0.07012446969747543,
0.01388756837695837,
-0.036663271486759186,
-0.05002608150243759,
-0.01913086324930191,
0.03320075944066048,
-0.026139259338378906,
0.010503917932510376,
0.035543158650398254,
-0.02152494713664055,
-0.030164122581481934,
0.0014887260040268302,
0.03765292838215828,
-0.01657847873866558,
-0.0024583193007856607,
-0.007467641029506922,
-0.01952221430838108,
-0.02811559848487377,
0.014580555260181427,
-0.04209818318486214,
-0.02445893920958042,
-0.03475068137049675,
-0.007614235859364271,
0.03918716311454773,
-0.011440676636993885,
0.009101441130042076,
0.04012729972600937,
-0.01657271385192871,
0.05488099902868271,
-0.031532980501651764,
0.01955520175397396,
-0.04088868945837021,
-0.018846750259399414,
-0.04288201034069061,
0.04624537006020546,
0.02352220006287098,
0.05418004095554352,
-0.04361754283308983,
-0.049519818276166916,
0.028446147218346596,
0.05445811524987221,
0.03708411753177643,
0.013962382450699806,
-0.01006670668721199,
0.005422339309006929,
0.036418333649635315,
0.028689706698060036,
-0.0484054870903492,
0.018157711252570152,
0.009111064486205578,
0.022259538993239403,
-0.010378084145486355,
-0.01634986139833927,
-0.039439477026462555,
0.004745649639517069,
-0.05096500366926193,
-0.07027404010295868,
0.05652931332588196,
0.029964031651616096,
-0.007374906912446022,
0.04448772594332695,
0.005293307825922966,
-0.0006877382402308285,
0.03947358950972557,
0.016034629195928574,
0.023418260738253593,
-0.09204160422086716,
0.006411638110876083,
0.03698214143514633,
0.08462494611740112,
-0.05084310472011566,
0.015795627608895302,
0.02229858934879303,
0.024528073146939278,
0.026784200221300125,
-0.03327782452106476,
0.03896039351820946,
0.04513011500239372,
0.050357721745967865,
-0.010568763129413128,
0.031170418485999107,
-0.00544113339856267,
0.024332620203495026,
0.05953975394368172,
-0.01428515650331974,
0.06982319056987762,
-0.007924892008304596,
0.019775988534092903,
0.05137725546956062,
0.025858858600258827,
-0.02273501083254814,
0.0171328354626894,
0.07060981541872025,
-0.006297416985034943,
0.03363431990146637,
0.03210659697651863,
-0.006068632006645203,
-0.005037081427872181,
-0.04003160446882248,
0.0013096543261781335,
0.006914760451763868,
-0.03230436518788338,
0.062284886837005615,
0.010234465822577477,
-0.010073653422296047,
0.008013508282601833,
0.0013411430409178138,
-0.018715450540184975,
0.04074667766690254,
0.001197733567096293,
-0.0347597599029541,
-0.003984020557254553,
-0.027528008446097374,
0.024491533637046814,
-0.05039382353425026,
-0.05077395588159561,
-0.023473866283893585,
-0.046372391283512115,
0.0004821758484467864,
-0.10216924548149109,
-0.04087192565202713,
-0.07956109195947647,
-0.00585112813860178,
0.027170419692993164,
0.011264453642070293,
0.007011988665908575,
0.011436168104410172,
0.005733661353588104,
-0.02212294191122055,
-0.06488092988729477,
-0.04690054431557655,
-0.031624868512153625,
-0.016388533636927605,
-0.0429428331553936,
0.02887221798300743,
0.03371095657348633,
0.040614351630210876,
-0.0020856831688433886,
-0.01691182143986225,
-0.056806620210409164,
-0.023977383971214294,
0.027471119537949562,
0.01882794313132763,
-0.04560193046927452,
-0.03381555899977684,
0.015256522223353386,
0.003349639242514968,
-0.005189155228435993,
-0.014855735003948212,
-0.05318629369139671,
0.06185032054781914,
0.046379454433918,
0.0007953377207741141,
0.013860339298844337,
-0.0016777663258835673,
-0.03294263407588005,
-0.03745817393064499,
-0.07094642519950867,
-0.02558721974492073,
-0.007971296086907387,
-0.038026392459869385,
-0.047453608363866806,
-0.034664809703826904,
-0.04608163237571716,
-0.0148777449503541,
-0.012404403649270535,
0.0093972347676754,
0.022761860862374306,
0.02747386135160923,
0.03930508717894554,
0.02363819070160389,
-0.015867209061980247,
-0.011076506227254868,
0.03836889564990997,
-0.027655821293592453,
-0.010312194004654884,
-0.06443940848112106,
-0.038808342069387436,
0.025486592203378677,
0.01563720777630806,
0.003269725479185581,
-0.01604883372783661,
0.02024666778743267,
0.03657493740320206,
-0.002213982632383704,
0.0197767224162817,
-0.05208937078714371,
0.0017981241689994931,
-0.04129348322749138,
-0.025332342833280563,
-0.04432014375925064,
-0.03701267018914223,
-0.0031124658416956663,
-0.016896506771445274,
0.03643428906798363,
-0.10147076845169067,
-0.02629346400499344,
-0.027118759229779243,
0.018676025792956352,
0.045985691249370575,
-0.0015599915059283376,
-0.06536396592855453,
-0.006201185751706362,
-0.03890876844525337,
-0.015249047428369522,
0.005365935154259205,
-0.028539327904582024,
-0.004496907815337181,
0.024933280423283577,
-0.0012818009126931429,
-0.025921093299984932,
0.06240592524409294,
0.016402212902903557,
0.05522742494940758,
0.054168201982975006,
-0.0349450409412384,
0.03213440999388695,
-0.01836073212325573,
0.033207375556230545,
-0.0160853061825037,
-0.030092861503362656,
-0.025899406522512436,
-0.10340199619531631,
-0.05664289370179176,
0.02905520424246788,
-0.013925601728260517,
0.02672814019024372,
0.03145020827651024,
-0.06264670938253403,
-0.013280513696372509,
0.010166078805923462,
0.0416882149875164,
0.043940622359514236,
-0.034830477088689804,
0.061319928616285324,
-0.010645288042724133,
0.026026641950011253,
-0.05284486338496208,
-0.005060288123786449,
-0.052878350019454956,
-0.026475468650460243,
-0.0052445149049162865,
0.04950776323676109,
-0.00682519655674696,
0.06221857666969299,
0.0770219936966896,
0.03193233907222748,
-0.05533606559038162,
0.04594280943274498,
0.07228574901819229,
-0.036332447081804276,
-0.03474860265851021,
-0.0022147931158542633,
0.015167392790317535,
-0.015985416248440742,
-0.012703970074653625,
-0.023742621764540672,
0.035021472722291946,
0.03541702404618263,
0.0003927537763956934,
0.007185637950897217,
0.005792759824544191,
-0.023099081590771675,
-0.02680724672973156,
-0.0776418000459671,
-0.013926233164966106,
-0.009235556237399578,
-0.02501857653260231,
0.04498743265867233,
0.03649578616023064,
0.007589738816022873,
0.07108214497566223,
0.017907558009028435,
-0.036018699407577515,
-0.04859907552599907,
0.029659075662493706,
0.02069850265979767,
-0.04818667843937874,
-0.04391587898135185,
-0.050523243844509125,
0.014131756499409676,
0.05160142108798027,
-0.02320837415754795,
-0.0796356126666069,
0.02267405204474926,
0.045081887394189835,
-0.027255667373538017,
0.052608244121074677,
-0.011584010906517506,
0.050215329974889755,
0.02674243040382862,
0.004895071033388376,
0.052159491926431656,
-0.06335534155368805,
0.02518577128648758,
-0.021998196840286255,
0.015345130115747452,
-0.049182552844285965,
-0.04590987786650658,
-0.04111472889780998,
0.04199674725532532,
0.0357118584215641,
0.012783593498170376,
0.019013945013284683,
-0.04637789726257324,
-0.045332539826631546,
-0.0032042525708675385,
0.03825628012418747,
-0.017891505733132362,
0.017467200756072998,
0.043187517672777176,
0.06358776241540909,
-0.0636572539806366,
0.010695199482142925,
0.005704538896679878,
0.014113363809883595,
0.01304231770336628,
-0.014581012539565563,
-0.04255932196974754,
-0.013209955766797066,
0.01971290074288845,
-0.027038611471652985,
-0.021067697554826736,
-0.08306857198476791,
0.02275952696800232,
-0.034634124487638474,
-0.03233426809310913,
0.07076051831245422,
0.051002707332372665,
0.06438598036766052,
0.0571003295481205,
-0.019975055009126663,
0.041301656514406204,
-0.028065521270036697,
0.028508063405752182,
-0.015391224063932896,
-0.029149210080504417,
0.009407106786966324,
-0.07469963282346725,
-0.025739438831806183,
-0.03681744635105133,
-0.04309312626719475,
-0.041406597942113876,
0.009550045244395733,
0.003456170903518796,
-0.01236837636679411,
-0.010346117429435253,
0.024970514699816704,
0.023953841999173164,
-0.014564091339707375,
-0.03268442302942276,
-0.007395509164780378,
-0.019132571294903755,
-0.06792537868022919,
-0.06968873739242554,
0.022644978016614914,
-0.031750936061143875,
0.008255606517195702,
-0.0032148663885891438,
0.03008068911731243,
0.051889125257730484,
-0.014790267683565617,
-0.03266316279768944,
0.03587188944220543,
0.031139127910137177,
-0.03864824399352074,
-0.02395392209291458,
0.0089533356949687,
0.01674431934952736,
0.03781752288341522,
-0.03794805333018303,
0.04143581911921501,
0.0019139236537739635,
-0.05850055813789368,
-0.024745438247919083,
0.03255310282111168,
0.0021458365954458714,
-0.06804563850164413,
0.001732015167362988,
-0.0382889062166214,
-0.03634358569979668,
0.0007938841008581221,
-0.056519996374845505,
-0.01026227418333292,
-0.012294339947402477,
0.04718922823667526,
0.03614765778183937,
-0.006406749598681927,
-0.011427287943661213,
0.004798635840415955,
-0.0187402181327343,
0.01700866036117077,
-0.08263679593801498,
0.02226646989583969,
-0.03426291421055794,
0.03209898993372917,
-0.02451111562550068,
0.01736229844391346,
-0.033547352999448776,
0.05077626183629036,
-0.03056528978049755,
-0.014434276148676872,
-0.011443542316555977,
-0.00645308056846261,
-0.006528932135552168,
0.036300111562013626,
0.019194303080439568,
0.014088045805692673,
-0.040635932236909866,
0.06576738506555557,
-0.04091184213757515,
0.01127728633582592,
-0.020327823236584663,
-0.02777974307537079,
-0.018220720812678337,
-0.01750999502837658,
0.010766841471195221,
-0.06265273690223694,
0.0288202166557312,
0.03041788935661316,
0.04082806408405304,
0.0528096929192543,
0.008750684559345245,
0.0068213436752557755,
0.031952813267707825,
-0.05667024478316307,
-0.04442431777715683,
-0.004924141801893711,
0.011257542297244072,
0.024058131501078606,
0.056803613901138306,
0.03868367522954941,
-0.05116957426071167,
-0.03376161307096481,
0.02920715883374214,
0.018807008862495422,
0.005087382160127163,
-0.0014703056076541543,
0.03874097391963005,
0.05036884918808937,
0.06029494106769562,
0.002798822009935975,
-0.006517096422612667,
0.03266535699367523,
-0.021574893966317177,
-0.013896685093641281,
-0.0007380124880000949,
0.009797608479857445,
0.005754426121711731,
-0.028640547767281532,
-0.031770315021276474,
0.06937601417303085,
-0.014195187948644161,
0.008779279887676239,
-0.014273339882493019,
-0.04936658963561058,
0.0701875314116478,
-0.015628309920430183,
-0.026079906150698662,
-0.010219136252999306,
0.0301026850938797,
-0.015270141884684563,
0.03909032791852951,
-0.022876756265759468,
0.005394529085606337,
0.05933504179120064,
0.02712670899927616,
0.008606981486082077,
0.007105442229658365,
-0.009021278470754623,
-0.0011811952572315931,
0.0270059984177351,
-0.047623708844184875,
-0.018845342099666595,
-0.04349211975932121,
0.07347235828638077,
-0.032410576939582825,
0.054327793419361115,
0.03464367613196373,
0.03443937003612518,
0.011149272322654724,
-0.05616433918476105,
-0.04872383177280426,
-0.020919863134622574,
-0.030987247824668884,
0.0531303845345974,
-0.0064255292527377605,
-0.04423218220472336,
0.06059131771326065,
0.01263714674860239,
-0.10724051296710968,
0.04649640619754791,
0.03367164358496666,
0.043597232550382614,
0.03051186166703701,
0.0563461072742939,
-0.05007122457027435,
0.023364748805761337,
-0.0323190912604332,
0.0016742515144869685,
-0.02289350889623165,
-0.004993902985006571,
-0.020323142409324646,
-0.042618125677108765,
0.011867337860167027,
0.03339315578341484,
-0.023627104237675667,
0.007221955340355635,
0.0024347759317606688,
-0.02446558140218258,
-0.06116004288196564,
-0.0028804531320929527,
0.02185523509979248,
0.0006474422989413142,
-0.009162846952676773,
-0.03708791360259056,
0.009959853254258633,
0.053322505205869675,
-0.002102756407111883,
-0.044117219746112823,
0.013929433189332485,
-0.01579177752137184,
-0.08733519166707993,
-0.058233849704265594,
0.060055047273635864,
-0.006799571681767702,
-0.009872200898826122,
0.0007195188081823289,
0.022918399423360825,
0.003753171069547534,
0.026085397228598595,
-0.014353666454553604,
0.0010891829151660204,
-0.08250164240598679,
-0.004606821574270725,
0.038184281438589096,
0.01418326050043106,
0.006553530227392912,
-0.0024580606259405613,
0.026743289083242416,
0.0783408135175705,
0.03754822909832001,
-0.009080421179533005,
-0.044522207230329514,
-0.01988898403942585,
-0.016845114529132843,
-0.03831944614648819,
0.0311949010938406,
0.008017269894480705,
-0.05646441876888275,
-0.013606070540845394,
-0.0013238087994977832,
-0.012703723274171352,
0.04852338135242462,
-0.026675380766391754,
0.029970360919833183,
0.02569778636097908,
-0.002407253719866276,
-0.045574452728033066,
-0.10016923397779465,
-0.054320525377988815,
-0.008441119454801083,
0.021112998947501183,
0.034917768090963364,
-0.031928010284900665,
0.001422033878043294,
-0.03872247412800789,
-0.009361793287098408,
0.055217195302248,
-0.00873427465558052,
-0.008413988165557384,
0.07127106934785843,
0.07548397034406662,
-0.03820369020104408,
0.053710244596004486,
0.026641977950930595,
-0.0364832803606987,
0.05498066172003746,
0.003173515433445573,
0.018659604713320732,
0.0025648416485637426,
0.018822401762008667,
-0.03731711581349373,
0.0023962678387761116,
-0.010979868471622467,
-0.03347918018698692,
0.00009710149606689811,
0.0019479957409203053,
0.05050163343548775
] |
CAMeL-Lab/bert-base-arabic-camelbert-ca-ner | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 85 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع"
---
# CAMeLBERT-CA NER Model
## Model description
**CAMeLBERT-CA NER Model** is a Named Entity Recognition (NER) model that was built by fine-tuning the [CAMeLBERT Classical Arabic (CA)](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-ca/) model.
For the fine-tuning, we used the [ANERcorp](https://camel.abudhabi.nyu.edu/anercorp/) dataset.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."
* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-CA NER model directly as part of our [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) NER component (*recommended*) or as part of the transformers pipeline.
#### How to use
To use the model with the [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) NER component:
```python
>>> from camel_tools.ner import NERecognizer
>>> from camel_tools.tokenizers.word import simple_word_tokenize
>>> ner = NERecognizer('CAMeL-Lab/bert-base-arabic-camelbert-ca-ner')
>>> sentence = simple_word_tokenize('إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع')
>>> ner.predict_sentence(sentence)
>>> ['O', 'B-LOC', 'O', 'O', 'O', 'O', 'B-LOC', 'I-LOC', 'I-LOC', 'O']
```
You can also use the NER model directly with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> ner = pipeline('ner', model='CAMeL-Lab/bert-base-arabic-camelbert-ca-ner')
>>> ner("إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع")
[{'word': 'أبوظبي',
'score': 0.9895730018615723,
'entity': 'B-LOC',
'index': 2,
'start': 6,
'end': 12},
{'word': 'الإمارات',
'score': 0.8156259655952454,
'entity': 'B-LOC',
'index': 8,
'start': 33,
'end': 41},
{'word': 'العربية',
'score': 0.890906810760498,
'entity': 'I-LOC',
'index': 9,
'start': 42,
'end': 49},
{'word': 'المتحدة',
'score': 0.8169114589691162,
'entity': 'I-LOC',
'index': 10,
'start': 50,
'end': 57}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a da of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
-0.0013644216815009713,
0.002497843699529767,
-0.020675476640462875,
0.05761286988854408,
0.04167111590504646,
0.02351541630923748,
-0.019173402339220047,
-0.025499267503619194,
-0.02819640561938286,
0.06441795080900192,
0.004445857834070921,
-0.028998002409934998,
0.019007151946425438,
0.039891041815280914,
-0.05039875954389572,
-0.026039233431220055,
-0.0007670252816751599,
-0.017095893621444702,
-0.06365849077701569,
-0.038186781108379364,
-0.011583949439227581,
0.014489267952740192,
0.012227363884449005,
-0.0013921719510108232,
0.0006941051688045263,
0.022751804441213608,
-0.014848420396447182,
0.05905395373702049,
0.04766298830509186,
-0.06244564801454544,
-0.017691314220428467,
-0.02095731347799301,
-0.03246332332491875,
-0.01362599991261959,
-0.029833201318979263,
0.005851041059941053,
0.00595104182139039,
-0.002159264637157321,
0.01551020797342062,
0.06116942688822746,
-0.027710875496268272,
0.026462480425834656,
-0.004699547775089741,
-0.02670380286872387,
0.038766395300626755,
0.013936751522123814,
-0.03441144898533821,
0.0038239681161940098,
0.04002997279167175,
-0.07087095081806183,
-0.07016991078853607,
-0.04711947962641716,
-0.05165533348917961,
0.04209921509027481,
0.003098509507253766,
-0.00024620877229608595,
-0.026462987065315247,
-0.0315251499414444,
0.08686698973178864,
-0.06614934653043747,
-0.03617732599377632,
-0.0011472692713141441,
-0.05699079483747482,
0.02150999754667282,
0.028711289167404175,
-0.02930419147014618,
0.019732313230633736,
-0.043635446578264236,
0.05545680224895477,
-0.033270809799432755,
0.03695598989725113,
-0.024609537795186043,
0.006069951690733433,
-0.07843244075775146,
0.021649792790412903,
-0.01888606883585453,
0.052438884973526,
0.04424464330077171,
-0.031979743391275406,
0.0669068768620491,
0.007527301087975502,
0.006962594576179981,
0.03186304494738579,
-0.02763933315873146,
-0.005599211435765028,
0.0316937156021595,
-0.043579742312431335,
0.004656375851482153,
0.011863079853355885,
0.03456330671906471,
-0.04534025490283966,
-0.03700372204184532,
-0.0013541082153096795,
-0.044331829994916916,
-0.025039149448275566,
0.028327815234661102,
0.032552577555179596,
-0.0014838052447885275,
0.044813986867666245,
0.01982102543115616,
0.03937719389796257,
0.04638319090008736,
-0.024538908153772354,
0.04652618616819382,
-0.02404271624982357,
-0.026398345828056335,
-0.02898458018898964,
-0.03019160032272339,
-0.028064211830496788,
0.04442637041211128,
0.017171451821923256,
-0.061242494732141495,
-0.05815344303846359,
0.03652142360806465,
-0.001476640929467976,
-0.037033021450042725,
0.039886459708213806,
-0.03715244680643082,
-0.06613121181726456,
-0.03692018240690231,
0.04487219452857971,
-0.007799374870955944,
0.013065551407635212,
-0.0010024941293522716,
-0.052451904863119125,
0.004271864425390959,
-0.06684261560440063,
-0.02330079674720764,
-0.024112822487950325,
0.02531873621046543,
-0.004925892688333988,
0.030690452083945274,
0.0070951818488538265,
-0.07474124431610107,
0.01756596751511097,
-0.01273301336914301,
-0.05172128602862358,
0.0612776055932045,
0.03659989684820175,
0.11107249557971954,
-0.04413945600390434,
-0.05432552844285965,
0.011484251357614994,
0.02200946770608425,
-0.014964532107114792,
-0.014796556904911995,
0.017075898125767708,
-0.030712826177477837,
-0.02952779270708561,
-0.010653167963027954,
0.060284655541181564,
-0.05865291506052017,
0.01783871464431286,
0.0452825091779232,
-0.004630939103662968,
0.04047256335616112,
-0.035362619906663895,
-0.01820564828813076,
0.0008268028032034636,
0.023535944521427155,
-0.02332245744764805,
0.05237242951989174,
0.007340415846556425,
-0.015586351975798607,
-0.0434996597468853,
-0.04799257218837738,
-0.004039792809635401,
0.0872204378247261,
0.0011722876224666834,
-0.0048976787365973,
-0.03415703773498535,
0.005095363594591618,
0.03979382663965225,
0.016691841185092926,
-0.03441381826996803,
0.02852185070514679,
0.06376489996910095,
0.023581618443131447,
-0.028541211038827896,
0.07200558483600616,
0.006941848434507847,
-0.021845828741788864,
0.0002787958364933729,
-0.007238245569169521,
-0.0010723615996539593,
-0.023729797452688217,
0.04252030327916145,
0.05606082081794739,
-0.02269301563501358,
-0.0416376069188118,
-0.02588207833468914,
0.0682462677359581,
0.007585846818983555,
0.015154288150370121,
-0.003608474275097251,
-0.018568778410553932,
-0.04012370482087135,
0.04532651603221893,
-0.01802309975028038,
0.016251061111688614,
-0.029918864369392395,
0.007761209737509489,
-0.006100147496908903,
0.031706035137176514,
0.04123123735189438,
0.033715780824422836,
-0.03618515655398369,
0.062063559889793396,
-0.03597656264901161,
0.016636915504932404,
-0.04293719679117203,
-0.0428239069879055,
0.0026830341666936874,
0.03823429346084595,
0.027493374422192574,
0.04083991050720215,
-0.015517666935920715,
-0.030132368206977844,
0.021927926689386368,
0.037540361285209656,
0.04021250084042549,
0.027061741799116135,
-0.021315326914191246,
-0.023383133113384247,
0.03480392321944237,
0.07262691855430603,
-0.08144208788871765,
-0.04011833667755127,
0.032928504049777985,
0.03679397329688072,
-0.027205191552639008,
0.023770004510879517,
-0.001954314298927784,
0.03567225858569145,
-0.0401717834174633,
-0.07436612993478775,
0.053516048938035965,
0.018875891342759132,
-0.006197704467922449,
0.02600015141069889,
-0.009558228775858879,
-0.004701882600784302,
0.01541984174400568,
0.024651966989040375,
-0.008586698211729527,
-0.05278072878718376,
0.0077935741282999516,
0.01338908076286316,
0.0633050799369812,
-0.041569195687770844,
0.04002971574664116,
0.0000678422293276526,
0.027295760810375214,
0.037453897297382355,
-0.03262917697429657,
0.033382296562194824,
0.013733147643506527,
0.004649770446121693,
-0.03617830201983452,
0.04307513311505318,
0.0000970281325862743,
0.019824696704745293,
0.05262261629104614,
-0.0062162564136087894,
0.058876097202301025,
-0.009010780602693558,
0.04855651780962944,
0.05345328897237778,
0.02438259683549404,
0.015911828726530075,
0.013392740860581398,
0.06908446550369263,
0.0034979311749339104,
-0.023515136912465096,
0.08123252540826797,
-0.058071672916412354,
0.02084510028362274,
-0.048781413584947586,
-0.0024365512654185295,
0.0004139567899983376,
-0.016560621559619904,
0.04799860343337059,
0.0096477922052145,
0.00012839940609410405,
-0.01584988459944725,
-0.022071924060583115,
0.002132269786670804,
0.024036921560764313,
-0.020734163001179695,
-0.02416992373764515,
-0.013390026055276394,
-0.032338082790374756,
0.010458583012223244,
-0.0734325423836708,
-0.01581467129290104,
-0.007378011476248503,
-0.04026799649000168,
-0.0005325734382495284,
-0.07471901178359985,
-0.032409559935331345,
-0.05289288982748985,
-0.010696315206587315,
0.03135431185364723,
0.021138526499271393,
0.002040924271568656,
-0.04697864130139351,
0.038506027311086655,
-0.04670213162899017,
-0.039259739220142365,
-0.05238473787903786,
-0.05413860082626343,
-0.01909799315035343,
-0.051353346556425095,
0.03878328576683998,
0.009737126529216766,
0.011866490356624126,
0.004757876042276621,
0.013563803397119045,
-0.03229191526770592,
-0.039793625473976135,
0.028485320508480072,
0.04159840941429138,
-0.029693422839045525,
-0.0531252920627594,
0.019822947680950165,
-0.003997498191893101,
0.0060049667954444885,
-0.04345211014151573,
-0.05126657709479332,
0.06196479871869087,
0.08658172190189362,
0.021563207730650902,
0.02263336069881916,
-0.011044243350625038,
-0.04943128302693367,
-0.04811480641365051,
-0.020017076283693314,
-0.04472658783197403,
-0.02860173210501671,
-0.018001614138484,
-0.03681871294975281,
-0.019454337656497955,
-0.04570240527391434,
-0.0068436660803854465,
0.0036110037472099066,
0.006445568986237049,
0.034780748188495636,
0.053997233510017395,
0.027967674657702446,
0.0329723060131073,
-0.03578335419297218,
-0.028775928542017937,
0.06641542166471481,
0.013566028326749802,
0.01462384033948183,
-0.06876654922962189,
-0.03781779855489731,
0.047404345124959946,
0.020474199205636978,
-0.014769704081118107,
-0.012548945844173431,
0.06923400610685349,
-0.011154817417263985,
-0.01057684700936079,
0.009532538242638111,
0.0010324417380616069,
-0.050559014081954956,
-0.0074478983879089355,
0.016513537615537643,
-0.0025919394101947546,
-0.05745770409703255,
-0.008292910642921925,
0.015756435692310333,
0.05231643095612526,
-0.033251699060201645,
-0.05889282003045082,
-0.001716230995953083,
0.060072433203458786,
0.011138751171529293,
0.007540334947407246,
-0.02403789944946766,
0.012008970603346825,
-0.0338408537209034,
-0.044524092227220535,
0.011293787509202957,
-0.02065049111843109,
0.0053412578999996185,
0.05045461654663086,
0.021206049248576164,
-0.013956322334706783,
0.02321510575711727,
0.034916192293167114,
0.037656400352716446,
0.005965135991573334,
-0.03142572566866875,
0.02799947001039982,
-0.026747532188892365,
0.0014818640192970634,
0.010677159763872623,
-0.029203617945313454,
-0.04453239217400551,
-0.09075517952442169,
-0.019876305013895035,
0.008643204346299171,
-0.015164721757173538,
-0.024885233491659164,
0.03027929924428463,
-0.010836581699550152,
0.00816353876143694,
0.004351739306002855,
0.023960055783391,
0.024778565391898155,
-0.03364061564207077,
0.05710005760192871,
-0.01871199905872345,
0.0429658479988575,
-0.05566394701600075,
0.014650335535407066,
-0.03249560669064522,
0.012359916232526302,
-0.0013639782555401325,
0.06268084794282913,
0.0248795785009861,
0.032763104885816574,
0.06388261914253235,
0.04875996708869934,
-0.03227011486887932,
0.035996779799461365,
0.05049135535955429,
0.0017148889601230621,
-0.05209481343626976,
-0.0017464280826970935,
-0.018687384203076363,
-0.03034418262541294,
-0.008847418241202831,
-0.03526701778173447,
-0.013626011088490486,
0.03319424390792847,
0.00872198585420847,
0.006183788180351257,
0.01760396547615528,
-0.02047307975590229,
-0.030558541417121887,
-0.07465460151433945,
-0.03047991916537285,
0.024356476962566376,
-0.025475796312093735,
0.03893226385116577,
0.04115820303559303,
0.018375050276517868,
0.0750938430428505,
0.07937151193618774,
0.0004828486707992852,
-0.04587864503264427,
0.02558903768658638,
0.03671374171972275,
-0.039712827652692795,
-0.05923078581690788,
-0.04869544133543968,
0.05352136492729187,
0.0533687025308609,
-0.000529127602931112,
-0.095789834856987,
-0.0020262026228010654,
0.06317740678787231,
-0.02150374837219715,
0.06297850608825684,
-0.01478807907551527,
0.056799545884132385,
0.06134411320090294,
-0.030335670337080956,
0.02157602086663246,
-0.04041410982608795,
0.020927494391798973,
-0.0015392067143693566,
0.0082969069480896,
-0.02446749433875084,
-0.03501272201538086,
-0.03672194853425026,
0.023634379729628563,
0.04684431850910187,
0.032122652977705,
0.04468449577689171,
-0.008161800913512707,
-0.0357811376452446,
0.003940391819924116,
0.006759625393897295,
-0.035082973539829254,
0.0009728068253025413,
0.03466186672449112,
0.03790971636772156,
-0.03865496441721916,
-0.010523520410060883,
-0.006746769417077303,
0.0007742271991446614,
0.014814361929893494,
0.011850190348923206,
-0.04263947904109955,
-0.04935748875141144,
0.008376131765544415,
0.0015052759554237127,
-0.013542886823415756,
-0.08658460527658463,
0.03936189040541649,
-0.03593234717845917,
0.00045842869440093637,
0.03809356316924095,
0.01846557855606079,
0.005624172743409872,
0.04133182764053345,
-0.0093860337510705,
0.005602946504950523,
-0.03382491320371628,
0.032071784138679504,
-0.013439980335533619,
-0.025763703510165215,
-0.03365139663219452,
-0.06484207510948181,
-0.0010612185578793287,
-0.01218569464981556,
-0.03271991387009621,
-0.03255689516663551,
-0.00900551863014698,
0.03404068201780319,
-0.0119711272418499,
0.01673608087003231,
-0.023016106337308884,
0.04962816834449768,
-0.05342917516827583,
-0.03690202906727791,
-0.022992558777332306,
-0.03579258173704147,
-0.07437384128570557,
-0.04763110354542732,
-0.005390933249145746,
0.017681708559393883,
0.016474731266498566,
0.018684502691030502,
0.019593708217144012,
0.009977436624467373,
0.01634746417403221,
-0.040702980011701584,
0.02811588905751705,
-0.0035673787351697683,
-0.03683166950941086,
-0.035802412778139114,
-0.01726895570755005,
0.028414031490683556,
0.03970161825418472,
-0.016367150470614433,
0.03557651489973068,
0.03545752167701721,
-0.03223879262804985,
-0.006598562002182007,
0.03180422633886337,
0.023136259987950325,
-0.06562935560941696,
-0.03363789618015289,
-0.022230682894587517,
-0.03993181139230728,
0.03794258087873459,
-0.021887432783842087,
-0.01238393783569336,
0.0222347229719162,
0.02503298409283161,
0.02518853358924389,
-0.01549094170331955,
-0.03829563409090042,
0.01630723476409912,
-0.02391408011317253,
0.031835149973630905,
-0.0400296114385128,
0.06159602478146553,
-0.03732755780220032,
0.020943287760019302,
-0.013099420815706253,
-0.03190263733267784,
-0.020563598722219467,
0.0441935695707798,
-0.013143588788807392,
-0.018659284338355064,
0.016333607956767082,
0.011433050967752934,
-0.041031066328287125,
0.035173602402210236,
-0.01699291728436947,
0.023403650149703026,
-0.02454131469130516,
0.027892034500837326,
-0.045809436589479446,
-0.018168363720178604,
-0.025495106354355812,
-0.0031769222114235163,
-0.03523140773177147,
-0.043396539986133575,
-0.005046991631388664,
-0.056913018226623535,
0.04041144251823425,
0.022446565330028534,
0.029967980459332466,
0.035633496940135956,
-0.006386280059814453,
-0.007759218104183674,
0.01155515294522047,
-0.06263688951730728,
-0.005941617768257856,
-0.015058700926601887,
0.04688142612576485,
0.011546130292117596,
0.06514792889356613,
0.04810105636715889,
-0.05455925688147545,
-0.04777038097381592,
0.05932396277785301,
0.014910119585692883,
0.015185259282588959,
0.012961835600435734,
0.06159662827849388,
0.03150443360209465,
0.04070639610290527,
-0.024288639426231384,
-0.010590690188109875,
-0.023259349167346954,
-0.020382622256875038,
0.008312676101922989,
0.006343691609799862,
0.014308073557913303,
0.008131391368806362,
-0.035030294209718704,
-0.0316469706594944,
0.09167692065238953,
0.03086799569427967,
0.00021463511802721769,
0.007109614089131355,
-0.033357951790094376,
0.01964389532804489,
-0.007873519323766232,
-0.061013903468847275,
-0.010634653270244598,
0.01464192196726799,
-0.05246477574110031,
0.07762812823057175,
-0.0075660631991922855,
0.021866725757718086,
0.01965196430683136,
0.020857129245996475,
-0.00502852164208889,
0.0569164901971817,
-0.046111710369586945,
0.023649491369724274,
0.03896353766322136,
-0.04363773390650749,
0.02196858823299408,
-0.047616299241781235,
0.06560061872005463,
-0.07949294149875641,
0.05836871638894081,
0.028769947588443756,
0.005117257125675678,
0.0055390032939612865,
-0.02629207633435726,
-0.017909077927470207,
0.010313143022358418,
-0.040461208671331406,
0.07256703078746796,
-0.014239623211324215,
-0.059269558638334274,
0.041079793125391006,
0.03680120036005974,
-0.07264027744531631,
0.06891278177499771,
0.027470283210277557,
0.0630870833992958,
0.0478082150220871,
0.047412436455488205,
-0.09353228658437729,
0.0010712554212659597,
-0.03513750433921814,
0.03922591730952263,
-0.07401464879512787,
0.0074257077649235725,
0.04131003096699715,
-0.03774305805563927,
-0.007359868846833706,
0.04665680602192879,
-0.025253117084503174,
-0.016304925084114075,
0.012175275012850761,
-0.06569379568099976,
-0.037940386682748795,
-0.0231052003800869,
0.024374883621931076,
-0.028976917266845703,
0.009440095163881779,
-0.03921294957399368,
0.0019732601940631866,
0.00034769263584166765,
-0.010485770180821419,
-0.04736608266830444,
-0.0033518311101943254,
0.047710128128528595,
-0.07226312160491943,
-0.01806124486029148,
0.05385906621813774,
0.009085102006793022,
-0.009702245704829693,
0.04216448590159416,
-0.0165823046118021,
0.03464103490114212,
0.01295421365648508,
0.01629631035029888,
0.014811785891652107,
-0.04289289563894272,
-0.015215625986456871,
0.014668191783130169,
-0.004674974363297224,
0.028244467452168465,
0.0013612896436825395,
0.03480421379208565,
0.07229980081319809,
0.021288659423589706,
0.021558275446295738,
-0.06322621554136276,
-0.033802516758441925,
0.025796137750148773,
-0.048407867550849915,
0.013756840489804745,
-0.010072476230561733,
-0.04636746272444725,
-0.03636986389756203,
-0.016869056969881058,
-0.027694622054696083,
0.053951043635606766,
-0.049634385854005814,
0.00155436631757766,
0.007780437823385,
-0.02698380872607231,
-0.036172229796648026,
-0.06571553647518158,
-0.02467935159802437,
-0.03584666550159454,
0.02266724593937397,
0.009396684356033802,
-0.02037181332707405,
0.0235237255692482,
-0.05248882621526718,
-0.06183137372136116,
0.0343472920358181,
0.024364208802580833,
-0.04786223918199539,
0.05987413972616196,
0.030528146773576736,
-0.027843762189149857,
0.007023231592029333,
0.03904101625084877,
-0.029778284952044487,
0.015227231197059155,
-0.016285613179206848,
0.016384810209274292,
0.04048377647995949,
0.021618586033582687,
-0.024070413783192635,
-0.01670638471841812,
-0.05913772061467171,
-0.041464243084192276,
-0.037732239812612534,
-0.002772621111944318,
0.06682612746953964
] |
CAMeL-Lab/bert-base-arabic-camelbert-ca-pos-egy | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 16,451 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: 'عامل ايه ؟'
---
# CAMeLBERT-CA POS-EGY Model
## Model description
**CAMeLBERT-CA POS-EGY Model** is a Egyptian Arabic POS tagging model that was built by fine-tuning the [CAMeLBERT-CA](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-ca/) model.
For the fine-tuning, we used the ARZTB dataset .
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-CA POS-EGY model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> pos = pipeline('token-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-ca-pos-egy')
>>> text = 'عامل ايه ؟'
>>> pos(text)
[{'entity': 'adj', 'score': 0.9990943, 'index': 1, 'word': 'عامل', 'start': 0, 'end': 4}, {'entity': 'pron_interrog', 'score': 0.99863535, 'index': 2, 'word': 'ايه', 'start': 5, 'end': 8}, {'entity': 'punc', 'score': 0.99990875, 'index': 3, 'word': '؟', 'start': 9, 'end': 10}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
0.00458692479878664,
-0.0004095785552635789,
-0.013650134205818176,
0.039024073630571365,
0.046584602445364,
0.030138805508613586,
-0.003630506107583642,
-0.0057998658157885075,
-0.011333867907524109,
0.06996135413646698,
0.012656101956963539,
-0.031174059957265854,
0.004010170232504606,
0.03521290794014931,
-0.04310308024287224,
-0.03928259015083313,
0.008222442120313644,
-0.022648464888334274,
-0.05684599652886391,
-0.018852630630135536,
0.005444949492812157,
0.011703998781740665,
-0.00827243272215128,
0.00015516404528170824,
-0.007804145570844412,
0.02645597793161869,
-0.017515987157821655,
0.05003054440021515,
0.04280025139451027,
-0.07067427784204483,
-0.02014121599495411,
-0.016635188832879066,
-0.02893117070198059,
-0.018280118703842163,
-0.03907987102866173,
0.0021904902532696724,
0.0020854556933045387,
-0.012189791537821293,
0.030727243050932884,
0.06615191698074341,
-0.03055795468389988,
0.020176101475954056,
0.00011989253835054114,
-0.03613348305225372,
0.057513024657964706,
0.01093769259750843,
-0.028923435136675835,
0.0007001383346505463,
0.050395574420690536,
-0.0335654653608799,
-0.0686325877904892,
-0.045507851988077164,
-0.042743634432554245,
0.02915448695421219,
0.008791572414338589,
-0.00805297214537859,
-0.03669242188334465,
-0.024567030370235443,
0.08329478651285172,
-0.06246902793645859,
-0.04170016944408417,
0.00221692374907434,
-0.05494973808526993,
0.03035610169172287,
0.02876124531030655,
-0.025990206748247147,
0.012553843669593334,
-0.04467010498046875,
0.0533994697034359,
-0.03307173773646355,
0.04453449696302414,
-0.007917506620287895,
0.016983868554234505,
-0.08229704946279526,
0.023471105843782425,
-0.020245833322405815,
0.04698038846254349,
0.03529970347881317,
-0.022377418354153633,
0.07732389122247696,
0.020608006045222282,
0.010427180677652359,
0.032358720898628235,
-0.00813770666718483,
-0.012706156820058823,
0.030377894639968872,
-0.058816276490688324,
-0.001475716126151383,
0.017303425818681717,
0.04101946949958801,
-0.041001126170158386,
-0.05139949172735214,
-0.021248752251267433,
-0.04147612676024437,
-0.0180650781840086,
0.03115522675216198,
0.024757107719779015,
-0.020704837515950203,
0.06315170973539352,
0.029356686398386955,
0.012322411872446537,
0.050587765872478485,
-0.019862299785017967,
0.05614572763442993,
-0.02083919197320938,
-0.009183879941701889,
-0.029352527111768723,
-0.033364132046699524,
-0.023080110549926758,
0.046766724437475204,
0.013354389928281307,
-0.031738147139549255,
-0.06024472415447235,
0.039354108273983,
-0.007463962305337191,
-0.02228817343711853,
0.04391764476895332,
-0.03484974429011345,
-0.05476929619908333,
-0.039332691580057144,
0.04548259079456329,
0.003032689681276679,
0.010187694802880287,
0.004944007843732834,
-0.05178815498948097,
-0.01252709049731493,
-0.07196733355522156,
-0.021102160215377808,
-0.02662651240825653,
0.025103729218244553,
-0.011797568760812283,
0.028027813881635666,
0.014481602236628532,
-0.054339755326509476,
0.010564899072051048,
-0.002265657763928175,
-0.07064767181873322,
0.04302782565355301,
0.038615882396698,
0.10787959396839142,
-0.057775773108005524,
-0.030570678412914276,
0.009041862562298775,
0.008063561283051968,
-0.031507957726716995,
-0.006722976919263601,
0.009296948090195656,
-0.03195870295166969,
-0.024475153535604477,
-0.021939802914857864,
0.08038517832756042,
-0.051453568041324615,
0.01885996200144291,
0.049598097801208496,
-0.004477184731513262,
0.032961566001176834,
-0.03646649420261383,
-0.007434251252561808,
0.011303914710879326,
-0.002126094652339816,
-0.034550245851278305,
0.0438845157623291,
-0.0050705913454294205,
-0.021110014989972115,
-0.044728606939315796,
-0.04552348330616951,
0.0009754745406098664,
0.08353596925735474,
-0.004481351003050804,
0.0009732994949445128,
-0.023630401119589806,
0.006297708489000797,
0.04827975109219551,
0.01578616164624691,
-0.05690798908472061,
0.027107803151011467,
0.06297942996025085,
0.0021472624503076077,
-0.036835990846157074,
0.08534588664770126,
0.012480239383876324,
-0.019298870116472244,
-0.009707469493150711,
-0.01491902768611908,
-0.005125942174345255,
-0.033213045448064804,
0.03742259740829468,
0.02105569839477539,
-0.0192906241863966,
-0.03325286880135536,
-0.011204345151782036,
0.06827499717473984,
0.016763614490628242,
0.020409248769283295,
-0.011776614002883434,
-0.030861571431159973,
-0.04400784149765968,
0.04510580748319626,
-0.0096255112439394,
0.007393694948405027,
-0.02944866754114628,
0.0016346897464245558,
-0.0019496375462040305,
0.04386676847934723,
0.04753255844116211,
0.041979312896728516,
-0.025191662833094597,
0.07060164213180542,
-0.0329478494822979,
0.021947458386421204,
-0.037351321429014206,
-0.032992325723171234,
-0.004372835159301758,
0.03176756203174591,
0.020337045192718506,
0.03818601369857788,
-0.010502001270651817,
-0.03575557470321655,
0.029678883031010628,
0.044214677065610886,
0.040812477469444275,
0.026874344795942307,
-0.03103279508650303,
-0.012992327101528645,
0.03276277706027031,
0.06212436035275459,
-0.07994774729013443,
-0.04489944875240326,
0.03757401928305626,
0.03306955099105835,
-0.05463634803891182,
0.020855486392974854,
-0.018704373389482498,
0.0450446642935276,
-0.04308181256055832,
-0.04762912914156914,
0.048799317330121994,
0.025140229612588882,
-0.006640041712671518,
0.03009439818561077,
-0.010247991420328617,
-0.026246367022395134,
0.01925443671643734,
0.015849126502871513,
-0.02008378505706787,
-0.03956424444913864,
0.004637325182557106,
0.022147906944155693,
0.06672888249158859,
-0.03480595722794533,
0.02380823716521263,
0.009506409987807274,
0.0248880498111248,
0.04820055887103081,
-0.03449643403291702,
0.0284341461956501,
0.027872825041413307,
0.0012184889055788517,
-0.028830183669924736,
0.039984434843063354,
-0.013169602490961552,
0.01576559618115425,
0.05282537266612053,
-0.00029520317912101746,
0.0661320760846138,
-0.02170332334935665,
0.04814963415265083,
0.0729016363620758,
0.015020743943750858,
0.010821545496582985,
0.009306219406425953,
0.07711442559957504,
0.004365034867078066,
-0.012788654305040836,
0.06525774300098419,
-0.05421658977866173,
0.018145356327295303,
-0.051534704864025116,
-0.0017111072083935142,
-0.01294578704982996,
-0.024413207545876503,
0.04366346448659897,
0.018033167347311974,
-0.011253892444074154,
-0.021875789389014244,
-0.01400104071944952,
-0.011561643332242966,
0.028962960466742516,
-0.021954640746116638,
-0.03965003043413162,
0.0028340632561594248,
-0.010187535546720028,
0.017871711403131485,
-0.062424059957265854,
-0.015220248140394688,
-0.023085445165634155,
-0.04166611284017563,
-0.0033631278201937675,
-0.07696837186813354,
-0.02796810306608677,
-0.06829630583524704,
-0.0066285510547459126,
0.03762878105044365,
0.0032127737067639828,
0.0013466570526361465,
-0.05235333368182182,
0.03564887121319771,
-0.04215355962514877,
-0.03649332374334335,
-0.03895767778158188,
-0.07095726579427719,
-0.023456839844584465,
-0.03566117584705353,
0.03287815675139427,
0.015973273664712906,
0.0025171046145260334,
0.007032268214970827,
0.024534283205866814,
-0.024639274924993515,
-0.028462110087275505,
0.036556046456098557,
0.030916618183255196,
-0.02416592463850975,
-0.05990564823150635,
0.039749570190906525,
-0.014280642382800579,
0.0046136099845170975,
-0.027788924053311348,
-0.06682347506284714,
0.08068601787090302,
0.07840065658092499,
0.02108808234333992,
0.007054598070681095,
-0.021898329257965088,
-0.05372775346040726,
-0.03414646163582802,
-0.03349831700325012,
-0.035516683012247086,
-0.013278619386255741,
0.005199603736400604,
-0.031328871846199036,
-0.018170034512877464,
-0.04229388386011124,
0.0016116421902552247,
-0.009839197620749474,
0.026379691436886787,
0.03210834786295891,
0.04558104649186134,
0.029959654435515404,
0.06117040291428566,
-0.031231289729475975,
-0.02825790084898472,
0.06712263077497482,
0.01503213495016098,
0.002166232094168663,
-0.06452074646949768,
-0.037150077521800995,
0.03583771735429764,
0.016855722293257713,
-0.004139549098908901,
0.001669981167651713,
0.062025703489780426,
0.004740717355161905,
-0.001975178485736251,
0.01973584294319153,
-0.007379078306257725,
-0.039305929094552994,
-0.017213458195328712,
0.005241133272647858,
-0.0003430005453992635,
-0.05106440559029579,
-0.008359522558748722,
0.00855426024645567,
0.05347048118710518,
-0.05044025927782059,
-0.06877788156270981,
0.002594761084765196,
0.06571085751056671,
0.005466753616929054,
0.004968266002833843,
-0.029860451817512512,
0.006206895224750042,
-0.043241776525974274,
-0.03290202096104622,
0.00040400330908596516,
0.004801398143172264,
0.020092282444238663,
0.028526540845632553,
0.01960725151002407,
-0.019054019823670387,
0.02803470939397812,
0.027186419814825058,
0.05080687999725342,
0.011671098880469799,
-0.026382572948932648,
0.009804065339267254,
-0.03188171610236168,
0.02191326394677162,
0.007917171344161034,
-0.024418653920292854,
-0.03618941828608513,
-0.10117779672145844,
-0.01081788819283247,
0.0008860633242875338,
-0.025573574006557465,
-0.00812170933932066,
0.03292689099907875,
-0.02129456214606762,
-0.018261324614286423,
-0.0001466986577725038,
0.015744131058454514,
0.04224369302392006,
-0.03119218349456787,
0.0595068521797657,
-0.002985066967085004,
0.0319334976375103,
-0.034507039934396744,
0.037744853645563126,
-0.0345352478325367,
-0.00008780870120972395,
-0.010992292314767838,
0.05421297252178192,
0.0342673659324646,
0.04031702131032944,
0.06752742826938629,
0.04316888749599457,
-0.03082277998328209,
0.04331491142511368,
0.05564340949058533,
-0.006750034634023905,
-0.055748678743839264,
0.0018431597854942083,
-0.008606993593275547,
-0.013365163467824459,
0.007613483350723982,
-0.010023348964750767,
-0.007060636300593615,
0.028636211529374123,
0.0022759721614420414,
0.01502286922186613,
-0.0029122757259756327,
-0.02215937152504921,
-0.04859142005443573,
-0.06753700226545334,
-0.03927101194858551,
0.014331699348986149,
-0.02310153655707836,
0.030238758772611618,
0.03930678963661194,
0.014602821320295334,
0.07403040677309036,
0.06980923563241959,
-0.012833904474973679,
-0.04450352489948273,
0.01622985675930977,
0.02406289055943489,
-0.02010829746723175,
-0.0635046735405922,
-0.06973934173583984,
0.060101963579654694,
0.0418052114546299,
0.00529944384470582,
-0.07485876977443695,
-0.0016367450589314103,
0.053100138902664185,
-0.023750780150294304,
0.06496629118919373,
-0.0027904491871595383,
0.043503303080797195,
0.06221472844481468,
-0.03386492654681206,
0.023639937862753868,
-0.04811045899987221,
0.006061371881514788,
-0.00042771606240421534,
0.010037743486464024,
-0.03145013377070427,
-0.03065553493797779,
-0.04975234717130661,
0.02772660180926323,
0.040086403489112854,
0.04997086152434349,
0.045213837176561356,
-0.012008334510028362,
-0.05157741531729698,
0.004448363557457924,
0.00785770732909441,
-0.042966991662979126,
-0.0028857288416475058,
0.030093666166067123,
0.032963868230581284,
-0.043273232877254486,
-0.006694604642689228,
-0.01879625767469406,
-0.002240049419924617,
0.01650051400065422,
0.009534318000078201,
-0.0567413792014122,
-0.04787350445985794,
0.01020477619022131,
-0.02867359109222889,
-0.014514791779220104,
-0.09745820611715317,
0.05570123344659805,
-0.040919229388237,
0.0012496657436713576,
0.0383128747344017,
0.026289308443665504,
0.013792891055345535,
0.049241986125707626,
-0.01343980897217989,
0.019755182787775993,
-0.03505314514040947,
0.020620811730623245,
-0.010458992794156075,
-0.02699613943696022,
-0.019610362127423286,
-0.08064978569746017,
-0.0028625086415559053,
-0.02256736531853676,
-0.02943202294409275,
-0.03248694911599159,
-0.01530524343252182,
0.011901455000042915,
-0.009890619665384293,
0.006941209081560373,
-0.018581872805953026,
0.04240284115076065,
-0.03159680962562561,
-0.01725468970835209,
-0.018250450491905212,
-0.03878409415483475,
-0.08789436519145966,
-0.05935860052704811,
-0.01818481646478176,
0.013075496070086956,
0.03262076899409294,
0.03372155502438545,
0.01432772632688284,
0.0037117500323802233,
0.012046529911458492,
-0.019514773041009903,
0.02061360701918602,
0.005202954169362783,
-0.024487871676683426,
-0.04001490771770477,
-0.004670178983360529,
0.03783482685685158,
0.05302665755152702,
-0.013031356036663055,
0.031668953597545624,
0.04211876541376114,
-0.03808605670928955,
-0.00236808811314404,
0.034008901566267014,
0.01582493633031845,
-0.05915296822786331,
-0.03651312738656998,
-0.021041104570031166,
-0.04397324472665787,
0.026351936161518097,
-0.01748659834265709,
-0.013392561115324497,
0.008073280565440655,
0.0356508307158947,
0.025371752679347992,
-0.006973350886255503,
-0.035299886018037796,
0.010730423033237457,
-0.03828597813844681,
0.019953228533267975,
-0.04362517595291138,
0.062285907566547394,
-0.03123619593679905,
0.019127173349261284,
0.0063323681242764,
-0.03431256487965584,
-0.01867060922086239,
0.039384957402944565,
0.008427482098340988,
-0.016730166971683502,
-0.01894678920507431,
0.021617431193590164,
-0.020016739144921303,
0.03506065905094147,
0.010692574083805084,
0.020684832707047462,
-0.006600433494895697,
0.022557660937309265,
-0.04221796616911888,
0.0005892236949875951,
-0.02814284898340702,
0.012551034800708294,
-0.028290068730711937,
-0.031988754868507385,
-0.006828500889241695,
-0.06419490277767181,
0.029721437022089958,
0.0051600132137537,
0.044441502541303635,
0.02824924699962139,
0.0005579139105975628,
-0.0034585807006806135,
0.019102467224001884,
-0.05570182949304581,
-0.011055740527808666,
-0.019126983359456062,
0.03845376521348953,
0.018346719443798065,
0.0712692141532898,
0.04850606620311737,
-0.03579585254192352,
-0.04744667187333107,
0.046389829367399216,
0.018449565395712852,
0.023283973336219788,
0.01466549001634121,
0.06106079742312431,
0.04377076029777527,
0.05720968171954155,
-0.038411226123571396,
0.007157853804528713,
-0.011588647961616516,
-0.01850091852247715,
0.010459830053150654,
0.015364905819296837,
0.030552605167031288,
0.010538863018155098,
-0.04317306727170944,
-0.011905980296432972,
0.0773133859038353,
0.03727390989661217,
-0.005911810323596001,
0.0018454678356647491,
-0.018782490864396095,
0.02974175289273262,
-0.006350586656481028,
-0.06474994868040085,
-0.01764504984021187,
0.020894020795822144,
-0.04974360391497612,
0.09388579428195953,
-0.02299686335027218,
0.02757490985095501,
0.008479784242808819,
0.026270132511854172,
0.013229974545538425,
0.05609212815761566,
-0.04591662064194679,
0.039240289479494095,
0.04520786181092262,
-0.03381109982728958,
0.01790557987987995,
-0.028009645640850067,
0.061132051050662994,
-0.06309489160776138,
0.05622801184654236,
0.02813054248690605,
0.017808258533477783,
0.012442306615412235,
-0.027078814804553986,
-0.02944508008658886,
0.01950196921825409,
-0.046776629984378815,
0.0747118815779686,
-0.00844594556838274,
-0.05474381148815155,
0.0409986637532711,
0.03531063720583916,
-0.06960219889879227,
0.06960385292768478,
0.03739180043339729,
0.06524290144443512,
0.044824182987213135,
0.050303712487220764,
-0.07327060401439667,
0.00933519285172224,
-0.0376632995903492,
0.03916991502046585,
-0.07796899974346161,
0.012857906520366669,
0.03110661543905735,
-0.03839356079697609,
-0.008597544394433498,
0.04175318777561188,
0.009326660074293613,
-0.014394581317901611,
0.010221150703728199,
-0.05501354858279228,
-0.04417705163359642,
-0.01978498324751854,
0.01163600105792284,
-0.04065365344285965,
0.023973887786269188,
-0.055344536900520325,
0.013101652264595032,
-0.006710357498377562,
-0.025234922766685486,
-0.056901805102825165,
0.01311574224382639,
0.05425122007727623,
-0.07393746823072433,
-0.031333185732364655,
0.04222126677632332,
0.00031067125382833183,
-0.017689328640699387,
0.040534500032663345,
-0.0014247134095057845,
0.040026795119047165,
0.0262753963470459,
0.00947012659162283,
0.026086270809173584,
-0.050419535487890244,
-0.01336042769253254,
0.02368040941655636,
-0.018312418833374977,
0.021004514768719673,
-0.023246755823493004,
0.03870784118771553,
0.0706782191991806,
0.03164142370223999,
-0.00003719641244970262,
-0.05419688671827316,
-0.02765640988945961,
0.01234058104455471,
-0.04832824692130089,
0.028541937470436096,
-0.002019108971580863,
-0.03812253475189209,
-0.04587012156844139,
-0.015187409706413746,
-0.022181209176778793,
0.031884077936410904,
-0.029110217466950417,
-0.004148358944803476,
0.02521904744207859,
-0.022826336324214935,
-0.038692545145750046,
-0.08589936047792435,
-0.02537902630865574,
-0.043133772909641266,
0.03712809085845947,
0.02313033491373062,
-0.0341833233833313,
0.012512607499957085,
-0.051001399755477905,
-0.06073806807398796,
0.039384182542562485,
0.010336815379559994,
-0.03345857560634613,
0.0704902857542038,
0.04198305308818817,
-0.039683084934949875,
0.018544131889939308,
0.033325523138046265,
-0.02693154104053974,
-0.0005575423710979521,
0.004770915023982525,
0.009595419280230999,
0.03239361196756363,
0.03848365694284439,
-0.02418782189488411,
-0.00990577507764101,
-0.04606565460562706,
-0.043523091822862625,
-0.03423498570919037,
-0.019594836980104446,
0.06636825203895569
] |
CAMeL-Lab/bert-base-arabic-camelbert-ca-pos-glf | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 18 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: 'شلونك ؟ شخبارك ؟'
---
# CAMeLBERT-CA POS-GLF Model
## Model description
**CAMeLBERT-CA POS-GLF Model** is a Gulf Arabic POS tagging model that was built by fine-tuning the [CAMeLBERT-CA](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-ca/) model.
For the fine-tuning, we used the [Gumar](https://camel.abudhabi.nyu.edu/annotated-gumar-corpus/) dataset.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."*
Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-CA POS-GLF model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> pos = pipeline('token-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-ca-pos-glf')
>>> text = 'شلونك ؟ شخبارك ؟'
>>> pos(text)
[{'entity': 'noun', 'score': 0.99572617, 'index': 1, 'word': 'شلون', 'start': 0, 'end': 4}, {'entity': 'noun', 'score': 0.9411187, 'index': 2, 'word': '##ك', 'start': 4, 'end': 5}, {'entity': 'punc', 'score': 0.9999661, 'index': 3, 'word': '؟', 'start': 6, 'end': 7}, {'entity': 'noun', 'score': 0.99286526, 'index': 4, 'word': 'ش', 'start': 8, 'end': 9}, {'entity': 'noun', 'score': 0.9983397, 'index': 5, 'word': '##خبار', 'start': 9, 'end': 13}, {'entity': 'noun', 'score': 0.9609381, 'index': 6, 'word': '##ك', 'start': 13, 'end': 14}, {'entity': 'punc', 'score': 0.9999668, 'index': 7, 'word': '؟', 'start': 15, 'end': 16}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
0.011526697315275669,
-0.005706969182938337,
-0.012362988665699959,
0.036404602229595184,
0.061040014028549194,
0.026951219886541367,
-0.00916333682835102,
-0.00006828875484643504,
-0.008005336858332157,
0.0709245577454567,
0.01240801252424717,
-0.03208073973655701,
0.006765390280634165,
0.03834497928619385,
-0.04011256992816925,
-0.04607630893588066,
0.006021114066243172,
-0.022272175177931786,
-0.06045634672045708,
-0.02118731662631035,
0.0025203567929565907,
0.001244972343556583,
-0.007414313033223152,
-0.0012340627145022154,
-0.009877832606434822,
0.029934756457805634,
-0.015155107714235783,
0.051648516207933426,
0.04223748296499252,
-0.06971565634012222,
-0.01802922412753105,
-0.018380139023065567,
-0.024589400738477707,
-0.02406780794262886,
-0.04327278211712837,
0.0009476495906710625,
0.013730078935623169,
-0.0016235949005931616,
0.023434635251760483,
0.0588962696492672,
-0.027688300237059593,
0.024023234844207764,
-0.00024410162586718798,
-0.036035824567079544,
0.04796043783426285,
0.0055701155215501785,
-0.03178004175424576,
0.004835509229451418,
0.036035895347595215,
-0.05012458935379982,
-0.05505812540650368,
-0.05412860959768295,
-0.05291549116373062,
0.03479102626442909,
0.013673617504537106,
-0.010669446550309658,
-0.03604383021593094,
-0.011713303625583649,
0.07485905289649963,
-0.05914571136236191,
-0.052716273814439774,
0.001962027745321393,
-0.057808421552181244,
0.02843048796057701,
0.013399911113083363,
-0.02043747901916504,
0.0062339818105101585,
-0.03796646371483803,
0.05988330394029617,
-0.026632681488990784,
0.05456673353910446,
-0.013084562495350838,
0.016527991741895676,
-0.08284848183393478,
0.029027890413999557,
-0.013929895125329494,
0.03432110697031021,
0.04206300154328346,
-0.03216176480054855,
0.07167135924100876,
0.02226422168314457,
0.006695542484521866,
0.027939748018980026,
-0.009578090161085129,
-0.0044046188704669476,
0.029231280088424683,
-0.05310981348156929,
-0.01065765880048275,
0.021971430629491806,
0.043313223868608475,
-0.035713475197553635,
-0.05011851340532303,
-0.006189011503010988,
-0.04268249124288559,
-0.023044314235448837,
0.028078369796276093,
0.02536160685122013,
-0.02574215829372406,
0.05805074796080589,
0.026317894458770752,
0.016361119225621223,
0.04259679093956947,
-0.021482372656464577,
0.04214173182845116,
-0.0219870638102293,
-0.0032719862647354603,
-0.028881235048174858,
-0.037640493363142014,
-0.024222461506724358,
0.04950128495693207,
0.018058041110634804,
-0.04547695443034172,
-0.05725064501166344,
0.0378434844315052,
-0.01123455073684454,
-0.025820961222052574,
0.046553462743759155,
-0.03883378207683563,
-0.04846901074051857,
-0.04609602689743042,
0.04813504219055176,
0.009402766823768616,
0.006542440503835678,
0.009347721934318542,
-0.044397372752428055,
-0.011333100497722626,
-0.05743633583188057,
-0.009871839545667171,
-0.02812184765934944,
0.029276913031935692,
-0.008283189497888088,
0.020998403429985046,
0.017569251358509064,
-0.06007034331560135,
0.017234977334737778,
0.00785255990922451,
-0.06127069145441055,
0.03927845507860184,
0.03774767741560936,
0.10244742780923843,
-0.06872416287660599,
-0.0359952375292778,
0.031355369836091995,
0.011643494479358196,
-0.01381956972181797,
-0.010360256768763065,
0.015752214938402176,
-0.04253631830215454,
-0.02664521522819996,
-0.018055366352200508,
0.06706511229276657,
-0.05211957171559334,
0.013507261872291565,
0.04740666225552559,
-0.014142571948468685,
0.027318140491843224,
-0.02420906350016594,
-0.01218361221253872,
0.019550222903490067,
-0.008462672121822834,
-0.03555670008063316,
0.03968973457813263,
0.0005495782825164497,
-0.01831214502453804,
-0.043371427804231644,
-0.048424191772937775,
0.0017863617977127433,
0.09026908129453659,
0.004833897575736046,
0.005929085426032543,
-0.020650971680879593,
0.010284432210028172,
0.0406942293047905,
0.020645271986722946,
-0.04824691638350487,
0.022909419611096382,
0.056506723165512085,
0.004376051016151905,
-0.03399746119976044,
0.09302232414484024,
0.01651686616241932,
-0.019670499488711357,
-0.018195979297161102,
-0.010734840296208858,
-0.013906681910157204,
-0.033604927361011505,
0.0394250750541687,
0.028867803514003754,
-0.017186926677823067,
-0.027616148814558983,
-0.005927753634750843,
0.06447143852710724,
0.014810686931014061,
0.018690502271056175,
-0.015217350795865059,
-0.02037038654088974,
-0.04483630508184433,
0.04168739542365074,
-0.011740966700017452,
0.010010946542024612,
-0.03559868782758713,
0.006779464893043041,
-0.00016157339268829674,
0.04307103529572487,
0.04550337418913841,
0.035632722079753876,
-0.02893950790166855,
0.06710078567266464,
-0.028904588893055916,
0.0259130597114563,
-0.0444631390273571,
-0.03301995247602463,
-0.003060300135985017,
0.01946459524333477,
0.01328018493950367,
0.03779494762420654,
-0.012959077022969723,
-0.029630795121192932,
0.02855481021106243,
0.05043811351060867,
0.029200531542301178,
0.026741372421383858,
-0.024948222562670708,
-0.008750660344958305,
0.03990364074707031,
0.054322466254234314,
-0.08169583976268768,
-0.05018596351146698,
0.040361009538173676,
0.03339569643139839,
-0.05381034314632416,
0.020793041214346886,
-0.004768457263708115,
0.04011920839548111,
-0.040551505982875824,
-0.05942085385322571,
0.0519627220928669,
0.029027866199612617,
-0.0025149965658783913,
0.029796214774250984,
-0.0035326688084751368,
-0.02836807630956173,
0.02342255413532257,
0.00860846508294344,
-0.01248813234269619,
-0.0472613163292408,
0.012051209807395935,
0.02319379337131977,
0.07767662405967712,
-0.03546120226383209,
0.023744115605950356,
0.007402661256492138,
0.031296294182538986,
0.054620642215013504,
-0.03604433685541153,
0.018026208505034447,
0.027428295463323593,
0.0029290972743183374,
-0.021304383873939514,
0.03827511891722679,
-0.0075255343690514565,
0.01592204160988331,
0.05314524471759796,
-0.0029160846024751663,
0.0607689805328846,
-0.019008247181773186,
0.0503728874027729,
0.08061912655830383,
0.020681530237197876,
0.01481752097606659,
0.022527649998664856,
0.06825055181980133,
0.012386723421514034,
-0.01139375101774931,
0.05392637103796005,
-0.05412600189447403,
0.021301496773958206,
-0.05629697069525719,
-0.0009584142244420946,
-0.01703224703669548,
-0.027996739372611046,
0.051738664507865906,
0.027242494747042656,
-0.011284159496426582,
-0.009757719933986664,
-0.017705824226140976,
-0.015272517688572407,
0.029210371896624565,
-0.0273757241666317,
-0.03226647526025772,
0.000250523240538314,
-0.004597648046910763,
0.024843167513608932,
-0.057150743901729584,
-0.01640447974205017,
-0.020275423303246498,
-0.03914804011583328,
0.004375562537461519,
-0.07432284951210022,
-0.023967737331986427,
-0.06268304586410522,
-0.013019849546253681,
0.037935707718133926,
0.01920616626739502,
0.0004738106217700988,
-0.055650874972343445,
0.035013504326343536,
-0.04073318839073181,
-0.0406348817050457,
-0.04139872267842293,
-0.06359010189771652,
-0.021378591656684875,
-0.046393685042858124,
0.03827023133635521,
0.01729697547852993,
0.005726679693907499,
0.008013266138732433,
0.02746654488146305,
-0.01832849532365799,
-0.032336026430130005,
0.026306387037038803,
0.044051915407180786,
-0.02093423716723919,
-0.05981461703777313,
0.0385361984372139,
-0.015078229829668999,
0.006627222988754511,
-0.029626362025737762,
-0.0675830990076065,
0.08201830834150314,
0.07764658331871033,
0.023052532225847244,
0.01419480424374342,
-0.03247857838869095,
-0.06306029111146927,
-0.036798350512981415,
-0.03280247002840042,
-0.040563102811574936,
-0.01401256863027811,
0.01178666390478611,
-0.0362396277487278,
-0.019289547577500343,
-0.03312821686267853,
0.009328523650765419,
-0.008129190653562546,
0.02879856713116169,
0.035322967916727066,
0.052260298281908035,
0.027011316269636154,
0.054822616279125214,
-0.03228595852851868,
-0.031720682978630066,
0.07167550176382065,
0.01717604510486126,
0.0016459280159324408,
-0.05326228588819504,
-0.04121369495987892,
0.035462528467178345,
0.006566789932549,
-0.004596421029418707,
0.004812545608729124,
0.06670583784580231,
-0.001645720680244267,
0.005384558346122503,
0.022176727652549744,
-0.01673922687768936,
-0.04192447289824486,
-0.014990689232945442,
0.004281350411474705,
-0.011825955472886562,
-0.05023742467164993,
-0.006315967068076134,
0.008493115194141865,
0.0584135539829731,
-0.03684911131858826,
-0.06572066992521286,
0.005698834545910358,
0.07263749837875366,
0.00916779600083828,
-0.001648870063945651,
-0.025032227858901024,
0.008183705620467663,
-0.0484369620680809,
-0.04181278496980667,
-0.0015850723721086979,
-0.0049254815094172955,
0.019008463248610497,
0.03419291600584984,
0.023816687986254692,
-0.0154011445119977,
0.022538408637046814,
0.027474770322442055,
0.051786720752716064,
0.014064019545912743,
-0.027611443772912025,
0.015834901481866837,
-0.04374094307422638,
0.01712506264448166,
0.0037257252261042595,
-0.02218826301395893,
-0.037239547818899155,
-0.09603193402290344,
-0.013563651591539383,
-0.00565023347735405,
-0.033819060772657394,
-0.0061304643750190735,
0.03984758257865906,
-0.015896065160632133,
-0.011156091466546059,
0.007505343295633793,
0.01766725443303585,
0.035050928592681885,
-0.03642226755619049,
0.06390754878520966,
-0.00010513012966839597,
0.031060142442584038,
-0.04644669592380524,
0.029093580320477486,
-0.039831362664699554,
0.0012972925323992968,
-0.004364633467048407,
0.06129246577620506,
0.023049237206578255,
0.028983183205127716,
0.07236862927675247,
0.04009741172194481,
-0.031931161880493164,
0.048192478716373444,
0.05624379217624664,
-0.005183790344744921,
-0.05805366486310959,
0.0032750023528933525,
-0.009688179939985275,
-0.017767127603292465,
-0.0002469173923600465,
-0.021818658336997032,
0.0030428320169448853,
0.02534455806016922,
0.007174579426646233,
0.01234713476151228,
-0.005373314488679171,
-0.0312404315918684,
-0.04784432053565979,
-0.06677387654781342,
-0.03686554729938507,
0.01749506965279579,
-0.0335255041718483,
0.030968526378273964,
0.04692741110920906,
0.017182843759655952,
0.07791060954332352,
0.06635784357786179,
-0.010736336931586266,
-0.058746181428432465,
0.017282241955399513,
0.029304323717951775,
-0.020130563527345657,
-0.055152811110019684,
-0.06512962281703949,
0.05041856691241264,
0.04301457107067108,
-0.004577499348670244,
-0.0750194862484932,
-0.0035882580559700727,
0.05800308287143707,
-0.021050013601779938,
0.06346353888511658,
-0.013181797228753567,
0.045976921916007996,
0.06461337953805923,
-0.03366178646683693,
0.01998654194176197,
-0.049220677465200424,
0.020073793828487396,
0.002733636647462845,
0.010448633693158627,
-0.034271240234375,
-0.0286983884871006,
-0.046319302171468735,
0.02615083009004593,
0.04599416255950928,
0.04433750361204147,
0.04780014604330063,
-0.0062874685972929,
-0.057481080293655396,
0.004217118956148624,
0.008479129523038864,
-0.04534430429339409,
-0.009608146734535694,
0.030542921274900436,
0.04503938555717468,
-0.03930022567510605,
-0.00115340540651232,
-0.014922138303518295,
-0.002962700556963682,
0.01971474476158619,
-0.0004369831585790962,
-0.060678303241729736,
-0.05285673961043358,
0.011794785037636757,
-0.025975290685892105,
-0.026464004069566727,
-0.09618284553289413,
0.04815397784113884,
-0.03417861461639404,
0.001151205156929791,
0.04483652487397194,
0.009669891558587551,
0.01698288321495056,
0.04769996926188469,
-0.012740067206323147,
0.024209609255194664,
-0.04168309271335602,
0.02172493189573288,
-0.014825843274593353,
-0.019007287919521332,
-0.02362687699496746,
-0.07601499557495117,
-0.00797866377979517,
-0.01905675232410431,
-0.023736316710710526,
-0.03889699652791023,
-0.01988578587770462,
0.005969120189547539,
-0.009766891598701477,
0.01559066865593195,
-0.015873156487941742,
0.037841301411390305,
-0.022860508412122726,
-0.01403647568076849,
-0.019753770902752876,
-0.0429849773645401,
-0.09025377780199051,
-0.05343593657016754,
-0.008621811866760254,
0.012637018226087093,
0.016924802213907242,
0.02614409103989601,
0.013524564914405346,
0.014845079742372036,
0.020514952018857002,
-0.017207417637109756,
0.02998853474855423,
0.007604730781167746,
-0.029905376955866814,
-0.03596850857138634,
-0.006806955672800541,
0.036708470433950424,
0.04613032937049866,
-0.009157374501228333,
0.026127377524971962,
0.03778766840696335,
-0.03864385560154915,
0.006036705337464809,
0.04285009950399399,
0.02233206108212471,
-0.0662195086479187,
-0.03626248985528946,
-0.03035091608762741,
-0.04490828886628151,
0.021062958985567093,
-0.02643708884716034,
-0.019242148846387863,
0.010534933768212795,
0.03247475624084473,
0.03919486701488495,
-0.004822982475161552,
-0.03853965178132057,
0.0020688592921942472,
-0.02722415328025818,
0.02416299469769001,
-0.03673512488603592,
0.06295512616634369,
-0.034596219658851624,
0.02059027925133705,
0.0018941916059702635,
-0.03679727390408516,
-0.023832570761442184,
0.03703882172703743,
0.011404703371226788,
-0.014338058419525623,
-0.017068512737751007,
0.00908952672034502,
-0.026628492400050163,
0.0304560549557209,
0.004720527213066816,
0.021863816305994987,
-0.011603828519582748,
0.030626296997070312,
-0.04500181972980499,
0.0015179309993982315,
-0.019060999155044556,
0.005228825379163027,
-0.023667268455028534,
-0.038771674036979675,
-0.015198618173599243,
-0.07180412858724594,
0.0393594428896904,
0.009085177443921566,
0.045388925820589066,
0.021635757759213448,
0.00859264750033617,
-0.0008289976394735277,
0.032889269292354584,
-0.06589249521493912,
-0.011781735345721245,
-0.018973223865032196,
0.04040519520640373,
0.01375038642436266,
0.06495164334774017,
0.035420019179582596,
-0.03873413801193237,
-0.05420936271548271,
0.04261360317468643,
0.025492776185274124,
0.025652650743722916,
0.010730333626270294,
0.061776675283908844,
0.03987069055438042,
0.048812203109264374,
-0.036901287734508514,
0.001563408994115889,
-0.011305978521704674,
-0.015566305257380009,
0.023809053003787994,
0.02435687556862831,
0.031908437609672546,
0.007600449491292238,
-0.044500164687633514,
-0.011991225183010101,
0.08462581038475037,
0.042183589190244675,
0.007820318453013897,
-0.0010395727586001158,
-0.03377537801861763,
0.0127119654789567,
-0.006315756123512983,
-0.05863650143146515,
-0.016848430037498474,
0.022104250267148018,
-0.05020078271627426,
0.08414474129676819,
-0.025436796247959137,
0.03211934491991997,
0.01788685843348503,
0.025271788239479065,
0.009006239473819733,
0.05285570025444031,
-0.04063126817345619,
0.024192629382014275,
0.03371506929397583,
-0.041648197919130325,
0.019778214395046234,
-0.029091965407133102,
0.06542124599218369,
-0.06497826427221298,
0.050404056906700134,
0.02963983453810215,
0.008726086467504501,
0.012856326065957546,
-0.028222251683473587,
-0.03381170332431793,
0.009897800162434578,
-0.04610804468393326,
0.0767836719751358,
-0.017942700535058975,
-0.05415523797273636,
0.03909219428896904,
0.03206964209675789,
-0.07912284880876541,
0.06750353425741196,
0.029589198529720306,
0.06154176965355873,
0.05408400669693947,
0.04500918835401535,
-0.06976797431707382,
0.005373852327466011,
-0.036212749779224396,
0.03958436846733093,
-0.07600223273038864,
0.013098056428134441,
0.03537696599960327,
-0.04150612652301788,
-0.00918074045330286,
0.0434957854449749,
-0.002822381677106023,
-0.008548120968043804,
0.005411642137914896,
-0.05164908617734909,
-0.04490109533071518,
-0.013044682331383228,
0.0178825706243515,
-0.043139830231666565,
0.013946558348834515,
-0.05399388074874878,
0.012672970071434975,
0.00034485512878745794,
-0.011099680326879025,
-0.059309281408786774,
0.007537261117249727,
0.05493377894163132,
-0.0819607824087143,
-0.02608143351972103,
0.04857882112264633,
0.008256410248577595,
-0.026988495141267776,
0.03300967440009117,
-0.009533264674246311,
0.031854793429374695,
0.02460838295519352,
-0.0011677431175485253,
0.02813468873500824,
-0.04226216673851013,
-0.01956382393836975,
0.015507521107792854,
-0.028733985498547554,
0.013386601582169533,
-0.017045242711901665,
0.040099136531353,
0.05796806886792183,
0.03332279995083809,
0.01629108190536499,
-0.05916019529104233,
-0.029492300003767014,
0.013281947933137417,
-0.05010091885924339,
0.021897882223129272,
0.0030460492707788944,
-0.044951532036066055,
-0.04664742201566696,
-0.0176094938069582,
-0.02160053141415119,
0.03756411373615265,
-0.021621622145175934,
-0.014302675612270832,
0.021197983995079994,
-0.026626121252775192,
-0.035459913313388824,
-0.08225303143262863,
-0.018283246085047722,
-0.040790360420942307,
0.03190677613019943,
0.021437307819724083,
-0.03023342415690422,
0.01628880947828293,
-0.051964905112981796,
-0.061882276087999344,
0.028161315247416496,
0.008552055805921555,
-0.03347387909889221,
0.05146639049053192,
0.04451892897486687,
-0.039075981825590134,
0.020759217441082,
0.038683775812387466,
-0.02186492271721363,
0.012120966799557209,
0.0016335471300408244,
0.0015599440084770322,
0.030464274808764458,
0.023151906207203865,
-0.036523085087537766,
-0.01602131687104702,
-0.05230643227696419,
-0.03915185108780861,
-0.039902761578559875,
-0.012627234682440758,
0.06730563938617706
] |
CAMeL-Lab/bert-base-arabic-camelbert-ca-pos-msa | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 71 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: 'إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع'
---
# CAMeLBERT-CA POS-MSA Model
## Model description
**CAMeLBERT-CA POS-MSA Model** is a Modern Standard Arabic (MSA) POS tagging model that was built by fine-tuning the [CAMeLBERT-CA](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-ca/) model.
For the fine-tuning, we used the [PATB](https://dl.acm.org/doi/pdf/10.5555/1621804.1621808) dataset.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-CA POS-MSA model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> pos = pipeline('token-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-ca-pos-msa')
>>> text = 'إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع'
>>> pos(text)
[{'entity': 'noun', 'score': 0.9999758, 'index': 1, 'word': 'إمارة', 'start': 0, 'end': 5}, {'entity': 'noun_prop', 'score': 0.9997559, 'index': 2, 'word': 'أبوظبي', 'start': 6, 'end': 12}, {'entity': 'pron', 'score': 0.99996257, 'index': 3, 'word': 'هي', 'start': 13, 'end': 15}, {'entity': 'noun', 'score': 0.9958452, 'index': 4, 'word': 'إحدى', 'start': 16, 'end': 20}, {'entity': 'noun', 'score': 0.9999635, 'index': 5, 'word': 'إما', 'start': 21, 'end': 24}, {'entity': 'noun', 'score': 0.99991685, 'index': 6, 'word': '##رات', 'start': 24, 'end': 27}, {'entity': 'noun', 'score': 0.99997497, 'index': 7, 'word': 'دولة', 'start': 28, 'end': 32}, {'entity': 'noun', 'score': 0.9999795, 'index': 8, 'word': 'الإمارات', 'start': 33, 'end': 41}, {'entity': 'adj', 'score': 0.99924207, 'index': 9, 'word': 'العربية', 'start': 42, 'end': 49}, {'entity': 'adj', 'score': 0.99994195, 'index': 10, 'word': 'المتحدة', 'start': 50, 'end': 57}, {'entity': 'noun_num', 'score': 0.9997414, 'index': 11, 'word': 'السبع', 'start': 58, 'end': 63}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
0.00023554975632578135,
-0.0034544847439974546,
-0.015881218016147614,
0.043089479207992554,
0.04906423017382622,
0.02835676819086075,
-0.0029724969062954187,
-0.0026217945851385593,
-0.012332157231867313,
0.07073961198329926,
0.009986026212573051,
-0.024680836126208305,
0.01319941971451044,
0.04835623502731323,
-0.03726109117269516,
-0.03485903888940811,
0.008077549748122692,
-0.02323005348443985,
-0.05322900786995888,
-0.018629927188158035,
0.001998563762754202,
-0.005328268278390169,
-0.00024034219677560031,
-0.0006298611988313496,
-0.007213388103991747,
0.023809567093849182,
-0.02844076231122017,
0.04911129176616669,
0.04139535874128342,
-0.06879925727844238,
-0.018746348097920418,
-0.0091028967872262,
-0.031312279403209686,
-0.022395892068743706,
-0.03564510866999626,
0.0026679604779928923,
0.006665356922894716,
-0.0013008476234972477,
0.0281631238758564,
0.06444261223077774,
-0.03659862279891968,
0.021751733496785164,
-0.003928084392100573,
-0.03636541962623596,
0.05224436894059181,
0.0060356492176651955,
-0.02910216897726059,
0.002523321658372879,
0.043071746826171875,
-0.04043453931808472,
-0.05859452486038208,
-0.04660850390791893,
-0.05025726929306984,
0.02555079758167267,
0.00810519140213728,
-0.008430619724094868,
-0.03537784144282341,
-0.018046922981739044,
0.07957907021045685,
-0.0627589002251625,
-0.04850589856505394,
-0.0038080448284745216,
-0.05111877620220184,
0.029945051297545433,
0.023226089775562286,
-0.024147173389792442,
0.012387365102767944,
-0.04446940869092941,
0.051390085369348526,
-0.03190615400671959,
0.0523543618619442,
-0.012930450029671192,
0.013489087112247944,
-0.08820367604494095,
0.02506348304450512,
-0.023417534306645393,
0.04342077299952507,
0.03928811848163605,
-0.023343857377767563,
0.07417023181915283,
0.023090653121471405,
0.0056657795794308186,
0.035058438777923584,
-0.00801796279847622,
-0.008514178916811943,
0.03023742325603962,
-0.05796893313527107,
-0.004748738836497068,
0.01937183365225792,
0.03728676959872246,
-0.04133888706564903,
-0.04158720001578331,
-0.011186459101736546,
-0.04166092723608017,
-0.021740933880209923,
0.025030329823493958,
0.029548723250627518,
-0.027162693440914154,
0.058153409510850906,
0.02687727101147175,
0.016292130574584007,
0.05440818518400192,
-0.018704481422901154,
0.043328139930963516,
-0.02344541810452938,
-0.010295731946825981,
-0.03581264242529869,
-0.03172757849097252,
-0.028209315612912178,
0.04700259119272232,
0.008095662109553814,
-0.03808554634451866,
-0.04981161281466484,
0.04010174423456192,
-0.005383990239351988,
-0.025882262736558914,
0.042046938091516495,
-0.0295474324375391,
-0.05198787897825241,
-0.04673205316066742,
0.04577627778053284,
-0.00024915862013585865,
0.005155104678124189,
0.00884938146919012,
-0.05252246558666229,
-0.01244228333234787,
-0.06152154132723808,
-0.018349867314100266,
-0.020484860986471176,
0.032430410385131836,
-0.003908626735210419,
0.024052083492279053,
0.017423879355192184,
-0.06442617624998093,
0.02301901951432228,
0.002168983919546008,
-0.05939164012670517,
0.034248631447553635,
0.039817050099372864,
0.10488169640302658,
-0.058537714183330536,
-0.0326579324901104,
0.021288812160491943,
0.005440966226160526,
-0.020348792895674706,
-0.006830341648310423,
0.0147795919328928,
-0.03255182132124901,
-0.026697315275669098,
-0.024754352867603302,
0.06494235247373581,
-0.05439665541052818,
0.015234135091304779,
0.0478191152215004,
-0.009695199318230152,
0.034097664058208466,
-0.032750021666288376,
-0.015686478465795517,
0.019392479211091995,
-0.006358295679092407,
-0.03578056022524834,
0.04375295341014862,
-0.0006900525186210871,
-0.016879240050911903,
-0.04195156320929527,
-0.04175427183508873,
0.0017583871958777308,
0.08901998400688171,
0.0016134345205500722,
-0.0013762259623035789,
-0.018633266910910606,
0.0014733655843883753,
0.04650244489312172,
0.008906402625143528,
-0.05442473292350769,
0.026194041594862938,
0.06307290494441986,
0.00027271671569906175,
-0.032158829271793365,
0.08544784784317017,
0.009515015408396721,
-0.009172532707452774,
-0.014402885921299458,
-0.010201864875853062,
-0.009567754343152046,
-0.031193319708108902,
0.04103668034076691,
0.027578815817832947,
-0.013805598020553589,
-0.029413767158985138,
-0.012244299054145813,
0.0668102279305458,
0.0106094591319561,
0.019001685082912445,
-0.016001325100660324,
-0.02842010371387005,
-0.04700092226266861,
0.04294344782829285,
-0.006483588367700577,
-0.0023953577037900686,
-0.03111805021762848,
0.0034825471229851246,
-0.0014598764246329665,
0.038854584097862244,
0.05149368196725845,
0.03686732053756714,
-0.027990797534585,
0.07166467607021332,
-0.03070036694407463,
0.018957320600748062,
-0.03552040457725525,
-0.03481680527329445,
-0.0024453189689666033,
0.031860530376434326,
0.018231971189379692,
0.03730767220258713,
-0.014484388753771782,
-0.031076543033123016,
0.031156456097960472,
0.04942118749022484,
0.03389503434300423,
0.027400506660342216,
-0.031166553497314453,
-0.0071116043254733086,
0.02582411840558052,
0.06168856844305992,
-0.08183962106704712,
-0.04796816036105156,
0.0394221693277359,
0.04640099033713341,
-0.06263326108455658,
0.016413861885666847,
-0.008311406709253788,
0.034590937197208405,
-0.038333721458911896,
-0.056484635919332504,
0.048296548426151276,
0.03016483411192894,
-0.004619981162250042,
0.03733881935477257,
-0.014629489742219448,
-0.026803532615303993,
0.026261085644364357,
0.01732044667005539,
-0.01428128406405449,
-0.04022606834769249,
0.0026988249737769365,
0.02302328683435917,
0.07815321534872055,
-0.0408623181283474,
0.02782095968723297,
0.004034433048218489,
0.016119150444865227,
0.04890686646103859,
-0.04025039076805115,
0.024442512542009354,
0.028068220242857933,
-0.0017035752534866333,
-0.01918179728090763,
0.040429092943668365,
-0.009139792062342167,
0.014192933216691017,
0.056014612317085266,
0.002667347202077508,
0.06588483601808548,
-0.022362226620316505,
0.05067730322480202,
0.0745198205113411,
0.015120799653232098,
0.015712231397628784,
0.0156645979732275,
0.07770649343729019,
0.008943850174546242,
-0.008071595802903175,
0.05976152420043945,
-0.05591331794857979,
0.018857518211007118,
-0.0523248091340065,
0.0015946452040225267,
-0.020201943814754486,
-0.020943718031048775,
0.04924435168504715,
0.012218211777508259,
-0.013335482217371464,
-0.01759655959904194,
-0.01610560715198517,
-0.011867338791489601,
0.036979131400585175,
-0.019866321235895157,
-0.03159516304731369,
-0.0020137340761721134,
-0.010422189719974995,
0.02393304742872715,
-0.05609312281012535,
-0.018375011160969734,
-0.023798959329724312,
-0.04133272171020508,
0.00006875589315313846,
-0.06859606504440308,
-0.02046181447803974,
-0.061756961047649384,
-0.010331730358302593,
0.03425639122724533,
0.0074369232170283794,
-0.0019487671088427305,
-0.049508094787597656,
0.034295689314603806,
-0.03892020881175995,
-0.0313902348279953,
-0.02843143232166767,
-0.07044057548046112,
-0.024477647617459297,
-0.04273790866136551,
0.039104919880628586,
0.017336707562208176,
0.005530510563403368,
0.01071549765765667,
0.027089999988675117,
-0.016722360625863075,
-0.03640668839216232,
0.03590439632534981,
0.03740986809134483,
-0.020879168063402176,
-0.06132636219263077,
0.03367709740996361,
-0.014388270676136017,
0.0015714294277131557,
-0.03045838326215744,
-0.05819714441895485,
0.0821809470653534,
0.0796387568116188,
0.012617089785635471,
0.003960058093070984,
-0.02289508283138275,
-0.05497129261493683,
-0.03527507185935974,
-0.03559693694114685,
-0.03698531910777092,
-0.018299130722880363,
0.0018042023293673992,
-0.035282641649246216,
-0.018840458244085312,
-0.033220063894987106,
0.0019055609591305256,
-0.004859945271164179,
0.030778370797634125,
0.03790389373898506,
0.045151565223932266,
0.02751619927585125,
0.05415792390704155,
-0.03360956162214279,
-0.025366345420479774,
0.06866440176963806,
0.015099604614078999,
0.00521309208124876,
-0.05911824479699135,
-0.04114522784948349,
0.03821580484509468,
0.010339230298995972,
-0.004548034630715847,
0.0012629266129806638,
0.06392547488212585,
-0.003464934416115284,
0.001796204480342567,
0.021274376660585403,
-0.010141008533537388,
-0.03395548462867737,
-0.009161150082945824,
0.005261114798486233,
-0.011126254685223103,
-0.0527566559612751,
-0.01087608840316534,
0.014311937615275383,
0.06080838665366173,
-0.04258183389902115,
-0.0633510872721672,
-0.005067423451691866,
0.06700024753808975,
0.008044581860303879,
0.007717566564679146,
-0.028713425621390343,
0.009964407421648502,
-0.040410347282886505,
-0.040976718068122864,
0.005965992342680693,
-0.0015371587360277772,
0.014128195121884346,
0.03186199814081192,
0.016492409631609917,
-0.02462494559586048,
0.02079467475414276,
0.028346078470349312,
0.052180029451847076,
0.00885319896042347,
-0.034423328936100006,
0.015756037086248398,
-0.037470027804374695,
0.017338663339614868,
0.0030429824255406857,
-0.026218894869089127,
-0.035126518458127975,
-0.10303113609552383,
-0.007972008548676968,
0.002498117508366704,
-0.03236282244324684,
-0.009342583827674389,
0.043705206364393234,
-0.020632304251194,
-0.008282921276986599,
0.0008101717103272676,
0.020700400695204735,
0.04413340240716934,
-0.028722746297717094,
0.06631969660520554,
0.0032884255051612854,
0.027965975925326347,
-0.04152750223875046,
0.033026836812496185,
-0.03464040532708168,
0.002275776118040085,
-0.0004888762487098575,
0.05946745723485947,
0.023466823622584343,
0.03836123272776604,
0.07277511805295944,
0.04595367982983589,
-0.03628816828131676,
0.048852838575839996,
0.062330473214387894,
-0.003398973261937499,
-0.05325934663414955,
0.003960674162954092,
-0.012520179152488708,
-0.021266372874379158,
0.005997660104185343,
-0.02684439904987812,
-0.0018018935807049274,
0.036544058471918106,
0.003645167453214526,
0.0022537384647876024,
0.0003002769371960312,
-0.030150387436151505,
-0.05377168208360672,
-0.0685349702835083,
-0.03830155357718468,
0.01732335239648819,
-0.023553023114800453,
0.03405154496431351,
0.04587377607822418,
0.02025945670902729,
0.06680672615766525,
0.07733824849128723,
-0.00961729884147644,
-0.04909980297088623,
0.013874583877623081,
0.028320686891674995,
-0.027205539867281914,
-0.060215845704078674,
-0.07026945054531097,
0.0539335198700428,
0.04696384817361832,
0.0038210893981158733,
-0.07465451210737228,
0.0014386085094884038,
0.05625200644135475,
-0.01909928396344185,
0.06660602986812592,
-0.006666378118097782,
0.047121062874794006,
0.05923487991094589,
-0.033061396330595016,
0.023297319188714027,
-0.045214325189590454,
0.00906685832887888,
-0.005140073597431183,
0.01762332022190094,
-0.025837164372205734,
-0.03282788023352623,
-0.04293942451477051,
0.025849496945738792,
0.04178207367658615,
0.04441346600651741,
0.055063653737306595,
-0.01158047653734684,
-0.051490627229213715,
0.0019200892420485616,
0.00399998901411891,
-0.05099538341164589,
-0.006804425269365311,
0.034372225403785706,
0.03606029599905014,
-0.035131122916936874,
-0.005327901337295771,
-0.02406594343483448,
-0.006483645178377628,
0.01594562642276287,
0.0062475670129060745,
-0.05803448334336281,
-0.05227237567305565,
0.008088769391179085,
-0.02387327328324318,
-0.02537105232477188,
-0.0965457484126091,
0.05895737558603287,
-0.033989544957876205,
0.0019450938561931252,
0.04122099652886391,
0.019207844510674477,
0.021513402462005615,
0.04837029054760933,
-0.01939062401652336,
0.0214708149433136,
-0.04073121398687363,
0.02710801176726818,
-0.005335269495844841,
-0.023103175684809685,
-0.018537087365984917,
-0.07468634098768234,
-0.0046064965426921844,
-0.017084838822484016,
-0.028882548213005066,
-0.032536160200834274,
-0.015921056270599365,
0.01452493667602539,
-0.009226775728166103,
0.010117782279849052,
-0.02170552872121334,
0.04318976402282715,
-0.026914041489362717,
-0.012581833638250828,
-0.01456906832754612,
-0.04041816666722298,
-0.09336540102958679,
-0.052809569984674454,
-0.007009279448539019,
0.01378312986344099,
0.022134171798825264,
0.027173442766070366,
0.013363703154027462,
0.00531638041138649,
0.005937245208770037,
-0.011406918056309223,
0.024675434455275536,
0.004341773223131895,
-0.031537994742393494,
-0.035563863813877106,
-0.006435370072722435,
0.041928354650735855,
0.04341550171375275,
-0.019377080723643303,
0.028944281861186028,
0.03867767006158829,
-0.036360129714012146,
-0.0020169357303529978,
0.035508573055267334,
0.021568724885582924,
-0.06290799379348755,
-0.03725375607609749,
-0.024488693103194237,
-0.048334140330553055,
0.02614336647093296,
-0.020717957988381386,
-0.010454759933054447,
0.008985575288534164,
0.038582004606723785,
0.037629298865795135,
-0.009100712835788727,
-0.03870270401239395,
-0.0012054734397679567,
-0.0395306795835495,
0.017818085849285126,
-0.0377575047314167,
0.0688307136297226,
-0.03909054771065712,
0.017355700954794884,
0.006498274859040976,
-0.03745695576071739,
-0.018351703882217407,
0.04129478707909584,
0.011124452576041222,
-0.009113316424190998,
-0.016898544505238533,
0.01579536870121956,
-0.025877876207232475,
0.03490797430276871,
0.01655993051826954,
0.020846981555223465,
-0.009973752312362194,
0.025815630331635475,
-0.04867659881711006,
-0.0029522643890231848,
-0.021421732380986214,
0.004114060662686825,
-0.023882878944277763,
-0.040056705474853516,
-0.015024572610855103,
-0.06819146871566772,
0.022150937467813492,
0.008558684028685093,
0.047990985214710236,
0.03156859800219536,
0.002655342221260071,
-0.0038444504607468843,
0.02779250778257847,
-0.06359221786260605,
-0.006528989877551794,
-0.01550011895596981,
0.039834536612033844,
0.021631954237818718,
0.0694781094789505,
0.041968438774347305,
-0.03400193527340889,
-0.052823975682258606,
0.044618871062994,
0.01932527683675289,
0.025294780731201172,
0.02038075402379036,
0.05997331067919731,
0.04194563999772072,
0.05355152487754822,
-0.026393482461571693,
0.0030780977103859186,
-0.016846483573317528,
-0.017339343205094337,
0.014197018928825855,
0.01853223517537117,
0.02797829546034336,
0.006079399958252907,
-0.05173809826374054,
-0.02526966854929924,
0.08264832198619843,
0.034802597016096115,
0.0032538617961108685,
0.0039035987574607134,
-0.02573472075164318,
0.031189415603876114,
-0.009764904156327248,
-0.0621819868683815,
-0.01638145186007023,
0.014476045966148376,
-0.042268455028533936,
0.08212924003601074,
-0.0228388924151659,
0.03123357892036438,
0.009301403537392616,
0.02445141039788723,
0.0027019078843295574,
0.052696339786052704,
-0.04292606562376022,
0.03692564740777016,
0.04228842630982399,
-0.040317609906196594,
0.013538622297346592,
-0.03055686689913273,
0.06259454786777496,
-0.06853955239057541,
0.05744025111198425,
0.03554841876029968,
0.023092402145266533,
0.011284598149359226,
-0.027031663805246353,
-0.03211764618754387,
0.01092777494341135,
-0.04384355619549751,
0.06964270770549774,
0.0006059609586372972,
-0.05620567128062248,
0.035761091858148575,
0.03792719170451164,
-0.07372518628835678,
0.0735795795917511,
0.02558300830423832,
0.06567370146512985,
0.0555763877928257,
0.04169335961341858,
-0.0731472373008728,
0.011545766144990921,
-0.044069867581129074,
0.03873446211218834,
-0.07312784343957901,
0.010457214899361134,
0.03385784104466438,
-0.041357651352882385,
-0.005625023972243071,
0.03546125814318657,
0.0010095915058627725,
-0.009183159098029137,
0.006701162084937096,
-0.05800642445683479,
-0.0506804920732975,
-0.020458897575736046,
0.017575634643435478,
-0.044781189411878586,
0.025227965787053108,
-0.04805472865700722,
0.011794830672442913,
0.010243339464068413,
-0.019081449136137962,
-0.05949018895626068,
0.004559243563562632,
0.050579432398080826,
-0.0824827328324318,
-0.03732339292764664,
0.05073763057589531,
0.0046279472298920155,
-0.018074441701173782,
0.03324798494577408,
-0.004016118124127388,
0.03534919396042824,
0.024084139615297318,
-0.0008975500822998583,
0.024482373148202896,
-0.05250523239374161,
-0.011185390874743462,
0.01906479336321354,
-0.022788861766457558,
0.02282295934855938,
-0.0239980798214674,
0.037949688732624054,
0.06861334294080734,
0.037387531250715256,
0.004390041343867779,
-0.05434085801243782,
-0.030286511406302452,
0.012869620695710182,
-0.04850902780890465,
0.018665682524442673,
-0.00465660635381937,
-0.046825118362903595,
-0.041993919759988785,
-0.012599702924489975,
-0.024002568796277046,
0.030458398163318634,
-0.024183915928006172,
-0.010011694394052029,
0.024888919666409492,
-0.028001492843031883,
-0.03904816880822182,
-0.07906071096658707,
-0.024185972288250923,
-0.036715101450681686,
0.034415293484926224,
0.01756022870540619,
-0.03458768501877785,
0.013265439309179783,
-0.046408042311668396,
-0.06255266070365906,
0.03893505781888962,
0.012153150513768196,
-0.02823987975716591,
0.058530595153570175,
0.03267822787165642,
-0.03950294479727745,
0.015483131632208824,
0.04362955689430237,
-0.026342695578932762,
0.0038339763414114714,
-0.005911555141210556,
0.009142579510807991,
0.026090696454048157,
0.033332664519548416,
-0.03054235130548477,
-0.0010541208321228623,
-0.04451102763414383,
-0.040222540497779846,
-0.04058448225259781,
-0.012445214204490185,
0.07012630999088287
] |
CAMeL-Lab/bert-base-arabic-camelbert-ca-sentiment | [
"pytorch",
"tf",
"bert",
"text-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 73 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "أنا بخير"
---
# CAMeLBERT-CA SA Model
## Model description
**CAMeLBERT-CA SA Model** is a Sentiment Analysis (SA) model that was built by fine-tuning the [CAMeLBERT Classical Arabic (CA)](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-ca/) model.
For the fine-tuning, we used the [ASTD](https://aclanthology.org/D15-1299.pdf), [ArSAS](http://lrec-conf.org/workshops/lrec2018/W30/pdf/22_W30.pdf), and [SemEval](https://aclanthology.org/S17-2088.pdf) datasets.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."
* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-CA SA model directly as part of our [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) SA component (*recommended*) or as part of the transformers pipeline.
#### How to use
To use the model with the [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) SA component:
```python
>>> from camel_tools.sentiment import SentimentAnalyzer
>>> sa = SentimentAnalyzer("CAMeL-Lab/bert-base-arabic-camelbert-ca-sentiment")
>>> sentences = ['أنا بخير', 'أنا لست بخير']
>>> sa.predict(sentences)
>>> ['positive', 'negative']
```
You can also use the SA model directly with a transformers pipeline:
```python
>>> from transformers import pipeline
e
>>> sa = pipeline('text-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-ca-sentiment')
>>> sentences = ['أنا بخير', 'أنا لست بخير']
>>> sa(sentences)
[{'label': 'positive', 'score': 0.9616648554801941},
{'label': 'negative', 'score': 0.9779177904129028}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
-0.0015996209112927318,
-0.009127357974648476,
-0.03588829189538956,
0.0668833926320076,
0.05020458623766899,
0.035654861479997635,
-0.016750115901231766,
-0.010824315249919891,
-0.02756699174642563,
0.07000283896923065,
0.005822431296110153,
-0.04490521177649498,
0.028848450630903244,
0.035366762429475784,
-0.05407692492008209,
-0.020445240661501884,
-0.003313071094453335,
-0.02587496116757393,
-0.05390314757823944,
-0.03910665586590767,
0.0014841617085039616,
0.00607083085924387,
0.0061102923937141895,
-0.0016419440507888794,
0.0037560497876256704,
0.027627235278487206,
-0.03597865626215935,
0.05043473094701767,
0.03470933437347412,
-0.07178816199302673,
-0.02327265590429306,
-0.014956158585846424,
-0.04183392971754074,
-0.018834535032510757,
-0.016593651846051216,
0.018083417788147926,
0.007388273719698191,
-0.001049976795911789,
0.00782401580363512,
0.051143545657396317,
-0.01744709350168705,
0.011967183090746403,
-0.009148865938186646,
-0.017150813713669777,
0.0466618649661541,
0.01638701558113098,
-0.03318622335791588,
0.005972012877464294,
0.03419157862663269,
-0.06717562675476074,
-0.06623297929763794,
-0.0652962327003479,
-0.04514467716217041,
0.047944337129592896,
0.012112997472286224,
-0.0008230268722400069,
-0.032078132033348083,
-0.026624703779816628,
0.09334327280521393,
-0.06031027063727379,
-0.041283637285232544,
0.0079616354778409,
-0.056311920285224915,
0.0016397158615291119,
0.02732987143099308,
-0.03020296059548855,
0.02140943706035614,
-0.033531252294778824,
0.054896026849746704,
-0.033905912190675735,
0.0437210351228714,
-0.02232157066464424,
0.027359504252672195,
-0.07022586464881897,
0.015206700190901756,
-0.029727112501859665,
0.04779377207159996,
0.04403172433376312,
-0.024459445849061012,
0.07502490282058716,
0.008873732760548592,
0.010053436271846294,
0.04155021160840988,
-0.011639208532869816,
-0.009790539741516113,
0.0341455414891243,
-0.06351430714130402,
0.00039359836955554783,
0.0029591317288577557,
0.0340014286339283,
-0.04165007546544075,
-0.04412942752242088,
-0.012885894626379013,
-0.045833926647901535,
-0.023712191730737686,
0.0316544845700264,
0.02533012628555298,
-0.030268829315900803,
0.055016033351421356,
0.016163639724254608,
0.034507524222135544,
0.04191875085234642,
-0.027574079111218452,
0.03062250278890133,
-0.017000731080770493,
-0.029323957860469818,
-0.027826346457004547,
-0.032210834324359894,
-0.028953926637768745,
0.05183340981602669,
-0.009963390417397022,
-0.06004339084029198,
-0.05467817559838295,
0.018699266016483307,
-0.0023229129146784544,
-0.03776363655924797,
0.033708423376083374,
-0.02862459234893322,
-0.04876064881682396,
-0.046494174748659134,
0.04127797484397888,
0.0007240124396048486,
-0.0023069127928465605,
0.007183687295764685,
-0.07337585836648941,
0.011256413534283638,
-0.06422784179449081,
-0.02627466805279255,
-0.02700539492070675,
0.02174459584057331,
0.009230593219399452,
0.025620179250836372,
0.013672919943928719,
-0.07709198445081711,
0.01176406443119049,
-0.005822949111461639,
-0.06684989482164383,
0.03788524866104126,
0.03497281298041344,
0.10645008087158203,
-0.04898405820131302,
-0.03588470444083214,
0.01579165644943714,
0.0027558361180126667,
-0.010207290761172771,
-0.008003029972314835,
0.028826585039496422,
-0.021627165377140045,
-0.030458800494670868,
-0.01783379726111889,
0.06524058431386948,
-0.05647957697510719,
-0.0004463248769752681,
0.04549277201294899,
0.005244751926511526,
0.027795009315013885,
-0.03445778042078018,
-0.019893119111657143,
0.009465070441365242,
0.011202515102922916,
-0.022978831082582474,
0.056466445326805115,
-0.005424046888947487,
-0.03736044466495514,
-0.04056306555867195,
-0.0378810316324234,
-0.008429893292486668,
0.08812019973993301,
0.002918686717748642,
-0.02325400896370411,
-0.0209343321621418,
0.008811358362436295,
0.04092192277312279,
0.003954353276640177,
-0.03275509178638458,
0.005794132594019175,
0.06707023829221725,
0.012635882943868637,
-0.01638578437268734,
0.07746079564094543,
-0.011986521072685719,
-0.009362667798995972,
-0.01461500208824873,
-0.0036728326231241226,
0.0019307187758386135,
-0.03345082327723503,
0.047590214759111404,
0.05156886577606201,
-0.0237493384629488,
-0.020978085696697235,
-0.028840769082307816,
0.06623254716396332,
-0.011539972387254238,
0.010677442885935307,
-0.01704827882349491,
-0.010373261757194996,
-0.04372459650039673,
0.0349741168320179,
-0.008955871686339378,
0.007500875741243362,
-0.04053013399243355,
-0.0028345175087451935,
-0.0017790348501875997,
0.0252109095454216,
0.037193067371845245,
0.021140988916158676,
-0.028778614476323128,
0.0792899802327156,
-0.03410213068127632,
0.0069871749728918076,
-0.04056147485971451,
-0.04871472716331482,
-0.007857155986130238,
0.03519795089960098,
0.019609767943620682,
0.038786038756370544,
-0.004450639244168997,
-0.04199095442891121,
0.01425920706242323,
0.04798583686351776,
0.025782911106944084,
0.03679424896836281,
-0.021989546716213226,
-0.025054341182112694,
0.030809881165623665,
0.06472878158092499,
-0.08236321061849594,
-0.04382888227701187,
0.02971978485584259,
0.034775517880916595,
-0.039558496326208115,
0.015170499682426453,
-0.009891506284475327,
0.03165311738848686,
-0.022923482581973076,
-0.08231216669082642,
0.06260005384683609,
0.030018912628293037,
0.002549173543229699,
0.028168704360723495,
-0.0008666033972986042,
-0.02107294276356697,
0.015146768651902676,
0.01918623596429825,
-0.011582016944885254,
-0.05122445151209831,
0.014589056372642517,
0.011868592351675034,
0.08869180083274841,
-0.03701489046216011,
0.0340438075363636,
0.0028949242550879717,
0.017304575070738792,
0.02492162212729454,
-0.028141748160123825,
0.027041956782341003,
0.020847748965024948,
0.0016352834645658731,
-0.03187301382422447,
0.0333763025701046,
-0.0050088693387806416,
0.017781589180231094,
0.05258427560329437,
-0.020938895642757416,
0.059477515518665314,
0.002597208134829998,
0.05068257078528404,
0.057684674859046936,
0.025546174496412277,
0.016977204009890556,
0.011678725481033325,
0.07447800040245056,
0.0069386521354317665,
-0.013344895094633102,
0.07015792280435562,
-0.06159652769565582,
0.022869549691677094,
-0.04234416410326958,
-0.006234208587557077,
-0.007686206139624119,
-0.0248811487108469,
0.03776991367340088,
0.0041942233219742775,
-0.003894414519891143,
-0.018510594964027405,
-0.01555352471768856,
0.010726509615778923,
0.0317598432302475,
-0.019075987860560417,
-0.021727176383137703,
-0.008832959458231926,
-0.052921608090400696,
0.004534066189080477,
-0.05784289911389351,
-0.00240354728884995,
-0.011793194338679314,
-0.04289493337273598,
0.0005723757785744965,
-0.06543105840682983,
-0.05342146381735802,
-0.05925261229276657,
-0.0016757355770096183,
0.03938654437661171,
0.013192005455493927,
0.0012386003509163857,
-0.04319353774189949,
0.044445957988500595,
-0.03300000727176666,
-0.034897059202194214,
-0.027788935229182243,
-0.057679615914821625,
-0.00458071194589138,
-0.04028385132551193,
0.04072680324316025,
0.020563289523124695,
0.01961068995296955,
-0.008660255931317806,
0.00938816461712122,
-0.022882938385009766,
-0.04662732407450676,
0.03026762790977955,
0.04396608844399452,
-0.01570788584649563,
-0.08663377910852432,
0.008563341572880745,
0.0030799321830272675,
0.0016255098162218928,
-0.04138205945491791,
-0.04843461886048317,
0.06943386793136597,
0.08390764147043228,
0.009387184865772724,
0.02261967398226261,
-0.029402511194348335,
-0.05444623902440071,
-0.05353699252009392,
-0.023373063653707504,
-0.04515461251139641,
-0.026877202093601227,
-0.010055585764348507,
-0.03724859282374382,
-0.030448243021965027,
-0.03349826857447624,
-0.005531682632863522,
0.0016450220718979836,
0.013548251241445541,
0.03243350610136986,
0.038514912128448486,
0.033304035663604736,
0.03715388849377632,
-0.044650137424468994,
-0.020876817405223846,
0.07568532973527908,
0.022969383746385574,
0.019166091457009315,
-0.07101485133171082,
-0.03314874693751335,
0.05253224074840546,
0.009865693747997284,
-0.01803724467754364,
-0.008984290063381195,
0.07726012915372849,
-0.007245335727930069,
-0.004384047817438841,
0.0056489454582333565,
0.009731858037412167,
-0.0470159612596035,
-0.01636279560625553,
0.014133390970528126,
-0.018790511414408684,
-0.051198117434978485,
-0.013365666382014751,
-0.0006422944134101272,
0.05345538258552551,
-0.032891761511564255,
-0.051579296588897705,
0.00907533336430788,
0.06260531395673752,
0.009841043502092361,
0.0028740977868437767,
-0.028781743720173836,
0.006370898801833391,
-0.046939898282289505,
-0.03873639926314354,
0.008084403350949287,
-0.024384362623095512,
0.00629974901676178,
0.046504948288202286,
0.010903755202889442,
-0.00617183418944478,
0.013971731998026371,
0.023192070424556732,
0.04572334140539169,
0.004371350165456533,
-0.04048648104071617,
0.01784052699804306,
-0.04388010501861572,
0.010715097188949585,
0.02875637076795101,
-0.042231593281030655,
-0.05077569559216499,
-0.0823543593287468,
-0.024238940328359604,
0.005081261042505503,
-0.012718028388917446,
-0.019685199484229088,
0.027041282504796982,
-0.023955538868904114,
-0.011972722597420216,
0.007951423525810242,
0.010163938626646996,
0.04470154643058777,
-0.03811943531036377,
0.07049575448036194,
-0.0051577589474618435,
0.028796687722206116,
-0.062389615923166275,
0.02437417209148407,
-0.038696516305208206,
0.006601699162274599,
-0.0019172483589500189,
0.05932171642780304,
0.013760735280811787,
0.04180515930056572,
0.061222631484270096,
0.045955508947372437,
-0.029558368027210236,
0.03426923602819443,
0.05075876787304878,
0.000831646379083395,
-0.03769693151116371,
0.006339760031551123,
-0.015108377672731876,
-0.026357334107160568,
0.0019479835173115134,
-0.02827417477965355,
-0.0024989701341837645,
0.015946535393595695,
-0.0026480797678232193,
0.008056731894612312,
0.010037414729595184,
-0.03213067352771759,
-0.04418483376502991,
-0.05492359772324562,
-0.03550593927502632,
0.027546556666493416,
-0.0295680221170187,
0.04092581942677498,
0.043480731546878815,
0.026044733822345734,
0.06512787193059921,
0.06829647719860077,
0.0036228292156010866,
-0.042333442717790604,
0.024258119985461235,
0.039236780256032944,
-0.028767261654138565,
-0.06348258256912231,
-0.06801405549049377,
0.03671732172369957,
0.040802303701639175,
0.01748727820813656,
-0.08217015117406845,
0.006410231348127127,
0.06068860739469528,
-0.018242811784148216,
0.04011642560362816,
-0.011760320514440536,
0.07022729516029358,
0.0646335706114769,
-0.025991788133978844,
0.029985999688506126,
-0.03887580335140228,
0.011394799686968327,
-0.003164018504321575,
0.01744462549686432,
-0.026615174487233162,
-0.01692928560078144,
-0.054609887301921844,
0.03022386133670807,
0.03718068078160286,
0.023390384390950203,
0.040012720972299576,
-0.013291796669363976,
-0.025300875306129456,
0.012752966955304146,
-0.001546284300275147,
-0.03919803351163864,
-0.003667658194899559,
0.04290038347244263,
0.03542757034301758,
-0.034235622733831406,
0.0012400324922055006,
-0.014996159821748734,
0.0093808863312006,
0.03045821748673916,
-0.001888016820885241,
-0.04328181967139244,
-0.04619249701499939,
0.02120412327349186,
-0.014811063185334206,
-0.022815125063061714,
-0.09046388417482376,
0.031340472400188446,
-0.027215126901865005,
0.0010957769118249416,
0.0366441048681736,
0.017569955438375473,
0.008430808782577515,
0.04847349971532822,
-0.010261838324368,
0.011295557953417301,
-0.04411247372627258,
0.02358723245561123,
-0.009481281042098999,
-0.012421310879290104,
-0.02466781996190548,
-0.06424956023693085,
-0.011762669309973717,
-0.007630304433405399,
-0.0286337248980999,
-0.02122577093541622,
-0.028200356289744377,
0.027717450633645058,
-0.006246811244636774,
0.006176592782139778,
-0.0262848362326622,
0.05788261815905571,
-0.04118647053837776,
-0.028920702636241913,
-0.014272433705627918,
-0.03742477670311928,
-0.08332093805074692,
-0.04755988344550133,
-0.013572517782449722,
0.01698429137468338,
0.018102437257766724,
0.018020598217844963,
0.02183132991194725,
0.016416305676102638,
0.010582545772194862,
-0.02955440804362297,
0.024535486474633217,
0.006872154306620359,
-0.05078187212347984,
-0.041839849203825,
-0.025665441527962685,
0.028259793296456337,
0.060909271240234375,
-0.024564336985349655,
0.030736519023776054,
0.030468519777059555,
-0.04473213478922844,
-0.011946269311010838,
0.02717525325715542,
0.04038222134113312,
-0.07012273371219635,
-0.02822166681289673,
-0.026589857414364815,
-0.029002761468291283,
0.03310199826955795,
-0.022840987890958786,
-0.011990070343017578,
0.029936760663986206,
0.03669031709432602,
0.03173690289258957,
-0.0002755864697974175,
-0.052394844591617584,
0.01792783848941326,
-0.024189798161387444,
0.007768169976770878,
-0.05111348256468773,
0.05669913440942764,
-0.05347835645079613,
0.011337291449308395,
-0.0026644193567335606,
-0.025113679468631744,
-0.032385192811489105,
0.04605134576559067,
-0.011092359200119972,
-0.005703732371330261,
0.017590075731277466,
0.007765200920403004,
-0.03227624669671059,
0.039491329342126846,
-0.01110408827662468,
0.017429567873477936,
-0.03477473929524422,
0.03652048110961914,
-0.04553939029574394,
-0.007048593834042549,
-0.026590026915073395,
0.002898266538977623,
-0.043039899319410324,
-0.04306722804903984,
-0.013050267472863197,
-0.05595896393060684,
0.029367098584771156,
0.021440604701638222,
0.04094794765114784,
0.03937855735421181,
0.006837757769972086,
-0.01937170885503292,
0.015151221305131912,
-0.06653105467557907,
-0.01569187454879284,
-0.01054292730987072,
0.04965755715966225,
0.008053931407630444,
0.06475406140089035,
0.032796964049339294,
-0.06013685464859009,
-0.04997698590159416,
0.04280508682131767,
0.01283696573227644,
0.0074378871358931065,
0.011882075108587742,
0.0687539353966713,
0.03154913708567619,
0.0373765230178833,
-0.023740921169519424,
-0.010000226087868214,
-0.021067321300506592,
-0.019378043711185455,
0.004327397793531418,
0.009312789887189865,
-0.007820560596883297,
0.013461844064295292,
-0.042796578258275986,
-0.02898547425866127,
0.08720624446868896,
0.02448555827140808,
0.00970439426600933,
0.018359975889325142,
-0.03434067964553833,
0.016790304332971573,
-0.007363464217633009,
-0.045789435505867004,
-0.008769973181188107,
0.011654139496386051,
-0.031346119940280914,
0.07137221097946167,
-0.018706271424889565,
0.020315036177635193,
0.025427812710404396,
0.02713184803724289,
-0.01566564105451107,
0.031811706721782684,
-0.03583164140582085,
0.029622580856084824,
0.050436485558748245,
-0.035401273518800735,
0.019266542047262192,
-0.044680364429950714,
0.06193915009498596,
-0.08162219077348709,
0.0589323490858078,
0.03976435214281082,
0.010048952884972095,
-0.00046099306200630963,
-0.02426047809422016,
-0.0313015878200531,
0.017957253381609917,
-0.04355239495635033,
0.07583307474851608,
-0.007278449833393097,
-0.06521839648485184,
0.038590285927057266,
0.02903626672923565,
-0.07574619352817535,
0.07136314362287521,
0.03687801957130432,
0.05971072241663933,
0.04946991056203842,
0.026374951004981995,
-0.08105192333459854,
0.00044537431676872075,
-0.043156471103429794,
0.0389435775578022,
-0.056248921900987625,
0.0017424965044483542,
0.04784129932522774,
-0.046378571540117264,
-0.01129681896418333,
0.03637058287858963,
-0.014839718118309975,
-0.021039463579654694,
0.018545133993029594,
-0.07093675434589386,
-0.03440465033054352,
-0.01907138153910637,
0.019943220540881157,
-0.038797955960035324,
0.005248872563242912,
-0.04118743911385536,
0.009095336310565472,
-0.001749058486893773,
-0.008365213871002197,
-0.04632563889026642,
-0.00004263838491169736,
0.02676566317677498,
-0.07033935934305191,
-0.019470268860459328,
0.04516982287168503,
0.010490252636373043,
-0.015563216991722584,
0.04387173429131508,
-0.012643598020076752,
0.027295058593153954,
0.019211219623684883,
0.004670294467359781,
0.00905647687613964,
-0.04677620530128479,
-0.02980131283402443,
0.018864843994379044,
-0.018728606402873993,
0.024216854944825172,
-0.007092091720551252,
0.03733573481440544,
0.06405730545520782,
0.016207832843065262,
0.01698441058397293,
-0.05125809088349342,
-0.03345159813761711,
0.031235819682478905,
-0.04162048548460007,
0.01641780696809292,
-0.00019159300427418202,
-0.05514061823487282,
-0.0311597753316164,
-0.006576497573405504,
-0.020401211455464363,
0.0339181125164032,
-0.035297710448503494,
-0.011407445184886456,
0.016555244103074074,
-0.032906051725149155,
-0.024893812835216522,
-0.07035109400749207,
-0.030513813719153404,
-0.0457376129925251,
0.03866266459226608,
0.026493249461054802,
-0.03834933415055275,
0.0167487021535635,
-0.06431711465120316,
-0.05539068579673767,
0.03363056480884552,
0.03344520181417465,
-0.05626953765749931,
0.062127962708473206,
0.03939847648143768,
-0.028997693210840225,
0.0017362394137308002,
0.04105113446712494,
-0.02658287063241005,
0.011462949216365814,
-0.001560761476866901,
0.022350192070007324,
0.04082431644201279,
0.029381563887000084,
-0.02150653302669525,
-0.012687206268310547,
-0.04931953549385071,
-0.04938116297125816,
-0.04609232768416405,
0.0057997857220470905,
0.06783612072467804
] |
CAMeL-Lab/bert-base-arabic-camelbert-ca | [
"pytorch",
"tf",
"jax",
"bert",
"fill-mask",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 580 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "الهدف من الحياة هو [MASK] ."
---
# CAMeLBERT: A collection of pre-trained models for Arabic NLP tasks
## Model description
**CAMeLBERT** is a collection of BERT models pre-trained on Arabic texts with different sizes and variants.
We release pre-trained language models for Modern Standard Arabic (MSA), dialectal Arabic (DA), and classical Arabic (CA), in addition to a model pre-trained on a mix of the three.
We also provide additional models that are pre-trained on a scaled-down set of the MSA variant (half, quarter, eighth, and sixteenth).
The details are described in the paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."*
This model card describes **CAMeLBERT-CA** (`bert-base-arabic-camelbert-ca`), a model pre-trained on the CA (classical Arabic) dataset.
||Model|Variant|Size|#Word|
|-|-|:-:|-:|-:|
||`bert-base-arabic-camelbert-mix`|CA,DA,MSA|167GB|17.3B|
|✔|`bert-base-arabic-camelbert-ca`|CA|6GB|847M|
||`bert-base-arabic-camelbert-da`|DA|54GB|5.8B|
||`bert-base-arabic-camelbert-msa`|MSA|107GB|12.6B|
||`bert-base-arabic-camelbert-msa-half`|MSA|53GB|6.3B|
||`bert-base-arabic-camelbert-msa-quarter`|MSA|27GB|3.1B|
||`bert-base-arabic-camelbert-msa-eighth`|MSA|14GB|1.6B|
||`bert-base-arabic-camelbert-msa-sixteenth`|MSA|6GB|746M|
## Intended uses
You can use the released model for either masked language modeling or next sentence prediction.
However, it is mostly intended to be fine-tuned on an NLP task, such as NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
We release our fine-tuninig code [here](https://github.com/CAMeL-Lab/CAMeLBERT).
#### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='CAMeL-Lab/bert-base-arabic-camelbert-ca')
>>> unmasker("الهدف من الحياة هو [MASK] .")
[{'sequence': '[CLS] الهدف من الحياة هو الحياة. [SEP]',
'score': 0.11048116534948349,
'token': 3696,
'token_str': 'الحياة'},
{'sequence': '[CLS] الهدف من الحياة هو الإسلام. [SEP]',
'score': 0.03481195122003555,
'token': 4677,
'token_str': 'الإسلام'},
{'sequence': '[CLS] الهدف من الحياة هو الموت. [SEP]',
'score': 0.03402028977870941,
'token': 4295,
'token_str': 'الموت'},
{'sequence': '[CLS] الهدف من الحياة هو العلم. [SEP]',
'score': 0.027655426412820816,
'token': 2789,
'token_str': 'العلم'},
{'sequence': '[CLS] الهدف من الحياة هو هذا. [SEP]',
'score': 0.023059621453285217,
'token': 2085,
'token_str': 'هذا'}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`. Otherwise, you could download the models manually.
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-ca')
model = AutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-ca')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AutoTokenizer, TFAutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-ca')
model = TFAutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-ca')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
## Training data
- CA (classical Arabic)
- [OpenITI (Version 2020.1.2)](https://zenodo.org/record/3891466#.YEX4-F0zbzc)
## Training procedure
We use [the original implementation](https://github.com/google-research/bert) released by Google for pre-training.
We follow the original English BERT model's hyperparameters for pre-training, unless otherwise specified.
### Preprocessing
- After extracting the raw text from each corpus, we apply the following pre-processing.
- We first remove invalid characters and normalize white spaces using the utilities provided by [the original BERT implementation](https://github.com/google-research/bert/blob/eedf5716ce1268e56f0a50264a88cafad334ac61/tokenization.py#L286-L297).
- We also remove lines without any Arabic characters.
- We then remove diacritics and kashida using [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools).
- Finally, we split each line into sentences with a heuristics-based sentence segmenter.
- We train a WordPiece tokenizer on the entire dataset (167 GB text) with a vocabulary size of 30,000 using [HuggingFace's tokenizers](https://github.com/huggingface/tokenizers).
- We do not lowercase letters nor strip accents.
### Pre-training
- The model was trained on a single cloud TPU (`v3-8`) for one million steps in total.
- The first 90,000 steps were trained with a batch size of 1,024 and the rest was trained with a batch size of 256.
- The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%.
- We use whole word masking and a duplicate factor of 10.
- We set max predictions per sequence to 20 for the dataset with max sequence length of 128 tokens and 80 for the dataset with max sequence length of 512 tokens.
- We use a random seed of 12345, masked language model probability of 0.15, and short sequence probability of 0.1.
- The optimizer used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01, learning rate warmup for 10,000 steps and linear decay of the learning rate after.
## Evaluation results
- We evaluate our pre-trained language models on five NLP tasks: NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
- We fine-tune and evaluate the models using 12 dataset.
- We used Hugging Face's transformers to fine-tune our CAMeLBERT models.
- We used transformers `v3.1.0` along with PyTorch `v1.5.1`.
- The fine-tuning was done by adding a fully connected linear layer to the last hidden state.
- We use \\(F_{1}\\) score as a metric for all tasks.
- Code used for fine-tuning is available [here](https://github.com/CAMeL-Lab/CAMeLBERT).
### Results
| Task | Dataset | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | --------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| NER | ANERcorp | MSA | 80.8% | 67.9% | 74.1% | 82.4% | 82.0% | 82.1% | 82.6% | 80.8% |
| POS | PATB (MSA) | MSA | 98.1% | 97.8% | 97.7% | 98.3% | 98.2% | 98.3% | 98.2% | 98.2% |
| | ARZTB (EGY) | DA | 93.6% | 92.3% | 92.7% | 93.6% | 93.6% | 93.7% | 93.6% | 93.6% |
| | Gumar (GLF) | DA | 97.3% | 97.7% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% |
| SA | ASTD | MSA | 76.3% | 69.4% | 74.6% | 76.9% | 76.0% | 76.8% | 76.7% | 75.3% |
| | ArSAS | MSA | 92.7% | 89.4% | 91.8% | 93.0% | 92.6% | 92.5% | 92.5% | 92.3% |
| | SemEval | MSA | 69.0% | 58.5% | 68.4% | 72.1% | 70.7% | 72.8% | 71.6% | 71.2% |
| DID | MADAR-26 | DA | 62.9% | 61.9% | 61.8% | 62.6% | 62.0% | 62.8% | 62.0% | 62.2% |
| | MADAR-6 | DA | 92.5% | 91.5% | 92.2% | 91.9% | 91.8% | 92.2% | 92.1% | 92.0% |
| | MADAR-Twitter-5 | MSA | 75.7% | 71.4% | 74.2% | 77.6% | 78.5% | 77.3% | 77.7% | 76.2% |
| | NADI | DA | 24.7% | 17.3% | 20.1% | 24.9% | 24.6% | 24.6% | 24.9% | 23.8% |
| Poetry | APCD | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
### Results (Average)
| | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| Variant-wise-average<sup>[[1]](#footnote-1)</sup> | MSA | 82.1% | 75.7% | 80.1% | 83.4% | 83.0% | 83.3% | 83.2% | 82.3% |
| | DA | 74.4% | 72.1% | 72.9% | 74.2% | 74.0% | 74.3% | 74.1% | 73.9% |
| | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
| Macro-Average | ALL | 78.7% | 74.7% | 77.1% | 79.2% | 79.0% | 79.2% | 79.1% | 78.6% |
<a name="footnote-1">[1]</a>: Variant-wise-average refers to average over a group of tasks in the same language variant.
## Acknowledgements
This research was supported with Cloud TPUs from Google’s TensorFlow Research Cloud (TFRC).
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
```
| [
0.010813814587891102,
0.005719753913581371,
-0.02290237322449684,
0.07510701566934586,
0.04381897300481796,
0.013714419677853584,
0.00008877531945472583,
-0.025125637650489807,
-0.019145909696817398,
0.06257520616054535,
0.0031634450424462557,
-0.025657519698143005,
0.010311909951269627,
0.0403517484664917,
-0.05431196466088295,
-0.019070956856012344,
0.0044669704511761665,
-0.02334422618150711,
-0.0505424402654171,
-0.031860291957855225,
-0.01574421115219593,
0.004152393899857998,
0.004195880610495806,
0.01697413995862007,
0.004845723509788513,
0.009215505793690681,
-0.01815987564623356,
0.05786703899502754,
0.022485898807644844,
-0.06103821471333504,
-0.01849251799285412,
-0.027997609227895737,
-0.04203569144010544,
-0.022637780755758286,
-0.03420212119817734,
0.006402293685823679,
0.000027227333703194745,
0.0028965382371097803,
0.01783713512122631,
0.06274710595607758,
-0.014922072179615498,
0.0015505726914852858,
-0.011421598494052887,
-0.03788543492555618,
0.020763946697115898,
-0.0012109752278774977,
-0.0418853722512722,
0.011307835578918457,
0.04606683924794197,
-0.06393792480230331,
-0.06941059231758118,
-0.04038206860423088,
-0.03935324028134346,
0.01806000806391239,
0.0071465689688920975,
-0.008403304032981396,
-0.025936540216207504,
-0.022632630541920662,
0.08070306479930878,
-0.06258352845907211,
-0.054692063480615616,
0.0011043264530599117,
-0.05601520091295242,
0.02260909229516983,
0.024791471660137177,
-0.028524290770292282,
0.02319486066699028,
-0.04650565981864929,
0.061188954859972,
-0.021107859909534454,
0.02947360649704933,
-0.021743614226579666,
0.008326862007379532,
-0.07792676985263824,
0.02778586372733116,
-0.031012313440442085,
0.04181206226348877,
0.04867327958345413,
-0.04415154084563255,
0.06794378161430359,
0.0032986626029014587,
-0.008990596048533916,
0.028919408097863197,
-0.022833073511719704,
-0.007509488146752119,
0.027257293462753296,
-0.050133995711803436,
-0.0017541074194014072,
0.011632976122200489,
0.02196485921740532,
-0.041347771883010864,
-0.03555290400981903,
-0.03438056632876396,
-0.03464745357632637,
-0.012984102591872215,
0.02068595215678215,
0.03184634819626808,
-0.02008935995399952,
0.05467025563120842,
0.013266273774206638,
0.037017740309238434,
0.037440650165081024,
-0.03235893324017525,
0.054514531046152115,
-0.030036186799407005,
-0.022912295535206795,
-0.03727085515856743,
-0.03693661093711853,
-0.02054513990879059,
0.023027144372463226,
0.00360085885040462,
-0.05133109539747238,
-0.05530111864209175,
0.055882103741168976,
-0.028847889974713326,
-0.042682480067014694,
0.0288104135543108,
-0.03033527359366417,
-0.06471507996320724,
-0.036445651203393936,
0.03876849263906479,
-0.013745436444878578,
0.021906156092882156,
0.01471487246453762,
-0.07950771600008011,
0.023538265377283096,
-0.05982247740030289,
-0.021050069481134415,
-0.01668582111597061,
0.032925937324762344,
-0.0024607630912214518,
0.03993937373161316,
0.016759291291236877,
-0.07558216899633408,
0.009229911491274834,
-0.01989566534757614,
-0.038685619831085205,
0.04218045622110367,
0.015058361925184727,
0.11140227317810059,
-0.03917878493666649,
-0.057182371616363525,
0.024039270356297493,
0.004660139791667461,
-0.019890891388058662,
-0.007639209274202585,
0.0179742444306612,
-0.024397147819399834,
-0.018185509368777275,
-0.014919997192919254,
0.057710494846105576,
-0.05685240775346756,
0.015781700611114502,
0.05815117433667183,
0.0016683877911418676,
0.026368143036961555,
-0.04221074655652046,
-0.01812496781349182,
-0.0005085419397801161,
0.0007060786010697484,
-0.02528640627861023,
0.037982407957315445,
-0.004454669076949358,
-0.03644183278083801,
-0.041742678731679916,
-0.04064157232642174,
-0.003065728349611163,
0.08471057564020157,
0.01245349831879139,
0.006337007507681847,
-0.021210873499512672,
0.0022263401187956333,
0.04265909269452095,
0.005825099069625139,
-0.05014967918395996,
0.026478035375475883,
0.050529222935438156,
0.013741601258516312,
-0.0210074782371521,
0.0796908363699913,
-0.0010327895870432258,
-0.016369881108403206,
-0.02832767739892006,
0.007165694143623114,
0.009260104969143867,
-0.01827259361743927,
0.048740703612565994,
0.04007542133331299,
-0.010553508065640926,
-0.04067054018378258,
-0.02555675245821476,
0.07199881225824356,
0.0020788884721696377,
0.00843878835439682,
0.003845933824777603,
-0.012914923951029778,
-0.052557721734046936,
0.03837968781590462,
-0.01903444342315197,
0.009591695852577686,
-0.039939478039741516,
0.011837391182780266,
0.009909478947520256,
0.02994900569319725,
0.0469464436173439,
0.051610562950372696,
-0.007798716891556978,
0.06337574124336243,
-0.021034657955169678,
0.011230921372771263,
-0.051796674728393555,
-0.045201465487480164,
-0.00464868638664484,
0.03841157630085945,
0.030904287472367287,
0.044913358986377716,
-0.01759251579642296,
-0.04455673322081566,
0.03762616217136383,
0.06056391820311546,
0.04690146446228027,
0.012502864003181458,
-0.03104974888265133,
-0.007635286543518305,
0.037231508642435074,
0.06081497296690941,
-0.07082393765449524,
-0.034526675939559937,
0.031252823770046234,
0.059496425092220306,
-0.025418879464268684,
0.008205445483326912,
-0.005310592707246542,
0.027823014184832573,
-0.03335747867822647,
-0.07274382561445236,
0.048490993678569794,
0.03402969613671303,
0.006727576721459627,
0.025403831154108047,
0.0029216164257377386,
0.006665143184363842,
0.01874799281358719,
0.040507953613996506,
-0.002702619880437851,
-0.036444615572690964,
0.007341995369642973,
0.015970593318343163,
0.06638500839471817,
-0.04555993899703026,
0.025377754122018814,
-0.011547021567821503,
0.02924848534166813,
0.03077918291091919,
-0.021074585616588593,
0.035362608730793,
0.009059262461960316,
0.010020613670349121,
-0.04388358071446419,
0.042175423353910446,
-0.009025726467370987,
0.01741473749279976,
0.057242441922426224,
-0.012240750715136528,
0.049701448529958725,
-0.0032219411805272102,
0.05711132287979126,
0.05316878482699394,
0.030056826770305634,
0.01616435870528221,
0.004319041967391968,
0.07692991197109222,
0.013708843849599361,
-0.015671411529183388,
0.0732305496931076,
-0.05491887778043747,
0.010767491534352303,
-0.05684426426887512,
0.008953751064836979,
0.004587882198393345,
-0.015371317975223064,
0.025041935965418816,
0.013475598767399788,
0.006320090964436531,
-0.007106604985892773,
-0.017663583159446716,
0.0005542022408917546,
0.034285593777894974,
-0.029842138290405273,
-0.011852744966745377,
-0.02211737260222435,
-0.033553097397089005,
0.0071344575844705105,
-0.06676988303661346,
-0.0139221902936697,
-0.01700945757329464,
-0.03795667737722397,
0.00015188072575256228,
-0.08128968626260757,
-0.02656741626560688,
-0.050966497510671616,
-0.009515746496617794,
0.019587429240345955,
0.014813100919127464,
-0.008141675032675266,
-0.04320981726050377,
0.030136920511722565,
-0.051313627511262894,
-0.024243850260972977,
-0.030361812561750412,
-0.06366615742444992,
-0.03157750889658928,
-0.04101921617984772,
0.04831678792834282,
0.027967607602477074,
-0.0006973620620556176,
0.0094559695571661,
0.026965171098709106,
-0.007812860421836376,
-0.040790095925331116,
0.021091682836413383,
0.0403144434094429,
-0.03562365472316742,
-0.062911257147789,
0.012092815712094307,
-0.0019161537056788802,
-0.001283857156522572,
-0.02427784912288189,
-0.03047829680144787,
0.08832874894142151,
0.08429176360368729,
0.012356976047158241,
0.00577345909550786,
-0.011148017831146717,
-0.06165080517530441,
-0.047895900905132294,
-0.019286317750811577,
-0.047898367047309875,
-0.020841384306550026,
-0.02710483968257904,
-0.030784180387854576,
-0.028018539771437645,
-0.05142949894070625,
0.005356769543141127,
0.0021838119719177485,
0.015476035885512829,
0.04495280981063843,
0.04132085293531418,
0.019084198400378227,
0.049922876060009,
-0.038046564906835556,
-0.02107967622578144,
0.06892802566289902,
0.0072890035808086395,
0.026717567816376686,
-0.06658542901277542,
-0.027117189019918442,
0.052485786378383636,
0.005252808798104525,
-0.011786380782723427,
-0.018648425117135048,
0.08097491413354874,
-0.0033245470840483904,
-0.009361292235553265,
0.006315283011645079,
-0.000560432905331254,
-0.036326516419649124,
-0.017913777381181717,
0.011048045940697193,
-0.014874715358018875,
-0.051478784531354904,
-0.016201937571167946,
0.0026296605356037617,
0.05879601836204529,
-0.03629761561751366,
-0.054710421711206436,
-0.005021962337195873,
0.057181112468242645,
-0.0018708932911977172,
-0.005400911904871464,
-0.02574453502893448,
0.007781818974763155,
-0.04313581436872482,
-0.03284527733922005,
-0.002006178954616189,
-0.014483243227005005,
-0.006618540268391371,
0.03748058155179024,
0.014301616698503494,
-0.013610838912427425,
0.015656383708119392,
0.03054705634713173,
0.053577546030282974,
0.008553086780011654,
-0.04711131379008293,
0.033303920179605484,
-0.022085463628172874,
0.016437169164419174,
-0.004344304092228413,
-0.03737367317080498,
-0.0500035434961319,
-0.07652365416288376,
-0.008288933895528316,
0.00381277222186327,
-0.04738965630531311,
-0.027890564873814583,
0.03925982490181923,
-0.0292136799544096,
0.006941070314496756,
-0.007394544314593077,
0.031103432178497314,
0.014207822270691395,
-0.026001906022429466,
0.0716606006026268,
-0.0031452516559511423,
0.04100523889064789,
-0.07036614418029785,
0.032105401158332825,
-0.042447470128536224,
0.005050957202911377,
0.009718455374240875,
0.0627128854393959,
0.020664185285568237,
0.052050817757844925,
0.07223784923553467,
0.0474250428378582,
-0.0333772674202919,
0.04375181719660759,
0.05683035030961037,
0.006454132031649351,
-0.039974145591259,
-0.003809071611613035,
-0.017290731891989708,
-0.019752755761146545,
-0.014319422654807568,
-0.007532379124313593,
-0.020177658647298813,
0.024200528860092163,
-0.0061412472277879715,
0.004545687697827816,
0.014173455536365509,
-0.03146473690867424,
-0.03758464753627777,
-0.05234060436487198,
-0.040189534425735474,
0.014282598160207272,
-0.035767991095781326,
0.051797039806842804,
0.02198396623134613,
0.020030861720442772,
0.07253377884626389,
0.06976127624511719,
-0.00645257206633687,
-0.0284199807792902,
0.011955633759498596,
0.0370001420378685,
-0.029538169503211975,
-0.05411706492304802,
-0.05951964855194092,
0.05234561115503311,
0.04474708065390587,
0.013619222678244114,
-0.08815363794565201,
-0.0050047049298882484,
0.05854128673672676,
-0.02524550072848797,
0.0488700270652771,
-0.012950574979186058,
0.054587170481681824,
0.04802224040031433,
-0.03598231077194214,
0.027941744774580002,
-0.017081091180443764,
0.01773861050605774,
-0.006945001892745495,
0.001820282661356032,
-0.016458213329315186,
-0.03344297781586647,
-0.06067143380641937,
0.019389083608984947,
0.03051021136343479,
0.030142350122332573,
0.056194912642240524,
-0.017573697492480278,
-0.03355120122432709,
0.02152540162205696,
0.012390377931296825,
-0.03363369405269623,
0.0005169192445464432,
0.038767874240875244,
0.03731057420372963,
-0.03958190605044365,
0.0022873084526509047,
-0.017412954941391945,
-0.004255492240190506,
0.017171453684568405,
0.01021717768162489,
-0.04867957904934883,
-0.05738357827067375,
0.0059557510539889336,
-0.017163047567009926,
-0.017488988116383553,
-0.0911703109741211,
0.03771580755710602,
-0.025050921365618706,
-0.007054984103888273,
0.024835925549268723,
0.011188320815563202,
0.018491992726922035,
0.0505811832845211,
0.011073676869273186,
0.01424058061093092,
-0.03793678432703018,
0.04620150476694107,
-0.009340766817331314,
-0.011658302508294582,
-0.023813018575310707,
-0.05151930823922157,
0.00836198776960373,
-0.012514856643974781,
-0.012150796130299568,
-0.036236993968486786,
-0.012902953661978245,
0.019057894125580788,
-0.01093406230211258,
0.00027657471946440637,
-0.03042721562087536,
0.05244003236293793,
-0.03590940684080124,
-0.04008902236819267,
-0.025318022817373276,
-0.03359835594892502,
-0.07736147940158844,
-0.06349800527095795,
-0.005972717422991991,
0.02381177246570587,
0.016617348417639732,
0.017860369756817818,
0.023334108293056488,
0.012794455513358116,
0.01778385601937771,
-0.028646454215049744,
0.030566103756427765,
-0.003794395597651601,
-0.04784815013408661,
-0.05418168008327484,
-0.014923940412700176,
0.035140398889780045,
0.033839453011751175,
-0.024371009320020676,
0.02985658496618271,
0.030622292309999466,
-0.0330016165971756,
0.008274879306554794,
0.03068946860730648,
0.026218291372060776,
-0.06836144626140594,
-0.040987562388181686,
-0.0269989762455225,
-0.04940313473343849,
0.04921244457364082,
-0.014841534197330475,
-0.006924754939973354,
0.029234403744339943,
0.0406295508146286,
0.03889072313904762,
0.000754204869735986,
-0.04258148372173309,
0.022457432001829147,
-0.025908883661031723,
0.019029317423701286,
-0.042152419686317444,
0.045694608241319656,
-0.03936545550823212,
0.012409234419465065,
-0.002771491650491953,
-0.02307688631117344,
-0.022190045565366745,
0.0455387644469738,
-0.019833015277981758,
-0.018076512962579727,
-0.0031750909984111786,
0.018384912982583046,
-0.025935115292668343,
0.043308939784765244,
-0.022058771923184395,
0.031686801463365555,
-0.024061694741249084,
0.05588739737868309,
-0.03041226603090763,
-0.013196664862334728,
-0.0315372459590435,
-0.0016567438142374158,
-0.03469286486506462,
-0.023272434249520302,
-0.014588933438062668,
-0.05411190539598465,
0.025705842301249504,
0.036241207271814346,
0.051575083285570145,
0.04702785611152649,
-0.0014515548245981336,
-0.0010400781175121665,
0.020432904362678528,
-0.04954077675938606,
-0.009621965698897839,
-0.010841486044228077,
0.03721322491765022,
0.013737190514802933,
0.07040801644325256,
0.034862857311964035,
-0.05057275667786598,
-0.05916372314095497,
0.04072798416018486,
0.021077176555991173,
0.025417685508728027,
0.015028204768896103,
0.06826242804527283,
0.02970924973487854,
0.043220553547143936,
-0.022282540798187256,
-0.0019468925893306732,
-0.01747841201722622,
-0.034387603402137756,
0.013251814991235733,
0.006536016706377268,
0.004910403396934271,
0.004029897507280111,
-0.031209615990519524,
-0.0359703004360199,
0.07585188746452332,
0.03136857971549034,
-0.0003022161836270243,
0.014766340143978596,
-0.029378511011600494,
0.025563914328813553,
-0.011257389560341835,
-0.0539347380399704,
-0.005802266765385866,
0.0026984084397554398,
-0.041452229022979736,
0.06702373921871185,
-0.00875361729413271,
0.033111728727817535,
0.03192860260605812,
0.0121830515563488,
-0.004360797815024853,
0.05349024757742882,
-0.040457479655742645,
0.02892770990729332,
0.029615337029099464,
-0.04398009181022644,
0.019872494041919708,
-0.0371522456407547,
0.0760975256562233,
-0.09262187778949738,
0.05933869257569313,
0.02817624993622303,
0.01641327142715454,
0.009192748926579952,
-0.009585430845618248,
-0.025993727147579193,
0.003993087913841009,
-0.04314424470067024,
0.07191842794418335,
0.009441353380680084,
-0.05075981095433235,
0.03273417428135872,
0.03833555802702904,
-0.06269282102584839,
0.07758615911006927,
0.04673730209469795,
0.0653570294380188,
0.04036816582083702,
0.034900348633527756,
-0.06149870902299881,
0.004614724777638912,
-0.03505859524011612,
0.030596643686294556,
-0.06110420078039169,
-0.001626897370442748,
0.04794866591691971,
-0.04383797198534012,
-0.008580992929637432,
0.03122258558869362,
-0.024379635229706764,
-0.01623895764350891,
0.03920057788491249,
-0.058386415243148804,
-0.059715110808610916,
-0.007015226874500513,
0.025014733895659447,
-0.056234125047922134,
0.001115481136366725,
-0.04462992772459984,
0.004810701124370098,
0.00518395472317934,
-0.020088281482458115,
-0.06740086525678635,
0.009600565768778324,
0.041284698992967606,
-0.06459376960992813,
-0.030101019889116287,
0.07573719322681427,
0.006531260441988707,
-0.02322964370250702,
0.03490995988249779,
-0.01990477740764618,
0.006274417042732239,
0.027569374069571495,
0.007138371467590332,
0.017550500109791756,
-0.05122990533709526,
-0.02828216180205345,
0.005653341766446829,
-0.018319135531783104,
0.011513273231685162,
-0.014335260726511478,
0.03199668973684311,
0.06621390581130981,
0.037252120673656464,
0.030936386436223984,
-0.04914671555161476,
-0.023173728957772255,
0.04548868164420128,
-0.05438076704740524,
-0.0007089942810125649,
0.0015565775102004409,
-0.04252716526389122,
-0.030740631744265556,
-0.008570981211960316,
-0.02881579101085663,
0.0465097539126873,
-0.04932365193963051,
-0.012686794623732567,
-0.0044397711753845215,
-0.03126927465200424,
-0.03814484179019928,
-0.09697392582893372,
-0.01668287254869938,
-0.04733043164014816,
0.03752778470516205,
0.004606595262885094,
-0.034727875143289566,
0.02906099334359169,
-0.05134033039212227,
-0.05666419863700867,
0.031665291637182236,
0.0274143498390913,
-0.06203413009643555,
0.04735434427857399,
0.043207261711359024,
-0.03274376690387726,
-0.003117701970040798,
0.046673163771629333,
-0.025787657126784325,
0.006327364593744278,
0.006759613752365112,
0.0074870833195745945,
0.028540953993797302,
0.02195017598569393,
-0.01720510981976986,
-0.017882507294416428,
-0.05056585744023323,
-0.04944799095392227,
-0.024696748703718185,
0.002091850619763136,
0.05654479190707207
] |
CAMeL-Lab/bert-base-arabic-camelbert-da-ner | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 42 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع"
---
# CAMeLBERT-DA NER Model
## Model description
**CAMeLBERT-DA NER Model** is a Named Entity Recognition (NER) model that was built by fine-tuning the [CAMeLBERT Dialectal Arabic (DA)](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-da/) model.
For the fine-tuning, we used the [ANERcorp](https://camel.abudhabi.nyu.edu/anercorp/) dataset.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."
* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-DA NER model directly as part of our [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) NER component (*recommended*) or as part of the transformers pipeline.
#### How to use
To use the model with the [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) NER component:
```python
>>> from camel_tools.ner import NERecognizer
>>> from camel_tools.tokenizers.word import simple_word_tokenize
>>> ner = NERecognizer('CAMeL-Lab/bert-base-arabic-camelbert-da-ner')
>>> sentence = simple_word_tokenize('إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع')
>>> ner.predict_sentence(sentence)
>>> ['O', 'B-LOC', 'O', 'O', 'O', 'O', 'B-LOC', 'I-LOC', 'I-LOC', 'O']
```
You can also use the NER model directly with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> ner = pipeline('ner', model='CAMeL-Lab/bert-base-arabic-camelbert-da-ner')
>>> ner("إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع")
[{'word': 'أبوظبي',
'score': 0.9895730018615723,
'entity': 'B-LOC',
'index': 2,
'start': 6,
'end': 12},
{'word': 'الإمارات',
'score': 0.8156259655952454,
'entity': 'B-LOC',
'index': 8,
'start': 33,
'end': 41},
{'word': 'العربية',
'score': 0.890906810760498,
'entity': 'I-LOC',
'index': 9,
'start': 42,
'end': 49},
{'word': 'المتحدة',
'score': 0.8169114589691162,
'entity': 'I-LOC',
'index': 10,
'start': 50,
'end': 57}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a da of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
-0.0050328862853348255,
0.0021546490024775267,
-0.020716313272714615,
0.05523574724793434,
0.04528556764125824,
0.025343898683786392,
-0.015369546599686146,
-0.022452399134635925,
-0.030014649033546448,
0.06543324887752533,
0.006081597879528999,
-0.032468292862176895,
0.015328571200370789,
0.03871942311525345,
-0.05008064955472946,
-0.0281816516071558,
0.000495901214890182,
-0.019899355247616768,
-0.06115005537867546,
-0.04207565262913704,
-0.009404092095792294,
0.014120104722678661,
0.013292885385453701,
0.0027618466410785913,
-0.0005804526153951883,
0.019793860614299774,
-0.013210859149694443,
0.060964878648519516,
0.047212693840265274,
-0.05981292575597763,
-0.0190066397190094,
-0.021013107150793076,
-0.03304428234696388,
-0.014958943240344524,
-0.03126801550388336,
0.003584474790841341,
0.0047184620052576065,
-0.004324515350162983,
0.012943924404680729,
0.0591852180659771,
-0.029965534806251526,
0.029262827709317207,
-0.0069398218765854836,
-0.02686619572341442,
0.043757807463407516,
0.01512012630701065,
-0.03911751136183739,
0.0031877371948212385,
0.03594423457980156,
-0.06798449903726578,
-0.07065027207136154,
-0.05014194920659065,
-0.05214807018637657,
0.03883681446313858,
0.0023464865516871214,
0.00017752478015609086,
-0.023815695196390152,
-0.03513599932193756,
0.08794336020946503,
-0.06700840592384338,
-0.029766704887151718,
-0.0008507677703164518,
-0.05451733618974686,
0.021693209186196327,
0.029393427073955536,
-0.026342123746871948,
0.019381791353225708,
-0.042779404670000076,
0.058772891759872437,
-0.03365428000688553,
0.03940815478563309,
-0.025615520775318146,
0.006507259327918291,
-0.0775982216000557,
0.025056783109903336,
-0.020250407978892326,
0.05104733631014824,
0.0473988838493824,
-0.034630175679922104,
0.06852036714553833,
0.005057309288531542,
0.0017882195534184575,
0.031080495566129684,
-0.021132564172148705,
-0.006305451039224863,
0.03237108513712883,
-0.04338735342025757,
0.004789505619555712,
0.014551610685884953,
0.030141808092594147,
-0.04863362014293671,
-0.037829380482435226,
-0.002004603622481227,
-0.05101751536130905,
-0.02470361813902855,
0.03173115849494934,
0.029774991795420647,
-0.0024215709418058395,
0.04339512065052986,
0.02129967324435711,
0.037175726145505905,
0.04854057356715202,
-0.030836036428809166,
0.047177840024232864,
-0.023287076503038406,
-0.02188369631767273,
-0.02532118186354637,
-0.03112942911684513,
-0.030981944873929024,
0.04512909799814224,
0.01548086665570736,
-0.06038777902722359,
-0.06001504510641098,
0.03819245100021362,
-0.0030755470506846905,
-0.03617645427584648,
0.03721480816602707,
-0.041599031537771225,
-0.06411962956190109,
-0.03317220136523247,
0.04460715875029564,
-0.009509790688753128,
0.009794171899557114,
0.0004913097945973277,
-0.048144467175006866,
0.00271974946372211,
-0.06756652146577835,
-0.02550036460161209,
-0.025912968441843987,
0.02357032150030136,
-0.001970617100596428,
0.029392432421445847,
0.00966603308916092,
-0.0743672251701355,
0.018097752705216408,
-0.015851324424147606,
-0.049575310200452805,
0.057093545794487,
0.037990592420101166,
0.1106700450181961,
-0.0464341938495636,
-0.05155091732740402,
0.008811657316982746,
0.017112813889980316,
-0.015396024100482464,
-0.01285829208791256,
0.018092455342411995,
-0.029687033966183662,
-0.028697703033685684,
-0.008619045838713646,
0.05595635995268822,
-0.057858750224113464,
0.01529255323112011,
0.04587707296013832,
-0.0059748124331235886,
0.04175546392798424,
-0.034073468297719955,
-0.020310770720243454,
0.001483179279603064,
0.022687170654535294,
-0.022215550765395164,
0.05572132766246796,
0.006264207419008017,
-0.013912925496697426,
-0.044874098151922226,
-0.04562876746058464,
-0.0014880795497447252,
0.0895988792181015,
-0.0009080325835384429,
-0.006789139471948147,
-0.03202361613512039,
0.006079079117625952,
0.03873704373836517,
0.01814313977956772,
-0.03407836705446243,
0.02557646855711937,
0.06299718469381332,
0.018204953521490097,
-0.02371549978852272,
0.07336179167032242,
0.007313909474760294,
-0.02368294447660446,
-0.00044545286800712347,
-0.009563441388309002,
0.0036060509737581015,
-0.024778420105576515,
0.039278946816921234,
0.051945000886917114,
-0.024342309683561325,
-0.04239321127533913,
-0.027286766096949577,
0.06971708685159683,
0.005700856447219849,
0.018531858921051025,
-0.0046013034880161285,
-0.016343746334314346,
-0.040049318224191666,
0.04659949615597725,
-0.017083946615457535,
0.01859891042113304,
-0.029395172372460365,
0.014909430406987667,
-0.007207254879176617,
0.03135807439684868,
0.03967718780040741,
0.029881427064538002,
-0.030609095469117165,
0.06680764257907867,
-0.03525835648179054,
0.012718270532786846,
-0.046344079077243805,
-0.041916001588106155,
-0.0017489009769633412,
0.036278437823057175,
0.03376762941479683,
0.0436079241335392,
-0.018442930653691292,
-0.030811913311481476,
0.023934954777359962,
0.0382600873708725,
0.03958265110850334,
0.027828119695186615,
-0.020623741671442986,
-0.021030865609645844,
0.035699088126420975,
0.06963913887739182,
-0.07868509739637375,
-0.03782239928841591,
0.035084206610918045,
0.03119153156876564,
-0.02471894398331642,
0.018825678154826164,
-0.0032291635870933533,
0.0381460078060627,
-0.03860941529273987,
-0.07827819138765335,
0.054058704525232315,
0.018446598201990128,
-0.001770053175278008,
0.028297998011112213,
-0.010828152298927307,
-0.005125080235302448,
0.014995709992945194,
0.020979754626750946,
-0.006249003577977419,
-0.052458811551332474,
0.005448936950415373,
0.010173358954489231,
0.06129647046327591,
-0.04457557201385498,
0.03787807747721672,
0.0027687055990099907,
0.021124331280589104,
0.038576580584049225,
-0.03300762549042702,
0.0326211117208004,
0.017332259565591812,
0.0041656517423689365,
-0.03449515253305435,
0.037968046963214874,
0.0034044357016682625,
0.02220960333943367,
0.04987426847219467,
-0.008036050014197826,
0.06112101301550865,
-0.0065775467082858086,
0.048336341977119446,
0.05613326653838158,
0.025019794702529907,
0.014521629549562931,
0.011589025147259235,
0.0686248242855072,
0.0016683691646903753,
-0.02135823294520378,
0.07678276300430298,
-0.054862383753061295,
0.023035774007439613,
-0.04949766397476196,
-0.0014275095891207457,
-0.007363419514149427,
-0.016948271542787552,
0.05018506571650505,
0.011039771139621735,
0.0023848433047533035,
-0.015991393476724625,
-0.022569453343749046,
0.0025821810122579336,
0.02736678719520569,
-0.025248568505048752,
-0.02634599432349205,
-0.01346623431891203,
-0.03208080306649208,
0.00985159445554018,
-0.07198478281497955,
-0.017948025837540627,
-0.008241049945354462,
-0.03709593415260315,
0.0007931017898954451,
-0.07490115612745285,
-0.03226572275161743,
-0.047094088047742844,
-0.013081626035273075,
0.02815103530883789,
0.02427583560347557,
0.009543019346892834,
-0.043293558061122894,
0.037792496383190155,
-0.046924393624067307,
-0.03988313674926758,
-0.05420028045773506,
-0.05347200855612755,
-0.020353110507130623,
-0.05002845823764801,
0.04061375558376312,
0.011439286172389984,
0.012921839021146297,
0.0062296646647155285,
0.017589664086699486,
-0.03218942880630493,
-0.04554664343595505,
0.025570126250386238,
0.0428718738257885,
-0.0303358007222414,
-0.05447855591773987,
0.02094811201095581,
-0.0009620712953619659,
0.006560743786394596,
-0.04286978393793106,
-0.0546175055205822,
0.061971601098775864,
0.08580449223518372,
0.018961848691105843,
0.021498415619134903,
-0.00632845051586628,
-0.05444910377264023,
-0.045369990170001984,
-0.022427408024668694,
-0.04320422559976578,
-0.03318648412823677,
-0.015176421962678432,
-0.03640862554311752,
-0.01813139207661152,
-0.04670580103993416,
-0.006465132813900709,
0.006165303289890289,
0.007515527307987213,
0.03763440251350403,
0.05731431394815445,
0.025063471868634224,
0.03307684510946274,
-0.03484857454895973,
-0.028066933155059814,
0.06042250245809555,
0.01513234619051218,
0.01915254257619381,
-0.06985019147396088,
-0.03853953257203102,
0.04720171168446541,
0.017113469541072845,
-0.015088777989149094,
-0.013163452036678791,
0.06970077008008957,
-0.007540983147919178,
-0.009770377539098263,
0.008819745853543282,
-0.0014363513328135014,
-0.050611793994903564,
-0.004585384391248226,
0.015643317252397537,
0.001380064175464213,
-0.05821611359715462,
-0.010774836875498295,
0.014137119986116886,
0.051278240978717804,
-0.0352138988673687,
-0.06068778410553932,
-0.001976775238290429,
0.06363503634929657,
0.01408256497234106,
0.006388076581060886,
-0.022053489461541176,
0.014834916219115257,
-0.03284050524234772,
-0.04085281491279602,
0.012498200871050358,
-0.01629934273660183,
0.004963610786944628,
0.04926842823624611,
0.020238511264324188,
-0.017189135774970055,
0.028985921293497086,
0.03545171767473221,
0.04016461968421936,
0.009998059831559658,
-0.025251148268580437,
0.024354470893740654,
-0.02729903534054756,
0.000533221522346139,
0.009922738187015057,
-0.03149852901697159,
-0.048182033002376556,
-0.08969390392303467,
-0.01795824244618416,
0.007334380876272917,
-0.019933994859457016,
-0.028965042904019356,
0.034525010734796524,
-0.011475461535155773,
0.008106357418000698,
0.005917293485254049,
0.023973993957042694,
0.027171237394213676,
-0.028900420293211937,
0.05632472038269043,
-0.016831494867801666,
0.045265235006809235,
-0.05616559460759163,
0.012241481803357601,
-0.030624857172369957,
0.014404159039258957,
-0.002505662851035595,
0.06733360886573792,
0.027535730972886086,
0.028703149408102036,
0.06739851087331772,
0.051001086831092834,
-0.03460141643881798,
0.0364852100610733,
0.048929858952760696,
-0.0007179456297308207,
-0.04902763292193413,
-0.005287304986268282,
-0.018480513244867325,
-0.03138436749577522,
-0.00432274304330349,
-0.034863997250795364,
-0.010054328478872776,
0.03257787227630615,
0.010087932460010052,
0.005291772540658712,
0.01827552355825901,
-0.021491648629307747,
-0.030073042958974838,
-0.06939398497343063,
-0.03418859466910362,
0.027131937444210052,
-0.025827821344137192,
0.03916901722550392,
0.04397799074649811,
0.021259590983390808,
0.07633759081363678,
0.07637495547533035,
0.00007117824861779809,
-0.050281282514333725,
0.02294864133000374,
0.03656620904803276,
-0.040291354060173035,
-0.059733081609010696,
-0.05175754800438881,
0.0536014549434185,
0.05474459007382393,
-0.004313602112233639,
-0.09602414071559906,
0.0008373053860850632,
0.05896705761551857,
-0.01693982444703579,
0.06050139293074608,
-0.01458855252712965,
0.05303918197751045,
0.061926309019327164,
-0.030317870900034904,
0.014192159287631512,
-0.043614327907562256,
0.0234676543623209,
-0.0030558935832232237,
0.00997538398951292,
-0.02569735050201416,
-0.033772628754377365,
-0.035954549908638,
0.021312907338142395,
0.04743758589029312,
0.02925002947449684,
0.04272093623876572,
-0.008646161295473576,
-0.038743458688259125,
0.005202005617320538,
0.00457740668207407,
-0.03763443976640701,
0.005381764378398657,
0.033708855509757996,
0.0359317921102047,
-0.039653230458498,
-0.010207337327301502,
-0.0038441685028374195,
-0.0010263279546052217,
0.01975282095372677,
0.00611666077747941,
-0.04541472718119621,
-0.04805311933159828,
0.005994277074933052,
-0.0025239570531994104,
-0.016804438084363937,
-0.0885203555226326,
0.03541308268904686,
-0.03367084264755249,
0.0006707383436150849,
0.03710956871509552,
0.016782917082309723,
0.012796781025826931,
0.04478222876787186,
-0.010610566474497318,
0.006283819209784269,
-0.034042537212371826,
0.035821061581373215,
-0.0075423154048621655,
-0.024256359785795212,
-0.034332260489463806,
-0.06375865638256073,
-0.005334051325917244,
-0.008712618611752987,
-0.034628354012966156,
-0.03614598140120506,
-0.012459296733140945,
0.029729686677455902,
-0.015778303146362305,
0.010479714721441269,
-0.01793048158288002,
0.05060918256640434,
-0.055122360587120056,
-0.03504762426018715,
-0.02251804992556572,
-0.038402482867240906,
-0.07208546251058578,
-0.04691799730062485,
-0.009911925531923771,
0.019818438217043877,
0.01417301781475544,
0.021107789129018784,
0.01949596405029297,
0.01168755628168583,
0.023486245423555374,
-0.03782481327652931,
0.024446386843919754,
-0.00840617436915636,
-0.04123922437429428,
-0.03422042727470398,
-0.017288776114583015,
0.02859506756067276,
0.037558261305093765,
-0.018938545137643814,
0.035166479647159576,
0.03518077731132507,
-0.03730296716094017,
-0.005899481475353241,
0.03446057811379433,
0.025743724778294563,
-0.062403835356235504,
-0.03619061037898064,
-0.02315440960228443,
-0.038068737834692,
0.03745120391249657,
-0.01985626295208931,
-0.014004033990204334,
0.01945248432457447,
0.02390623465180397,
0.023169413208961487,
-0.013500981964170933,
-0.04029494524002075,
0.021926824003458023,
-0.02063889056444168,
0.03160998970270157,
-0.040758904069662094,
0.06052936613559723,
-0.03215433284640312,
0.016824325546622276,
-0.015127603895962238,
-0.029378285631537437,
-0.018135128542780876,
0.041404057294130325,
-0.014428871683776379,
-0.013980426825582981,
0.011966110207140446,
0.004838963039219379,
-0.04068237915635109,
0.035805847495794296,
-0.013430680148303509,
0.021312538534402847,
-0.0303969644010067,
0.0316314660012722,
-0.04177224636077881,
-0.01699851080775261,
-0.025421977043151855,
-0.002983042737469077,
-0.03414570540189743,
-0.043177083134651184,
-0.004707908257842064,
-0.05824647471308708,
0.03918973729014397,
0.02092951163649559,
0.03032524138689041,
0.034684471786022186,
-0.00582620594650507,
-0.009784439578652382,
0.011291135102510452,
-0.06534194201231003,
-0.007034412119537592,
-0.015604679472744465,
0.04887992888689041,
0.012231957167387009,
0.06714454293251038,
0.04684694856405258,
-0.05102343112230301,
-0.04804510250687599,
0.054586123675107956,
0.01725590229034424,
0.0156457107514143,
0.018242551013827324,
0.06039314717054367,
0.033166270703077316,
0.04215042665600777,
-0.026144761592149734,
-0.014397644437849522,
-0.02303064614534378,
-0.022805633023381233,
0.003571104258298874,
0.008039381355047226,
0.013086425140500069,
0.0040924204513430595,
-0.03695134446024895,
-0.032416973263025284,
0.08572855591773987,
0.030782371759414673,
-0.00018039534916169941,
0.004875724203884602,
-0.03612113744020462,
0.020364627242088318,
-0.006420203950256109,
-0.05889596790075302,
-0.014162806794047356,
0.015372259542346,
-0.053785260766744614,
0.07937578856945038,
-0.006675138138234615,
0.021109208464622498,
0.023162463679909706,
0.023240597918629646,
-0.00710288854315877,
0.055059198290109634,
-0.04044110327959061,
0.020240051671862602,
0.041568923741579056,
-0.04704684764146805,
0.019340915605425835,
-0.048334646970033646,
0.06735280901193619,
-0.08211200684309006,
0.05489526316523552,
0.027489112690091133,
0.0031970515847206116,
0.004083694890141487,
-0.03389676660299301,
-0.015216800384223461,
0.006051699165254831,
-0.038535237312316895,
0.07035796344280243,
-0.011195912957191467,
-0.05870869383215904,
0.04290058836340904,
0.03646932542324066,
-0.07822377234697342,
0.068456269800663,
0.031077126041054726,
0.06313194334506989,
0.04560594633221626,
0.045368798077106476,
-0.09234984964132309,
0.002599989762529731,
-0.03682827576994896,
0.034835901111364365,
-0.07887933403253555,
0.01178647205233574,
0.04282157123088837,
-0.03931288793683052,
-0.011409596540033817,
0.045550573617219925,
-0.0244072824716568,
-0.012787261046469212,
0.007721272762864828,
-0.06458461284637451,
-0.04082949459552765,
-0.02338184043765068,
0.023725423961877823,
-0.03362012654542923,
0.003587308805435896,
-0.039671577513217926,
0.0025701422709971666,
0.0043008653447031975,
-0.010516136884689331,
-0.0421609990298748,
-0.007428730372339487,
0.0484221987426281,
-0.07252717018127441,
-0.014283672906458378,
0.05302730202674866,
0.007706956472247839,
-0.00594050157815218,
0.04168377071619034,
-0.0200852919369936,
0.03325003758072853,
0.012934193015098572,
0.016734512522816658,
0.018846899271011353,
-0.04073546826839447,
-0.014653893187642097,
0.011211668141186237,
-0.002920699305832386,
0.024338984861969948,
0.0015148388920351863,
0.036846354603767395,
0.0763871967792511,
0.02001371420919895,
0.026166388764977455,
-0.06205634027719498,
-0.03280797600746155,
0.022953936830163002,
-0.05028042942285538,
0.013761261478066444,
-0.009245005436241627,
-0.046458419412374496,
-0.03467191383242607,
-0.018628979101777077,
-0.02518671751022339,
0.057508304715156555,
-0.05342739820480347,
0.0033909876365214586,
0.007226026151329279,
-0.031319838017225266,
-0.03377094119787216,
-0.06242798641324043,
-0.024085156619548798,
-0.03376484289765358,
0.02413799613714218,
0.012606046162545681,
-0.02511051669716835,
0.023193303495645523,
-0.050386250019073486,
-0.0613684318959713,
0.02781780995428562,
0.029089542105793953,
-0.04650316387414932,
0.06384056061506271,
0.027440235018730164,
-0.03019808605313301,
0.011615024879574776,
0.04074238985776901,
-0.030696073547005653,
0.01801692321896553,
-0.0132862888276577,
0.013031866401433945,
0.03815420717000961,
0.02331984043121338,
-0.029558854177594185,
-0.020605402067303658,
-0.05737351253628731,
-0.04291944578289986,
-0.03966226801276207,
-0.0017225035699084401,
0.06528599560260773
] |
CAMeL-Lab/bert-base-arabic-camelbert-da-poetry | [
"pytorch",
"tf",
"bert",
"text-classification",
"ar",
"arxiv:1905.05700",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 37 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: 'الخيل والليل والبيداء تعرفني [SEP] والسيف والرمح والقرطاس والقلم'
---
# CAMeLBERT-DA Poetry Classification Model
## Model description
**CAMeLBERT-DA Poetry Classification Model** is a poetry classification model that was built by fine-tuning the [CAMeLBERT Dialectal Arabic (DA)](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-da/) model.
For the fine-tuning, we used the [APCD](https://arxiv.org/pdf/1905.05700.pdf) dataset.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-DA Poetry Classification model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> poetry = pipeline('text-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-da-poetry')
>>> # A list of verses where each verse consists of two parts.
>>> verses = [
['الخيل والليل والبيداء تعرفني' ,'والسيف والرمح والقرطاس والقلم'],
['قم للمعلم وفه التبجيلا' ,'كاد المعلم ان يكون رسولا']
]
>>> # A function that concatenates the halves of each verse by using the [SEP] token.
>>> join_verse = lambda half: ' [SEP] '.join(half)
>>> # Apply this to all the verses in the list.
>>> verses = [join_verse(verse) for verse in verses]
>>> poetry(sentences)
[{'label': 'البسيط', 'score': 0.9874765276908875},
{'label': 'السلسلة', 'score': 0.6877778172492981}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
0.011879685334861279,
-0.005439980886876583,
-0.010639119893312454,
0.05944199487566948,
0.04186109080910683,
0.014950800687074661,
-0.02090381272137165,
-0.026282139122486115,
-0.017736298963427544,
0.06925324350595474,
0.019397122785449028,
-0.018314838409423828,
0.006007665302604437,
0.032723553478717804,
-0.03147857263684273,
-0.023296747356653214,
-0.009780596010386944,
-0.03373938426375389,
-0.0453006848692894,
-0.02077433653175831,
-0.008949675597250462,
-0.019897693768143654,
0.008195366710424423,
0.0005640349118039012,
0.003192734904587269,
-0.010650507174432278,
-0.013662534765899181,
0.03542294353246689,
0.05249602347612381,
-0.04056623950600624,
-0.009462106041610241,
-0.02730974741280079,
-0.04006553813815117,
-0.02142222225666046,
-0.0354345478117466,
0.003510920563712716,
-0.0009684769902378321,
0.004168730229139328,
0.01721700094640255,
0.043082863092422485,
-0.015908952802419662,
0.03156668692827225,
-0.0279464740306139,
-0.023749560117721558,
0.02758597396314144,
0.016295334324240685,
-0.056157343089580536,
0.0036943911109119654,
0.048284634947776794,
-0.06511522829532623,
-0.048656392842531204,
-0.06403054296970367,
-0.05856727436184883,
0.030579613521695137,
0.033316470682621,
-0.0017933192430064082,
-0.04213878512382507,
-0.0377093069255352,
0.09346918761730194,
-0.06657827645540237,
-0.017178019508719444,
0.020341595634818077,
-0.04846345633268356,
0.03895061835646629,
0.023017529398202896,
-0.03642696514725685,
0.02918056957423687,
-0.041093699634075165,
0.06412719190120697,
-0.03744615614414215,
0.05291476473212242,
-0.018264248967170715,
0.0249371025711298,
-0.07341443747282028,
0.03523627296090126,
-0.04051556810736656,
0.03149167075753212,
0.03589770942926407,
-0.03678242862224579,
0.09220650047063828,
0.008668764494359493,
0.009477241896092892,
0.026353338733315468,
-0.001992662437260151,
-0.012779466807842255,
0.055348481982946396,
-0.05185699090361595,
0.01770157180726528,
0.006950863637030125,
0.05316203087568283,
-0.043672531843185425,
-0.05682496353983879,
-0.01991777867078781,
-0.03222304955124855,
-0.029827682301402092,
0.04238785430788994,
0.028130823746323586,
-0.051503363996744156,
0.044312141835689545,
0.03806920722126961,
0.03310272842645645,
0.04497923702001572,
-0.03488441929221153,
0.04397508502006531,
-0.01864701509475708,
-0.014402632601559162,
-0.03727583959698677,
-0.04035535454750061,
-0.02904617413878441,
0.03274189308285713,
-0.002151348628103733,
-0.03186129033565521,
-0.050099555402994156,
0.05251608416438103,
-0.001961218426004052,
-0.0399104580283165,
0.0429929681122303,
-0.04791581258177757,
-0.07217969000339508,
-0.04128970205783844,
0.01847892813384533,
-0.006579835899174213,
0.024476146325469017,
0.02116759680211544,
-0.05798850581049919,
0.0068704173900187016,
-0.07834948599338531,
-0.03337576240301132,
-0.026687055826187134,
0.02717580273747444,
-0.02155868150293827,
0.020480550825595856,
0.029012270271778107,
-0.0670391172170639,
0.007010717410594225,
-0.002523120492696762,
-0.06038714945316315,
0.04496810585260391,
0.035708628594875336,
0.11115682125091553,
-0.0627763494849205,
-0.022417398169636726,
0.012241756543517113,
0.008762306533753872,
-0.026640966534614563,
0.024322930723428726,
0.019787685945630074,
-0.0475931353867054,
-0.026869310066103935,
-0.032350629568099976,
0.05429050698876381,
-0.05317813903093338,
0.015399171970784664,
0.03911673277616501,
0.00945897214114666,
0.053113482892513275,
-0.040127914398908615,
0.016655437648296356,
0.004360958468168974,
-0.0071456157602369785,
-0.04493057727813721,
0.05057693272829056,
-0.0036709813866764307,
-0.016426661983132362,
-0.03555300831794739,
-0.0447571761906147,
-0.012280723080039024,
0.11081309616565704,
0.0031323579605668783,
-0.017964297905564308,
-0.018142756074666977,
0.0012199422344565392,
0.025308066979050636,
0.04117061197757721,
-0.0381658710539341,
0.014281976968050003,
0.05516074597835541,
0.020797763019800186,
-0.028243890032172203,
0.09920337051153183,
-0.021434100344777107,
-0.034490760415792465,
-0.015150773338973522,
-0.0019506021635606885,
0.01016409695148468,
-0.02739403024315834,
0.039277154952287674,
0.03911559656262398,
-0.023904340341687202,
-0.010502619668841362,
-0.009535443037748337,
0.061776477843523026,
-0.0026559531688690186,
-0.002752486849203706,
0.006842504255473614,
-0.011151839978992939,
-0.056751009076833725,
0.06561961770057678,
-0.03765176609158516,
0.008117517456412315,
-0.02656363882124424,
0.00827291700989008,
0.006317907478660345,
0.019512653350830078,
0.037433601915836334,
0.033626869320869446,
-0.03632641211152077,
0.08772696554660797,
-0.03415699675679207,
0.0056523289531469345,
-0.04281281307339668,
-0.04678542539477348,
0.0045470427721738815,
0.03792804852128029,
0.009439155459403992,
0.04026399925351143,
-0.009039047174155712,
-0.04614200070500374,
0.022221047431230545,
0.03707662597298622,
0.04923751950263977,
0.03752961754798889,
-0.024823375046253204,
-0.011323723010718822,
0.01777750812470913,
0.057566724717617035,
-0.08818919956684113,
-0.037998877465724945,
0.043030746281147,
0.052255723625421524,
-0.042395465075969696,
0.03392895311117172,
-0.006871936377137899,
0.03955873101949692,
-0.026682252064347267,
-0.07398154586553574,
0.03748166561126709,
0.021105868741869926,
0.02310991659760475,
0.019046785309910774,
-0.011839056387543678,
0.005741473753005266,
0.016368607059121132,
0.009091385640203953,
-0.016016513109207153,
-0.04189464822411537,
0.003555833827704191,
0.013242541812360287,
0.08153270184993744,
-0.032152991741895676,
0.03772033378481865,
-0.007823707535862923,
0.02062753215432167,
0.024192342534661293,
-0.022219335660338402,
0.011690260842442513,
0.02573241852223873,
-0.009190656244754791,
-0.03743327781558037,
0.05139904469251633,
-0.005953807383775711,
0.023638226091861725,
0.06785502284765244,
-0.004978606477379799,
0.05466261878609657,
-0.01057498436421156,
0.0539909265935421,
0.05658041313290596,
0.014575581066310406,
0.017714815214276314,
0.012933129444718361,
0.06732803583145142,
-0.014943561516702175,
-0.014777394942939281,
0.06365492939949036,
-0.046211931854486465,
0.025571633130311966,
-0.040697887539863586,
0.011872665956616402,
-0.007623571436852217,
-0.02839902974665165,
0.03531166911125183,
0.016450097784399986,
-0.007343511562794447,
-0.011200915090739727,
0.007641236297786236,
-0.0023825911339372396,
0.04841076210141182,
-0.018009155988693237,
-0.03890538588166237,
-0.001085858908481896,
-0.004432891495525837,
0.015717187896370888,
-0.0700770914554596,
-0.004546913783997297,
-0.018544554710388184,
-0.023460352793335915,
0.006731986999511719,
-0.07995866984128952,
-0.05028323829174042,
-0.058693382889032364,
-0.015948813408613205,
0.03726498410105705,
0.010303325019776821,
0.006643117871135473,
-0.033459022641181946,
0.03172559291124344,
-0.03713807836174965,
-0.029895585030317307,
-0.04352293908596039,
-0.05355241522192955,
-0.0035009151324629784,
-0.023164793848991394,
0.04293370619416237,
0.0141239482909441,
0.01560252532362938,
0.019360587000846863,
0.010437569580972195,
-0.03412681818008423,
-0.046348053961992264,
0.05682165175676346,
0.03440806642174721,
-0.017819615080952644,
-0.06347350031137466,
0.023015258833765984,
0.003847243031486869,
0.004245961084961891,
-0.02588777244091034,
-0.06563257426023483,
0.06887413561344147,
0.08191077411174774,
0.02352079749107361,
0.012715248391032219,
-0.01746906153857708,
-0.05482533946633339,
-0.04377462714910507,
-0.029543643817305565,
-0.03801045939326286,
-0.037663597613573074,
0.0003626374527812004,
-0.037707626819610596,
-0.05128549039363861,
-0.043265122920274734,
-0.014523264020681381,
-0.010837111622095108,
0.011434055864810944,
0.050181254744529724,
0.0758604109287262,
0.024044254794716835,
0.04062162712216377,
-0.04970625415444374,
-0.02629978582262993,
0.05769449099898338,
0.02021710015833378,
-0.00030690254061482847,
-0.06087556481361389,
-0.030677812173962593,
0.02042378857731819,
0.01185375452041626,
-0.020632443949580193,
0.004684229381382465,
0.05984245613217354,
-0.002253023674711585,
0.0016660148976370692,
0.02121470309793949,
0.00847200769931078,
-0.03898855298757553,
-0.022056419402360916,
0.007095014210790396,
0.008053514175117016,
-0.05206179991364479,
-0.02689775824546814,
0.009455915540456772,
0.07375238835811615,
-0.036145035177469254,
-0.052978359162807465,
-0.0034267925657331944,
0.04350799322128296,
0.02130911312997341,
0.004767128266394138,
-0.035810437053442,
0.01569848135113716,
-0.04765516519546509,
-0.03699980676174164,
0.010741948150098324,
-0.021108143031597137,
0.004674284718930721,
0.035212207585573196,
0.019223762676119804,
-0.011796288192272186,
0.02927018515765667,
0.01581697165966034,
0.051328327506780624,
0.01731860637664795,
-0.023862851783633232,
-0.0060534002259373665,
-0.03269117325544357,
0.029511697590351105,
0.006926428060978651,
-0.04389316961169243,
-0.06035973131656647,
-0.08876094967126846,
-0.00919476430863142,
0.017602376639842987,
-0.02366647683084011,
-0.020429255440831184,
0.01874580979347229,
-0.020577507093548775,
-0.020186638459563255,
0.025541530922055244,
0.022614410147070885,
0.032428525388240814,
-0.009354550391435623,
0.07173871994018555,
0.004876340739428997,
0.025772495195269585,
-0.04890938475728035,
0.019988801330327988,
-0.04263920709490776,
0.005410909187048674,
-0.0067227911204099655,
0.06843653321266174,
0.030080826953053474,
0.03686240315437317,
0.06962268799543381,
0.04451993107795715,
-0.02406632900238037,
0.047976475208997726,
0.04448339343070984,
-0.0040922947227954865,
-0.037907443940639496,
0.018894163891673088,
-0.015299897640943527,
-0.015123715624213219,
0.021009715273976326,
-0.008076212368905544,
0.0019146224949508905,
0.024857597425580025,
0.008503236807882786,
0.002746662823483348,
0.0006348718889057636,
-0.01630442403256893,
-0.03768118470907211,
-0.046219103038311005,
-0.028788138180971146,
0.01902058906853199,
-0.020245905965566635,
0.03684138506650925,
0.05767273157835007,
0.01584462821483612,
0.081269770860672,
0.0629906952381134,
-0.00925421342253685,
-0.04954009875655174,
0.0006813716026954353,
0.023726053535938263,
-0.04647329822182655,
-0.05864713713526726,
-0.04327825829386711,
0.05130021274089813,
0.0504889078438282,
0.0004554809129331261,
-0.08800967782735825,
0.021439621224999428,
0.06408647447824478,
-0.031422797590494156,
0.0435207299888134,
-0.013053103350102901,
0.037335265427827835,
0.05186687409877777,
-0.03168201819062233,
-0.003899852279573679,
-0.02068127691745758,
-0.006514537148177624,
0.009644242003560066,
0.022014262154698372,
-0.02917584963142872,
-0.030031509697437286,
-0.042664170265197754,
0.025620240718126297,
0.02592870406806469,
0.04105015844106674,
0.03769688680768013,
-0.021454602479934692,
-0.04864673316478729,
0.018649999052286148,
0.014460760168731213,
-0.0444658100605011,
-0.005054338835179806,
0.026477990671992302,
0.054960284382104874,
-0.04415155574679375,
-0.0077517349272966385,
-0.00889329519122839,
0.0023429999127984047,
0.026029281318187714,
0.012867254205048084,
-0.040470562875270844,
-0.04949675127863884,
0.028311721980571747,
0.006151010747998953,
-0.024237191304564476,
-0.08413705974817276,
0.028499223291873932,
-0.025561736896634102,
0.01187408622354269,
0.04078647866845131,
0.01981966942548752,
-0.009166000410914421,
0.0636390820145607,
-0.013072061352431774,
0.03235316276550293,
-0.013462990522384644,
0.03744608163833618,
-0.004355235956609249,
-0.015577654354274273,
-0.025166381150484085,
-0.05494466423988342,
-0.004271699581295252,
-0.0252335537225008,
-0.024713879451155663,
-0.02844555489718914,
-0.035811714828014374,
0.005781018640846014,
-0.030610449612140656,
-0.014646640047430992,
-0.026815185323357582,
0.037121426314115524,
-0.020954744890332222,
-0.008357161656022072,
-0.04652372747659683,
-0.05954409018158913,
-0.058575887233018875,
-0.037999898195266724,
-0.005396455060690641,
0.017034899443387985,
0.00649756845086813,
0.01873876340687275,
0.02727106213569641,
0.01723027229309082,
0.013560626655817032,
-0.012116270139813423,
0.021288622170686722,
0.01105275098234415,
-0.03194694221019745,
-0.04911388084292412,
0.002128510270267725,
0.03894493356347084,
0.018895626068115234,
-0.013174887746572495,
0.055449776351451874,
0.02948329597711563,
-0.03552083671092987,
-0.018063092604279518,
0.05803750082850456,
0.028474580496549606,
-0.0670044794678688,
-0.03251279518008232,
-0.015392490662634373,
-0.035013582557439804,
0.04867204651236534,
0.004983784165233374,
0.0011544878361746669,
0.03494234010577202,
0.04839780181646347,
0.015828469768166542,
-0.03378481790423393,
-0.03465328738093376,
0.025080488994717598,
-0.0201945211738348,
0.02070891112089157,
-0.06354468315839767,
0.039477232843637466,
-0.029969101771712303,
0.018442347645759583,
-0.013814516365528107,
-0.01984044909477234,
-0.01922513172030449,
0.04163563251495361,
0.01311512291431427,
-0.014476199634373188,
-0.019077874720096588,
0.025571877136826515,
-0.0317031666636467,
0.034426525235176086,
0.0012688745046034455,
0.025558635592460632,
-0.02221720665693283,
0.05916352942585945,
-0.05176906660199165,
-0.01518898643553257,
-0.04275006055831909,
-0.02566264569759369,
-0.013958552852272987,
-0.04997572675347328,
-0.03302224352955818,
-0.03740541264414787,
0.029903782531619072,
0.02187294140458107,
0.053073957562446594,
0.03088638000190258,
0.022300351411104202,
-0.008050323463976383,
0.02444727160036564,
-0.07765810191631317,
-0.025973420590162277,
-0.007278498262166977,
0.02353762462735176,
-0.003370493184775114,
0.062282830476760864,
0.035337816923856735,
-0.05187653377652168,
-0.06673071533441544,
0.03520805016160011,
0.018943579867482185,
0.01242076512426138,
0.026870809495449066,
0.06146823614835739,
0.04253867268562317,
0.04737887158989906,
-0.03510427102446556,
0.008549993857741356,
-0.009648158214986324,
-0.02081085927784443,
0.0321216844022274,
0.005140541587024927,
0.016837764531373978,
0.0076541476882994175,
-0.035332854837179184,
-0.01576649211347103,
0.07152129709720612,
0.04960538074374199,
0.007701914757490158,
0.014793953858315945,
-0.03351117670536041,
0.013114075176417828,
0.00004921295476378873,
-0.05160816013813019,
0.0008207966457121074,
-0.00029633304802700877,
-0.03967785835266113,
0.0657493844628334,
-0.010432272218167782,
0.04074069485068321,
0.02302646078169346,
0.021786676719784737,
-0.0007718813139945269,
0.04095302149653435,
-0.05172042176127434,
0.021186919882893562,
0.043075960129499435,
-0.037459373474121094,
0.008302533999085426,
-0.030276035889983177,
0.06984543055295944,
-0.07715381681919098,
0.06209961324930191,
0.022095955908298492,
0.015103055164217949,
0.0031238750088959932,
-0.04846367612481117,
-0.013971874490380287,
0.007269308902323246,
-0.054740093648433685,
0.06449610739946365,
0.010507864877581596,
-0.06789738684892654,
0.03713380545377731,
0.03364243358373642,
-0.08335430920124054,
0.08635318279266357,
0.04098150134086609,
0.04894230514764786,
0.04810537025332451,
0.03967569023370743,
-0.06073446199297905,
-0.006580079905688763,
-0.024277154356241226,
0.034153375774621964,
-0.0672352984547615,
0.012055687606334686,
0.03235585242509842,
-0.033705972135066986,
0.005697176326066256,
0.02919967658817768,
-0.020619291812181473,
0.009615255519747734,
-0.013229897245764732,
-0.06116586923599243,
-0.04292403161525726,
-0.012300144881010056,
0.01626090332865715,
-0.02454814314842224,
0.01823703944683075,
-0.043447695672512054,
0.009153066202998161,
-0.00990767776966095,
-0.016145722940564156,
-0.054148025810718536,
0.008906825445592403,
0.03230120241641998,
-0.07172644138336182,
-0.029986731708049774,
0.037397582083940506,
-0.008014616556465626,
0.001920113223604858,
0.03985593095421791,
-0.00938784796744585,
0.01723921298980713,
0.027648571878671646,
-0.0034618456847965717,
0.00824693776667118,
-0.06144469231367111,
-0.00418353546410799,
0.0004771524982061237,
-0.0171254500746727,
0.028160767629742622,
-0.02806537039577961,
0.02948208712041378,
0.047449879348278046,
0.026856575161218643,
0.035885654389858246,
-0.04928955063223839,
-0.04020417854189873,
0.03286028280854225,
-0.03872513398528099,
0.020900137722492218,
0.010810301639139652,
-0.03210875764489174,
-0.02954643778502941,
0.002799146343022585,
-0.009719477966427803,
0.04431639984250069,
-0.048110540956258774,
-0.008933521807193756,
0.0008056897786445916,
-0.030506707727909088,
-0.031118227168917656,
-0.0522073470056057,
-0.024292856454849243,
-0.03148811310529709,
0.052855659276247025,
0.005111305974423885,
-0.027607526630163193,
0.03522159159183502,
-0.05050291866064072,
-0.045614950358867645,
0.022799409925937653,
0.008628472685813904,
-0.02793390303850174,
0.0617920458316803,
0.03861432522535324,
-0.03897000104188919,
0.018959350883960724,
0.025318922474980354,
-0.025281494483351707,
0.004078479018062353,
0.0024722744710743427,
0.012606757692992687,
0.013901080004870892,
0.02435319870710373,
-0.015767252072691917,
-0.01158615667372942,
-0.037478357553482056,
-0.0434943363070488,
-0.030105452984571457,
-0.0030690720304846764,
0.05710026994347572
] |
CAMeL-Lab/bert-base-arabic-camelbert-da-pos-egy | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 32 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: 'عامل ايه ؟'
---
# CAMeLBERT-DA POS-EGY Model
## Model description
**CAMeLBERT-DA POS-EGY Model** is a Egyptian Arabic POS tagging model that was built by fine-tuning the [CAMeLBERT-DA](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-da/) model.
For the fine-tuning, we used the ARZTB dataset .
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-DA POS-EGY model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> pos = pipeline('token-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-da-pos-egy')
>>> text = 'عامل ايه ؟'
>>> pos(text)
[{'entity': 'adj', 'score': 0.99843216, 'index': 1, 'word': 'عامل', 'start': 0, 'end': 4}, {'entity': 'pron_interrog', 'score': 0.9990083, 'index': 2, 'word': 'ايه', 'start': 5, 'end': 8}, {'entity': 'punc', 'score': 0.82973784, 'index': 3, 'word': '؟', 'start': 9, 'end': 10}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
0.004443505313247442,
0.00034989832784049213,
-0.01293220929801464,
0.03798827528953552,
0.04857254773378372,
0.02991439402103424,
-0.0032270424999296665,
-0.0072104488499462605,
-0.012372275814414024,
0.07024068385362625,
0.012144045904278755,
-0.0323256179690361,
0.002249893732368946,
0.036455560475587845,
-0.04127711430191994,
-0.041013795882463455,
0.008586694486439228,
-0.024718115106225014,
-0.055358920246362686,
-0.020801018923521042,
0.004185334779322147,
0.008226526901125908,
-0.00707373907789588,
0.0009573673596605659,
-0.006658631842583418,
0.02403416484594345,
-0.0186200812458992,
0.05125946179032326,
0.04423520714044571,
-0.06804152578115463,
-0.02134159579873085,
-0.013950737193226814,
-0.029259024187922478,
-0.01900942251086235,
-0.0399736687541008,
0.00151154980994761,
0.0018899485003203154,
-0.011760381981730461,
0.028829988092184067,
0.06452551484107971,
-0.032451331615448,
0.021576961502432823,
-0.0005648123915307224,
-0.036963872611522675,
0.0592878982424736,
0.010326862335205078,
-0.031293660402297974,
0.001579643809236586,
0.04905219003558159,
-0.03199477866292,
-0.07109574228525162,
-0.04667971655726433,
-0.045766159892082214,
0.027317320927977562,
0.009968253783881664,
-0.007551700808107853,
-0.035682328045368195,
-0.027009066194295883,
0.08291129767894745,
-0.06398767232894897,
-0.037925779819488525,
0.0011982375290244818,
-0.05459905415773392,
0.03005775809288025,
0.02780444361269474,
-0.022919055074453354,
0.01122326496988535,
-0.0426773726940155,
0.056454889476299286,
-0.03436160087585449,
0.045336171984672546,
-0.009335958398878574,
0.017452549189329147,
-0.08086340129375458,
0.02467523142695427,
-0.020463844761252403,
0.0462970957159996,
0.036702096462249756,
-0.024677269160747528,
0.0776219516992569,
0.01783452369272709,
0.007572804111987352,
0.03243127837777138,
-0.004388485569506884,
-0.013396632857620716,
0.03283124417066574,
-0.058517295867204666,
-0.0003567668318282813,
0.01706676371395588,
0.039671216160058975,
-0.04274904355406761,
-0.05021291226148605,
-0.02197941020131111,
-0.04435811936855316,
-0.017121409997344017,
0.03406459838151932,
0.023198220878839493,
-0.021046940237283707,
0.06049905717372894,
0.03010730631649494,
0.011497222818434238,
0.05136866495013237,
-0.023419469594955444,
0.05636566877365112,
-0.021437419578433037,
-0.008378175087273121,
-0.028552060946822166,
-0.032742880284786224,
-0.026858273893594742,
0.04571377858519554,
0.009829235263168812,
-0.0316617451608181,
-0.060548026114702225,
0.04047711193561554,
-0.00803361926227808,
-0.022693265229463577,
0.04318559542298317,
-0.03574322909116745,
-0.05480857938528061,
-0.037613701075315475,
0.04456082358956337,
0.0002401012898189947,
0.009032846428453922,
0.005840779282152653,
-0.05026674270629883,
-0.012769650667905807,
-0.07129178196191788,
-0.022071558982133865,
-0.0298620592802763,
0.026153074577450752,
-0.009647139348089695,
0.026764769107103348,
0.01453684363514185,
-0.055513896048069,
0.012804598547518253,
-0.004793703090399504,
-0.06851138919591904,
0.043162547051906586,
0.03919760510325432,
0.10853607952594757,
-0.056731563061475754,
-0.03009934537112713,
0.006249202881008387,
0.006970243062824011,
-0.033624663949012756,
-0.006095170509070158,
0.008931351825594902,
-0.03004235029220581,
-0.02382337860763073,
-0.019778944551944733,
0.07903904467821121,
-0.050852689892053604,
0.0182642824947834,
0.04754273220896721,
-0.003466967958956957,
0.033521778881549835,
-0.03647579625248909,
-0.008796177804470062,
0.01019474770873785,
-0.0014146229950711131,
-0.034651998430490494,
0.0462103895843029,
-0.006488447077572346,
-0.021223723888397217,
-0.044273216277360916,
-0.04420515149831772,
0.0024211937561631203,
0.08642731606960297,
-0.0046728732995688915,
-0.0026953411288559437,
-0.022737205028533936,
0.005467958748340607,
0.04842877388000488,
0.015299643389880657,
-0.05458249896764755,
0.027196751907467842,
0.061825212091207504,
0.0013149381848052144,
-0.033903591334819794,
0.0863356813788414,
0.011419371701776981,
-0.01719484105706215,
-0.00801587663590908,
-0.016272330656647682,
-0.002519419649615884,
-0.03221724182367325,
0.03821668028831482,
0.019874976947903633,
-0.01944049447774887,
-0.03319711610674858,
-0.013492241501808167,
0.06977363675832748,
0.015391919761896133,
0.022146126255393028,
-0.010559869930148125,
-0.027795635163784027,
-0.04236289858818054,
0.046802304685115814,
-0.009795356541872025,
0.0063519710674881935,
-0.02820725180208683,
0.006463920697569847,
-0.0008317243191413581,
0.0419149249792099,
0.04589925706386566,
0.03978995233774185,
-0.023401886224746704,
0.07365100830793381,
-0.033775635063648224,
0.018924735486507416,
-0.039541058242321014,
-0.030373813584446907,
-0.006765132769942284,
0.030072512105107307,
0.024638798087835312,
0.03971421718597412,
-0.013277232646942139,
-0.03685235604643822,
0.03113514743745327,
0.04203048720955849,
0.038803860545158386,
0.025533581152558327,
-0.029561540111899376,
-0.011682146228849888,
0.03332051634788513,
0.06109996140003204,
-0.07982958853244781,
-0.04529323801398277,
0.038980741053819656,
0.032777316868305206,
-0.051651328802108765,
0.017978737130761147,
-0.019792204722762108,
0.045504361391067505,
-0.04028342291712761,
-0.04963620379567146,
0.04950917884707451,
0.0248090960085392,
-0.006958267651498318,
0.032618165016174316,
-0.012488539330661297,
-0.024056876078248024,
0.01904420554637909,
0.014152877032756805,
-0.018061388283967972,
-0.039903126657009125,
0.004048194270581007,
0.019696960225701332,
0.06716527789831161,
-0.03591955080628395,
0.023517893627285957,
0.010432112030684948,
0.022317489609122276,
0.048756495118141174,
-0.03544730320572853,
0.027017980813980103,
0.02968842349946499,
0.0017673549009487033,
-0.026866024360060692,
0.039922233670949936,
-0.011741040274500847,
0.016192767769098282,
0.0502840131521225,
-0.0025080516934394836,
0.06628349423408508,
-0.018940569832921028,
0.04855507239699364,
0.07316169887781143,
0.014425999484956264,
0.009118640795350075,
0.007814728654921055,
0.0776522234082222,
0.004523943178355694,
-0.01267991866916418,
0.06415272504091263,
-0.0532347746193409,
0.019746029749512672,
-0.05222916975617409,
-0.001019280985929072,
-0.01734529621899128,
-0.024902207776904106,
0.04304859787225723,
0.018824836239218712,
-0.01098677422851324,
-0.023985346779227257,
-0.012247515842318535,
-0.012517076916992664,
0.03191489353775978,
-0.024636879563331604,
-0.03930658474564552,
0.003222844796255231,
-0.010229075327515602,
0.016659339889883995,
-0.06001971662044525,
-0.015871495008468628,
-0.022936135530471802,
-0.04081537574529648,
-0.0033270439598709345,
-0.07743696123361588,
-0.027302147820591927,
-0.06659507006406784,
-0.009068245068192482,
0.03417279198765755,
0.005319973919540644,
0.004647985100746155,
-0.050783056765794754,
0.03567124158143997,
-0.04285386577248573,
-0.03628024831414223,
-0.04044084995985031,
-0.06862430274486542,
-0.02472775988280773,
-0.03543262928724289,
0.03361933305859566,
0.016596712172031403,
0.002710324479267001,
0.007359195966273546,
0.027476906776428223,
-0.02376246266067028,
-0.0327971950173378,
0.035838812589645386,
0.0312621146440506,
-0.023845788091421127,
-0.0625011995434761,
0.0407947339117527,
-0.014171784743666649,
0.004305071197450161,
-0.027427436783909798,
-0.06791890412569046,
0.08146889507770538,
0.07984132319688797,
0.02005668170750141,
0.005308917723596096,
-0.016880104318261147,
-0.055675677955150604,
-0.03261343017220497,
-0.03365278244018555,
-0.03453925624489784,
-0.015423769131302834,
0.0064274827018380165,
-0.03173448517918587,
-0.019752994179725647,
-0.04252004623413086,
0.003874011803418398,
-0.008025506511330605,
0.028273379430174828,
0.03343145176768303,
0.0475386306643486,
0.02857343666255474,
0.059951722621917725,
-0.031366270035505295,
-0.0256040021777153,
0.06371454149484634,
0.014451524242758751,
0.005482109263539314,
-0.06569880992174149,
-0.03662783280014992,
0.035073649138212204,
0.014660798944532871,
-0.004363026935607195,
0.0016333683161064982,
0.061097048223018646,
0.005991493817418814,
-0.0023776995949447155,
0.019796662032604218,
-0.009831253439188004,
-0.04035968333482742,
-0.01590229943394661,
0.0061579211615026,
0.0021772023756057024,
-0.052247583866119385,
-0.009650279767811298,
0.007387625984847546,
0.05299188196659088,
-0.05018312484025955,
-0.07056298106908798,
0.0013732431689277291,
0.06677967309951782,
0.007687421049922705,
0.005861926823854446,
-0.028835654258728027,
0.00937978271394968,
-0.0426451712846756,
-0.032188862562179565,
0.003792254952713847,
0.008699744939804077,
0.0189614687114954,
0.028593970462679863,
0.020915372297167778,
-0.02044236660003662,
0.03221976011991501,
0.02834269031882286,
0.052289433777332306,
0.012403082102537155,
-0.024259869009256363,
0.008212842047214508,
-0.031357087194919586,
0.020065682008862495,
0.0075777857564389706,
-0.026608718559145927,
-0.03763381391763687,
-0.09978548437356949,
-0.008600959554314613,
0.0006677256315015256,
-0.025508828461170197,
-0.010236328467726707,
0.034495990723371506,
-0.022317908704280853,
-0.017336111515760422,
-0.000004866482868237654,
0.01610029675066471,
0.0433310866355896,
-0.029617132619023323,
0.060319021344184875,
-0.0023599406704306602,
0.03239661827683449,
-0.03575844690203667,
0.037186767905950546,
-0.034996479749679565,
0.0018183768261224031,
-0.011047746054828167,
0.05464755743741989,
0.03724977746605873,
0.03776000440120697,
0.06976398080587387,
0.044596701860427856,
-0.03219246491789818,
0.043756816536188126,
0.054183229804039,
-0.0056565371342003345,
-0.05290443077683449,
-0.0005448748706839979,
-0.0073813823983073235,
-0.013034800998866558,
0.007939090952277184,
-0.009303336963057518,
-0.0062682959251105785,
0.027836017310619354,
0.0032859493512660265,
0.013636765070259571,
-0.0020785594824701548,
-0.024295145645737648,
-0.04945463314652443,
-0.06632370501756668,
-0.040942851454019547,
0.01580652967095375,
-0.022526532411575317,
0.02999556064605713,
0.0402524508535862,
0.015979807823896408,
0.07442355901002884,
0.06863752752542496,
-0.012630419805645943,
-0.044091589748859406,
0.015313428826630116,
0.025244424119591713,
-0.020147284492850304,
-0.06338926404714584,
-0.07243210077285767,
0.06233940273523331,
0.04274330660700798,
0.0050526149570941925,
-0.07552561163902283,
0.0011324216611683369,
0.04973864182829857,
-0.02427474968135357,
0.06462489068508148,
-0.004029019270092249,
0.04362282156944275,
0.062234699726104736,
-0.0328652560710907,
0.018554942682385445,
-0.048112671822309494,
0.007755490951240063,
-0.0001740098523441702,
0.010746021755039692,
-0.034034229815006256,
-0.029676569625735283,
-0.05007191747426987,
0.027567842975258827,
0.041692882776260376,
0.049691446125507355,
0.04382681846618652,
-0.011717267334461212,
-0.0536351315677166,
0.0028366262558847666,
0.005367873702198267,
-0.04786594584584236,
-0.001221344922669232,
0.02901425026357174,
0.03241187334060669,
-0.044509027153253555,
-0.007959269918501377,
-0.017007116228342056,
-0.0026632726658135653,
0.019137941300868988,
0.005994596518576145,
-0.057475339621305466,
-0.048185139894485474,
0.010664517991244793,
-0.029031891375780106,
-0.01786891557276249,
-0.09883902966976166,
0.05319032445549965,
-0.0406830795109272,
0.0014612969243898988,
0.03804152086377144,
0.024972185492515564,
0.015123910270631313,
0.05070710927248001,
-0.0145915187895298,
0.019988154992461205,
-0.03431102633476257,
0.022675830870866776,
-0.007166469935327768,
-0.0260895024985075,
-0.019088970497250557,
-0.0794651061296463,
-0.004296768922358751,
-0.018623393028974533,
-0.03067649155855179,
-0.03456338495016098,
-0.01591557078063488,
0.009574804455041885,
-0.010000349022448063,
0.0035020941868424416,
-0.017888683825731277,
0.04450381547212601,
-0.033766698092222214,
-0.015392896719276905,
-0.017881978303194046,
-0.040739890187978745,
-0.08506502956151962,
-0.060504116117954254,
-0.02250724844634533,
0.01567559689283371,
0.030890999361872673,
0.036579955369234085,
0.014584768563508987,
0.0026491552125662565,
0.01532523799687624,
-0.019087353721261024,
0.01742544397711754,
0.0036890076007694006,
-0.02935996651649475,
-0.03933434188365936,
-0.006183232646435499,
0.03771734982728958,
0.05148820951581001,
-0.01458175852894783,
0.032257530838251114,
0.0411531962454319,
-0.040909744799137115,
-0.003729767631739378,
0.036647651344537735,
0.016376907005906105,
-0.05715476721525192,
-0.037187155336141586,
-0.022286012768745422,
-0.041173309087753296,
0.027981773018836975,
-0.015589602291584015,
-0.013626842759549618,
0.007204573135823011,
0.033752426505088806,
0.024047989398241043,
-0.006491171661764383,
-0.03715519234538078,
0.013136424124240875,
-0.03852710872888565,
0.01965712569653988,
-0.044773828238248825,
0.0632508397102356,
-0.028642483055591583,
0.017710311338305473,
0.005393845960497856,
-0.034568291157484055,
-0.016170872375369072,
0.03876674920320511,
0.008630718104541302,
-0.014020758680999279,
-0.019581390544772148,
0.018366847187280655,
-0.022055134177207947,
0.03514615446329117,
0.013703440316021442,
0.02101702056825161,
-0.009203351102769375,
0.025157161056995392,
-0.04100284352898598,
0.001012954511679709,
-0.02771591767668724,
0.011459696106612682,
-0.02715771459043026,
-0.030061913654208183,
-0.007434186525642872,
-0.06533060222864151,
0.02923714369535446,
0.004206106532365084,
0.0454474501311779,
0.028662223368883133,
0.0016267643077298999,
-0.00484812818467617,
0.01905057020485401,
-0.05689532682299614,
-0.012010034173727036,
-0.02073204144835472,
0.03715844079852104,
0.015824247151613235,
0.0730365440249443,
0.04664939269423485,
-0.03500513359904289,
-0.0464252345263958,
0.043987080454826355,
0.019873900339007378,
0.024039940908551216,
0.016928022727370262,
0.05934252589941025,
0.042405106127262115,
0.058152299374341965,
-0.03820783272385597,
0.004386013373732567,
-0.010551650077104568,
-0.018650537356734276,
0.007363128941506147,
0.015451856888830662,
0.02882223203778267,
0.009217837825417519,
-0.04392001032829285,
-0.013183473609387875,
0.07413247972726822,
0.037746503949165344,
-0.006542610470205545,
0.003782703308388591,
-0.019530801102519035,
0.029654355719685555,
-0.005205807741731405,
-0.06289421766996384,
-0.01947050169110298,
0.021777456626296043,
-0.05142175033688545,
0.09332907199859619,
-0.022021139040589333,
0.027153022587299347,
0.010887532494962215,
0.027524711564183235,
0.011815404519438744,
0.056328896433115005,
-0.04336285591125488,
0.038434240967035294,
0.04565507546067238,
-0.034639764577150345,
0.01685936003923416,
-0.028921015560626984,
0.06059262156486511,
-0.06707959622144699,
0.05681949853897095,
0.0268690288066864,
0.014674614183604717,
0.01060578040778637,
-0.028969096019864082,
-0.026454448699951172,
0.016609126701951027,
-0.046807922422885895,
0.07473022490739822,
-0.00780365988612175,
-0.05340872332453728,
0.04181662201881409,
0.03472859039902687,
-0.07075390964746475,
0.06870009005069733,
0.03987356275320053,
0.06733798235654831,
0.04314114898443222,
0.048702944070100784,
-0.07333444058895111,
0.009793190285563469,
-0.037330664694309235,
0.037625059485435486,
-0.07857082784175873,
0.013871676288545132,
0.03260238096117973,
-0.03873008117079735,
-0.010012364014983177,
0.040825337171554565,
0.008639347739517689,
-0.012736093252897263,
0.010121130384504795,
-0.05455268546938896,
-0.0452350415289402,
-0.020003844052553177,
0.011513407342135906,
-0.04196795076131821,
0.022278612479567528,
-0.055069465190172195,
0.01312442310154438,
-0.0039579542353749275,
-0.026289813220500946,
-0.05437840148806572,
0.01253338810056448,
0.0553215853869915,
-0.07470691949129105,
-0.02966676652431488,
0.0428115539252758,
-0.0008045877330005169,
-0.016806498169898987,
0.04074382781982422,
-0.0036769318394362926,
0.03688989579677582,
0.02656407281756401,
0.01059535052627325,
0.026812633499503136,
-0.049815550446510315,
-0.013096514157950878,
0.02046271413564682,
-0.018873149529099464,
0.01924561895430088,
-0.02259163185954094,
0.03816065192222595,
0.07234153896570206,
0.031197763979434967,
0.0038589294999837875,
-0.05317048355937004,
-0.02680189348757267,
0.011457854881882668,
-0.048858579248189926,
0.02803873084485531,
-0.003599944058805704,
-0.03661308437585831,
-0.047012265771627426,
-0.01462728064507246,
-0.02289118431508541,
0.035270605236291885,
-0.030543308705091476,
-0.002555397106334567,
0.024348147213459015,
-0.025119785219430923,
-0.03661902993917465,
-0.084808349609375,
-0.02458815835416317,
-0.04188070818781853,
0.037105169147253036,
0.024030111730098724,
-0.03418144956231117,
0.012524670921266079,
-0.04974016174674034,
-0.06047457456588745,
0.035790201276540756,
0.012909541837871075,
-0.03336247801780701,
0.07102181017398834,
0.04003828018903732,
-0.04071278125047684,
0.01799810491502285,
0.03322732821106911,
-0.028108954429626465,
-0.002085271291434765,
0.004022536333650351,
0.008601529523730278,
0.029723765328526497,
0.03797106817364693,
-0.02671118825674057,
-0.011954731307923794,
-0.04397917538881302,
-0.04378250986337662,
-0.03452571853995323,
-0.018546422943472862,
0.06839221715927124
] |
CAMeL-Lab/bert-base-arabic-camelbert-da-pos-glf | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 54 | 2021-10-18T05:53:49Z | ---
language:
- ar
license: apache-2.0
widget:
- text: 'شلونك ؟ شخبارك ؟'
---
# CAMeLBERT-DA POS-GLF Model
## Model description
**CAMeLBERT-DA POS-GLF Model** is a Gulf Arabic POS tagging model that was built by fine-tuning the [CAMeLBERT-DA](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-da/) model.
For the fine-tuning, we used the [Gumar](https://camel.abudhabi.nyu.edu/annotated-gumar-corpus/) dataset.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."*
Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-DA POS-GLF model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> pos = pipeline('token-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-da-pos-glf')
>>> text = 'شلونك ؟ شخبارك ؟'
>>> pos(text)
[{'entity': 'noun', 'score': 0.84596395, 'index': 1, 'word': 'شلون', 'start': 0, 'end': 4}, {'entity': 'prep', 'score': 0.7230489, 'index': 2, 'word': '##ك', 'start': 4, 'end': 5}, {'entity': 'punc', 'score': 0.99996364, 'index': 3, 'word': '؟', 'start': 6, 'end': 7}, {'entity': 'noun', 'score': 0.9990874, 'index': 4, 'word': 'ش', 'start': 8, 'end': 9}, {'entity': 'noun', 'score': 0.99985224, 'index': 5, 'word': '##خبار', 'start': 9, 'end': 13}, {'entity': 'noun', 'score': 0.9988868, 'index': 6, 'word': '##ك', 'start': 13, 'end': 14}, {'entity': 'punc', 'score': 0.9999683, 'index': 7, 'word': '؟', 'start': 15, 'end': 16}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
0.010717387311160564,
-0.0056366221979260445,
-0.011976849287748337,
0.036451857537031174,
0.06270746886730194,
0.02617756649851799,
-0.008865569718182087,
-0.001060406444594264,
-0.009215738624334335,
0.07048516720533371,
0.012426122091710567,
-0.033550675958395004,
0.003972536884248257,
0.03975003585219383,
-0.0390680693089962,
-0.046632904559373856,
0.0063619487918913364,
-0.023559672757983208,
-0.05893564596772194,
-0.02513786219060421,
0.001494409516453743,
-0.0021718780044466257,
-0.006452865898609161,
-0.0006718647200614214,
-0.007382548879832029,
0.026664525270462036,
-0.01594478264451027,
0.05315198376774788,
0.04272666573524475,
-0.06760399043560028,
-0.018972134217619896,
-0.016272161155939102,
-0.025277599692344666,
-0.02368236519396305,
-0.0440598763525486,
-0.0008925152360461652,
0.01284849364310503,
-0.0018852887442335486,
0.022389087826013565,
0.05677471682429314,
-0.029048215597867966,
0.024218380451202393,
-0.0017907113069668412,
-0.03692618012428284,
0.04919224977493286,
0.005978953558951616,
-0.034338295459747314,
0.004049696959555149,
0.034649044275283813,
-0.04804210364818573,
-0.056677017360925674,
-0.055648017674684525,
-0.055107057094573975,
0.033171869814395905,
0.01430802047252655,
-0.00950214359909296,
-0.03654639422893524,
-0.013750018551945686,
0.0768682211637497,
-0.060065001249313354,
-0.047995273023843765,
0.001447767368517816,
-0.05821957439184189,
0.029254060238599777,
0.013797138817608356,
-0.01794673316180706,
0.005727020092308521,
-0.03672194853425026,
0.06089312583208084,
-0.02591521479189396,
0.05533657222986221,
-0.013939943164587021,
0.016291391104459763,
-0.0815395638346672,
0.031037751585245132,
-0.013990080915391445,
0.03339168801903725,
0.042313456535339355,
-0.033568836748600006,
0.07177410274744034,
0.020927539095282555,
0.003905542427673936,
0.028887560591101646,
-0.0054459641687572,
-0.004832941107451916,
0.031368330121040344,
-0.05327312648296356,
-0.01033345703035593,
0.021719500422477722,
0.041718415915966034,
-0.03699783608317375,
-0.05002157390117645,
-0.008375261910259724,
-0.044909995049238205,
-0.02374504692852497,
0.030709611251950264,
0.024716800078749657,
-0.026732895523309708,
0.05516006797552109,
0.02666579559445381,
0.0159617830067873,
0.04335744306445122,
-0.024289583787322044,
0.041958946734666824,
-0.022411739453673363,
-0.0019391851965337992,
-0.02854803018271923,
-0.03783971443772316,
-0.027970610186457634,
0.04952896386384964,
0.014001493342220783,
-0.045191891491413116,
-0.05826916545629501,
0.03937928006052971,
-0.010317517444491386,
-0.025527384132146835,
0.045540690422058105,
-0.04030774533748627,
-0.0483785942196846,
-0.04353258013725281,
0.04670200124382973,
0.006444996688514948,
0.004660224076360464,
0.011614348739385605,
-0.04360603168606758,
-0.011568833142518997,
-0.05755747854709625,
-0.01087231282144785,
-0.03137041628360748,
0.030999209731817245,
-0.0055030109360814095,
0.019570952281355858,
0.016701610758900642,
-0.06176084652543068,
0.020640360191464424,
0.005289894994348288,
-0.06027233600616455,
0.03931056708097458,
0.039000093936920166,
0.103703573346138,
-0.06803149729967117,
-0.032674506306648254,
0.02857339009642601,
0.009770570322871208,
-0.016179809346795082,
-0.00888895709067583,
0.014947150833904743,
-0.040889084339141846,
-0.02716623991727829,
-0.0164646003395319,
0.06580053269863129,
-0.051645465195178986,
0.011846290901303291,
0.044900789856910706,
-0.01364291924983263,
0.028145987540483475,
-0.024145333096385002,
-0.013591543771326542,
0.01761242374777794,
-0.008929594419896603,
-0.03448290377855301,
0.041034940630197525,
-0.0009392735664732754,
-0.017626741901040077,
-0.04266234487295151,
-0.046404216438531876,
0.004415114410221577,
0.09371096640825272,
0.005576505325734615,
0.0041405800729990005,
-0.01950993947684765,
0.009856096468865871,
0.04052400961518288,
0.02166668325662613,
-0.04640861228108406,
0.023361612111330032,
0.055795181542634964,
0.002847733674570918,
-0.03110525570809841,
0.0928119644522667,
0.01599275879561901,
-0.017998000606894493,
-0.015742935240268707,
-0.01180003210902214,
-0.012099338695406914,
-0.033261656761169434,
0.03954414278268814,
0.026990946382284164,
-0.01841752603650093,
-0.02813442423939705,
-0.007186173461377621,
0.0652020275592804,
0.01259628776460886,
0.020435253158211708,
-0.015240506269037724,
-0.017645321786403656,
-0.04259008169174194,
0.04363146424293518,
-0.011777997948229313,
0.008789070881903172,
-0.0328320637345314,
0.009656633250415325,
0.00041616513044573367,
0.04161016643047333,
0.04443097487092018,
0.03415424004197121,
-0.025856919586658478,
0.07059532403945923,
-0.029194362461566925,
0.022246256470680237,
-0.046576909720897675,
-0.030766000971198082,
-0.0042700632475316525,
0.017329538241028786,
0.017407255247235298,
0.039829038083553314,
-0.01578659564256668,
-0.03190246596932411,
0.02945631369948387,
0.04888951778411865,
0.026566755026578903,
0.024995554238557816,
-0.024043913930654526,
-0.007886343635618687,
0.0401170551776886,
0.054397862404584885,
-0.08135701715946198,
-0.049698472023010254,
0.04164360463619232,
0.03265705704689026,
-0.05131950229406357,
0.017922792583703995,
-0.006369400769472122,
0.041519664227962494,
-0.03742207959294319,
-0.059648171067237854,
0.05189470201730728,
0.02911083959043026,
-0.0027011148631572723,
0.03232618048787117,
-0.005452834069728851,
-0.02631024271249771,
0.02306968718767166,
0.006173362489789724,
-0.010339376516640186,
-0.04773673415184021,
0.012561323121190071,
0.02172713167965412,
0.07799991220235825,
-0.03720783069729805,
0.02260543964803219,
0.008353509940207005,
0.02865147590637207,
0.054280661046504974,
-0.03658263385295868,
0.01767968013882637,
0.028987141326069832,
0.003977998625487089,
-0.019830292090773582,
0.03712675720453262,
-0.006078253500163555,
0.017404943704605103,
0.050250906497240067,
-0.004679577890783548,
0.061953622847795486,
-0.015628045424818993,
0.04946785420179367,
0.08122298121452332,
0.01862192340195179,
0.013722948729991913,
0.020640753209590912,
0.06862366199493408,
0.01217237301170826,
-0.009805604815483093,
0.05268224701285362,
-0.05372945964336395,
0.022478431463241577,
-0.05620674043893814,
-0.0005164046888239682,
-0.02066943049430847,
-0.028470531105995178,
0.05316169559955597,
0.028346790000796318,
-0.010457026772201061,
-0.012282498180866241,
-0.017813390120863914,
-0.01588774286210537,
0.03182642534375191,
-0.029673635959625244,
-0.03144710510969162,
0.0014889049343764782,
-0.003357612993568182,
0.02249297872185707,
-0.05543810501694679,
-0.016786400228738785,
-0.021108485758304596,
-0.038181230425834656,
0.004420586861670017,
-0.07519268244504929,
-0.023676695302128792,
-0.05977259576320648,
-0.015507807023823261,
0.03428421914577484,
0.020520228892564774,
0.004215842578560114,
-0.05533725023269653,
0.035894230008125305,
-0.04012949764728546,
-0.04012257605791092,
-0.04151501506567001,
-0.061433613300323486,
-0.022822823375463486,
-0.046596333384513855,
0.03915518894791603,
0.017561057582497597,
0.0063805109821259975,
0.008378968574106693,
0.031073633581399918,
-0.01871914602816105,
-0.037188295274972916,
0.025614384561777115,
0.04453052207827568,
-0.021892733871936798,
-0.06234336644411087,
0.038927413523197174,
-0.014281565323472023,
0.006267164368182421,
-0.029773088172078133,
-0.06827718019485474,
0.08316894620656967,
0.07832907885313034,
0.021319594234228134,
0.011844413354992867,
-0.027143150568008423,
-0.06405193358659744,
-0.03526854142546654,
-0.03345251455903053,
-0.0407118946313858,
-0.015247496776282787,
0.013037878088653088,
-0.03664184361696243,
-0.019734425470232964,
-0.03394591808319092,
0.009993545711040497,
-0.00774873374029994,
0.02960115484893322,
0.03699412941932678,
0.05295989289879799,
0.024813437834382057,
0.0546310693025589,
-0.032491255551576614,
-0.02893712744116783,
0.06789295375347137,
0.01645497977733612,
0.006447562947869301,
-0.05341917276382446,
-0.04047391936182976,
0.03493211045861244,
0.004946899134665728,
-0.004063619300723076,
0.0046211411245167255,
0.06605581194162369,
0.001269245520234108,
0.005243820138275623,
0.021786099299788475,
-0.01789005659520626,
-0.04216549172997475,
-0.013751407153904438,
0.0042534018866717815,
-0.008672491647303104,
-0.050804462283849716,
-0.00954633392393589,
0.005429431796073914,
0.05748898535966873,
-0.03769233077764511,
-0.06690449267625809,
0.004214446526020765,
0.07289190590381622,
0.012738407589495182,
0.00003871396984322928,
-0.024499235674738884,
0.0095969932153821,
-0.046813588589429855,
-0.040426723659038544,
0.0010541325900703669,
-0.00013788457727059722,
0.017201848328113556,
0.032972872257232666,
0.024219699203968048,
-0.017274202778935432,
0.026402845978736877,
0.0298636294901371,
0.05416138470172882,
0.014968566596508026,
-0.026231538504362106,
0.015301051549613476,
-0.04231331869959831,
0.017065899446606636,
0.004156443756073713,
-0.024243023246526718,
-0.03932316228747368,
-0.09456873685121536,
-0.011354484595358372,
-0.006931178737431765,
-0.03391494229435921,
-0.006793692242354155,
0.041017238050699234,
-0.01696876622736454,
-0.010866097174584866,
0.006804116535931826,
0.01837925612926483,
0.03649181127548218,
-0.03410802409052849,
0.06544981151819229,
-0.0004340840096119791,
0.031091714277863503,
-0.04556915909051895,
0.028811736032366753,
-0.04056930169463158,
0.0014965467853471637,
-0.003237623954191804,
0.06085188686847687,
0.026135725900530815,
0.029219867661595345,
0.07392741739749908,
0.042010556906461716,
-0.03392209857702255,
0.04881057143211365,
0.055525679141283035,
-0.0048511093482375145,
-0.054511263966560364,
-0.00027028453769162297,
-0.007988011464476585,
-0.017001472413539886,
0.0017568082548677921,
-0.020713938400149345,
0.004170628730207682,
0.024547897279262543,
0.007924532517790794,
0.01071984227746725,
-0.004987011197954416,
-0.03236564248800278,
-0.04871656000614166,
-0.06492020934820175,
-0.040312569588422775,
0.017301959916949272,
-0.03277384489774704,
0.032300129532814026,
0.048359308391809464,
0.018548378720879555,
0.0782075971364975,
0.06470067799091339,
-0.010685496032238007,
-0.05896241217851639,
0.0158194899559021,
0.02951563335955143,
-0.020732061937451363,
-0.05461500212550163,
-0.0688752830028534,
0.05195784941315651,
0.04485347494482994,
-0.00511893630027771,
-0.07541464269161224,
-0.000718508439604193,
0.05444958806037903,
-0.022047996520996094,
0.06280137598514557,
-0.013557009398937225,
0.044941965490579605,
0.06462051719427109,
-0.03228886425495148,
0.014392958953976631,
-0.04956682026386261,
0.02058495581150055,
0.0031750258058309555,
0.011514555662870407,
-0.03669256344437599,
-0.026978125795722008,
-0.045978933572769165,
0.026560939848423004,
0.047205906361341476,
0.0442175455391407,
0.04605603218078613,
-0.006877458188682795,
-0.059315431863069534,
0.00371851259842515,
0.0052053784020245075,
-0.049373380839824677,
-0.00788248609751463,
0.02938971482217312,
0.043962180614471436,
-0.04079031944274902,
-0.0014742565108463168,
-0.01358531042933464,
-0.003726167371496558,
0.022224510088562965,
-0.003496001474559307,
-0.06109444051980972,
-0.052657391875982285,
0.011318088509142399,
-0.026525381952524185,
-0.029174216091632843,
-0.09791216254234314,
0.04641343653202057,
-0.03419383242726326,
0.0018078447319567204,
0.0436893031001091,
0.009252069517970085,
0.0196293406188488,
0.05026119947433472,
-0.012917688116431236,
0.02302241139113903,
-0.04136227071285248,
0.02221585437655449,
-0.01223171129822731,
-0.019189154729247093,
-0.022792505100369453,
-0.07579541206359863,
-0.01029516477137804,
-0.016087887808680534,
-0.02403903380036354,
-0.040882524102926254,
-0.02038920298218727,
0.0022566658444702625,
-0.009568875655531883,
0.011606589891016483,
-0.01449353713542223,
0.03925202041864395,
-0.025129303336143494,
-0.013029944151639938,
-0.01843867637217045,
-0.04574285075068474,
-0.08828345686197281,
-0.05437067151069641,
-0.012388208881020546,
0.014119741506874561,
0.015401727519929409,
0.02768068201839924,
0.013649261556565762,
0.012441456317901611,
0.023901917040348053,
-0.01685444824397564,
0.026625344529747963,
0.005602821242064238,
-0.033208295702934265,
-0.03620050102472305,
-0.0077714924700558186,
0.03621896356344223,
0.04520225524902344,
-0.011114257387816906,
0.0267618577927351,
0.035925913602113724,
-0.04138527065515518,
0.004712624009698629,
0.045446671545505524,
0.02262447588145733,
-0.06416766345500946,
-0.03643644601106644,
-0.03135485202074051,
-0.04272645711898804,
0.023073963820934296,
-0.025630762800574303,
-0.020089924335479736,
0.00925950426608324,
0.02948354370892048,
0.03652358800172806,
-0.005457536317408085,
-0.04002808779478073,
0.003585174446925521,
-0.027378639206290245,
0.02369210124015808,
-0.038653451949357986,
0.06255512684583664,
-0.03264351934194565,
0.018147572875022888,
0.0003192020521964878,
-0.036500394344329834,
-0.021932540461421013,
0.03551848605275154,
0.011554110795259476,
-0.011152029037475586,
-0.01828165538609028,
0.006317537277936935,
-0.02824871614575386,
0.03185281530022621,
0.007795709650963545,
0.021918250247836113,
-0.014548544771969318,
0.03383254632353783,
-0.04475455731153488,
0.002169643761590123,
-0.01805172488093376,
0.005101930350065231,
-0.023207608610391617,
-0.03773194178938866,
-0.015127824619412422,
-0.07290354371070862,
0.03761397674679756,
0.00860434491187334,
0.04490618407726288,
0.022502582520246506,
0.009858795441687107,
-0.0029148180037736893,
0.03284045681357384,
-0.06717854738235474,
-0.01219135895371437,
-0.019986430183053017,
0.038308035582304,
0.010821334086358547,
0.06691297143697739,
0.033209312707185745,
-0.03807804360985756,
-0.05259105935692787,
0.03981713950634003,
0.025376584380865097,
0.026490194723010063,
0.012320790439844131,
0.05915851518511772,
0.038285039365291595,
0.04973246157169342,
-0.03697209060192108,
-0.0009918188443407416,
-0.010473606176674366,
-0.01585165597498417,
0.01988193765282631,
0.0244904775172472,
0.03199812397360802,
0.007695934269577265,
-0.046366430819034576,
-0.012901568785309792,
0.08147043734788895,
0.04195409640669823,
0.007880560122430325,
-0.0013898225734010339,
-0.0343514159321785,
0.01183632668107748,
-0.004701919388025999,
-0.0571904182434082,
-0.01905505172908306,
0.022946180775761604,
-0.05129536986351013,
0.0848386362195015,
-0.024452777579426765,
0.031537409871816635,
0.02093372866511345,
0.02670436166226864,
0.007681131828576326,
0.05470503866672516,
-0.03859639912843704,
0.022983146831393242,
0.03481867164373398,
-0.04193342477083206,
0.019852684810757637,
-0.030245304107666016,
0.06456953287124634,
-0.06926944106817245,
0.05033383145928383,
0.027982333675026894,
0.006374678108841181,
0.010363325476646423,
-0.030726229771971703,
-0.031081287190318108,
0.00728171830996871,
-0.0465545617043972,
0.07665528357028961,
-0.016574952751398087,
-0.05293287709355354,
0.03895677253603935,
0.031302034854888916,
-0.07998450100421906,
0.06742720305919647,
0.03299551084637642,
0.06367597728967667,
0.053696684539318085,
0.04325935244560242,
-0.06933822482824326,
0.0070729185827076435,
-0.036887481808662415,
0.038752131164073944,
-0.0772441104054451,
0.014554931782186031,
0.03744969889521599,
-0.04143599420785904,
-0.010858951136469841,
0.0436730682849884,
-0.0019244024297222495,
-0.008004888892173767,
0.006413698196411133,
-0.05184811353683472,
-0.045428331941366196,
-0.013093981891870499,
0.017339114099740982,
-0.04444759711623192,
0.012318359687924385,
-0.05421451851725578,
0.012083934620022774,
0.003282377263531089,
-0.01157231256365776,
-0.0567878782749176,
0.006773458328098059,
0.05603695288300514,
-0.08348787575960159,
-0.02402656152844429,
0.04742329195141792,
0.006371254101395607,
-0.024974869564175606,
0.03301065042614937,
-0.011501091532409191,
0.0283524077385664,
0.024568714201450348,
-0.0006264475523494184,
0.02951158583164215,
-0.041251108050346375,
-0.020584600046277046,
0.012773653492331505,
-0.028815997764468193,
0.011617647483944893,
-0.017715783789753914,
0.040007222443819046,
0.05978194251656532,
0.03328600525856018,
0.018844421952962875,
-0.057974983006715775,
-0.028419077396392822,
0.012117335572838783,
-0.05149517580866814,
0.020239902660250664,
0.0017890443559736013,
-0.042476098984479904,
-0.04680078104138374,
-0.016529753804206848,
-0.021998206153512,
0.03985574468970299,
-0.02448236010968685,
-0.012918395921587944,
0.020526545122265816,
-0.029471008107066154,
-0.033413272351026535,
-0.08134765177965164,
-0.01900489255785942,
-0.03867457062005997,
0.031010830774903297,
0.022320769727230072,
-0.030276436358690262,
0.016390671953558922,
-0.05096231773495674,
-0.06150571256875992,
0.026198741048574448,
0.012530330568552017,
-0.03214013949036598,
0.05292718857526779,
0.04247763380408287,
-0.039302460849285126,
0.020426006987690926,
0.039395298808813095,
-0.023892592638731003,
0.011480226181447506,
0.0012439708225429058,
0.001345634926110506,
0.02858288399875164,
0.02288341522216797,
-0.039002370089292526,
-0.017319485545158386,
-0.05093029513955116,
-0.04095755144953728,
-0.04098471254110336,
-0.01333197858184576,
0.06836743652820587
] |
CAMeL-Lab/bert-base-arabic-camelbert-da-pos-msa | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 27 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: 'إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع'
---
# CAMeLBERT-DA POS-MSA Model
## Model description
**CAMeLBERT-DA POS-MSA Model** is a Modern Standard Arabic (MSA) POS tagging model that was built by fine-tuning the [CAMeLBERT-DA](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-da/) model.
For the fine-tuning, we used the [PATB](https://dl.acm.org/doi/pdf/10.5555/1621804.1621808) dataset.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-DA POS-MSA model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> pos = pipeline('token-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-da-pos-msa')
>>> text = 'إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع'
>>> pos(text)
[{'entity': 'noun', 'score': 0.9999913, 'index': 1, 'word': 'إمارة', 'start': 0, 'end': 5}, {'entity': 'noun_prop', 'score': 0.9992475, 'index': 2, 'word': 'أبوظبي', 'start': 6, 'end': 12}, {'entity': 'pron', 'score': 0.999919, 'index': 3, 'word': 'هي', 'start': 13, 'end': 15}, {'entity': 'noun', 'score': 0.99993193, 'index': 4, 'word': 'إحدى', 'start': 16, 'end': 20}, {'entity': 'noun', 'score': 0.99999106, 'index': 5, 'word': 'إما', 'start': 21, 'end': 24}, {'entity': 'noun', 'score': 0.99998987, 'index': 6, 'word': '##رات', 'start': 24, 'end': 27}, {'entity': 'noun', 'score': 0.9999933, 'index': 7, 'word': 'دولة', 'start': 28, 'end': 32}, {'entity': 'noun', 'score': 0.9999899, 'index': 8, 'word': 'الإمارات', 'start': 33, 'end': 41}, {'entity': 'adj', 'score': 0.99990565, 'index': 9, 'word': 'العربية', 'start': 42, 'end': 49}, {'entity': 'adj', 'score': 0.99997944, 'index': 10, 'word': 'المتحدة', 'start': 50, 'end': 57}, {'entity': 'noun_num', 'score': 0.99938935, 'index': 11, 'word': 'السبع', 'start': 58, 'end': 63}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
0.0001561709796078503,
-0.002924996428191662,
-0.015689563006162643,
0.042587440460920334,
0.05126645416021347,
0.02789691835641861,
-0.001407030620612204,
-0.0037333283107727766,
-0.01377700176090002,
0.06996375322341919,
0.010216840542852879,
-0.026158679276704788,
0.011031663045287132,
0.049318891018629074,
-0.03507298231124878,
-0.03620597720146179,
0.008998285047709942,
-0.02479930780827999,
-0.05151958018541336,
-0.021150849759578705,
0.0005984503659419715,
-0.007915583439171314,
0.00016649502504151314,
0.001646137796342373,
-0.006408129818737507,
0.020314978435635567,
-0.028892993927001953,
0.05070073530077934,
0.04192490130662918,
-0.06597831845283508,
-0.019143089652061462,
-0.007924332283437252,
-0.03070513904094696,
-0.022979315370321274,
-0.03660476207733154,
0.00176867819391191,
0.00750880828127265,
-0.0018462568987160921,
0.026759544387459755,
0.0630732923746109,
-0.03858661651611328,
0.023745648562908173,
-0.004295299760997295,
-0.03701378032565117,
0.05475331097841263,
0.006250147242099047,
-0.03216443955898285,
0.00293900934047997,
0.04114602133631706,
-0.03844405338168144,
-0.060820065438747406,
-0.04837791994214058,
-0.05364337936043739,
0.02465696632862091,
0.008038640953600407,
-0.008255243301391602,
-0.036152616143226624,
-0.019808385521173477,
0.0797293409705162,
-0.06445904821157455,
-0.043277472257614136,
-0.005116137210279703,
-0.05106902867555618,
0.031761568039655685,
0.02314039133489132,
-0.020751701667904854,
0.01158819068223238,
-0.04140665382146835,
0.055474307388067245,
-0.032906245440244675,
0.05312163382768631,
-0.014320037327706814,
0.013423008844256401,
-0.08614754676818848,
0.026794113218784332,
-0.024129796773195267,
0.0426211804151535,
0.04055169224739075,
-0.025822393596172333,
0.0743643268942833,
0.020997382700443268,
0.0017753602005541325,
0.03504112735390663,
-0.004318939987570047,
-0.010238259099423885,
0.033709704875946045,
-0.05757363885641098,
-0.003528923261910677,
0.02083398774266243,
0.03650040552020073,
-0.043380122631788254,
-0.04243912175297737,
-0.01097354106605053,
-0.045183632522821426,
-0.02124389447271824,
0.027991218492388725,
0.027737654745578766,
-0.02816860005259514,
0.05414646491408348,
0.02748790942132473,
0.014162033796310425,
0.05346877500414848,
-0.02160097099840641,
0.04445655271410942,
-0.02381511591374874,
-0.009083054028451443,
-0.0349762961268425,
-0.03203495591878891,
-0.03170499950647354,
0.0459703654050827,
0.005318646319210529,
-0.03831580653786659,
-0.05020115152001381,
0.040727440267801285,
-0.005955784115940332,
-0.02619166485965252,
0.04196680337190628,
-0.031543172895908356,
-0.051708344370126724,
-0.044311922043561935,
0.045494236052036285,
-0.0020735440775752068,
0.00310015631839633,
0.009808058850467205,
-0.05050457641482353,
-0.011714325286448002,
-0.06164311245083809,
-0.01928490772843361,
-0.023423034697771072,
0.03152456879615784,
-0.001880242140032351,
0.02189282700419426,
0.018118835985660553,
-0.0658305436372757,
0.025230351835489273,
-0.0009438817505724728,
-0.057170432060956955,
0.03338566794991493,
0.03969933092594147,
0.10553738474845886,
-0.058451153337955475,
-0.030282897874712944,
0.018525144085288048,
0.0032845207024365664,
-0.023181764408946037,
-0.004574737511575222,
0.01392090693116188,
-0.0316174253821373,
-0.025518447160720825,
-0.022149482741951942,
0.06391966342926025,
-0.052810072898864746,
0.014917582273483276,
0.04519490897655487,
-0.011079579591751099,
0.03454459086060524,
-0.03203720599412918,
-0.015772001817822456,
0.017315194010734558,
-0.007292566355317831,
-0.035316020250320435,
0.04494486376643181,
-0.0017212076345458627,
-0.016086367890238762,
-0.041900552809238434,
-0.03996967896819115,
0.003597452538087964,
0.09131190925836563,
0.00038914685137569904,
-0.0037296090740710497,
-0.017575198784470558,
0.0011510024778544903,
0.04559733346104622,
0.009345811791718006,
-0.05301814526319504,
0.027818793430924416,
0.061028577387332916,
-0.0027972362004220486,
-0.028410151600837708,
0.08598501980304718,
0.009682726114988327,
-0.007432190235704184,
-0.013174046762287617,
-0.01171956304460764,
-0.007014048285782337,
-0.03097975254058838,
0.03984932228922844,
0.025325771421194077,
-0.013493252918124199,
-0.029376540333032608,
-0.01355892326682806,
0.06881757825613022,
0.008946046233177185,
0.022505061700940132,
-0.014476598240435123,
-0.024391066282987595,
-0.043997589498758316,
0.04393262043595314,
-0.006576607935130596,
-0.0027061293367296457,
-0.02885693684220314,
0.006882977671921253,
-0.001623867778107524,
0.03760364651679993,
0.050654664635658264,
0.034489501267671585,
-0.025864960625767708,
0.075425885617733,
-0.03098016418516636,
0.015566828660666943,
-0.037202902138233185,
-0.032022736966609955,
-0.003447666298598051,
0.029790345579385757,
0.023632492870092392,
0.039898183196783066,
-0.017106812447309494,
-0.03393111005425453,
0.03287558630108833,
0.04862699285149574,
0.03250552713871002,
0.027006469666957855,
-0.030522411689162254,
-0.005921920761466026,
0.026432132348418236,
0.06111762300133705,
-0.08136798441410065,
-0.048633672297000885,
0.0400511771440506,
0.04604164510965347,
-0.06104028970003128,
0.013115796260535717,
-0.009249168448150158,
0.03513351455330849,
-0.03533194586634636,
-0.05773279070854187,
0.04793032258749008,
0.029907120391726494,
-0.005486934911459684,
0.039026450365781784,
-0.016429651528596878,
-0.0252776388078928,
0.0255895983427763,
0.015777289867401123,
-0.011648863554000854,
-0.04203145205974579,
0.0020391829311847687,
0.019963979721069336,
0.07687478512525558,
-0.041848767548799515,
0.026288386434316635,
0.005646931007504463,
0.01382982823997736,
0.04860737547278404,
-0.04208613559603691,
0.023185184225440025,
0.03037620708346367,
-0.0018730130977928638,
-0.016467755660414696,
0.0396876223385334,
-0.006538682151585817,
0.015483622439205647,
0.0542750246822834,
0.0010987537680193782,
0.067241370677948,
-0.0187075138092041,
0.05014472454786301,
0.07730671763420105,
0.013826495967805386,
0.015155119821429253,
0.014590020291507244,
0.07873087376356125,
0.009567814879119396,
-0.007649698760360479,
0.057611044496297836,
-0.05415300652384758,
0.020941734313964844,
-0.051988858729600906,
0.0026500686071813107,
-0.024700716137886047,
-0.021199917420744896,
0.0495760478079319,
0.013135387562215328,
-0.013804993592202663,
-0.019040929153561592,
-0.01687519997358322,
-0.013069558888673782,
0.038853034377098083,
-0.022243337705731392,
-0.029591910541057587,
-0.0013961219228804111,
-0.008583972230553627,
0.023209165781736374,
-0.054428473114967346,
-0.019796151667833328,
-0.02285313792526722,
-0.039387576282024384,
-0.00037026708014309406,
-0.06962557137012482,
-0.019625674933195114,
-0.0576971210539341,
-0.013244486413896084,
0.03138035908341408,
0.008401933126151562,
0.0019712450448423624,
-0.04882676899433136,
0.034919291734695435,
-0.03899109736084938,
-0.031108113005757332,
-0.030944090336561203,
-0.06779024749994278,
-0.026293231174349785,
-0.04304078221321106,
0.03994395211338997,
0.018249718472361565,
0.006338019855320454,
0.01043279655277729,
0.030752032995224,
-0.016063662245869637,
-0.04121725261211395,
0.03470693528652191,
0.03773229569196701,
-0.021061014384031296,
-0.06285050511360168,
0.03515541926026344,
-0.01361030898988247,
-0.00020631810184568167,
-0.029477765783667564,
-0.05960770696401596,
0.0826668068766594,
0.08242553472518921,
0.011528000235557556,
0.002578946528956294,
-0.018004275858402252,
-0.05691897124052048,
-0.03255166485905647,
-0.03607119247317314,
-0.03579959645867348,
-0.019686143845319748,
0.0015443293377757072,
-0.03553512319922447,
-0.01948220282793045,
-0.03424639254808426,
0.003018273040652275,
-0.003975938074290752,
0.032576996833086014,
0.03882908076047897,
0.04703386873006821,
0.02444172278046608,
0.05411257594823837,
-0.03327541798353195,
-0.0240979865193367,
0.06479845196008682,
0.014674831181764603,
0.00905439630150795,
-0.05873771384358406,
-0.03998298570513725,
0.036145951598882675,
0.008819835260510445,
-0.005288973916321993,
0.001724950852803886,
0.06368312239646912,
-0.0012132417177781463,
0.0015008922200649977,
0.019571980461478233,
-0.01366953831166029,
-0.033237818628549576,
-0.006347955670207739,
0.005998876877129078,
-0.008273547515273094,
-0.05292637646198273,
-0.013812165707349777,
0.012645015493035316,
0.05980904772877693,
-0.043135594576597214,
-0.0645870715379715,
-0.0052619874477386475,
0.06893356144428253,
0.010884109884500504,
0.008802521973848343,
-0.02742837555706501,
0.012685909867286682,
-0.040226999670267105,
-0.040085338056087494,
0.008218053728342056,
0.0031975700985640287,
0.012755010277032852,
0.03234189748764038,
0.017873452976346016,
-0.025299353525042534,
0.02705199643969536,
0.028972411528229713,
0.05445009097456932,
0.011946648359298706,
-0.032042428851127625,
0.01454583927989006,
-0.0368054024875164,
0.01681595854461193,
0.003482870291918516,
-0.02829308621585369,
-0.0386224240064621,
-0.10076066106557846,
-0.005462287925183773,
0.0021357343066483736,
-0.03315787389874458,
-0.010665956884622574,
0.045284733176231384,
-0.02179555594921112,
-0.007055377122014761,
0.0020396006293594837,
0.020644910633563995,
0.046289969235658646,
-0.027114776894450188,
0.06581061333417892,
0.0047033620066940784,
0.028000343590974808,
-0.04163961485028267,
0.03234812617301941,
-0.03558477759361267,
0.0032957957591861486,
0.0006760046817362309,
0.0589936263859272,
0.0270407572388649,
0.03604508936405182,
0.07586988806724548,
0.048090845346450806,
-0.03831212967634201,
0.04990902170538902,
0.0609663724899292,
-0.002023120177909732,
-0.049350425601005554,
0.00019682465062942356,
-0.010916824452579021,
-0.01998402364552021,
0.006924878340214491,
-0.02516443096101284,
-0.001113783335313201,
0.035326048731803894,
0.004524176474660635,
0.0002569655771367252,
0.0006965131615288556,
-0.03295525535941124,
-0.05409893020987511,
-0.06718060374259949,
-0.03967424854636192,
0.01836547814309597,
-0.022365368902683258,
0.03374543413519859,
0.04781320318579674,
0.021418724209070206,
0.06879135966300964,
0.07580798119306564,
-0.010076534934341908,
-0.050004106014966965,
0.012391638942062855,
0.029319655150175095,
-0.02757970057427883,
-0.060406625270843506,
-0.07336290180683136,
0.05559404194355011,
0.04843929409980774,
0.0027019705157727003,
-0.0748388022184372,
0.0038260198198258877,
0.052305031567811966,
-0.019376257434487343,
0.06532390415668488,
-0.007306751795113087,
0.04624597728252411,
0.05994115397334099,
-0.03256187215447426,
0.017146555706858635,
-0.04531501978635788,
0.010462770238518715,
-0.004206408280879259,
0.018871759995818138,
-0.028222884982824326,
-0.030387254431843758,
-0.043807223439216614,
0.0242893248796463,
0.042550861835479736,
0.045186907052993774,
0.05386849865317345,
-0.012560052797198296,
-0.05515838786959648,
-0.00019040441839024425,
0.0016476851888000965,
-0.055024757981300354,
-0.004268418997526169,
0.03307664394378662,
0.034541189670562744,
-0.03817008063197136,
-0.006880555767565966,
-0.023375412449240685,
-0.007351972162723541,
0.01890677586197853,
0.0010280233109369874,
-0.05818941071629524,
-0.05220307409763336,
0.007181335240602493,
-0.025353677570819855,
-0.027952969074249268,
-0.09866984933614731,
0.05724264308810234,
-0.03353411704301834,
0.0017883426044136286,
0.04056311026215553,
0.017448758706450462,
0.02375066839158535,
0.049394212663173676,
-0.020573411136865616,
0.021606964990496635,
-0.04064130410552025,
0.029369782656431198,
-0.0023919420782476664,
-0.02301415055990219,
-0.01767728291451931,
-0.07339505106210709,
-0.00637780549004674,
-0.013552086427807808,
-0.029529990628361702,
-0.03468986600637436,
-0.01601332798600197,
0.010976475663483143,
-0.009960050694644451,
0.006853110156953335,
-0.01900639943778515,
0.0467265322804451,
-0.028255723416805267,
-0.010732353664934635,
-0.014130912721157074,
-0.04375123232603073,
-0.09007424861192703,
-0.05297631025314331,
-0.010583908297121525,
0.016219977289438248,
0.021396366879343987,
0.02940019965171814,
0.013926979154348373,
0.00428071478381753,
0.00996425561606884,
-0.011640865355730057,
0.02189093828201294,
0.0032572399359196424,
-0.03561725839972496,
-0.03503008186817169,
-0.007501442451030016,
0.04177257418632507,
0.043317969888448715,
-0.022343097254633904,
0.030295828357338905,
0.03693680837750435,
-0.039183083921670914,
-0.0030276488978415728,
0.03820479288697243,
0.022238388657569885,
-0.06117913872003555,
-0.03745314106345177,
-0.02615591138601303,
-0.0451505072414875,
0.026508599519729614,
-0.019181951880455017,
-0.009486665949225426,
0.0066481162793934345,
0.035727981477975845,
0.03657751530408859,
-0.007563640829175711,
-0.040453240275382996,
0.0009931764798238873,
-0.039579614996910095,
0.01757298782467842,
-0.03922899439930916,
0.06956823170185089,
-0.034962866455316544,
0.014976964332163334,
0.003553320188075304,
-0.03754797205328941,
-0.016325684264302254,
0.039194587618112564,
0.010805959813296795,
-0.008037278428673744,
-0.01798647828400135,
0.01254256721585989,
-0.027101567015051842,
0.035340286791324615,
0.01835794560611248,
0.02062832936644554,
-0.011030341498553753,
0.028783073648810387,
-0.04617469385266304,
-0.002888977760449052,
-0.020922239869832993,
0.005527614150196314,
-0.02278514951467514,
-0.03771277144551277,
-0.01626094989478588,
-0.06908426433801651,
0.021268123760819435,
0.008928234688937664,
0.04825775697827339,
0.03120320662856102,
0.0035385403316468,
-0.005210178438574076,
0.028374379500746727,
-0.06475052982568741,
-0.006815088447183371,
-0.0173027403652668,
0.03821289539337158,
0.018407350406050682,
0.07093380391597748,
0.03863052278757095,
-0.032618071883916855,
-0.051372867077589035,
0.04102350026369095,
0.020279111340641975,
0.024394206702709198,
0.02246912382543087,
0.058231621980667114,
0.04114827141165733,
0.05440729111433029,
-0.026604393497109413,
0.0003680652298498899,
-0.015903355553746223,
-0.018080828711390495,
0.011571475304663181,
0.01914890669286251,
0.028048017993569374,
0.004329625517129898,
-0.05288389325141907,
-0.024924539029598236,
0.07916183024644852,
0.036486320197582245,
0.002886599861085415,
0.004947011824697256,
-0.026249919086694717,
0.031045138835906982,
-0.008411587215960026,
-0.060216329991817474,
-0.018386954441666603,
0.015985088422894478,
-0.0440032035112381,
0.08274729549884796,
-0.02151554822921753,
0.030734747648239136,
0.012289149686694145,
0.025809600949287415,
0.00046743499115109444,
0.05341166630387306,
-0.04020201414823532,
0.035771436989307404,
0.04282524064183235,
-0.04062395542860031,
0.011825698427855968,
-0.029933683574199677,
0.06128362938761711,
-0.07308347523212433,
0.05760083347558975,
0.03418031334877014,
0.017631622031331062,
0.009608072228729725,
-0.030301060527563095,
-0.027914242818951607,
0.008525675162672997,
-0.04380767419934273,
0.06928731501102448,
0.0019774686079472303,
-0.05436243861913681,
0.03562695160508156,
0.036272745579481125,
-0.07587125152349472,
0.07272080332040787,
0.028406726196408272,
0.06623105704784393,
0.05425608158111572,
0.04002678766846657,
-0.07331465929746628,
0.011864868924021721,
-0.044350333511829376,
0.037918686866760254,
-0.07496897131204605,
0.01135233324021101,
0.037463635206222534,
-0.041967228055000305,
-0.007319871336221695,
0.03530348464846611,
0.0009735532221384346,
-0.007999659515917301,
0.0060914731584489346,
-0.05775057151913643,
-0.05087336525321007,
-0.01876823604106903,
0.017450101673603058,
-0.04447125270962715,
0.024184055626392365,
-0.04830549657344818,
0.011801199056208134,
0.012271829880774021,
-0.02021372877061367,
-0.05635219067335129,
0.003681655041873455,
0.05089431628584862,
-0.08330575376749039,
-0.03590405359864235,
0.049749862402677536,
0.002413082867860794,
-0.015507930889725685,
0.03334369882941246,
-0.006315547972917557,
0.031307466328144073,
0.02610642835497856,
0.0008230421226471663,
0.024706797674298286,
-0.05144540220499039,
-0.01109122484922409,
0.016425862908363342,
-0.02292594127357006,
0.0214396882802248,
-0.023567872121930122,
0.03778007626533508,
0.06980689615011215,
0.038919851183891296,
0.0074454136192798615,
-0.052995599806308746,
-0.02865687385201454,
0.011631665751338005,
-0.048989687114953995,
0.016127215698361397,
-0.005882779136300087,
-0.04451106861233711,
-0.04234987124800682,
-0.011588512919843197,
-0.02358170971274376,
0.034612592309713364,
-0.027593016624450684,
-0.009045041166245937,
0.02509119361639023,
-0.029612625017762184,
-0.03777461126446724,
-0.07817204296588898,
-0.023678189143538475,
-0.03548837825655937,
0.03385641425848007,
0.019760670140385628,
-0.03448973223567009,
0.01319241151213646,
-0.0451383963227272,
-0.0627736821770668,
0.03584536537528038,
0.01507883332669735,
-0.027455219998955727,
0.06069441884756088,
0.02990737371146679,
-0.04052307456731796,
0.014768308028578758,
0.04422159492969513,
-0.028337134048342705,
0.0021150235552340746,
-0.005691408645361662,
0.007267998065799475,
0.02336711995303631,
0.03254004940390587,
-0.03276025131344795,
-0.004301914945244789,
-0.043650541454553604,
-0.041743382811546326,
-0.041283950209617615,
-0.011459244415163994,
0.07110247015953064
] |
CAMeL-Lab/bert-base-arabic-camelbert-da-sentiment | [
"pytorch",
"tf",
"bert",
"text-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"has_space"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 19,850 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "أنا بخير"
---
# CAMeLBERT-DA SA Model
## Model description
**CAMeLBERT-DA SA Model** is a Sentiment Analysis (SA) model that was built by fine-tuning the [CAMeLBERT Dialectal Arabic (DA)](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-da/) model.
For the fine-tuning, we used the [ASTD](https://aclanthology.org/D15-1299.pdf), [ArSAS](http://lrec-conf.org/workshops/lrec2018/W30/pdf/22_W30.pdf), and [SemEval](https://aclanthology.org/S17-2088.pdf) datasets.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."
* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-DA SA model directly as part of our [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) SA component (*recommended*) or as part of the transformers pipeline.
#### How to use
To use the model with the [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) SA component:
```python
>>> from camel_tools.sentiment import SentimentAnalyzer
>>> sa = SentimentAnalyzer("CAMeL-Lab/bert-base-arabic-camelbert-da-sentiment")
>>> sentences = ['أنا بخير', 'أنا لست بخير']
>>> sa.predict(sentences)
>>> ['positive', 'negative']
```
You can also use the SA model directly with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> sa = pipeline('text-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-da-sentiment')
>>> sentences = ['أنا بخير', 'أنا لست بخير']
>>> sa(sentences)
[{'label': 'positive', 'score': 0.9616648554801941},
{'label': 'negative', 'score': 0.9779177904129028}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
-0.0036913303192704916,
-0.009244854561984539,
-0.03433472290635109,
0.06501085311174393,
0.05764782428741455,
0.03551328554749489,
-0.012210543267428875,
-0.008922296576201916,
-0.028712643310427666,
0.07092169672250748,
0.007851207628846169,
-0.04984641447663307,
0.02786761336028576,
0.03576882928609848,
-0.05120563134551048,
-0.0239968691021204,
-0.0004759096773341298,
-0.02957107685506344,
-0.05064303055405617,
-0.04528317227959633,
0.0028940518386662006,
0.00295865791849792,
0.00515540037304163,
0.00341766863130033,
0.00040030540549196303,
0.023646878078579903,
-0.03287293761968613,
0.05182989314198494,
0.034043487161397934,
-0.06757502257823944,
-0.022702056914567947,
-0.01608574576675892,
-0.03956165537238121,
-0.020497696474194527,
-0.01787489466369152,
0.01529188733547926,
0.005564109422266483,
-0.002863111440092325,
0.005026934202760458,
0.04922804981470108,
-0.020805466920137405,
0.01565646193921566,
-0.01169081125408411,
-0.019771000370383263,
0.0518677718937397,
0.018194593489170074,
-0.0399375781416893,
0.006287372205406427,
0.029503656551241875,
-0.06419976055622101,
-0.06706823408603668,
-0.07009007036685944,
-0.04482293128967285,
0.043049611151218414,
0.008814695291221142,
-0.001663565170019865,
-0.030161699280142784,
-0.029786892235279083,
0.09242100268602371,
-0.061360377818346024,
-0.03065566159784794,
0.005491952411830425,
-0.05366074666380882,
0.003953910432755947,
0.027720045298337936,
-0.025587795302271843,
0.018475577235221863,
-0.031818654388189316,
0.05770043283700943,
-0.03374001383781433,
0.04615269601345062,
-0.024463817477226257,
0.027907490730285645,
-0.06885392218828201,
0.018782928586006165,
-0.03183100000023842,
0.04712778702378273,
0.04501185566186905,
-0.02893771417438984,
0.07467416673898697,
0.006771096494048834,
0.004451170098036528,
0.04044079780578613,
-0.004380957223474979,
-0.012437653727829456,
0.035469166934490204,
-0.06200442090630531,
-0.0007085235556587577,
0.004805463366210461,
0.03001995012164116,
-0.045600127428770065,
-0.04385394975543022,
-0.013598814606666565,
-0.05348331853747368,
-0.023465177044272423,
0.03525741025805473,
0.02237679623067379,
-0.03129054233431816,
0.05158128961920738,
0.01766354963183403,
0.033358171582221985,
0.04500453546643257,
-0.03353247046470642,
0.03190160542726517,
-0.013528014533221722,
-0.024878745898604393,
-0.025896400213241577,
-0.032667163759469986,
-0.0346674807369709,
0.05279058590531349,
-0.011992654763162136,
-0.05826827138662338,
-0.058019112795591354,
0.019264256581664085,
-0.002761867828667164,
-0.03820570558309555,
0.03176959231495857,
-0.03407547250390053,
-0.046904128044843674,
-0.041109349578619,
0.042874593287706375,
-0.003912846092134714,
-0.005883449222892523,
0.006953075993806124,
-0.06653940677642822,
0.010415210388600826,
-0.06454665213823318,
-0.0291461031883955,
-0.030275076627731323,
0.020432736724615097,
0.01437047403305769,
0.023202935233712196,
0.018931033089756966,
-0.07691895216703415,
0.013750188983976841,
-0.01000282447785139,
-0.06550378352403641,
0.03472449630498886,
0.03289889544248581,
0.10457554459571838,
-0.05168450251221657,
-0.0323401615023613,
0.012121007777750492,
-0.0017143819713965058,
-0.011945062316954136,
-0.006034968886524439,
0.02895127236843109,
-0.02201135642826557,
-0.02772011049091816,
-0.015750017017126083,
0.061361126601696014,
-0.053611837327480316,
-0.0038828072138130665,
0.0444524772465229,
0.004103512968868017,
0.028467604890465736,
-0.034648347645998,
-0.022386210039258003,
0.007253773044794798,
0.011028637178242207,
-0.021837696433067322,
0.06014145910739899,
-0.005659920629113913,
-0.03503245487809181,
-0.04058121517300606,
-0.035184476524591446,
-0.005814883857965469,
0.09096760302782059,
0.000292851822450757,
-0.0244367066770792,
-0.018505645915865898,
0.007647758815437555,
0.04011707380414009,
0.006206256337463856,
-0.0311595369130373,
0.0032747401855885983,
0.0634199008345604,
0.006260283291339874,
-0.011825094930827618,
0.07743798941373825,
-0.011797860264778137,
-0.01034185104072094,
-0.01513709221035242,
-0.006106104701757431,
0.007438647095113993,
-0.03696361556649208,
0.04521983861923218,
0.045237328857183456,
-0.02289821207523346,
-0.022497577592730522,
-0.03166443854570389,
0.06918281316757202,
-0.012745512649416924,
0.015764562413096428,
-0.017099464312195778,
-0.006794919725507498,
-0.040498070418834686,
0.03659677505493164,
-0.007049080450087786,
0.009153541177511215,
-0.03762118145823479,
0.003333867294713855,
-0.0021568911615759134,
0.025729350745677948,
0.03658433258533478,
0.016920261085033417,
-0.02333003096282482,
0.0833815261721611,
-0.03205086663365364,
0.0015684609534218907,
-0.04362666234374046,
-0.047160521149635315,
-0.013591364957392216,
0.0318637378513813,
0.02840101160109043,
0.04230687767267227,
-0.007827039808034897,
-0.04478434473276138,
0.014968604780733585,
0.048912886530160904,
0.024706080555915833,
0.03753803297877312,
-0.0193423293530941,
-0.021272825077176094,
0.029399439692497253,
0.06119832023978233,
-0.07797497510910034,
-0.04192941263318062,
0.031557630747556686,
0.03194044530391693,
-0.037610072642564774,
0.009388203732669353,
-0.010583040304481983,
0.03292658552527428,
-0.021248992532491684,
-0.08567427098751068,
0.06074196472764015,
0.03179677948355675,
0.006030011922121048,
0.03062761016190052,
-0.004950019996613264,
-0.01995229162275791,
0.014433065429329872,
0.017592893913388252,
-0.006616742815822363,
-0.052058856934309006,
0.012432976625859737,
0.009062638506293297,
0.08601857721805573,
-0.04108160734176636,
0.03194834291934967,
0.007928217761218548,
0.009845948778092861,
0.02735777758061886,
-0.02860415168106556,
0.023714978247880936,
0.02687665820121765,
0.0018150955438613892,
-0.029836632311344147,
0.027771305292844772,
0.0006041059386916459,
0.01835758052766323,
0.05124540627002716,
-0.021805234253406525,
0.06243042275309563,
0.00501225283369422,
0.049460697919130325,
0.06326699256896973,
0.02760351076722145,
0.015760406851768494,
0.01055170875042677,
0.0745055228471756,
0.007236340083181858,
-0.010397985577583313,
0.0625501498579979,
-0.05660508945584297,
0.023985225707292557,
-0.042415738105773926,
-0.004179696086794138,
-0.015145312994718552,
-0.025296173989772797,
0.041212789714336395,
0.006219798699021339,
-0.0019046555971726775,
-0.019650885835289955,
-0.018709193915128708,
0.009932368993759155,
0.03594294190406799,
-0.024119805544614792,
-0.019261226058006287,
-0.008568715304136276,
-0.05289784073829651,
0.0025475923903286457,
-0.05721685290336609,
-0.002804999705404043,
-0.012594491243362427,
-0.03869708254933357,
0.0012254533357918262,
-0.06580041348934174,
-0.05432813987135887,
-0.051571864634752274,
-0.00498909130692482,
0.03600145876407623,
0.015367086976766586,
0.009278844110667706,
-0.03972026705741882,
0.04015953838825226,
-0.030715342611074448,
-0.03565150499343872,
-0.030658265575766563,
-0.05522361770272255,
-0.004973679315298796,
-0.0408213809132576,
0.04183017089962959,
0.02324225939810276,
0.021152405068278313,
-0.005670171231031418,
0.014999841339886189,
-0.021861493587493896,
-0.053979646414518356,
0.02603972516953945,
0.045879900455474854,
-0.01645224541425705,
-0.08804968744516373,
0.01191024761646986,
0.00711943069472909,
0.0027859194669872522,
-0.03912094607949257,
-0.049979452043771744,
0.06862200796604156,
0.08405065536499023,
0.005488062277436256,
0.02004486322402954,
-0.02142356149852276,
-0.0594380721449852,
-0.05041588470339775,
-0.02707306109368801,
-0.04230857640504837,
-0.029509179294109344,
-0.009020481258630753,
-0.03814423829317093,
-0.028910940513014793,
-0.03497340902686119,
-0.006055696867406368,
0.004665866959840059,
0.016274066641926765,
0.03625937178730965,
0.04048493877053261,
0.030361425131559372,
0.03810155391693115,
-0.04395917057991028,
-0.01891505718231201,
0.06811854988336563,
0.02205592952668667,
0.02788454294204712,
-0.07158169895410538,
-0.034187134355306625,
0.05277653783559799,
0.007655766326934099,
-0.01762388087809086,
-0.00895055290311575,
0.07778026163578033,
-0.0014291483676061034,
-0.003059217007830739,
0.004745115526020527,
0.004975802265107632,
-0.0470443069934845,
-0.011475077830255032,
0.012686928734183311,
-0.016088707372546196,
-0.05132749676704407,
-0.01759512349963188,
-0.004989510402083397,
0.05332633852958679,
-0.034239910542964935,
-0.05572177469730377,
0.00937860831618309,
0.06747215986251831,
0.014143689535558224,
0.001744503853842616,
-0.026426272466778755,
0.010670782998204231,
-0.04562336206436157,
-0.03441263362765312,
0.010321307927370071,
-0.019350556656718254,
0.0046598464250564575,
0.04609378054738045,
0.010967281647026539,
-0.006299613043665886,
0.022875694558024406,
0.023170344531536102,
0.05111454427242279,
0.009018894284963608,
-0.035501886159181595,
0.015523207373917103,
-0.0420122966170311,
0.011236949823796749,
0.027463072910904884,
-0.045131389051675797,
-0.0558372437953949,
-0.07984047383069992,
-0.021170033141970634,
0.0030854411888867617,
-0.017263609915971756,
-0.022004248574376106,
0.030920518562197685,
-0.024780424311757088,
-0.012373845092952251,
0.009084571152925491,
0.01023032609373331,
0.048092491924762726,
-0.0330037847161293,
0.06891310214996338,
-0.00532052107155323,
0.0314481295645237,
-0.06133848801255226,
0.021135877817869186,
-0.03816010430455208,
0.009389429353177547,
0.0005555685493163764,
0.0647650882601738,
0.020089181140065193,
0.03630688786506653,
0.06592117995023727,
0.04722269997000694,
-0.031854476779699326,
0.035926058888435364,
0.04984327033162117,
-0.0013774331891909242,
-0.03277056664228439,
0.0022131844889372587,
-0.014981838874518871,
-0.02568865939974785,
0.007285150233656168,
-0.030247870832681656,
0.002265335526317358,
0.016721032559871674,
-0.0002900493855122477,
0.00699436292052269,
0.009280088357627392,
-0.034834641963243484,
-0.04470805823802948,
-0.04919297993183136,
-0.039083223789930344,
0.03097272478044033,
-0.028525136411190033,
0.0403602160513401,
0.04792575538158417,
0.028503401204943657,
0.06604954600334167,
0.06530795246362686,
0.0017921820981428027,
-0.04691024497151375,
0.020714046433568,
0.04102807864546776,
-0.03270511329174042,
-0.0646173357963562,
-0.07287060469388962,
0.035020213574171066,
0.04259736090898514,
0.012429462745785713,
-0.08294747024774551,
0.010792532935738564,
0.05449872091412544,
-0.014115000143647194,
0.03807491064071655,
-0.010928058065474033,
0.06507483124732971,
0.06717398017644882,
-0.02439776062965393,
0.020797599107027054,
-0.04228876158595085,
0.014909520745277405,
-0.0036883626598864794,
0.021217647939920425,
-0.026976529508829117,
-0.014034740626811981,
-0.053492143750190735,
0.029303908348083496,
0.036492038518190384,
0.021166978403925896,
0.03902701288461685,
-0.012526710517704487,
-0.029586298391222954,
0.012306931428611279,
-0.004381636623293161,
-0.04222211614251137,
0.000544608396012336,
0.04128216207027435,
0.03278970345854759,
-0.036073457449674606,
-0.0002966842439491302,
-0.01000702753663063,
0.006336080841720104,
0.03444724157452583,
-0.013394905254244804,
-0.04548240825533867,
-0.043718352913856506,
0.017613748088479042,
-0.020406212657690048,
-0.027111278846859932,
-0.09273090958595276,
0.029061075299978256,
-0.0247053075581789,
0.0018382077105343342,
0.03522242605686188,
0.015298200771212578,
0.017110023647546768,
0.051465924829244614,
-0.013367479667067528,
0.013709137216210365,
-0.04600587859749794,
0.027104634791612625,
-0.0036372130271047354,
-0.011376905255019665,
-0.02491155080497265,
-0.062474239617586136,
-0.01645427569746971,
-0.004532629624009132,
-0.029750943183898926,
-0.024510134011507034,
-0.0317467600107193,
0.02120422199368477,
-0.009075231850147247,
0.00022879526659380645,
-0.02072848007082939,
0.06021615490317345,
-0.04164591804146767,
-0.023346059024333954,
-0.013180225156247616,
-0.040681466460227966,
-0.07973077148199081,
-0.04606008902192116,
-0.016147971153259277,
0.021022029221057892,
0.01780153065919876,
0.02004409208893776,
0.0219198539853096,
0.01608443818986416,
0.018808400258421898,
-0.028022978454828262,
0.019470958039164543,
0.0019724941812455654,
-0.05518326163291931,
-0.03921222314238548,
-0.02587069198489189,
0.0280423816293478,
0.06180953606963158,
-0.02600918896496296,
0.032026439905166626,
0.02900136448442936,
-0.04990937560796738,
-0.011790033429861069,
0.030712025240063667,
0.040860615670681,
-0.06619589775800705,
-0.029523460194468498,
-0.027461428195238113,
-0.024931127205491066,
0.03237038105726242,
-0.020584028214216232,
-0.012317129410803318,
0.02486315555870533,
0.034124016761779785,
0.0297375675290823,
0.0034366846084594727,
-0.05535845831036568,
0.023178989067673683,
-0.022580761462450027,
0.0066269515082240105,
-0.053826235234737396,
0.05637776851654053,
-0.04728507623076439,
0.006693512666970491,
-0.006426151841878891,
-0.023732509464025497,
-0.030439911410212517,
0.042276810854673386,
-0.012434900738298893,
-0.001160445623099804,
0.01212547067552805,
-0.0012574284337460995,
-0.03191565349698067,
0.037776701152324677,
-0.005592989735305309,
0.015655111521482468,
-0.03879642114043236,
0.04215480014681816,
-0.04097785800695419,
-0.006751496810466051,
-0.027011429890990257,
0.0012802975252270699,
-0.042143095284700394,
-0.04193572700023651,
-0.014767337590456009,
-0.058977752923965454,
0.027707116678357124,
0.020277423784136772,
0.040939655154943466,
0.04022163525223732,
0.007507486268877983,
-0.019269399344921112,
0.014961701817810535,
-0.06892763078212738,
-0.017844971269369125,
-0.011938570998609066,
0.0510830357670784,
0.005387181881815195,
0.06735662370920181,
0.029875949025154114,
-0.0559312179684639,
-0.04977894574403763,
0.03967324644327164,
0.014772173017263412,
0.008156067691743374,
0.01578105054795742,
0.06549724191427231,
0.03160427510738373,
0.04001530632376671,
-0.02572726458311081,
-0.015455908142030239,
-0.021814169362187386,
-0.024353574961423874,
0.0011799294734373689,
0.011734136380255222,
-0.006615563295781612,
0.0065818107686936855,
-0.04630866274237633,
-0.028199452906847,
0.08082696795463562,
0.026120729744434357,
0.010906672105193138,
0.016763392835855484,
-0.03807004913687706,
0.017876913771033287,
-0.005259684752672911,
-0.043936967849731445,
-0.014071145094931126,
0.013630662113428116,
-0.03261670097708702,
0.07478012889623642,
-0.016080908477306366,
0.019241543486714363,
0.029607698321342468,
0.029385367408394814,
-0.019046174362301826,
0.03137524425983429,
-0.030445521697402,
0.02689329907298088,
0.05402325093746185,
-0.03812187910079956,
0.017260976135730743,
-0.04474279284477234,
0.06425819545984268,
-0.08586947619915009,
0.05520289018750191,
0.03541641682386398,
0.006575793027877808,
-0.004037398379296064,
-0.03030525892972946,
-0.027534663677215576,
0.013938991352915764,
-0.040423985570669174,
0.07356148213148117,
-0.0014409139985218644,
-0.06276119500398636,
0.038177840411663055,
0.028128094971179962,
-0.08092079311609268,
0.07008679956197739,
0.041945766657590866,
0.061117060482501984,
0.04766194149851799,
0.021943263709545135,
-0.08075431734323502,
0.0015068473294377327,
-0.04432566091418266,
0.03516014665365219,
-0.059023987501859665,
0.0062153455801308155,
0.0506666824221611,
-0.049324408173561096,
-0.018688589334487915,
0.036209944635629654,
-0.014614523388445377,
-0.017062203958630562,
0.016889318823814392,
-0.0681561753153801,
-0.038319721817970276,
-0.018530042842030525,
0.02176164649426937,
-0.04492996260523796,
-0.0009530849056318402,
-0.04262736067175865,
0.010015317238867283,
0.0030335194896906614,
-0.008240901865065098,
-0.04030496999621391,
-0.0036225076764822006,
0.026569664478302002,
-0.07088732719421387,
-0.016857659444212914,
0.0450088307261467,
0.008018499240279198,
-0.012543842196464539,
0.044596560299396515,
-0.018175924196839333,
0.023488357663154602,
0.02001349814236164,
0.00440644659101963,
0.013823471032083035,
-0.045471370220184326,
-0.028114980086684227,
0.015561425127089024,
-0.015500069595873356,
0.021208923310041428,
-0.006033963989466429,
0.04006519541144371,
0.06750935316085815,
0.01623818650841713,
0.020433826372027397,
-0.04932929947972298,
-0.031249726191163063,
0.028009241446852684,
-0.04311087355017662,
0.0153995705768466,
0.0005745681119151413,
-0.05483916401863098,
-0.029836423695087433,
-0.005758859217166901,
-0.019304316490888596,
0.03709380328655243,
-0.04138446971774101,
-0.00733540765941143,
0.015578611753880978,
-0.03661615774035454,
-0.023670781403779984,
-0.06695576757192612,
-0.028839772567152977,
-0.04227309674024582,
0.03856340050697327,
0.02899407409131527,
-0.04004900902509689,
0.017671532928943634,
-0.06255544722080231,
-0.055664531886577606,
0.026542941108345985,
0.03742837533354759,
-0.053775399923324585,
0.06578990817070007,
0.034314967691898346,
-0.03174148499965668,
0.005700462032109499,
0.04499650374054909,
-0.028442220762372017,
0.011873139068484306,
0.0008570637437514961,
0.018764017149806023,
0.03761637583374977,
0.030453745275735855,
-0.028017381206154823,
-0.019700881093740463,
-0.04680248349905014,
-0.05135493725538254,
-0.04694480821490288,
0.007067197002470493,
0.0679917111992836
] |
CAMeL-Lab/bert-base-arabic-camelbert-da | [
"pytorch",
"tf",
"jax",
"bert",
"fill-mask",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 449 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "الهدف من الحياة هو [MASK] ."
---
# CAMeLBERT: A collection of pre-trained models for Arabic NLP tasks
## Model description
**CAMeLBERT** is a collection of BERT models pre-trained on Arabic texts with different sizes and variants.
We release pre-trained language models for Modern Standard Arabic (MSA), dialectal Arabic (DA), and classical Arabic (CA), in addition to a model pre-trained on a mix of the three.
We also provide additional models that are pre-trained on a scaled-down set of the MSA variant (half, quarter, eighth, and sixteenth).
The details are described in the paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."*
This model card describes **CAMeLBERT-DA** (`bert-base-arabic-camelbert-da`), a model pre-trained on the DA (dialectal Arabic) dataset.
||Model|Variant|Size|#Word|
|-|-|:-:|-:|-:|
||`bert-base-arabic-camelbert-mix`|CA,DA,MSA|167GB|17.3B|
||`bert-base-arabic-camelbert-ca`|CA|6GB|847M|
|✔|`bert-base-arabic-camelbert-da`|DA|54GB|5.8B|
||`bert-base-arabic-camelbert-msa`|MSA|107GB|12.6B|
||`bert-base-arabic-camelbert-msa-half`|MSA|53GB|6.3B|
||`bert-base-arabic-camelbert-msa-quarter`|MSA|27GB|3.1B|
||`bert-base-arabic-camelbert-msa-eighth`|MSA|14GB|1.6B|
||`bert-base-arabic-camelbert-msa-sixteenth`|MSA|6GB|746M|
## Intended uses
You can use the released model for either masked language modeling or next sentence prediction.
However, it is mostly intended to be fine-tuned on an NLP task, such as NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
We release our fine-tuninig code [here](https://github.com/CAMeL-Lab/CAMeLBERT).
#### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='CAMeL-Lab/bert-base-arabic-camelbert-da')
>>> unmasker("الهدف من الحياة هو [MASK] .")
[{'sequence': '[CLS] الهدف من الحياة هو.. [SEP]',
'score': 0.062508225440979,
'token': 18,
'token_str': '.'},
{'sequence': '[CLS] الهدف من الحياة هو الموت. [SEP]',
'score': 0.033172328025102615,
'token': 4295,
'token_str': 'الموت'},
{'sequence': '[CLS] الهدف من الحياة هو الحياة. [SEP]',
'score': 0.029575437307357788,
'token': 3696,
'token_str': 'الحياة'},
{'sequence': '[CLS] الهدف من الحياة هو الرحيل. [SEP]',
'score': 0.02724040113389492,
'token': 11449,
'token_str': 'الرحيل'},
{'sequence': '[CLS] الهدف من الحياة هو الحب. [SEP]',
'score': 0.01564178802073002,
'token': 3088,
'token_str': 'الحب'}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`. Otherwise, you could download the models manually.
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-da')
model = AutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-da')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AutoTokenizer, TFAutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-da')
model = TFAutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-da')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
## Training data
- DA (dialectal Arabic)
- A collection of dialectal Arabic data described in [our paper](https://arxiv.org/abs/2103.06678).
## Training procedure
We use [the original implementation](https://github.com/google-research/bert) released by Google for pre-training.
We follow the original English BERT model's hyperparameters for pre-training, unless otherwise specified.
### Preprocessing
- After extracting the raw text from each corpus, we apply the following pre-processing.
- We first remove invalid characters and normalize white spaces using the utilities provided by [the original BERT implementation](https://github.com/google-research/bert/blob/eedf5716ce1268e56f0a50264a88cafad334ac61/tokenization.py#L286-L297).
- We also remove lines without any Arabic characters.
- We then remove diacritics and kashida using [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools).
- Finally, we split each line into sentences with a heuristics-based sentence segmenter.
- We train a WordPiece tokenizer on the entire dataset (167 GB text) with a vocabulary size of 30,000 using [HuggingFace's tokenizers](https://github.com/huggingface/tokenizers).
- We do not lowercase letters nor strip accents.
### Pre-training
- The model was trained on a single cloud TPU (`v3-8`) for one million steps in total.
- The first 90,000 steps were trained with a batch size of 1,024 and the rest was trained with a batch size of 256.
- The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%.
- We use whole word masking and a duplicate factor of 10.
- We set max predictions per sequence to 20 for the dataset with max sequence length of 128 tokens and 80 for the dataset with max sequence length of 512 tokens.
- We use a random seed of 12345, masked language model probability of 0.15, and short sequence probability of 0.1.
- The optimizer used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01, learning rate warmup for 10,000 steps and linear decay of the learning rate after.
## Evaluation results
- We evaluate our pre-trained language models on five NLP tasks: NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
- We fine-tune and evaluate the models using 12 dataset.
- We used Hugging Face's transformers to fine-tune our CAMeLBERT models.
- We used transformers `v3.1.0` along with PyTorch `v1.5.1`.
- The fine-tuning was done by adding a fully connected linear layer to the last hidden state.
- We use \\(F_{1}\\) score as a metric for all tasks.
- Code used for fine-tuning is available [here](https://github.com/CAMeL-Lab/CAMeLBERT).
### Results
| Task | Dataset | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | --------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| NER | ANERcorp | MSA | 80.8% | 67.9% | 74.1% | 82.4% | 82.0% | 82.1% | 82.6% | 80.8% |
| POS | PATB (MSA) | MSA | 98.1% | 97.8% | 97.7% | 98.3% | 98.2% | 98.3% | 98.2% | 98.2% |
| | ARZTB (EGY) | DA | 93.6% | 92.3% | 92.7% | 93.6% | 93.6% | 93.7% | 93.6% | 93.6% |
| | Gumar (GLF) | DA | 97.3% | 97.7% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% |
| SA | ASTD | MSA | 76.3% | 69.4% | 74.6% | 76.9% | 76.0% | 76.8% | 76.7% | 75.3% |
| | ArSAS | MSA | 92.7% | 89.4% | 91.8% | 93.0% | 92.6% | 92.5% | 92.5% | 92.3% |
| | SemEval | MSA | 69.0% | 58.5% | 68.4% | 72.1% | 70.7% | 72.8% | 71.6% | 71.2% |
| DID | MADAR-26 | DA | 62.9% | 61.9% | 61.8% | 62.6% | 62.0% | 62.8% | 62.0% | 62.2% |
| | MADAR-6 | DA | 92.5% | 91.5% | 92.2% | 91.9% | 91.8% | 92.2% | 92.1% | 92.0% |
| | MADAR-Twitter-5 | MSA | 75.7% | 71.4% | 74.2% | 77.6% | 78.5% | 77.3% | 77.7% | 76.2% |
| | NADI | DA | 24.7% | 17.3% | 20.1% | 24.9% | 24.6% | 24.6% | 24.9% | 23.8% |
| Poetry | APCD | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
### Results (Average)
| | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| Variant-wise-average<sup>[[1]](#footnote-1)</sup> | MSA | 82.1% | 75.7% | 80.1% | 83.4% | 83.0% | 83.3% | 83.2% | 82.3% |
| | DA | 74.4% | 72.1% | 72.9% | 74.2% | 74.0% | 74.3% | 74.1% | 73.9% |
| | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
| Macro-Average | ALL | 78.7% | 74.7% | 77.1% | 79.2% | 79.0% | 79.2% | 79.1% | 78.6% |
<a name="footnote-1">[1]</a>: Variant-wise-average refers to average over a group of tasks in the same language variant.
## Acknowledgements
This research was supported with Cloud TPUs from Google’s TensorFlow Research Cloud (TFRC).
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
```
| [
0.009015045128762722,
0.0069383601658046246,
-0.022217074409127235,
0.07545837759971619,
0.04364217445254326,
0.014667060226202011,
0.0009727352298796177,
-0.02523992955684662,
-0.019283711910247803,
0.06270792335271835,
0.0037920810282230377,
-0.02653389424085617,
0.009082138538360596,
0.040549736469984055,
-0.0532415397465229,
-0.020178906619548798,
0.004871188662946224,
-0.023957252502441406,
-0.04944809526205063,
-0.032254643738269806,
-0.016072159633040428,
0.004635698162019253,
0.0033784201368689537,
0.017557518556714058,
0.00470534386113286,
0.008362343534827232,
-0.01789068430662155,
0.058009177446365356,
0.02207687310874462,
-0.059724342077970505,
-0.018848486244678497,
-0.02845720574259758,
-0.041404739022254944,
-0.022834543138742447,
-0.03429071605205536,
0.006323609501123428,
0.0006033958634361625,
0.0023304952774196863,
0.01748974621295929,
0.0612652525305748,
-0.015437471680343151,
0.0022115244064480066,
-0.010451293550431728,
-0.03777104988694191,
0.02264353446662426,
-0.0009218216291628778,
-0.04285452887415886,
0.010933508165180683,
0.04522830247879028,
-0.06330014020204544,
-0.06960561871528625,
-0.040997691452503204,
-0.038259781897068024,
0.017493778839707375,
0.007084897719323635,
-0.00839379895478487,
-0.025249121710658073,
-0.02459031529724598,
0.08200792968273163,
-0.06348749250173569,
-0.05333686247467995,
0.0015803423011675477,
-0.05560110881924629,
0.022743720561265945,
0.023765861988067627,
-0.027488447725772858,
0.022115308791399002,
-0.046482618898153305,
0.06207479536533356,
-0.021681157872080803,
0.029193425551056862,
-0.021390199661254883,
0.008358458988368511,
-0.07732412219047546,
0.02872627042233944,
-0.03125305473804474,
0.04231390357017517,
0.04921046271920204,
-0.04465709254145622,
0.06776142120361328,
0.0023763542994856834,
-0.01027387659996748,
0.02896433137357235,
-0.022227197885513306,
-0.007948142476379871,
0.026729196310043335,
-0.05018489807844162,
-0.0011876856442540884,
0.012267923913896084,
0.021268529817461967,
-0.0427989698946476,
-0.035573627799749374,
-0.034761182963848114,
-0.036013416945934296,
-0.011998707428574562,
0.02079153247177601,
0.03055381588637829,
-0.019419824704527855,
0.05454513430595398,
0.014301870949566364,
0.03666616603732109,
0.0376543328166008,
-0.033531222492456436,
0.05352248623967171,
-0.030318431556224823,
-0.02120710350573063,
-0.03631426393985748,
-0.037683337926864624,
-0.022345196455717087,
0.02313331887125969,
0.002522242721170187,
-0.05079849064350128,
-0.056057609617710114,
0.056092411279678345,
-0.030266426503658295,
-0.04171180725097656,
0.028701061382889748,
-0.03095800057053566,
-0.06397952139377594,
-0.035316113382577896,
0.038758765906095505,
-0.014727745205163956,
0.021898910403251648,
0.01459252554923296,
-0.07873588055372238,
0.022984763607382774,
-0.05953303351998329,
-0.02282668463885784,
-0.017604807391762733,
0.03311186656355858,
-0.0013564697001129389,
0.039891958236694336,
0.017647558823227882,
-0.07614496350288391,
0.009450685232877731,
-0.020676562562584877,
-0.03752072900533676,
0.04170999303460121,
0.015573848970234394,
0.11161106824874878,
-0.037978846579790115,
-0.05708499625325203,
0.023836461827158928,
0.0034661635290831327,
-0.02083679474890232,
-0.007360052317380905,
0.018933532759547234,
-0.023871352896094322,
-0.017779715359210968,
-0.014612606726586819,
0.05595928058028221,
-0.05587068572640419,
0.01547641959041357,
0.05809321254491806,
0.002055211691185832,
0.02613481506705284,
-0.04159878194332123,
-0.0189554151147604,
-0.00008354492456419393,
0.0012896897969767451,
-0.02540423348546028,
0.03962774574756622,
-0.005150566343218088,
-0.0357973575592041,
-0.04116417467594147,
-0.03928876295685768,
-0.0012752676848322153,
0.08504543453454971,
0.011428206227719784,
0.007174082100391388,
-0.021282510831952095,
0.0022530765272676945,
0.04324185103178024,
0.005164074245840311,
-0.04988892748951912,
0.026209229603409767,
0.050672609359025955,
0.01159777119755745,
-0.02082758955657482,
0.07992669194936752,
-0.002015389036387205,
-0.016164617612957954,
-0.029094144701957703,
0.0061804684810340405,
0.010316810570657253,
-0.018248189240694046,
0.048169951885938644,
0.039187341928482056,
-0.011041421443223953,
-0.04084955155849457,
-0.026058867573738098,
0.07243740558624268,
0.0010740418219938874,
0.008305150084197521,
0.0035394702572375536,
-0.012783280573785305,
-0.052439089864492416,
0.03928108513355255,
-0.01909916289150715,
0.010555991902947426,
-0.0407119058072567,
0.01376713439822197,
0.008759234100580215,
0.02926023304462433,
0.0468105711042881,
0.05047605559229851,
-0.0063602807931602,
0.06397592276334763,
-0.020663395524024963,
0.009423929266631603,
-0.05312146246433258,
-0.04541590064764023,
-0.005354182794690132,
0.03840930759906769,
0.03153429925441742,
0.04626841098070145,
-0.019111569970846176,
-0.0446665994822979,
0.03751787915825844,
0.06027986481785774,
0.046554259955883026,
0.012165605090558529,
-0.03093774802982807,
-0.007220170926302671,
0.037988509982824326,
0.059547796845436096,
-0.07108854502439499,
-0.034338634461164474,
0.03078198991715908,
0.057272203266620636,
-0.02527642622590065,
0.00704661151394248,
-0.0053770034573972225,
0.02799118682742119,
-0.03258369863033295,
-0.07402051240205765,
0.048889316618442535,
0.034374531358480453,
0.00788967777043581,
0.02686680480837822,
0.0017559033585712314,
0.0070269457064569,
0.0187531765550375,
0.03891611844301224,
-0.0013731671497225761,
-0.036506302654743195,
0.006122882477939129,
0.014438973739743233,
0.066575787961483,
-0.04504789039492607,
0.02506888285279274,
-0.01138765923678875,
0.028474485501646996,
0.03178848698735237,
-0.02014847844839096,
0.03562530502676964,
0.00942971184849739,
0.010777206160128117,
-0.04329144209623337,
0.04098035767674446,
-0.008999721147119999,
0.018236976116895676,
0.056104034185409546,
-0.013182261027395725,
0.0513157956302166,
-0.00276043638586998,
0.057812731713056564,
0.05233684182167053,
0.030928494408726692,
0.014444511383771896,
0.0039375857450068,
0.07699451595544815,
0.013156871311366558,
-0.014515736140310764,
0.07340709120035172,
-0.05396550893783569,
0.011564302258193493,
-0.05694112181663513,
0.00954482052475214,
0.002178799593821168,
-0.016117950901389122,
0.025472912937402725,
0.014171216636896133,
0.006900546606630087,
-0.006924594286829233,
-0.01764778047800064,
0.0008320341003127396,
0.03490409627556801,
-0.031113125383853912,
-0.012448550201952457,
-0.022440575063228607,
-0.03323603421449661,
0.006261881906539202,
-0.06634268909692764,
-0.013760368339717388,
-0.017562737688422203,
-0.03701987862586975,
0.00047890847781673074,
-0.0818612277507782,
-0.025728615000844002,
-0.050363995134830475,
-0.009953458793461323,
0.018138891085982323,
0.014907830394804478,
-0.006490603089332581,
-0.04189961031079292,
0.0300272349268198,
-0.05180574581027031,
-0.02445114776492119,
-0.031858108937740326,
-0.06334926187992096,
-0.03187562897801399,
-0.03979375585913658,
0.04807334020733833,
0.0293637216091156,
-0.0004777568974532187,
0.009694020263850689,
0.02839498221874237,
-0.008609313517808914,
-0.0419640988111496,
0.020329423248767853,
0.03952459245920181,
-0.036727678030729294,
-0.0630175992846489,
0.012582579627633095,
-0.001746035530231893,
-0.0009241803199984133,
-0.02439666911959648,
-0.030224008485674858,
0.08760236948728561,
0.08403243869543076,
0.01098595093935728,
0.006089940667152405,
-0.010077327489852905,
-0.06244304031133652,
-0.0469757504761219,
-0.019391536712646484,
-0.04854811355471611,
-0.022006109356880188,
-0.026092683896422386,
-0.03045995533466339,
-0.028310701251029968,
-0.051586706191301346,
0.005921173375099897,
0.002692391397431493,
0.015011245384812355,
0.045840609818696976,
0.042966026812791824,
0.01832733117043972,
0.049862414598464966,
-0.03868526220321655,
-0.020449018105864525,
0.06750261038541794,
0.007278671488165855,
0.027360673993825912,
-0.06858880072832108,
-0.026706449687480927,
0.05213477462530136,
0.004935650620609522,
-0.011296514421701431,
-0.019259054213762283,
0.08102510124444962,
-0.0024623158387839794,
-0.008461407385766506,
0.006483531557023525,
-0.0010114526376128197,
-0.03709963336586952,
-0.017122143879532814,
0.01074484083801508,
-0.012958281673491001,
-0.05198366567492485,
-0.017002858221530914,
0.0026393362786620855,
0.058968689292669296,
-0.03619794547557831,
-0.05522565171122551,
-0.005358644761145115,
0.05826835334300995,
-0.0018343449337407947,
-0.005087324883788824,
-0.025982657447457314,
0.009179244749248028,
-0.04293131083250046,
-0.03099217265844345,
-0.001179476617835462,
-0.013011207804083824,
-0.007167045492678881,
0.0383659265935421,
0.013325824402272701,
-0.014364887028932571,
0.01609860733151436,
0.030851025134325027,
0.05428984761238098,
0.008382799103856087,
-0.045557886362075806,
0.0326826311647892,
-0.022484958171844482,
0.01617714762687683,
-0.003922310192137957,
-0.03849661722779274,
-0.050442781299352646,
-0.07573214918375015,
-0.0073050991632044315,
0.003569633699953556,
-0.04857885465025902,
-0.028451068326830864,
0.03952939063310623,
-0.029458822682499886,
0.006208990700542927,
-0.006953833159059286,
0.03080272488296032,
0.01514496374875307,
-0.02496195212006569,
0.07150261849164963,
-0.0024729666765779257,
0.04102323576807976,
-0.07063430547714233,
0.03144792094826698,
-0.04275079816579819,
0.006397791672497988,
0.009129359386861324,
0.06361531466245651,
0.022320229560136795,
0.05084357410669327,
0.07339492440223694,
0.04868690297007561,
-0.03392225503921509,
0.04447117820382118,
0.057601675391197205,
0.005202676635235548,
-0.039521198719739914,
-0.004088896326720715,
-0.017727505415678024,
-0.019783183932304382,
-0.013729119673371315,
-0.008028019219636917,
-0.019073469564318657,
0.02376214601099491,
-0.005985901225358248,
0.00408268254250288,
0.01474613044410944,
-0.0321064256131649,
-0.03804413229227066,
-0.05166606977581978,
-0.041978590190410614,
0.015067988075315952,
-0.03573257476091385,
0.051817748695611954,
0.022920478135347366,
0.02022686041891575,
0.07320951670408249,
0.06839989870786667,
-0.005817605182528496,
-0.028897229582071304,
0.011293032206594944,
0.0373910553753376,
-0.029992252588272095,
-0.05561790242791176,
-0.059161800891160965,
0.051169440150260925,
0.046618565917015076,
0.013538651168346405,
-0.08851372450590134,
-0.0047476449981331825,
0.05642068013548851,
-0.024207299575209618,
0.04871971160173416,
-0.013034584000706673,
0.05477894842624664,
0.048295728862285614,
-0.03487219288945198,
0.025844378396868706,
-0.018157174810767174,
0.0184266846626997,
-0.006859164219349623,
0.0024740220978856087,
-0.016735557466745377,
-0.03350510075688362,
-0.06170996278524399,
0.01947438158094883,
0.0317893885076046,
0.02911870926618576,
0.055556170642375946,
-0.017915382981300354,
-0.03457437455654144,
0.020606739446520805,
0.011906551197171211,
-0.03438112884759903,
0.0023449391592293978,
0.03719957545399666,
0.03674962744116783,
-0.040857333689928055,
0.0028493544086813927,
-0.017231617122888565,
-0.005258900113403797,
0.018116168677806854,
0.009364977478981018,
-0.049328893423080444,
-0.05642036721110344,
0.004536558408290148,
-0.018374906852841377,
-0.01826055534183979,
-0.09175702184438705,
0.03707197308540344,
-0.02398817427456379,
-0.007342045195400715,
0.024271201342344284,
0.010606720112264156,
0.020480649545788765,
0.0523470863699913,
0.010303680785000324,
0.014217417687177658,
-0.037688061594963074,
0.047566451132297516,
-0.008155140094459057,
-0.01144232414662838,
-0.02319956384599209,
-0.050914037972688675,
0.0072597539983689785,
-0.011980447918176651,
-0.013287304900586605,
-0.0372895672917366,
-0.013400260359048843,
0.01793832518160343,
-0.012327486649155617,
-0.0017475615022704005,
-0.02912767231464386,
0.051140449941158295,
-0.036378148943185806,
-0.039666131138801575,
-0.02503647841513157,
-0.03438764438033104,
-0.07602399587631226,
-0.06389231979846954,
-0.007844217121601105,
0.024341201409697533,
0.016738953068852425,
0.019694168120622635,
0.023919885978102684,
0.012809616513550282,
0.018786268308758736,
-0.02832076884806156,
0.029838137328624725,
-0.003986574709415436,
-0.04923083633184433,
-0.053444329649209976,
-0.01531127281486988,
0.03488103300333023,
0.03280721977353096,
-0.025341104716062546,
0.029985494911670685,
0.03009597770869732,
-0.034533191472291946,
0.008171445690095425,
0.032121993601322174,
0.02703317441046238,
-0.06766172498464584,
-0.04088612645864487,
-0.028087792918086052,
-0.048826150596141815,
0.04935218021273613,
-0.01427119504660368,
-0.0062651908956468105,
0.029216496273875237,
0.040126245468854904,
0.038567446172237396,
0.001014324720017612,
-0.0428144633769989,
0.023609524592757225,
-0.025502176955342293,
0.01911378838121891,
-0.04262012243270874,
0.046693284064531326,
-0.03811796382069588,
0.011643902398645878,
-0.003487386740744114,
-0.0230922419577837,
-0.02008255198597908,
0.04455672577023506,
-0.019212545827031136,
-0.01687634550035,
-0.004017217084765434,
0.016651106998324394,
-0.026765208691358566,
0.04315490275621414,
-0.02050507813692093,
0.030678223818540573,
-0.02571498602628708,
0.05700857564806938,
-0.0299336239695549,
-0.012522819451987743,
-0.031141389161348343,
-0.0014948730822652578,
-0.033767350018024445,
-0.02442445605993271,
-0.014974619261920452,
-0.053516216576099396,
0.026017583906650543,
0.03555348142981529,
0.05172354355454445,
0.04669549688696861,
-0.0014088971074670553,
-0.001383948023431003,
0.02007146365940571,
-0.0505187064409256,
-0.009382693096995354,
-0.011239474639296532,
0.03741077333688736,
0.013578536920249462,
0.07047021389007568,
0.033859942108392715,
-0.04944933205842972,
-0.05855260416865349,
0.039548274129629135,
0.020773528143763542,
0.025271855294704437,
0.01623695343732834,
0.06726668775081635,
0.028959011659026146,
0.04403268173336983,
-0.022298384457826614,
-0.0036625468637794256,
-0.017141258344054222,
-0.03554519638419151,
0.01129409484565258,
0.005536267068237066,
0.004826510325074196,
0.0030839107930660248,
-0.0325179323554039,
-0.03579549118876457,
0.0747913345694542,
0.03062540851533413,
-0.0011584801832213998,
0.015972793102264404,
-0.031172139570116997,
0.025738775730133057,
-0.010720285587012768,
-0.05363456904888153,
-0.006765054073184729,
0.002836761297658086,
-0.04133512079715729,
0.06717825680971146,
-0.008520640432834625,
0.03258224576711655,
0.03309524431824684,
0.013031134381890297,
-0.0045965430326759815,
0.05266876891255379,
-0.038332875818014145,
0.029059957712888718,
0.030091552063822746,
-0.04413342475891113,
0.018970130011439323,
-0.03809472918510437,
0.07672692090272903,
-0.09352400153875351,
0.0583452470600605,
0.027978088706731796,
0.015407194383442402,
0.008574055507779121,
-0.010692262090742588,
-0.026358753442764282,
0.003279911121353507,
-0.04324018582701683,
0.07142269611358643,
0.010157844051718712,
-0.05027741566300392,
0.032858774065971375,
0.038425855338573456,
-0.06270794570446014,
0.07818383723497391,
0.04721305891871452,
0.06630408018827438,
0.04006798937916756,
0.034791745245456696,
-0.06157039478421211,
0.004857699852436781,
-0.03522642329335213,
0.02991340309381485,
-0.06296131759881973,
-0.0006501352763734758,
0.04838817939162254,
-0.04446863755583763,
-0.00955122895538807,
0.03063645027577877,
-0.025605326518416405,
-0.0152922747656703,
0.037874557077884674,
-0.05866549164056778,
-0.0594998300075531,
-0.008507315069437027,
0.023743467405438423,
-0.05804075673222542,
-0.00007555535557912663,
-0.045164357870817184,
0.004060621839016676,
0.005827771034091711,
-0.020433779805898666,
-0.06588315963745117,
0.009152212180197239,
0.04090722277760506,
-0.06501321494579315,
-0.03000693954527378,
0.0755598247051239,
0.005944008938968182,
-0.02306746318936348,
0.036056842654943466,
-0.019536197185516357,
0.0059355939738452435,
0.02841177023947239,
0.0071720220148563385,
0.019016416743397713,
-0.050520919263362885,
-0.02840851992368698,
0.004253296181559563,
-0.01684354804456234,
0.01056221965700388,
-0.01427721418440342,
0.032348088920116425,
0.06692292541265488,
0.037693727761507034,
0.03183862194418907,
-0.048901017755270004,
-0.023263607174158096,
0.04427061975002289,
-0.054762665182352066,
-0.0008618179708719254,
0.001098287757486105,
-0.043013617396354675,
-0.03033716045320034,
-0.007279332261532545,
-0.028241343796253204,
0.04716961085796356,
-0.05050645023584366,
-0.01167038269340992,
-0.0048815240152180195,
-0.032354287803173065,
-0.037704143673181534,
-0.09587004780769348,
-0.015570688992738724,
-0.046718351542949677,
0.03942928835749626,
0.004449546802788973,
-0.035666316747665405,
0.028970999643206596,
-0.05045885592699051,
-0.05663653463125229,
0.029766302555799484,
0.028772078454494476,
-0.060680683702230453,
0.048192188143730164,
0.04148421809077263,
-0.033564530313014984,
-0.002136337338015437,
0.04626082628965378,
-0.02564292587339878,
0.005820027086883783,
0.0068675801157951355,
0.006470480468124151,
0.027959680184721947,
0.02200755849480629,
-0.01914147473871708,
-0.019021259620785713,
-0.049689918756484985,
-0.04937624931335449,
-0.024343065917491913,
0.0023990420158952475,
0.05646320804953575
] |
CAMeL-Lab/bert-base-arabic-camelbert-mix-did-madar-corpus26 | [
"pytorch",
"tf",
"bert",
"text-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 45 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "عامل ايه ؟"
---
# CAMeLBERT-Mix DID Madar Corpus26 Model
## Model description
**CAMeLBERT-Mix DID Madar Corpus26 Model** is a dialect identification (DID) model that was built by fine-tuning the [CAMeLBERT-Mix](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-mix/) model.
For the fine-tuning, we used the [MADAR Corpus 26](https://camel.abudhabi.nyu.edu/madar-shared-task-2019/) dataset, which includes 26 labels.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-Mix DID Madar Corpus26 model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> did = pipeline('text-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-mix-did-madar26')
>>> sentences = ['عامل ايه ؟', 'شلونك ؟ شخبارك ؟']
>>> did(sentences)
[{'label': 'CAI', 'score': 0.8751305937767029},
{'label': 'DOH', 'score': 0.9867215156555176}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
-0.00101510772947222,
-0.012448468245565891,
-0.024735640734434128,
0.06377900391817093,
0.06428314745426178,
0.024614255875349045,
-0.01292861346155405,
-0.017540032044053078,
0.0017338551115244627,
0.06634953618049622,
0.003550141118466854,
-0.022488605231046677,
-0.0010807847138494253,
0.03724990412592888,
-0.044646553695201874,
-0.021374862641096115,
0.0099209975451231,
-0.026666581630706787,
-0.05792935565114021,
-0.027706658467650414,
-0.012268122285604477,
0.005357793066650629,
-0.007347898557782173,
0.008906194008886814,
-0.0034177338238805532,
0.012637094594538212,
-0.02852165326476097,
0.05791091546416283,
0.0535745732486248,
-0.056153297424316406,
-0.024162590503692627,
-0.01978672295808792,
-0.021686160936951637,
-0.0073477705009281635,
-0.04562215134501457,
-0.00307712540961802,
0.011496483348309994,
0.015493884682655334,
0.010281458497047424,
0.03911773860454559,
-0.022927748039364815,
0.022308005020022392,
-0.015953579917550087,
-0.020811304450035095,
0.05565447360277176,
0.02443563938140869,
-0.041983846575021744,
0.00938680861145258,
0.03213910758495331,
-0.03473275154829025,
-0.06993141025304794,
-0.061690930277109146,
-0.05725473538041115,
0.044062528759241104,
0.025094492360949516,
-0.009902691468596458,
-0.03628760203719139,
-0.02666664682328701,
0.05753503367304802,
-0.06315923482179642,
-0.03328591585159302,
0.0146276680752635,
-0.057954952120780945,
0.02758396975696087,
0.03166699409484863,
-0.01966787315905094,
0.021964561194181442,
-0.034854236990213394,
0.06510502099990845,
-0.03259274736046791,
0.056352075189352036,
-0.012765330262482166,
0.010407129302620888,
-0.06885232031345367,
0.028409088030457497,
-0.032719679176807404,
0.037645358592271805,
0.04307348653674126,
-0.029034828767180443,
0.061549823731184006,
0.012098855338990688,
0.009299525991082191,
0.024879690259695053,
-0.014429758302867413,
-0.006510302424430847,
0.03555179014801979,
-0.04610831290483475,
-0.007174272555857897,
0.01677367277443409,
0.03102058917284012,
-0.04333125427365303,
-0.040832482278347015,
-0.018813036382198334,
-0.04127764701843262,
-0.009951621294021606,
0.0374273844063282,
0.012592324055731297,
-0.030277134850621223,
0.05436783656477928,
0.040042974054813385,
0.03448639065027237,
0.05133037269115448,
-0.028040161356329918,
0.04541180282831192,
-0.018602527678012848,
-0.0030503326561301947,
-0.007639269344508648,
-0.03509720787405968,
-0.03829110786318779,
0.05078477784991264,
0.02698493003845215,
-0.0457611083984375,
-0.0444171242415905,
0.03808571398258209,
-0.00698344549164176,
-0.025641536340117455,
0.057751525193452835,
-0.039595093578100204,
-0.04691588506102562,
-0.029045701026916504,
0.04315805062651634,
-0.01369903888553381,
-0.0039160409942269325,
0.030905697494745255,
-0.049641214311122894,
0.013299666345119476,
-0.061403945088386536,
-0.01757856085896492,
-0.013147931545972824,
0.016066014766693115,
-0.0089254816994071,
0.04059992730617523,
0.015640988945961,
-0.0637102723121643,
-0.0048544746823608875,
-0.0022075369488447905,
-0.05626916140317917,
0.030894437804818153,
0.03887573629617691,
0.106706403195858,
-0.05175268277525902,
-0.03205770254135132,
0.016723833978176117,
-0.0011151711223646998,
0.005248556844890118,
-0.0011661056196317077,
0.010714635252952576,
-0.03632943332195282,
-0.013416559435427189,
-0.0032485509291291237,
0.05247833579778671,
-0.06253249943256378,
0.0011586194159463048,
0.04367263242602348,
-0.01049206592142582,
0.03549198806285858,
-0.02034337818622589,
0.0019429288804531097,
-0.010084968991577625,
0.00831186305731535,
-0.0525943785905838,
0.05357000604271889,
0.0028813546523451805,
-0.019289817661046982,
-0.02331736497581005,
-0.04812312126159668,
-0.005705301649868488,
0.08824551105499268,
0.0043639084324240685,
0.002632608637213707,
-0.014240044169127941,
0.005854371003806591,
0.03983325883746147,
0.029450852423906326,
-0.042102064937353134,
0.019783535972237587,
0.055829957127571106,
-0.0027313814498484135,
-0.022064263001084328,
0.0988500565290451,
-0.016441741958260536,
-0.029765162616968155,
-0.013985512778162956,
-0.0023626326583325863,
-0.007265636697411537,
-0.030609745532274246,
0.02628953568637371,
0.037412576377391815,
-0.017820317298173904,
-0.03198971226811409,
-0.0350726917386055,
0.06259867548942566,
0.0006332350894808769,
-0.002842176239937544,
-0.013714230619370937,
-0.005919205490499735,
-0.04215499758720398,
0.037927981466054916,
-0.04277468100190163,
0.0018535464769229293,
-0.020289039239287376,
0.021757328882813454,
0.009248089045286179,
0.03265052288770676,
0.03729486092925072,
0.030223732814192772,
-0.02020689845085144,
0.07083740830421448,
-0.036503866314888,
0.004635079763829708,
-0.03478747978806496,
-0.05269619822502136,
-0.011022992432117462,
0.02580951154232025,
0.021059749647974968,
0.03181937709450722,
-0.011827765963971615,
-0.024217311292886734,
0.023129208013415337,
0.0529339462518692,
0.04791899397969246,
0.03046073019504547,
-0.02678326889872551,
-0.03146592900156975,
0.03379946947097778,
0.0615433044731617,
-0.08229926228523254,
-0.030399054288864136,
0.04041283577680588,
0.03294321149587631,
-0.05271472781896591,
0.01813030056655407,
-0.007303043734282255,
0.03957345709204674,
-0.03840151056647301,
-0.07058416306972504,
0.042529694736003876,
0.014226216822862625,
0.010878996923565865,
0.018471602350473404,
-0.012249387800693512,
-0.024957673624157906,
0.03377894312143326,
0.019989047199487686,
-0.002319353399798274,
-0.05031929910182953,
0.015401963144540787,
0.023979047313332558,
0.07172452658414841,
-0.046366650611162186,
0.031680867075920105,
0.003473409218713641,
0.007793453987687826,
0.039535410702228546,
-0.0428931750357151,
0.03246496245265007,
0.021379482001066208,
0.01830160990357399,
-0.021619196981191635,
0.027369612827897072,
-0.007930699735879898,
0.03410360962152481,
0.05149814859032631,
0.0025681995321065187,
0.04576996713876724,
-0.009245108813047409,
0.06165185943245888,
0.056609004735946655,
0.035316262394189835,
0.016394544392824173,
0.015430804342031479,
0.07313697785139084,
-0.0034966089297086,
-0.0203793253749609,
0.06535663455724716,
-0.06044512614607811,
0.03234189748764038,
-0.04370693117380142,
0.011293048039078712,
-0.007449221797287464,
-0.024592693895101547,
0.0566224567592144,
0.019499696791172028,
0.002151705324649811,
-0.006040239240974188,
-0.019747529178857803,
0.005527983885258436,
0.04899384453892708,
-0.029059771448373795,
-0.027847234159708023,
-0.0014129660557955503,
-0.023910727351903915,
0.006645130924880505,
-0.0682896226644516,
-0.028866199776530266,
-0.014652150683104992,
-0.04484623670578003,
-0.003169652773067355,
-0.06714195758104324,
-0.038612499833106995,
-0.05058343708515167,
-0.022323839366436005,
0.02495567314326763,
0.015588395297527313,
0.010244221426546574,
-0.02684430032968521,
0.031081069260835648,
-0.04285672307014465,
-0.028004808351397514,
-0.04746948927640915,
-0.06234557554125786,
-0.0071251713670790195,
-0.04580729082226753,
0.04568539559841156,
-0.0006869733333587646,
0.007724736351519823,
0.011537759564816952,
0.020146025344729424,
-0.004913773853331804,
-0.05114943906664848,
0.02311592549085617,
0.045230429619550705,
-0.026448514312505722,
-0.05118634179234505,
0.02819060906767845,
-0.028206853196024895,
0.015201443806290627,
-0.037506598979234695,
-0.058082614094018936,
0.08322247862815857,
0.07003428786993027,
0.01992933079600334,
0.015053375624120235,
-0.01605801098048687,
-0.06057760864496231,
-0.05719492956995964,
-0.022900104522705078,
-0.03377503156661987,
-0.03912552446126938,
0.0006164495716802776,
-0.028784530237317085,
-0.023715035989880562,
-0.053039174526929855,
-0.004317274782806635,
0.004230070859193802,
0.01447457354515791,
0.04297959432005882,
0.05729183554649353,
0.03340618684887886,
0.04995942488312721,
-0.035578567534685135,
-0.02008952759206295,
0.0579490140080452,
0.02134626917541027,
0.022064654156565666,
-0.0708170086145401,
-0.03830985724925995,
0.042666539549827576,
0.028047870844602585,
-0.022197356447577477,
0.007281143683940172,
0.08422470837831497,
0.007622058503329754,
0.006183335557579994,
0.02123458869755268,
-0.007700215559452772,
-0.017870251089334488,
-0.00104022107552737,
0.014709553681313992,
0.013461924158036709,
-0.05730459839105606,
-0.00907339807599783,
0.006809515878558159,
0.06664395332336426,
-0.04627927020192146,
-0.05971715226769447,
-0.0001946240954566747,
0.05659467726945877,
0.008895552717149258,
-0.010323924943804741,
-0.02519751526415348,
0.013128574006259441,
-0.04495152831077576,
-0.04033060744404793,
0.005095275118947029,
-0.006106417626142502,
0.0006940456223674119,
0.040735870599746704,
0.008756522089242935,
-0.03306378796696663,
0.035237908363342285,
0.03566772863268852,
0.060613732784986496,
0.02102309837937355,
-0.05128297582268715,
0.0140189528465271,
-0.026179011911153793,
0.010830672457814217,
0.004526240285485983,
-0.03563636541366577,
-0.047781798988580704,
-0.08763065934181213,
-0.02195163629949093,
-0.0031340280547738075,
-0.02949349209666252,
-0.023715868592262268,
0.04539108648896217,
-0.018719710409641266,
0.0037020195741206408,
0.004543575458228588,
0.03828062489628792,
0.033986929804086685,
-0.017105553299188614,
0.05175760015845299,
-0.0018810088513419032,
0.04241017624735832,
-0.06724117696285248,
0.017623646184802055,
-0.03647053614258766,
0.015639562159776688,
0.0034336834214627743,
0.0630953460931778,
0.021802164614200592,
0.04819762706756592,
0.07288726419210434,
0.034290045499801636,
-0.031141705811023712,
0.04190787672996521,
0.048705678433179855,
-0.005429202690720558,
-0.045508332550525665,
-0.004057963378727436,
-0.013211214914917946,
-0.02108970656991005,
0.00307512772269547,
-0.01733119785785675,
-0.0014674438862130046,
0.017794601619243622,
-0.009405817836523056,
0.0056641921401023865,
-0.012241236865520477,
-0.0409821979701519,
-0.02858288213610649,
-0.05254333093762398,
-0.020608289167284966,
0.04386487603187561,
-0.03031812608242035,
0.03346731513738632,
0.02853732742369175,
0.013753395527601242,
0.08962998539209366,
0.06763695925474167,
-0.0008768716943450272,
-0.06083342805504799,
0.014008201658725739,
0.029915522783994675,
-0.02427847869694233,
-0.05907844752073288,
-0.0648249164223671,
0.05286268889904022,
0.0515880286693573,
0.005910218693315983,
-0.08621281385421753,
0.008534591645002365,
0.062441982328891754,
-0.012742810882627964,
0.05729975923895836,
-0.012986231595277786,
0.05196395888924599,
0.07153503596782684,
-0.04314137622714043,
0.007638214156031609,
-0.04059718921780586,
0.018721068277955055,
0.010797812603414059,
0.03142141178250313,
-0.030584966763854027,
-0.0356503389775753,
-0.04413478076457977,
0.037230707705020905,
0.03681566193699837,
0.03829461708664894,
0.03474694862961769,
-0.004887652583420277,
-0.040603380650281906,
0.012335292063653469,
0.004561418667435646,
-0.033740218728780746,
-0.017974721267819405,
0.034963659942150116,
0.05889501795172691,
-0.04169383645057678,
-0.0008315619779750705,
-0.022191010415554047,
-0.001375415944494307,
0.008592679165303707,
-0.003273335285484791,
-0.05475854128599167,
-0.05713871493935585,
0.0011472462210804224,
-0.026950491592288017,
-0.01880742236971855,
-0.09829506278038025,
0.03233970329165459,
-0.032593369483947754,
-0.00532145518809557,
0.048383742570877075,
0.02314162254333496,
0.016326844692230225,
0.04803363233804703,
0.013346756808459759,
0.02276325598359108,
-0.025356633588671684,
0.03565508499741554,
-0.0066998191177845,
-0.006693494971841574,
-0.027511484920978546,
-0.06864963471889496,
-0.0019356153206899762,
-0.009145832620561123,
-0.03591397404670715,
-0.04254356026649475,
-0.021695813164114952,
0.008366954512894154,
-0.00809580460190773,
-0.0022110796999186277,
-0.0327175073325634,
0.0507054477930069,
-0.033086203038692474,
-0.021372634917497635,
-0.016974419355392456,
-0.03764886409044266,
-0.08966974169015884,
-0.05916709452867508,
-0.018824420869350433,
0.009983651340007782,
0.013638262636959553,
0.011778281070291996,
0.015207304619252682,
0.020189059898257256,
0.00980954896658659,
-0.03228925168514252,
0.028928423300385475,
0.003608547616750002,
-0.040455110371112823,
-0.032788943499326706,
-0.015698082745075226,
0.027816105633974075,
0.04568858444690704,
-0.007451798301190138,
0.03304491937160492,
0.034580301493406296,
-0.03538636863231659,
-0.0021430719643831253,
0.044794756919145584,
0.03247604891657829,
-0.07068368792533875,
-0.05059785395860672,
-0.030330214649438858,
-0.04453558102250099,
0.03170936554670334,
-0.03084607794880867,
-0.0047658346593379974,
0.0339307002723217,
0.029644744470715523,
0.03030407801270485,
-0.013754991814494133,
-0.03818099573254585,
0.011371826753020287,
-0.019292762503027916,
0.02469532936811447,
-0.05624822899699211,
0.045788127928972244,
-0.03567419573664665,
0.0037834469694644213,
-0.00922040082514286,
-0.026981418952345848,
-0.028407717123627663,
0.05027206614613533,
-0.010450522415339947,
-0.017972860485315323,
-0.008008702658116817,
-0.0003753082419279963,
-0.02868306078016758,
0.03642003983259201,
0.009611383080482483,
0.03188071399927139,
-0.0480472594499588,
0.049219485372304916,
-0.048511579632759094,
-0.003420989727601409,
-0.03804532811045647,
-0.019881242886185646,
-0.020956121385097504,
-0.04177837446331978,
-0.0245807021856308,
-0.049933940172195435,
0.039980579167604446,
0.007999555207788944,
0.045623499900102615,
0.04029298946261406,
-0.00006837688852101564,
0.005837021861225367,
0.028720948845148087,
-0.08236242830753326,
-0.020973114296793938,
-0.018851973116397858,
0.0506843701004982,
0.02236037328839302,
0.060478612780570984,
0.02498903125524521,
-0.032325394451618195,
-0.055710338056087494,
0.05197632312774658,
0.021523384377360344,
0.016786230728030205,
0.018746230751276016,
0.06312617659568787,
0.03677939623594284,
0.043015412986278534,
-0.01762305200099945,
-0.021381337195634842,
-0.01925063133239746,
-0.024454519152641296,
-0.0002160703734261915,
0.017824560403823853,
-0.005343262106180191,
0.0010899578919634223,
-0.02709655649960041,
-0.020794140174984932,
0.06873350590467453,
0.04808579012751579,
0.010641136206686497,
0.005652680993080139,
-0.04177628457546234,
0.013789762742817402,
-0.012074274010956287,
-0.06033628433942795,
-0.03193888068199158,
0.022462477907538414,
-0.055701110512018204,
0.0792396292090416,
-0.017314715310931206,
0.017870111390948296,
0.01588260941207409,
0.037257757037878036,
-0.0013675494119524956,
0.040561381727457047,
-0.031155403703451157,
0.019995883107185364,
0.03481193259358406,
-0.05041111260652542,
0.008515424095094204,
-0.03520383685827255,
0.06316560506820679,
-0.07055781036615372,
0.056469324976205826,
0.021969079971313477,
0.014682848937809467,
0.015665845945477486,
-0.033945828676223755,
-0.023990517482161522,
0.023340681567788124,
-0.03171572461724281,
0.06672962009906769,
-0.01237835455685854,
-0.05198143050074577,
0.04359498992562294,
0.03504323586821556,
-0.09206613898277283,
0.07638410478830338,
0.04858061298727989,
0.048144590109586716,
0.03914767876267433,
0.020971331745386124,
-0.07960066944360733,
0.008971369825303555,
-0.030459513887763023,
0.034114327281713486,
-0.07930315285921097,
0.015650184825062752,
0.028198277577757835,
-0.025628013536334038,
-0.02033209800720215,
0.02616402879357338,
-0.011418373323976994,
-0.0003575117152649909,
-0.007239712867885828,
-0.04884542152285576,
-0.052134424448013306,
-0.010022359900176525,
0.007198217324912548,
-0.03792491555213928,
-0.0043540336191654205,
-0.03901641070842743,
-0.0029289929661899805,
0.008470126427710056,
-0.012888153083622456,
-0.053653616458177567,
0.0005473816418088973,
0.03539884090423584,
-0.0661182701587677,
-0.023697039112448692,
0.0541267953813076,
0.00887736864387989,
-0.034874327480793,
0.027062300592660904,
-0.010117145255208015,
0.017718840390443802,
0.012724623084068298,
0.0011612462112680078,
0.012951555661857128,
-0.0519491545855999,
-0.021711284294724464,
-0.004180870950222015,
-0.011643446981906891,
0.01664440520107746,
-0.006686572916805744,
0.028139429166913033,
0.06391005963087082,
0.03220492973923683,
0.03323793411254883,
-0.037173837423324585,
-0.012137255631387234,
0.014424026012420654,
-0.04456184804439545,
-0.001904950593598187,
0.005993472412228584,
-0.0407782606780529,
-0.03177280351519585,
-0.019458694383502007,
-0.011031120084226131,
0.04295407608151436,
-0.04759678989648819,
-0.00992929469794035,
0.0038583725690841675,
-0.033729419112205505,
-0.023222418501973152,
-0.06940629333257675,
-0.023727277293801308,
-0.018857911229133606,
0.04326985031366348,
0.015735026448965073,
-0.0253138467669487,
0.03146522492170334,
-0.03245992586016655,
-0.07343524694442749,
0.012764263898134232,
0.018083177506923676,
-0.03374934196472168,
0.06319814175367355,
0.04104489088058472,
-0.0444435253739357,
0.025151830166578293,
0.04447392746806145,
-0.01941543258726597,
0.028420191258192062,
-0.011502981185913086,
0.004723307676613331,
0.021532857790589333,
0.018110113218426704,
-0.032704614102840424,
-0.02737509272992611,
-0.07550960779190063,
-0.048274554312229156,
-0.038594700396060944,
0.002765373094007373,
0.052168916910886765
] |
CAMeL-Lab/bert-base-arabic-camelbert-mix-did-madar-corpus6 | [
"pytorch",
"tf",
"bert",
"text-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 34 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "عامل ايه ؟"
---
# CAMeLBERT-Mix DID MADAR Corpus6 Model
## Model description
**CAMeLBERT-Mix DID MADAR Corpus6 Model** is a dialect identification (DID) model that was built by fine-tuning the [CAMeLBERT-Mix](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-mix/) model.
For the fine-tuning, we used the [MADAR Corpus 6](https://camel.abudhabi.nyu.edu/madar-shared-task-2019/) dataset, which includes 6 labels.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-Mix DID MADAR Corpus6 model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> did = pipeline('text-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-mix-did-madar6')
>>> sentences = ['عامل ايه ؟', 'شلونك ؟ شخبارك ؟']
>>> did(sentences)
[{'label': 'CAI', 'score': 0.9996405839920044},
{'label': 'DOH', 'score': 0.9997853636741638}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`. Otherwise, you could download the models
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
-0.005771495867520571,
-0.011272749863564968,
-0.018190687522292137,
0.06246383115649223,
0.05930236726999283,
0.019418349489569664,
-0.012773298658430576,
-0.01946909725666046,
-0.004039192106574774,
0.0664764791727066,
-0.0005643570329993963,
-0.027213625609874725,
0.004675992764532566,
0.031171416863799095,
-0.04506417736411095,
-0.020524488762021065,
0.010591793805360794,
-0.018910245969891548,
-0.056530069559812546,
-0.031762946397066116,
-0.005634739995002747,
0.002031908370554447,
-0.009211063385009766,
0.007832248695194721,
-0.0028458782471716404,
0.013812148943543434,
-0.02115953527390957,
0.054921820759773254,
0.054377250373363495,
-0.05836949869990349,
-0.016130579635500908,
-0.021942608058452606,
-0.017111483961343765,
-0.005251039285212755,
-0.04609440639615059,
0.0038659004494547844,
0.007590404246002436,
0.01802808977663517,
0.012325945310294628,
0.041102245450019836,
-0.020554151386022568,
0.016810888424515724,
-0.018850138410925865,
-0.027546724304556847,
0.05073191970586777,
0.02563001774251461,
-0.03908662870526314,
0.012019054032862186,
0.03004636988043785,
-0.03958134725689888,
-0.07350848615169525,
-0.06332163512706757,
-0.05640184134244919,
0.03903188928961754,
0.0206203181296587,
-0.011483617126941681,
-0.031876616179943085,
-0.025028159841895103,
0.05894925445318222,
-0.05859246104955673,
-0.02721758373081684,
0.015655867755413055,
-0.05638085678219795,
0.029455533251166344,
0.0292714424431324,
-0.024023180827498436,
0.02849247120320797,
-0.037670671939849854,
0.059842392802238464,
-0.02897903509438038,
0.047221191227436066,
-0.013115708716213703,
0.01156622264534235,
-0.0685136690735817,
0.022731201723217964,
-0.02789716050028801,
0.03949332982301712,
0.04318778216838837,
-0.02962597645819187,
0.06087782233953476,
0.009317632764577866,
0.007648387458175421,
0.02719167247414589,
-0.01200875174254179,
-0.0012940886663272977,
0.03851108253002167,
-0.04383386671543121,
-0.002830648794770241,
0.014849572442471981,
0.03250764682888985,
-0.04483332112431526,
-0.04265018180012703,
-0.018285885453224182,
-0.04482223838567734,
-0.009324166923761368,
0.044345032423734665,
0.01017877645790577,
-0.028489984571933746,
0.05461597070097923,
0.04095698520541191,
0.0469549298286438,
0.05168965458869934,
-0.025028172880411148,
0.04225849732756615,
-0.01344539038836956,
-0.005261173006147146,
-0.0035599989350885153,
-0.04034418240189552,
-0.034327469766139984,
0.05556998774409294,
0.022907204926013947,
-0.047075290232896805,
-0.04227087274193764,
0.036310598254203796,
-0.008926880545914173,
-0.024913039058446884,
0.05455967038869858,
-0.036706384271383286,
-0.04010520875453949,
-0.02481704205274582,
0.043843526393175125,
-0.007987207733094692,
-0.003040463663637638,
0.033399324864149094,
-0.04965117201209068,
0.015556513331830502,
-0.07173731923103333,
-0.023168956860899925,
-0.017965327948331833,
0.017247844487428665,
0.0017922184197232127,
0.04658174142241478,
0.010968683287501335,
-0.06401679664850235,
-0.002727195154875517,
0.0007290767971426249,
-0.05651210620999336,
0.03708301857113838,
0.0367901511490345,
0.10397542268037796,
-0.06192353367805481,
-0.028060954064130783,
0.018136659637093544,
0.0012137871235609055,
0.0011036342475563288,
-0.0031783413141965866,
0.003910159692168236,
-0.039228253066539764,
-0.017571251839399338,
-0.0011933797504752874,
0.05602022632956505,
-0.05694965273141861,
0.0006880424334667623,
0.04308613762259483,
-0.011402085423469543,
0.03386235982179642,
-0.015461420640349388,
0.0019212485058233142,
-0.00550234317779541,
0.009472528472542763,
-0.050032828003168106,
0.0573020875453949,
-0.006028835661709309,
-0.017578642815351486,
-0.020721441134810448,
-0.043214958161115646,
-0.006190725602209568,
0.08621919900178909,
-0.0004592554469127208,
0.0010706335306167603,
-0.020027045160531998,
0.009056777693331242,
0.0360054112970829,
0.021550506353378296,
-0.041293222457170486,
0.019389856606721878,
0.062291622161865234,
-0.0022559668868780136,
-0.01625719666481018,
0.09692498296499252,
-0.0215432271361351,
-0.03607290983200073,
-0.013065321370959282,
0.0005990669596940279,
-0.011071654036641121,
-0.01878361403942108,
0.03108839876949787,
0.03883964568376541,
-0.02264406904578209,
-0.03568705543875694,
-0.03575115650892258,
0.06351197510957718,
-0.006453109439462423,
0.003521721577271819,
-0.014475049450993538,
-0.007197679951786995,
-0.04193323105573654,
0.03342825919389725,
-0.03552495688199997,
0.008438102900981903,
-0.0138394795358181,
0.0170469731092453,
0.008024604991078377,
0.025011563673615456,
0.03867241367697716,
0.0310534480959177,
-0.021061403676867485,
0.07342398166656494,
-0.03576158359646797,
-0.0004946542321704328,
-0.03108956106007099,
-0.057642724364995956,
-0.011598233133554459,
0.028016943484544754,
0.022199492901563644,
0.029525429010391235,
-0.01894296705722809,
-0.022596022114157677,
0.01922389306128025,
0.04900326579809189,
0.050948094576597214,
0.01971757598221302,
-0.03341225907206535,
-0.029913432896137238,
0.03278873488306999,
0.0590396411716938,
-0.0833800882101059,
-0.027096303179860115,
0.0406922847032547,
0.032387495040893555,
-0.05014638975262642,
0.019001582637429237,
0.0002749185950960964,
0.040257107466459274,
-0.044816624373197556,
-0.07177305221557617,
0.04687149077653885,
0.01635601744055748,
0.002054588869214058,
0.013156432658433914,
-0.01142391562461853,
-0.02620571292936802,
0.031368792057037354,
0.01754695735871792,
-0.0021728998981416225,
-0.054005395621061325,
0.014958230778574944,
0.014080465771257877,
0.06597553938627243,
-0.0460326224565506,
0.030496640130877495,
0.0006289031007327139,
0.01330485474318266,
0.041485704481601715,
-0.04855180159211159,
0.02952241525053978,
0.02418532595038414,
0.009786291979253292,
-0.022628340870141983,
0.027461016550660133,
-0.016699252650141716,
0.028173178434371948,
0.04885605722665787,
0.00024095291155390441,
0.056256137788295746,
-0.010845939628779888,
0.06295354664325714,
0.05595187842845917,
0.03579598665237427,
0.019556786864995956,
0.01739613339304924,
0.07089835405349731,
-0.00046411575749516487,
-0.011820127256214619,
0.06569837033748627,
-0.06099070981144905,
0.030411064624786377,
-0.042058125138282776,
0.005888861138373613,
-0.010600291192531586,
-0.019011426717042923,
0.05684594064950943,
0.01870221272110939,
-0.00033532045199535787,
-0.006808585021644831,
-0.011497455649077892,
0.005106368567794561,
0.04535862058401108,
-0.027541782706975937,
-0.04187045991420746,
-0.003283937694504857,
-0.018753523007035255,
0.006742746569216251,
-0.06909304112195969,
-0.020049065351486206,
-0.010405128821730614,
-0.04645374044775963,
-0.0008910096948966384,
-0.0682598352432251,
-0.035398151725530624,
-0.04596808925271034,
-0.02638782560825348,
0.019319413229823112,
0.007444933522492647,
0.004226927645504475,
-0.035217493772506714,
0.034320488572120667,
-0.03832472860813141,
-0.03666539862751961,
-0.04632674902677536,
-0.06981156766414642,
-0.010324311442673206,
-0.048065297305583954,
0.04988901689648628,
0.0022537631448358297,
0.01040304359048605,
0.0012739665107801557,
0.02373732067644596,
-0.009604346938431263,
-0.0524153970181942,
0.019030313938856125,
0.04203018546104431,
-0.026805052533745766,
-0.05410900339484215,
0.025307675823569298,
-0.031699974089860916,
0.014694003388285637,
-0.0360000915825367,
-0.05651508644223213,
0.09030233323574066,
0.06853126734495163,
0.01973067782819271,
0.012240600772202015,
-0.01971878483891487,
-0.06332706660032272,
-0.05425788089632988,
-0.0199276190251112,
-0.03569408506155014,
-0.04094938188791275,
0.002132999012246728,
-0.029726389795541763,
-0.027067163959145546,
-0.05650922283530235,
-0.001709547359496355,
0.0031643875408917665,
0.020710745826363564,
0.043752603232860565,
0.05546540394425392,
0.032173994928598404,
0.050676848739385605,
-0.03335476666688919,
-0.01936108060181141,
0.05182098224759102,
0.027440698817372322,
0.017055269330739975,
-0.0655139833688736,
-0.03564881905913353,
0.04570753499865532,
0.02142627164721489,
-0.015851378440856934,
0.00837030541151762,
0.07891956716775894,
0.006757759023457766,
0.0008526294841431081,
0.02008996158838272,
-0.0037567720282822847,
-0.01654832996428013,
-0.005299242679029703,
0.00691445916891098,
0.010665589943528175,
-0.06548656523227692,
-0.010764090344309807,
0.00250453338958323,
0.06183991953730583,
-0.044539082795381546,
-0.05645640939474106,
0.0014155951794236898,
0.058032602071762085,
0.011076254770159721,
-0.00796553585678339,
-0.0241358932107687,
0.022249042987823486,
-0.04511898756027222,
-0.04057426378130913,
-0.0038614238146692514,
-0.007146843709051609,
-0.0018325044075027108,
0.04381885379552841,
0.01065969467163086,
-0.03063199669122696,
0.03563405200839043,
0.03505846485495567,
0.0526823028922081,
0.026142356917262077,
-0.051906950771808624,
0.014651582576334476,
-0.02752470225095749,
0.018424469977617264,
-0.004000137094408274,
-0.03705587983131409,
-0.053806692361831665,
-0.0871850997209549,
-0.02043047361075878,
-0.0029158503748476505,
-0.031237691640853882,
-0.023065846413373947,
0.048297151923179626,
-0.023220881819725037,
-0.004567836876958609,
0.006739654578268528,
0.03245340287685394,
0.03341761976480484,
-0.02487335167825222,
0.04936234652996063,
-0.005131776910275221,
0.04953261464834213,
-0.07335682213306427,
0.013954579830169678,
-0.03539310023188591,
0.00504036620259285,
0.0020739093888550997,
0.061901990324258804,
0.017854608595371246,
0.058287955820560455,
0.07198157161474228,
0.03386392444372177,
-0.039524562656879425,
0.039272014051675797,
0.04935542866587639,
-0.002374741481617093,
-0.040504761040210724,
-0.000025580999135854654,
-0.01962094008922577,
-0.016546033322811127,
0.0018799047684296966,
-0.021231982856988907,
-0.0032014744356274605,
0.01677245832979679,
-0.011377915740013123,
0.006631218828260899,
-0.010001350194215775,
-0.040874727070331573,
-0.02662830613553524,
-0.059971388429403305,
-0.022002732381224632,
0.04081093892455101,
-0.029003597795963287,
0.03796296566724777,
0.0280259158462286,
0.019030680879950523,
0.08752468228340149,
0.06424935162067413,
-0.004860355984419584,
-0.050682082772254944,
0.007871751673519611,
0.035731229931116104,
-0.019934657961130142,
-0.05983547866344452,
-0.07021678984165192,
0.04807606711983681,
0.04772673919796944,
-0.0016000330215319991,
-0.08281639963388443,
0.009801013395190239,
0.06893891096115112,
-0.014866776764392853,
0.05649896338582039,
-0.02012738026678562,
0.04962478578090668,
0.07260368019342422,
-0.043017517775297165,
0.003186872461810708,
-0.04282812774181366,
0.02251599356532097,
0.005764778237789869,
0.033109698444604874,
-0.027480628341436386,
-0.03490714728832245,
-0.048734329640865326,
0.0350923091173172,
0.03298621252179146,
0.035465165972709656,
0.032002054154872894,
-0.0007448669639416039,
-0.04391491785645485,
0.010540816001594067,
0.004181481897830963,
-0.03838304430246353,
-0.012585896998643875,
0.03365490958094597,
0.05901003256440163,
-0.0355827622115612,
-0.004594034515321255,
-0.022626051679253578,
-0.01142019685357809,
0.006933330558240414,
-0.005301445722579956,
-0.05355638638138771,
-0.054931849241256714,
-0.001503383624367416,
-0.027150871232151985,
-0.01939380168914795,
-0.09972039610147476,
0.03198852017521858,
-0.030799519270658493,
-0.004708318971097469,
0.04634300246834755,
0.0237583015114069,
0.007682510185986757,
0.05379611998796463,
0.006239572074264288,
0.021520772948861122,
-0.02399205043911934,
0.03754637762904167,
-0.014528441242873669,
-0.010627695359289646,
-0.02879229560494423,
-0.06889689713716507,
0.0022628172300755978,
-0.00433601438999176,
-0.032391902059316635,
-0.044130247086286545,
-0.02649998851120472,
0.014967148192226887,
-0.01186347659677267,
-0.0012158434838056564,
-0.03311377018690109,
0.051794782280921936,
-0.03786137327551842,
-0.01761435717344284,
-0.01926223747432232,
-0.037919677793979645,
-0.09023740142583847,
-0.052356041967868805,
-0.016000451520085335,
0.015060961246490479,
0.013118298724293709,
0.008565074764192104,
0.014680095948278904,
0.018948638811707497,
0.012951401062309742,
-0.027349751442670822,
0.030940188094973564,
0.001063992502167821,
-0.0414004884660244,
-0.02514677308499813,
-0.015053074806928635,
0.03402417153120041,
0.046200357377529144,
0.002681482583284378,
0.033749114722013474,
0.035515446215867996,
-0.03213206306099892,
-0.0018164522480219603,
0.042236749082803726,
0.030156154185533524,
-0.07158350199460983,
-0.04828569293022156,
-0.02997530996799469,
-0.05272435024380684,
0.030190810561180115,
-0.022618770599365234,
-0.001764508429914713,
0.033098578453063965,
0.02832168899476528,
0.032243505120277405,
-0.011593366973102093,
-0.03394973650574684,
0.012858736328780651,
-0.016013458371162415,
0.02816336415708065,
-0.05586659908294678,
0.0447220541536808,
-0.03909147530794144,
0.0018896384863182902,
-0.011865314096212387,
-0.031079759821295738,
-0.0312911793589592,
0.05658825859427452,
-0.005935825873166323,
-0.029332879930734634,
-0.011477933265268803,
-0.009713230654597282,
-0.02770780771970749,
0.03938358277082443,
0.015778249129652977,
0.036317240446805954,
-0.052637629210948944,
0.05501887574791908,
-0.045256197452545166,
-0.00394117645919323,
-0.03662029653787613,
-0.010586591437458992,
-0.02191758155822754,
-0.04221246764063835,
-0.024854227900505066,
-0.04756063595414162,
0.041066888719797134,
0.006970902439206839,
0.03558904677629471,
0.046176727861166,
-0.0026001848746091127,
-0.000842226785607636,
0.025904636830091476,
-0.08310102671384811,
-0.021893780678510666,
-0.009473609738051891,
0.04480284824967384,
0.021488970145583153,
0.06069481000304222,
0.030612066388130188,
-0.032143499702215195,
-0.0563848502933979,
0.04826235771179199,
0.0195878017693758,
0.014874614775180817,
0.02618267573416233,
0.05789996683597565,
0.04462585970759392,
0.04239441826939583,
-0.028567660599946976,
-0.020487595349550247,
-0.01606529764831066,
-0.021157369017601013,
-0.0025029710959643126,
0.011803275905549526,
-0.006002224516123533,
-0.001035172725096345,
-0.023005319759249687,
-0.0251388531178236,
0.07276511192321777,
0.050152573734521866,
0.007709049154073,
0.001701013301499188,
-0.03823278844356537,
0.006597769912332296,
-0.005165405105799437,
-0.06052730232477188,
-0.03548451140522957,
0.02198619954288006,
-0.05747033655643463,
0.07216550409793854,
-0.017887387424707413,
0.01354940701276064,
0.018086321651935577,
0.03796258196234703,
-0.003317197086289525,
0.043751172721385956,
-0.03676919266581535,
0.0215750802308321,
0.03554031625390053,
-0.04649407044053078,
0.0022339611314237118,
-0.03903651237487793,
0.06381001323461533,
-0.0665174275636673,
0.056875839829444885,
0.015471169725060463,
0.010717256926000118,
0.017437729984521866,
-0.03462178632616997,
-0.03381407633423805,
0.02383371815085411,
-0.033468566834926605,
0.06831849366426468,
-0.016206704080104828,
-0.05273780599236488,
0.04252518340945244,
0.03494266793131828,
-0.09176994115114212,
0.0765780657529831,
0.051679614931344986,
0.046860527247190475,
0.03876478224992752,
0.01831812597811222,
-0.07512557506561279,
0.0103415846824646,
-0.03249894827604294,
0.029896708205342293,
-0.08259996771812439,
0.014989867806434631,
0.02672501839697361,
-0.025093723088502884,
-0.015762437134981155,
0.02712257206439972,
-0.009103473275899887,
0.007852532900869846,
-0.0031304366420954466,
-0.05536390095949173,
-0.06293728947639465,
-0.013949057087302208,
0.007171730510890484,
-0.03891412913799286,
-0.0006834380910731852,
-0.03992434963583946,
-0.004704249557107687,
0.006585923954844475,
-0.01634443923830986,
-0.05672831833362579,
-0.004409148823469877,
0.032767802476882935,
-0.06432870775461197,
-0.02415829710662365,
0.05422944948077202,
0.02074890024960041,
-0.03831012547016144,
0.025583429262042046,
-0.008192005567252636,
0.015574982389807701,
0.005586117506027222,
0.0006905400077812374,
0.012314355000853539,
-0.05276168882846832,
-0.015979090705513954,
0.0017744997749105096,
-0.014745035208761692,
0.02004837617278099,
-0.0039350418373942375,
0.031614940613508224,
0.0654439628124237,
0.0195971317589283,
0.037131864577531815,
-0.03667691349983215,
-0.007548861671239138,
0.013790673576295376,
-0.04429919272661209,
-0.0019021081971004605,
0.00855643767863512,
-0.04998239129781723,
-0.024822788313031197,
-0.0273350328207016,
-0.009082532487809658,
0.04878684878349304,
-0.04906494915485382,
-0.003857445903122425,
0.006240382790565491,
-0.03248882293701172,
-0.02737853117287159,
-0.07012303173542023,
-0.017374958842992783,
-0.02188589796423912,
0.045459430664777756,
0.018186671659350395,
-0.02758048288524151,
0.02794039435684681,
-0.03168608248233795,
-0.07336880266666412,
0.006187136750668287,
0.017749160528182983,
-0.030831608921289444,
0.05577419325709343,
0.03516274318099022,
-0.03969508036971092,
0.026539094746112823,
0.04131117835640907,
-0.027784574776887894,
0.03320801630616188,
-0.0039251637645065784,
0.004886358045041561,
0.018878817558288574,
0.02043178863823414,
-0.027553576976060867,
-0.02741728536784649,
-0.07386422157287598,
-0.04009046033024788,
-0.03578702360391617,
0.009194583632051945,
0.05556950345635414
] |
CAMeL-Lab/bert-base-arabic-camelbert-mix-did-nadi | [
"pytorch",
"tf",
"bert",
"text-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 63 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "عامل ايه ؟"
---
# CAMeLBERT-Mix DID NADI Model
## Model description
**CAMeLBERT-Mix DID NADI Model** is a dialect identification (DID) model that was built by fine-tuning the [CAMeLBERT-Mix](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-mix/) model.
For the fine-tuning, we used the [NADI Coountry-level](https://sites.google.com/view/nadi-shared-task) dataset, which includes 21 labels.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-Mix DID NADI model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> did = pipeline('text-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-mix-did-nadi')
>>> sentences = ['عامل ايه ؟', 'شلونك ؟ شخبارك ؟']
>>> did(sentences)
[{'label': 'Egypt', 'score': 0.920274019241333},
{'label': 'Saudi_Arabia', 'score': 0.26750022172927856}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
-0.00042619023588486016,
-0.0033208667300641537,
-0.021384431049227715,
0.05485078692436218,
0.06581763178110123,
0.02907361462712288,
-0.008056568913161755,
-0.012230683118104935,
-0.006824755575507879,
0.0779607817530632,
-0.004110218491405249,
-0.02485809475183487,
0.01698453165590763,
0.03486713394522667,
-0.042220667004585266,
-0.01553372573107481,
-0.0029583259020000696,
-0.04200056195259094,
-0.06283355504274368,
-0.032000962644815445,
-0.0076522850431501865,
0.0035063852556049824,
0.002584784058853984,
-0.0013019239995628595,
-0.0020024743862450123,
0.026616651564836502,
-0.031273819506168365,
0.05284855142235756,
0.058596789836883545,
-0.05745681747794151,
-0.01792820915579796,
-0.018432220444083214,
-0.019396234303712845,
-0.019764138385653496,
-0.04786435142159462,
-0.004786262288689613,
0.0005586898187175393,
0.008541754446923733,
0.012697674334049225,
0.04799077287316322,
-0.020121684297919273,
0.029345417395234108,
-0.02162010408937931,
-0.021312810480594635,
0.04760945588350296,
0.03662751987576485,
-0.035938289016485214,
0.017118725925683975,
0.025556743144989014,
-0.03747587651014328,
-0.07426407933235168,
-0.06642516702413559,
-0.05968034639954567,
0.035769835114479065,
0.0069667873904109,
-0.012643751688301563,
-0.03897957503795624,
-0.030604472383856773,
0.05454755201935768,
-0.06313347816467285,
-0.023595081642270088,
0.014998097904026508,
-0.05584849417209625,
0.0146518275141716,
0.025387311354279518,
-0.03336258605122566,
0.02039208635687828,
-0.038289833813905716,
0.056878335773944855,
-0.03632829338312149,
0.05091455951333046,
-0.010814931243658066,
0.012828642502427101,
-0.06208996847271919,
0.022169560194015503,
-0.031825579702854156,
0.03958132490515709,
0.03123301826417446,
-0.03159751370549202,
0.061352115124464035,
0.007350072730332613,
0.013897283934056759,
0.02572595700621605,
-0.010376928374171257,
-0.005628228187561035,
0.03091828152537346,
-0.05154014006257057,
-0.004305961541831493,
0.0239305030554533,
0.03229628875851631,
-0.050955627113580704,
-0.046760719269514084,
-0.005295741371810436,
-0.04760865867137909,
-0.006747948005795479,
0.03321191295981407,
0.013821427710354328,
-0.02788701094686985,
0.05500497668981552,
0.03273899108171463,
0.03807966411113739,
0.04364713653922081,
-0.026117807254195213,
0.05313704162836075,
-0.013733960688114166,
-0.009436375461518764,
0.0022022121120244265,
-0.0414867028594017,
-0.03435305878520012,
0.04816791042685509,
0.01286792941391468,
-0.04463035240769386,
-0.049789268523454666,
0.04068152979016304,
-0.014561059884727001,
-0.02270258218050003,
0.04995383694767952,
-0.05067531764507294,
-0.04635664075613022,
-0.03780724108219147,
0.02812393195927143,
-0.012867458164691925,
0.0061906673945486546,
0.022475693374872208,
-0.04438458010554314,
0.016462815925478935,
-0.07139179855585098,
-0.019492173567414284,
-0.02173813059926033,
0.013438855297863483,
-0.005845171865075827,
0.044482044875621796,
0.015207279473543167,
-0.06066494435071945,
-0.009737737476825714,
-0.004273496568202972,
-0.05524605140089989,
0.03429792448878288,
0.025231724604964256,
0.10180798172950745,
-0.05355677381157875,
-0.04478897899389267,
0.01586884818971157,
-0.007150404155254364,
-0.001535255927592516,
-0.01444200798869133,
0.006817386019974947,
-0.044923003762960434,
-0.006213488057255745,
-0.006867216434329748,
0.05863207206130028,
-0.04961349070072174,
0.0040664030238986015,
0.04701182618737221,
0.00956046674400568,
0.03698904812335968,
-0.03152601420879364,
-0.013944338075816631,
-0.011386088095605373,
0.013319344259798527,
-0.05692011117935181,
0.06004863232374191,
0.0029489134903997183,
-0.0326291099190712,
-0.02054067887365818,
-0.04632329195737839,
-0.010355488397181034,
0.08964323997497559,
-0.0025086202658712864,
0.002560137305408716,
-0.01771267130970955,
0.018217656761407852,
0.04140891879796982,
0.02501058205962181,
-0.038219306617975235,
0.02255209907889366,
0.05943375825881958,
0.001055820961482823,
-0.01801619492471218,
0.09020915627479553,
-0.018323566764593124,
-0.030587300658226013,
-0.016135722398757935,
-0.012586211785674095,
-0.002293598372489214,
-0.026226624846458435,
0.032279565930366516,
0.03430958092212677,
-0.021909726783633232,
-0.04586884006857872,
-0.02725442312657833,
0.06288100779056549,
0.00682581402361393,
-0.004068745765835047,
-0.02840241603553295,
-0.017937008291482925,
-0.03515862673521042,
0.04188793897628784,
-0.0292805228382349,
0.005860166158527136,
-0.02205703966319561,
0.018398884683847427,
0.00352179235778749,
0.02241990715265274,
0.042757291346788406,
0.026577401906251907,
-0.020073257386684418,
0.07198994606733322,
-0.041374217718839645,
0.0020130437333136797,
-0.0310180876404047,
-0.057263366878032684,
-0.009779678657650948,
0.03491482511162758,
0.025699656456708908,
0.02705049328505993,
-0.024057431146502495,
-0.028747515752911568,
0.027211004868149757,
0.04159129783511162,
0.06067292392253876,
0.035487111657857895,
-0.017671767622232437,
-0.028638385236263275,
0.03358285874128342,
0.05330647528171539,
-0.07917290925979614,
-0.041132666170597076,
0.039131615310907364,
0.028652682900428772,
-0.04509585723280907,
0.014014888554811478,
0.0034183566458523273,
0.03865834325551987,
-0.05411584675312042,
-0.06882837414741516,
0.040627725422382355,
0.025720344856381416,
0.0024185040965676308,
0.02330453135073185,
-0.017991071566939354,
-0.01848764717578888,
0.03649183735251427,
0.01515480037778616,
-0.009428048506379128,
-0.04508986324071884,
0.021197153255343437,
0.01493074744939804,
0.06668493896722794,
-0.05152890458703041,
0.02763671614229679,
0.000722565921023488,
0.018370622768998146,
0.0426504947245121,
-0.04613078013062477,
0.03235050290822983,
0.020030422136187553,
0.006470890250056982,
-0.03477916494011879,
0.030127722769975662,
-0.00573098985478282,
0.017160797491669655,
0.05224284529685974,
-0.0014424108667299151,
0.05489175021648407,
-0.025431720539927483,
0.06288658082485199,
0.06536608934402466,
0.0416412353515625,
0.010360452346503735,
0.016502507030963898,
0.056457601487636566,
-0.001111042918637395,
-0.020311599597334862,
0.05332536622881889,
-0.05567111447453499,
0.027825016528367996,
-0.047847554087638855,
0.0006430168286897242,
-0.010000345297157764,
-0.011313789524137974,
0.04982609674334526,
0.021396072581410408,
-0.0069054351188242435,
-0.01133551262319088,
-0.018298493698239326,
0.010159737430512905,
0.045253485441207886,
-0.019071046262979507,
-0.04356149956583977,
-0.011520360596477985,
-0.029373664408922195,
0.012394627556204796,
-0.0707821175456047,
-0.02198997139930725,
-0.03247261419892311,
-0.04939241707324982,
-0.005742136389017105,
-0.06995459645986557,
-0.034740012139081955,
-0.045523397624492645,
-0.01136197429150343,
0.0294685997068882,
0.021670445799827576,
0.010519075207412243,
-0.03469402343034744,
0.04124625399708748,
-0.035508159548044205,
-0.03795766457915306,
-0.05039546638727188,
-0.06736470758914948,
0.0007380064926110208,
-0.038588471710681915,
0.04732736572623253,
0.01476934365928173,
-0.0037807764019817114,
0.009520348161458969,
0.022151416167616844,
-0.010043295100331306,
-0.05263641104102135,
0.0231162142008543,
0.038550589233636856,
-0.01684032939374447,
-0.053434643894433975,
0.026821685954928398,
-0.023450514301657677,
0.01640634797513485,
-0.0340329185128212,
-0.06080600619316101,
0.08006609976291656,
0.06855174899101257,
0.013664388097822666,
0.015773003920912743,
-0.01592331752181053,
-0.06730108708143234,
-0.05488752946257591,
-0.034361738711595535,
-0.02880224771797657,
-0.03851117566227913,
0.008422327227890491,
-0.033914778381586075,
-0.029830802232027054,
-0.05189267918467522,
-0.014112128876149654,
0.016622012481093407,
0.0137960035353899,
0.04766576737165451,
0.053896527737379074,
0.03874826803803444,
0.05294626206159592,
-0.03277360275387764,
-0.02647061087191105,
0.0570991188287735,
0.016710778698325157,
0.03217603638768196,
-0.07537247985601425,
-0.030498569831252098,
0.046607278287410736,
0.01992950215935707,
-0.015599023550748825,
0.0006001185975037515,
0.09170326590538025,
0.009202998131513596,
-0.00015621885540895164,
0.007959642447531223,
-0.012416217476129532,
-0.02944781444966793,
-0.00250992551445961,
0.006418912205845118,
0.011756375432014465,
-0.0628182664513588,
-0.013997022062540054,
0.0016706145834177732,
0.06969665735960007,
-0.04469999670982361,
-0.06179485097527504,
-0.004433442372828722,
0.06724721938371658,
0.010920101776719093,
0.005929692182689905,
-0.028872955590486526,
0.021507535129785538,
-0.04407624900341034,
-0.030457286164164543,
0.012284674681723118,
-0.0036738852504640818,
0.009896554052829742,
0.040634483098983765,
0.02342153899371624,
-0.031490202993154526,
0.01705690287053585,
0.039735957980155945,
0.05186828598380089,
0.015797775238752365,
-0.03572715446352959,
0.009040385484695435,
-0.022162413224577904,
0.01652437448501587,
-0.004196206107735634,
-0.03651425242424011,
-0.05527842044830322,
-0.09947612136602402,
-0.019419927150011063,
0.00428898585960269,
-0.03303217515349388,
-0.030788691714406013,
0.04516206681728363,
-0.013018971309065819,
0.00474089989438653,
-0.0009851958602666855,
0.025042647495865822,
0.03223952651023865,
-0.016707459464669228,
0.044575002044439316,
0.010004901327192783,
0.037155333906412125,
-0.05934051051735878,
0.023456551134586334,
-0.028003016486763954,
0.019405391067266464,
-0.008509996347129345,
0.06171601638197899,
0.02042786031961441,
0.037899330258369446,
0.0715617835521698,
0.029296474531292915,
-0.028281990438699722,
0.04145880788564682,
0.043660398572683334,
-0.011187582276761532,
-0.04416597634553909,
-0.0002586795308161527,
-0.018113097175955772,
-0.01355693582445383,
0.010957185178995132,
-0.025316691026091576,
-0.0008629229268990457,
0.01874672807753086,
-0.010374215431511402,
0.0004843442002311349,
-0.006741582415997982,
-0.041483163833618164,
-0.035819247364997864,
-0.05692699924111366,
-0.012673504650592804,
0.04463109374046326,
-0.03190675005316734,
0.03664308413863182,
0.03688861429691315,
0.016148176044225693,
0.08419395238161087,
0.06382665038108826,
0.0030789163429290056,
-0.0625859797000885,
0.015199197456240654,
0.03253168240189552,
-0.02275298535823822,
-0.06472670286893845,
-0.06669753044843674,
0.05146367847919464,
0.04288310930132866,
-0.001726076239719987,
-0.08254639059305191,
0.0049888151697814465,
0.05932720750570297,
-0.00812072679400444,
0.053445372730493546,
-0.01584763079881668,
0.0506831519305706,
0.06851732730865479,
-0.05673524737358093,
0.006414713803678751,
-0.03635730221867561,
0.027959220111370087,
-0.0032768892124295235,
0.016189491376280785,
-0.02923300489783287,
-0.03889545425772667,
-0.04531199857592583,
0.034534040838479996,
0.04055121913552284,
0.03479297086596489,
0.036606840789318085,
-0.0009769788011908531,
-0.05080230534076691,
0.0047006686218082905,
0.0071087670512497425,
-0.02706145867705345,
-0.013701152987778187,
0.038234662264585495,
0.057575199753046036,
-0.024506494402885437,
-0.00458745239302516,
-0.0024373289197683334,
-0.009900509379804134,
0.010726583190262318,
-0.0011673916596919298,
-0.050082288682460785,
-0.04729829728603363,
-0.0014511296758428216,
-0.028601082041859627,
-0.022107386961579323,
-0.09696069359779358,
0.028957849368453026,
-0.03611930459737778,
-0.009518212638795376,
0.04578319191932678,
0.03065195493400097,
0.012658740393817425,
0.048742521554231644,
0.009301635436713696,
0.023092037066817284,
-0.028393328189849854,
0.033024340867996216,
-0.007178174797445536,
-0.0024864720180630684,
-0.022688262164592743,
-0.07569579780101776,
-0.00214370503090322,
-0.0016828661318868399,
-0.04104304313659668,
-0.04246823117136955,
-0.02602287009358406,
0.010972810909152031,
0.004328880924731493,
-0.009694410488009453,
-0.034432701766490936,
0.05254974216222763,
-0.04106924682855606,
-0.024820350110530853,
-0.013856394216418266,
-0.03463128209114075,
-0.07929416745901108,
-0.04874030500650406,
-0.006292410660535097,
0.014606268145143986,
0.01566123589873314,
0.006216185633093119,
0.019700629636645317,
0.020916486158967018,
0.0193390641361475,
-0.02739507146179676,
0.028479041531682014,
0.008819980546832085,
-0.04157885164022446,
-0.030964354053139687,
-0.021490495651960373,
0.028549928218126297,
0.05301486700773239,
-0.004585497546941042,
0.0318114310503006,
0.0464211031794548,
-0.0343642495572567,
0.003161741653457284,
0.04427466541528702,
0.03400993347167969,
-0.06334887444972992,
-0.03419406712055206,
-0.019551793113350868,
-0.05006495490670204,
0.031153587624430656,
-0.025198107585310936,
-0.0033710182178765535,
0.030699778348207474,
0.025895338505506516,
0.03152015060186386,
-0.01973285898566246,
-0.04034813493490219,
0.020749835297465324,
-0.015905024483799934,
0.0164622999727726,
-0.0604105181992054,
0.04403696954250336,
-0.026618972420692444,
-0.001125497743487358,
-0.006101326085627079,
-0.03240935876965523,
-0.025288229808211327,
0.06279820203781128,
-0.015950104221701622,
-0.019144725054502487,
-0.0010644589783623815,
-0.004540367983281612,
-0.024889815598726273,
0.03976166993379593,
0.0153930289670825,
0.031400345265865326,
-0.041967328637838364,
0.045749131590127945,
-0.036761850118637085,
-0.0021813400089740753,
-0.026804666966199875,
-0.028929853811860085,
-0.021066371351480484,
-0.03272959962487221,
-0.023230835795402527,
-0.058544911444187164,
0.03764750808477402,
0.015031866729259491,
0.034211430698633194,
0.03641045093536377,
-0.000177612469997257,
0.007771186530590057,
0.01594976894557476,
-0.07105414569377899,
-0.017853280529379845,
-0.02038891613483429,
0.0460817813873291,
0.02020571008324623,
0.05814061313867569,
0.018094288185238838,
-0.04224690422415733,
-0.05434122309088707,
0.04879363626241684,
0.02883959375321865,
0.02957717888057232,
0.016367560252547264,
0.06436115503311157,
0.03885959833860397,
0.046156302094459534,
-0.01875758357346058,
-0.026188751682639122,
-0.026930280029773712,
-0.03684200718998909,
-0.0006292442558333278,
0.02240501344203949,
-0.004344629589468241,
0.003328647930175066,
-0.018213625997304916,
-0.01494530402123928,
0.07233713567256927,
0.05378434807062149,
-0.0022783817257732153,
0.0004355250857770443,
-0.036190055310726166,
0.013042018748819828,
-0.010876697488129139,
-0.052397470921278,
-0.03835846856236458,
0.012123674154281616,
-0.056702855974435806,
0.0746271014213562,
-0.008188409730792046,
0.019714951515197754,
0.0209242831915617,
0.02658507041633129,
-0.004268034361302853,
0.04025394842028618,
-0.03323577344417572,
0.02515120804309845,
0.03704220429062843,
-0.05023982375860214,
0.016375182196497917,
-0.03042936511337757,
0.06332553923130035,
-0.06989730894565582,
0.05436736345291138,
0.017686178907752037,
0.0156758651137352,
0.02138650231063366,
-0.031270064413547516,
-0.032599374651908875,
0.024457961320877075,
-0.03284904733300209,
0.06698738038539886,
-0.013461892493069172,
-0.04851442575454712,
0.04618319123983383,
0.03581502288579941,
-0.09150587022304535,
0.07484626770019531,
0.05541536957025528,
0.05705611780285835,
0.046103667467832565,
0.021551920101046562,
-0.08051423728466034,
0.001155551988631487,
-0.022034835070371628,
0.038749173283576965,
-0.07806538790464401,
0.01968340203166008,
0.02310474030673504,
-0.034555308520793915,
-0.02375614456832409,
0.03202158585190773,
0.0031517629977315664,
-0.0010039375629276037,
0.002938230289146304,
-0.052653513848781586,
-0.05288426950573921,
-0.013957382179796696,
0.011548723094165325,
-0.04070581495761871,
-0.0016476376913487911,
-0.039143625646829605,
-0.005999698769301176,
0.009588787332177162,
-0.011983227916061878,
-0.052113134413957596,
0.005460483022034168,
0.03963713347911835,
-0.05544913932681084,
-0.004288999829441309,
0.05248594284057617,
0.01265003439038992,
-0.026879148557782173,
0.03469090163707733,
-0.011226206086575985,
0.018187571316957474,
0.01211569644510746,
0.00016868764942046255,
0.009068611077964306,
-0.04860552400350571,
-0.019644595682621002,
-0.00011217518476769328,
-0.007454599253833294,
0.019054945558309555,
-0.014607141725718975,
0.03783991560339928,
0.07300378382205963,
0.024298692122101784,
0.03691425919532776,
-0.03980352729558945,
-0.018544862046837807,
0.007068904582411051,
-0.04725728929042816,
0.0026565655134618282,
0.006925198715180159,
-0.050574060529470444,
-0.03302668035030365,
-0.02428295463323593,
-0.0030350559391081333,
0.05346502736210823,
-0.04755109176039696,
-0.0056887236423790455,
-0.0008795922040008008,
-0.023894699290394783,
-0.03023304045200348,
-0.06765798479318619,
-0.024616019800305367,
-0.026005776599049568,
0.03687167912721634,
0.014069091528654099,
-0.03389931470155716,
0.028534051030874252,
-0.04155905172228813,
-0.07049838453531265,
0.006652609910815954,
0.019588179886341095,
-0.037554968148469925,
0.05621059611439705,
0.041171956807374954,
-0.03585531562566757,
0.03292781114578247,
0.03633548691868782,
-0.013012704439461231,
0.029552720487117767,
-0.010405756533145905,
0.01510901190340519,
0.03837242349982262,
0.013682859018445015,
-0.02913776785135269,
-0.03853685036301613,
-0.06111867353320122,
-0.04096824675798416,
-0.03314816206693649,
-0.0007142623653635383,
0.05260785296559334
] |
CAMeL-Lab/bert-base-arabic-camelbert-mix-ner | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 1,860 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع"
---
# CAMeLBERT-Mix NER Model
## Model description
**CAMeLBERT-Mix NER Model** is a Named Entity Recognition (NER) model that was built by fine-tuning the [CAMeLBERT Mix](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-mix/) model.
For the fine-tuning, we used the [ANERcorp](https://camel.abudhabi.nyu.edu/anercorp/) dataset.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678).
"* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-Mix NER model directly as part of our [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) NER component (*recommended*) or as part of the transformers pipeline.
#### How to use
To use the model with the [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) NER component:
```python
>>> from camel_tools.ner import NERecognizer
>>> from camel_tools.tokenizers.word import simple_word_tokenize
>>> ner = NERecognizer('CAMeL-Lab/bert-base-arabic-camelbert-mix-ner')
>>> sentence = simple_word_tokenize('إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع')
>>> ner.predict_sentence(sentence)
>>> ['O', 'B-LOC', 'O', 'O', 'O', 'O', 'B-LOC', 'I-LOC', 'I-LOC', 'O']
```
You can also use the NER model directly with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> ner = pipeline('ner', model='CAMeL-Lab/bert-base-arabic-camelbert-mix-ner')
>>> ner("إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع")
[{'word': 'أبوظبي',
'score': 0.9895730018615723,
'entity': 'B-LOC',
'index': 2,
'start': 6,
'end': 12},
{'word': 'الإمارات',
'score': 0.8156259655952454,
'entity': 'B-LOC',
'index': 8,
'start': 33,
'end': 41},
{'word': 'العربية',
'score': 0.890906810760498,
'entity': 'I-LOC',
'index': 9,
'start': 42,
'end': 49},
{'word': 'المتحدة',
'score': 0.8169114589691162,
'entity': 'I-LOC',
'index': 10,
'start': 50,
'end': 57}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
-0.0021535116247832775,
0.005781195592135191,
-0.018860558047890663,
0.051915183663368225,
0.04859931394457817,
0.024759110063314438,
-0.015909815207123756,
-0.02357562445104122,
-0.02441631257534027,
0.07368201017379761,
0.010256769135594368,
-0.0251141544431448,
0.015909608453512192,
0.04433004930615425,
-0.049910660833120346,
-0.020258987322449684,
-0.004421730060130358,
-0.013751281425356865,
-0.059508148580789566,
-0.03813294693827629,
-0.007295270450413227,
0.015885429456830025,
0.009374362416565418,
0.0029600542038679123,
-0.004766957368701696,
0.018775533884763718,
-0.014158952981233597,
0.06317716091871262,
0.03622296825051308,
-0.060859523713588715,
-0.014119083061814308,
-0.016590632498264313,
-0.022166725248098373,
-0.015005109831690788,
-0.026228085160255432,
-0.0013223288115113974,
0.010685567744076252,
-0.005404158961027861,
0.011346870101988316,
0.05822035297751427,
-0.023284146562218666,
0.027926836162805557,
-0.008696062490344048,
-0.03427308425307274,
0.042870812118053436,
0.017341578379273415,
-0.03381885588169098,
-0.0005159492720849812,
0.035675227642059326,
-0.06834471970796585,
-0.07489726692438126,
-0.051198989152908325,
-0.05330298840999603,
0.03839728608727455,
0.0036777264904230833,
-0.0029840937349945307,
-0.025673096999526024,
-0.026503125205636024,
0.08086489886045456,
-0.0671251118183136,
-0.034545306116342545,
-0.005842943210154772,
-0.05739407613873482,
0.021859047934412956,
0.01946919411420822,
-0.02841882035136223,
0.013077876530587673,
-0.04550393298268318,
0.05665775388479233,
-0.031402189284563065,
0.04426124691963196,
-0.024801531806588173,
0.011062865145504475,
-0.07327285408973694,
0.019406521692872047,
-0.028637420386075974,
0.04263754561543465,
0.04513639211654663,
-0.03264584764838219,
0.06460839509963989,
0.008900030516088009,
0.0037826320622116327,
0.030946433544158936,
-0.02645512856543064,
-0.004189223982393742,
0.027481483295559883,
-0.039285898208618164,
0.0077715227380394936,
0.01164539810270071,
0.03115757554769516,
-0.046858303248882294,
-0.036436110734939575,
-0.00006832584040239453,
-0.04815225675702095,
-0.02455298602581024,
0.021887701004743576,
0.026466606184840202,
0.0010647629387676716,
0.046549540013074875,
0.0167678389698267,
0.03785816207528114,
0.04389147832989693,
-0.025925660505890846,
0.05179696902632713,
-0.0229384433478117,
-0.025737714022397995,
-0.02329355850815773,
-0.03545853868126869,
-0.034718457609415054,
0.042528800666332245,
0.020642505958676338,
-0.05513400584459305,
-0.06128363311290741,
0.038474977016448975,
-0.004570751450955868,
-0.033440329134464264,
0.042854443192481995,
-0.043293748050928116,
-0.05749399587512016,
-0.033835846930742264,
0.04819397255778313,
-0.013135906308889389,
0.01310410164296627,
0.004886304028332233,
-0.04909631982445717,
0.005485775880515575,
-0.06549809128046036,
-0.02368205040693283,
-0.027206767350435257,
0.02509123831987381,
-0.002999403513967991,
0.030925840139389038,
0.005857008974999189,
-0.06350132077932358,
0.014451568946242332,
-0.016963370144367218,
-0.04421951621770859,
0.06484107673168182,
0.04549792781472206,
0.11152973026037216,
-0.04548095166683197,
-0.05354798957705498,
0.013377119787037373,
0.018574204295873642,
-0.013552716001868248,
-0.008835695683956146,
0.014708825387060642,
-0.03381006419658661,
-0.02472439408302307,
-0.009152339771389961,
0.057333216071128845,
-0.054671403020620346,
0.010829348117113113,
0.043648865073919296,
-0.005161892622709274,
0.03938267379999161,
-0.031828783452510834,
-0.024678848683834076,
-0.0057967486791312695,
0.020854685455560684,
-0.029124503955245018,
0.05574966222047806,
0.00879479106515646,
-0.01397368498146534,
-0.03727928549051285,
-0.047266870737075806,
-0.005156716797500849,
0.08770566433668137,
-0.004936033859848976,
-0.0059019229374825954,
-0.033514589071273804,
0.01143778208643198,
0.03485948592424393,
0.026592498645186424,
-0.038390472531318665,
0.02885918878018856,
0.06407629698514938,
0.01821836456656456,
-0.029986245557665825,
0.07092070579528809,
0.007257936056703329,
-0.024766892194747925,
0.001345387427136302,
-0.012794026173651218,
0.00015712228196207434,
-0.026438936591148376,
0.04111718013882637,
0.048266053199768066,
-0.01995183527469635,
-0.04827690124511719,
-0.02385116182267666,
0.0691758245229721,
0.0050849090330302715,
0.013293765485286713,
-0.003404811257496476,
-0.017017055302858353,
-0.03655996918678284,
0.047163691371679306,
-0.017012709751725197,
0.012633036822080612,
-0.02702636644244194,
0.007192353717982769,
-0.004192244727164507,
0.030290326103568077,
0.03806043788790703,
0.03356210142374039,
-0.03549851104617119,
0.06093256175518036,
-0.03305085748434067,
0.01574334315955639,
-0.043910425156354904,
-0.04684894159436226,
0.0014306633966043591,
0.04172665253281593,
0.035673074424266815,
0.04092654958367348,
-0.019372686743736267,
-0.023358920589089394,
0.02370166778564453,
0.03325682878494263,
0.04232517257332802,
0.02595772221684456,
-0.01845584623515606,
-0.02666938677430153,
0.03232913091778755,
0.07402753084897995,
-0.08080071210861206,
-0.03588211536407471,
0.031002484261989594,
0.03762727230787277,
-0.026486579328775406,
0.02279500849545002,
-0.00466875359416008,
0.03217390924692154,
-0.04278171434998512,
-0.0782189592719078,
0.052327852696180344,
0.020063351839780807,
-0.00607698131352663,
0.02170787937939167,
-0.010511709377169609,
-0.002074049785733223,
0.014758870005607605,
0.030364232137799263,
-0.007536066696047783,
-0.05346592515707016,
0.010492254979908466,
0.016224628314375877,
0.06690480560064316,
-0.0416392982006073,
0.03956695273518562,
0.003443302121013403,
0.025742322206497192,
0.034826118499040604,
-0.04220098257064819,
0.03155289217829704,
0.017835276201367378,
0.010369114577770233,
-0.02943897433578968,
0.04430174082517624,
0.0047888923436403275,
0.02223249152302742,
0.056049637496471405,
-0.006545098498463631,
0.059122055768966675,
-0.007138305343687534,
0.047564540058374405,
0.05796252563595772,
0.026994915679097176,
0.01873307302594185,
0.015250695869326591,
0.07727595418691635,
0.007961015217006207,
-0.021936878561973572,
0.07669610530138016,
-0.052523910999298096,
0.024824513122439384,
-0.03785628080368042,
-0.000024322618628502823,
-0.0008772822911851108,
-0.016216645017266273,
0.05519990995526314,
0.011260240338742733,
0.00329213822260499,
-0.015877529978752136,
-0.02735172025859356,
0.004128636326640844,
0.02749902568757534,
-0.025728115811944008,
-0.0250737052410841,
-0.01639982871711254,
-0.029154019430279732,
0.0009513304103165865,
-0.07799247652292252,
-0.015185895375907421,
-0.010443594306707382,
-0.03318418562412262,
0.002082926919683814,
-0.0768963098526001,
-0.02832474745810032,
-0.05578162893652916,
-0.016287386417388916,
0.03183804824948311,
0.011059422977268696,
0.004240833222866058,
-0.03881767764687538,
0.040914006531238556,
-0.050379857420921326,
-0.047296177595853806,
-0.051820967346429825,
-0.06091149151325226,
-0.016814885661005974,
-0.053645845502614975,
0.04895983636379242,
0.010409308597445488,
0.017659436911344528,
0.0042870077304542065,
0.017808953300118446,
-0.03165829926729202,
-0.042428091168403625,
0.022650685161352158,
0.0390886589884758,
-0.028063781559467316,
-0.06037510186433792,
0.027285723015666008,
-0.004022037144750357,
-0.0004967964487150311,
-0.043746303766965866,
-0.055704787373542786,
0.0614890456199646,
0.0818079337477684,
0.01736021786928177,
0.0274476557970047,
-0.008152225986123085,
-0.04865582287311554,
-0.051100343465805054,
-0.02106928825378418,
-0.044987473636865616,
-0.028114043176174164,
-0.01830533891916275,
-0.031742118299007416,
-0.018367992714047432,
-0.04801742359995842,
-0.01191092748194933,
0.0030596579890698195,
0.0038495894987136126,
0.0333881638944149,
0.05202071741223335,
0.02943924255669117,
0.03886239603161812,
-0.030416326597332954,
-0.02611965872347355,
0.06574712693691254,
0.013505837880074978,
0.006736419629305601,
-0.07738082855939865,
-0.036688271909952164,
0.048943426460027695,
0.025797247886657715,
-0.007459729909896851,
-0.011067541316151619,
0.07390774041414261,
-0.0033865738660097122,
-0.012401558458805084,
0.009150884114205837,
-0.004378430545330048,
-0.05154366418719292,
-0.006928345188498497,
0.014471794478595257,
0.0035090914461761713,
-0.05211546644568443,
-0.008027862757444382,
0.012419622391462326,
0.05099992826581001,
-0.030765024945139885,
-0.061160940676927567,
-0.005817416589707136,
0.06036560982465744,
0.014714449644088745,
0.00069052679464221,
-0.014530372805893421,
0.012518947012722492,
-0.03301016241312027,
-0.04733451083302498,
0.007758946157991886,
-0.019204121083021164,
0.007967076264321804,
0.05433949455618858,
0.018264740705490112,
-0.0069863274693489075,
0.031691234558820724,
0.03990102559328079,
0.04229694604873657,
0.012469432316720486,
-0.025580687448382378,
0.025544630363583565,
-0.01776287704706192,
0.008538120426237583,
0.008070716634392738,
-0.030136439949274063,
-0.05375111103057861,
-0.09353650361299515,
-0.012332925572991371,
0.006951578427106142,
-0.020479122176766396,
-0.02671097218990326,
0.04380790889263153,
-0.010422228835523129,
0.014446981251239777,
0.0013378954026848078,
0.024838656187057495,
0.025327660143375397,
-0.035381466150283813,
0.051829367876052856,
-0.01710304617881775,
0.04675621911883354,
-0.05011172592639923,
0.019297383725643158,
-0.034405793994665146,
0.013898725621402264,
-0.0020507650915533304,
0.06633489578962326,
0.022821856662631035,
0.03260354697704315,
0.0642368495464325,
0.04974054917693138,
-0.040285371243953705,
0.03182782605290413,
0.04984071105718613,
-0.004880773834884167,
-0.05017853155732155,
-0.00637420080602169,
-0.00982830859720707,
-0.02788880653679371,
-0.00854624155908823,
-0.033034488558769226,
-0.017581099644303322,
0.032218676060438156,
0.008360862731933594,
0.013484369963407516,
0.0109671326354146,
-0.030320487916469574,
-0.032782092690467834,
-0.07388948649168015,
-0.03132299333810806,
0.023579707369208336,
-0.02591591700911522,
0.03931199014186859,
0.04509526863694191,
0.021823693066835403,
0.07863345742225647,
0.08190716803073883,
-0.0010950969299301505,
-0.05596625432372093,
0.019098851829767227,
0.03704267740249634,
-0.0364522859454155,
-0.060550350695848465,
-0.041581496596336365,
0.05298835411667824,
0.05772707983851433,
0.0052490029484033585,
-0.09909290820360184,
0.00015705855912528932,
0.06202424317598343,
-0.01795133203268051,
0.059029269963502884,
-0.00831474270671606,
0.06009611487388611,
0.06284451484680176,
-0.027109261602163315,
0.016865266487002373,
-0.042179692536592484,
0.02266562730073929,
-0.0011103785363957286,
0.0036868443712592125,
-0.026676781475543976,
-0.03311995416879654,
-0.03650723025202751,
0.023226765915751457,
0.04624539241194725,
0.031819943338632584,
0.04593198373913765,
-0.00732466671615839,
-0.03700542449951172,
0.003082654206082225,
0.007912326604127884,
-0.034071363508701324,
0.006149526685476303,
0.0331171452999115,
0.0362713448703289,
-0.03867899999022484,
-0.007349549792706966,
-0.005596207920461893,
0.000023603033696417697,
0.013072244822978973,
0.005170050077140331,
-0.04313991218805313,
-0.040075983852148056,
0.0010794305708259344,
-0.001958453096449375,
-0.01229167077690363,
-0.08720777928829193,
0.037185363471508026,
-0.0380684956908226,
0.0034676105715334415,
0.04154203459620476,
0.024720078334212303,
0.006816212087869644,
0.04610215127468109,
-0.004960891790688038,
0.00988562498241663,
-0.02990983985364437,
0.02591637149453163,
-0.012716639786958694,
-0.017722971737384796,
-0.029285740107297897,
-0.062294408679008484,
-0.004194712731987238,
-0.012018890120089054,
-0.03911871463060379,
-0.03381397947669029,
-0.012692366726696491,
0.024457816034555435,
-0.013201413676142693,
0.020661557093262672,
-0.02115882933139801,
0.04705503210425377,
-0.05482003465294838,
-0.035363294184207916,
-0.01763380877673626,
-0.03504039719700813,
-0.07460442185401917,
-0.04656611382961273,
0.0007553359027951956,
0.014969462528824806,
0.018230333924293518,
0.017729347571730614,
0.02026357315480709,
0.015733905136585236,
0.023415012285113335,
-0.038705430924892426,
0.02470288798213005,
-0.0022376563865691423,
-0.038850005716085434,
-0.03369971364736557,
-0.018724339082837105,
0.02495959773659706,
0.03803654760122299,
-0.012133346870541573,
0.04376153647899628,
0.030155949294567108,
-0.033030956983566284,
0.0044606346637010574,
0.03341919928789139,
0.01742754504084587,
-0.07303239405155182,
-0.02871541678905487,
-0.022993337363004684,
-0.04002424329519272,
0.03896036371588707,
-0.020967815071344376,
-0.014259555377066135,
0.023498523980379105,
0.025273306295275688,
0.025695009157061577,
-0.01766733080148697,
-0.034063614904880524,
0.014267378486692905,
-0.020828163251280785,
0.03999162092804909,
-0.04560833424329758,
0.05750717222690582,
-0.04065034165978432,
0.017324239015579224,
-0.017676714807748795,
-0.030720846727490425,
-0.02044636383652687,
0.046404775232076645,
-0.019233422353863716,
-0.02295011840760708,
0.014916433952748775,
0.006761376280337572,
-0.03997394070029259,
0.03309564292430878,
-0.014178836718201637,
0.026988660916686058,
-0.023320846259593964,
0.03886768966913223,
-0.04808961972594261,
-0.021513454616069794,
-0.022866101935505867,
-0.005421365611255169,
-0.03754057362675667,
-0.04523015767335892,
-0.0071099139750003815,
-0.053218018263578415,
0.04019995778799057,
0.022741153836250305,
0.028977833688259125,
0.03401455283164978,
-0.004243001341819763,
-0.008127217181026936,
0.011137513443827629,
-0.059385746717453,
-0.006855256389826536,
-0.013940146192908287,
0.04251396283507347,
0.013825117610394955,
0.06511005759239197,
0.04537196457386017,
-0.05257151648402214,
-0.04378390312194824,
0.04975208267569542,
0.015556042082607746,
0.018903423100709915,
0.010919290594756603,
0.06053967401385307,
0.02881951816380024,
0.03829583153128624,
-0.02812902443110943,
-0.010407802648842335,
-0.02749084308743477,
-0.01918843574821949,
0.007070919033139944,
0.00625311303883791,
0.01315240003168583,
0.0015113240806385875,
-0.0342956967651844,
-0.025890817865729332,
0.0935429111123085,
0.030566858127713203,
0.00449811015278101,
0.00799620896577835,
-0.032193079590797424,
0.019170816987752914,
-0.0007928897975943983,
-0.06025215610861778,
-0.007619604468345642,
0.016271334141492844,
-0.050556160509586334,
0.0804172232747078,
-0.009793457575142384,
0.022812513634562492,
0.026708051562309265,
0.017653347924351692,
-0.00802799966186285,
0.0618920736014843,
-0.04588095471262932,
0.026447955518960953,
0.04201237112283707,
-0.04424803704023361,
0.018317662179470062,
-0.047608137130737305,
0.06888430565595627,
-0.08317825943231583,
0.06411733478307724,
0.02246658131480217,
0.004307872150093317,
0.0039400882087647915,
-0.02691231295466423,
-0.026432747021317482,
0.007177968509495258,
-0.03207714110612869,
0.07520198822021484,
-0.01622866839170456,
-0.057406291365623474,
0.0425771027803421,
0.03286648914217949,
-0.06882650405168533,
0.07074178755283356,
0.02704598940908909,
0.06065337359905243,
0.04405761882662773,
0.04451725259423256,
-0.08756712824106216,
0.004388101398944855,
-0.031519338488578796,
0.0404062494635582,
-0.07790764421224594,
0.007075517438352108,
0.038753390312194824,
-0.04243095964193344,
-0.013325212523341179,
0.046466510742902756,
-0.020068975165486336,
-0.01275681797415018,
0.007415476720780134,
-0.055639274418354034,
-0.041671596467494965,
-0.01675870269536972,
0.025049755349755287,
-0.02485920861363411,
0.004621207248419523,
-0.039638906717300415,
0.005648019723594189,
-0.0007018164033070207,
-0.0065765827894210815,
-0.04298502206802368,
-0.007370470557361841,
0.04557604715228081,
-0.07205794006586075,
-0.014089616015553474,
0.056125860661268234,
0.006109145004302263,
-0.011609409935772419,
0.03550708666443825,
-0.01922282949090004,
0.03274163976311684,
0.01326571125537157,
0.020035775378346443,
0.025942470878362656,
-0.046337902545928955,
-0.01848706230521202,
0.018388113006949425,
-0.0024634823203086853,
0.025000059977173805,
-0.0011995210079476237,
0.03573811426758766,
0.07128332555294037,
0.025140734389424324,
0.030610613524913788,
-0.05876082181930542,
-0.032820675522089005,
0.02187928557395935,
-0.05034175515174866,
0.008917047642171383,
-0.0049392469227313995,
-0.04563431814312935,
-0.03546101227402687,
-0.013710725121200085,
-0.02629108354449272,
0.05045522749423981,
-0.05351608246564865,
0.00933113880455494,
0.008009706623852253,
-0.027879610657691956,
-0.04378724470734596,
-0.06254158914089203,
-0.026074105873703957,
-0.03226221352815628,
0.026812180876731873,
0.007711933925747871,
-0.018155917525291443,
0.028549855574965477,
-0.04298973083496094,
-0.05927422642707825,
0.038196612149477005,
0.021763674914836884,
-0.04398251697421074,
0.06075647845864296,
0.021800516173243523,
-0.030475996434688568,
0.007832215167582035,
0.042354702949523926,
-0.0340435653924942,
0.018330005928874016,
-0.010410166345536709,
0.009529107250273228,
0.037768032401800156,
0.018741630017757416,
-0.03217341750860214,
-0.01825881563127041,
-0.06441214680671692,
-0.04214197397232056,
-0.04365512356162071,
-0.004358422011137009,
0.06240576505661011
] |
CAMeL-Lab/bert-base-arabic-camelbert-mix-poetry | [
"pytorch",
"tf",
"bert",
"text-classification",
"ar",
"arxiv:1905.05700",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 31 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: 'الخيل والليل والبيداء تعرفني [SEP] والسيف والرمح والقرطاس والقلم'
---
# CAMeLBERT-Mix Poetry Classification Model
## Model description
**CAMeLBERT-Mix Poetry Classification Model** is a poetry classification model that was built by fine-tuning the [CAMeLBERT Mix](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-mix/) model.
For the fine-tuning, we used the [APCD](https://arxiv.org/pdf/1905.05700.pdf) dataset.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-Mix Poetry Classification model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> poetry = pipeline('text-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-mix-poetry')
>>> # A list of verses where each verse consists of two parts.
>>> verses = [
['الخيل والليل والبيداء تعرفني' ,'والسيف والرمح والقرطاس والقلم'],
['قم للمعلم وفه التبجيلا' ,'كاد المعلم ان يكون رسولا']
]
>>> # A function that concatenates the halves of each verse by using the [SEP] token.
>>> join_verse = lambda half: ' [SEP] '.join(half)
>>> # Apply this to all the verses in the list.
>>> verses = [join_verse(verse) for verse in verses]
>>> poetry(sentences)
[{'label': 'البسيط', 'score': 0.9937475919723511},
{'label': 'الكامل', 'score': 0.971284031867981}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
0.01290079578757286,
-0.004515035543590784,
-0.010610139928758144,
0.05969173461198807,
0.04241982102394104,
0.015570282936096191,
-0.019824175164103508,
-0.025495357811450958,
-0.015476522035896778,
0.07455821335315704,
0.022938722744584084,
-0.00923067331314087,
0.006360097788274288,
0.03795993700623512,
-0.02958795055747032,
-0.017904961481690407,
-0.0157075896859169,
-0.027488676831126213,
-0.04627517983317375,
-0.016555948182940483,
-0.007105336990207434,
-0.01621217280626297,
0.00439829658716917,
-0.0008908375166356564,
-0.001954407896846533,
-0.011742919683456421,
-0.014299631118774414,
0.03780019283294678,
0.04423528537154198,
-0.04107419401407242,
-0.005581863224506378,
-0.023096317425370216,
-0.030188877135515213,
-0.02052478864789009,
-0.03432841598987579,
0.0025344924069941044,
0.0052359215915203094,
0.0030264980159699917,
0.016787663102149963,
0.04317859187722206,
-0.009010323323309422,
0.02996998094022274,
-0.030398983508348465,
-0.027469322085380554,
0.028337880969047546,
0.019052807241678238,
-0.04946117848157883,
0.0009585369843989611,
0.050217919051647186,
-0.06582575291395187,
-0.05030939355492592,
-0.06499966979026794,
-0.057970453053712845,
0.02995624579489231,
0.03287460282444954,
-0.002641608938574791,
-0.04336533322930336,
-0.030714599415659904,
0.0873282328248024,
-0.0670507475733757,
-0.021121766418218613,
0.015526033006608486,
-0.051549192517995834,
0.03794886916875839,
0.011882505379617214,
-0.040485117584466934,
0.02265186607837677,
-0.04139147326350212,
0.06154851242899895,
-0.03642980381846428,
0.05970846861600876,
-0.015247284434735775,
0.030885012820363045,
-0.07105439156293869,
0.029655391350388527,
-0.04680587351322174,
0.023101676255464554,
0.03355950862169266,
-0.03446432203054428,
0.08807288855314255,
0.013262324035167694,
0.010609880089759827,
0.025236211717128754,
-0.004868404008448124,
-0.011992019601166248,
0.05133388191461563,
-0.04826909676194191,
0.021218519657850266,
0.0024335952475667,
0.05454555153846741,
-0.04362507164478302,
-0.05781855061650276,
-0.014444219879806042,
-0.03160756453871727,
-0.029948553070425987,
0.03491068631410599,
0.024603823199868202,
-0.049347616732120514,
0.046636421233415604,
0.033623386174440384,
0.03300056979060173,
0.04146695137023926,
-0.029222430661320686,
0.049654681235551834,
-0.01854635775089264,
-0.015170997940003872,
-0.0347711555659771,
-0.0443975068628788,
-0.031110769137740135,
0.031724922358989716,
0.002385850064456463,
-0.02793489769101143,
-0.049990423023700714,
0.0519423671066761,
0.00013476822641678154,
-0.03788203001022339,
0.04909130185842514,
-0.04925483837723732,
-0.06824970245361328,
-0.043963026255369186,
0.020640550181269646,
-0.008756562136113644,
0.026129888370633125,
0.02447841688990593,
-0.05892742797732353,
0.00826200656592846,
-0.07800918817520142,
-0.03242356702685356,
-0.02666420303285122,
0.028111161664128304,
-0.022540370002388954,
0.021141402423381805,
0.02448904700577259,
-0.05569514259696007,
0.0044189319014549255,
-0.003983858972787857,
-0.05354625731706619,
0.05319324508309364,
0.043310608714818954,
0.11106961965560913,
-0.06140417605638504,
-0.027735982090234756,
0.016015933826565742,
0.01162901520729065,
-0.025354526937007904,
0.02848989889025688,
0.01523040421307087,
-0.05206780508160591,
-0.026067838072776794,
-0.03092171996831894,
0.05828847363591194,
-0.04961496591567993,
0.01296584028750658,
0.034972600638866425,
0.007123297546058893,
0.051288530230522156,
-0.03859062120318413,
0.012412567622959614,
0.0011650428641587496,
-0.007759472820907831,
-0.04993772879242897,
0.04900132119655609,
-0.0035509371664375067,
-0.014734365977346897,
-0.027150051668286324,
-0.049179673194885254,
-0.014035635627806187,
0.10922301560640335,
-0.0027745922561734915,
-0.017320644110441208,
-0.01887372136116028,
0.005559344310313463,
0.021148066967725754,
0.04715448617935181,
-0.04210575670003891,
0.018805215135216713,
0.05476408451795578,
0.02278883568942547,
-0.03318134322762489,
0.09727030992507935,
-0.019734306260943413,
-0.03467950224876404,
-0.015316932462155819,
-0.005646086297929287,
0.004785207565873861,
-0.02763509936630726,
0.040069662034511566,
0.039035215973854065,
-0.02038571424782276,
-0.010951573960483074,
-0.003116168547421694,
0.060712363570928574,
-0.00020879819930996746,
-0.006606454029679298,
0.006142915226519108,
-0.01163562759757042,
-0.05527077987790108,
0.06712163239717484,
-0.03897561877965927,
0.0014563003787770867,
-0.024026114493608475,
0.0009125899523496628,
0.008645134046673775,
0.020535286515951157,
0.03498971462249756,
0.03486450016498566,
-0.041147444397211075,
0.0863681510090828,
-0.03263268247246742,
0.008215711452066898,
-0.03900724649429321,
-0.048609327524900436,
0.009753040969371796,
0.042202938348054886,
0.007992434315383434,
0.040031105279922485,
-0.008774487301707268,
-0.03889545798301697,
0.0215623676776886,
0.029702620580792427,
0.05160798504948616,
0.035793762654066086,
-0.024009928107261658,
-0.01706463284790516,
0.01373331155627966,
0.05945069342851639,
-0.08963721245527267,
-0.03779773414134979,
0.04071073979139328,
0.05508695915341377,
-0.04249238967895508,
0.037903495132923126,
-0.006666029337793589,
0.03458193317055702,
-0.031805701553821564,
-0.0744834691286087,
0.036009982228279114,
0.02122632972896099,
0.018261592835187912,
0.014516165480017662,
-0.010812895372509956,
0.007901489734649658,
0.015547486953437328,
0.01610882766544819,
-0.01686466857790947,
-0.0422973558306694,
0.005450661759823561,
0.017479607835412025,
0.08503665030002594,
-0.02965020202100277,
0.038339726626873016,
-0.009489393793046474,
0.02439207211136818,
0.023004360496997833,
-0.028679044917225838,
0.010585482232272625,
0.026990652084350586,
-0.005719824694097042,
-0.03444752097129822,
0.05711072310805321,
-0.0034539340995252132,
0.023869242519140244,
0.0735233873128891,
-0.002649516798555851,
0.053114574402570724,
-0.01146819069981575,
0.05632515624165535,
0.05819958075881004,
0.014856421388685703,
0.0224344190210104,
0.014144382439553738,
0.07523366808891296,
-0.010347554460167885,
-0.013667631894350052,
0.06488215178251266,
-0.04502440616488457,
0.026041695848107338,
-0.03380176052451134,
0.014230203814804554,
-0.0027351558674126863,
-0.02707585133612156,
0.035372309386730194,
0.01644660159945488,
-0.007864859886467457,
-0.009572348557412624,
0.00538447592407465,
-0.0014062289847061038,
0.04783982038497925,
-0.01709022931754589,
-0.04134906083345413,
-0.004857615567743778,
0.0003799200931098312,
0.009393360465765,
-0.07386517524719238,
-0.003313586814329028,
-0.020124154165387154,
-0.019751206040382385,
0.006573428865522146,
-0.08352182805538177,
-0.04374697059392929,
-0.06568089127540588,
-0.021038683131337166,
0.040571603924036026,
-0.0002802294911816716,
0.0029265377670526505,
-0.031216086819767952,
0.03163475915789604,
-0.04047578200697899,
-0.035379279404878616,
-0.04183564335107803,
-0.06129669398069382,
-0.001856511109508574,
-0.02584303729236126,
0.048326414078474045,
0.011320681311190128,
0.018455510959029198,
0.017380377277731895,
0.00915091298520565,
-0.032442498952150345,
-0.04266785830259323,
0.05339406803250313,
0.03183585777878761,
-0.014778335578739643,
-0.066551074385643,
0.02748032659292221,
-0.002552236896008253,
-0.002369952155277133,
-0.025176020339131355,
-0.06677722930908203,
0.07007135450839996,
0.07787548005580902,
0.02368905022740364,
0.015654798597097397,
-0.018284685909748077,
-0.04865175858139992,
-0.0465133860707283,
-0.026905760169029236,
-0.038080569356679916,
-0.03204917907714844,
-0.0007483686786144972,
-0.031874846667051315,
-0.051476746797561646,
-0.04498589038848877,
-0.017772745341062546,
-0.01334524154663086,
0.009585813619196415,
0.047484830021858215,
0.06998700648546219,
0.02769087441265583,
0.044214263558387756,
-0.0446331650018692,
-0.027717377990484238,
0.06369492411613464,
0.018525801599025726,
-0.009809930808842182,
-0.06819622218608856,
-0.02774851955473423,
0.02356155961751938,
0.018437443301081657,
-0.013811016455292702,
0.006084984168410301,
0.0623055063188076,
0.003727211616933346,
-0.0006154656293801963,
0.020346831530332565,
0.007343221455812454,
-0.036485880613327026,
-0.02326403744518757,
0.005929977633059025,
0.00899985246360302,
-0.04814395681023598,
-0.02588677778840065,
0.0072869001887738705,
0.07184440642595291,
-0.0335976667702198,
-0.052289389073848724,
-0.0042691780254244804,
0.038819290697574615,
0.019580215215682983,
-0.0009315374190919101,
-0.02766439877450466,
0.015554944053292274,
-0.04890041425824165,
-0.04103037714958191,
0.007250138092786074,
-0.023267440497875214,
0.0065225823782384396,
0.036327458918094635,
0.019045893102884293,
-0.006571742240339518,
0.03163199871778488,
0.0182519368827343,
0.05239729583263397,
0.018806027248501778,
-0.024451320990920067,
-0.008345949463546276,
-0.02325599454343319,
0.0380847193300724,
0.004483471158891916,
-0.04176051542162895,
-0.06375206261873245,
-0.09092815220355988,
-0.007668411359190941,
0.01755627803504467,
-0.024855345487594604,
-0.01835598796606064,
0.028519736602902412,
-0.019660886377096176,
-0.015995845198631287,
0.02349848300218582,
0.02653493918478489,
0.03173217549920082,
-0.016880445182323456,
0.06688766926527023,
0.004059399012476206,
0.028138000518083572,
-0.0457022599875927,
0.02521350048482418,
-0.0457296147942543,
0.004016199614852667,
-0.006438537500798702,
0.07017369568347931,
0.025475341826677322,
0.0401727594435215,
0.06625779718160629,
0.042533598840236664,
-0.031120002269744873,
0.04362351447343826,
0.0450226254761219,
-0.008287375792860985,
-0.04096202179789543,
0.01890338584780693,
-0.00762481614947319,
-0.014328471384942532,
0.020905639976263046,
-0.005613815505057573,
-0.006427748594433069,
0.024796590209007263,
0.0071676126681268215,
0.010814749635756016,
-0.003104529343545437,
-0.022577710449695587,
-0.03833400085568428,
-0.05060986801981926,
-0.024982675909996033,
0.015515769831836224,
-0.021370798349380493,
0.03747844323515892,
0.05840398743748665,
0.015890028327703476,
0.08254371583461761,
0.06873474270105362,
-0.011568469926714897,
-0.05369781330227852,
-0.0016460014740005136,
0.025469377636909485,
-0.04329342022538185,
-0.06148789823055267,
-0.03294578567147255,
0.05330681428313255,
0.05164968594908714,
0.008432428352534771,
-0.09128055721521378,
0.02084300108253956,
0.06669092178344727,
-0.03358593210577965,
0.041392795741558075,
-0.006783981807529926,
0.04326391965150833,
0.05051909759640694,
-0.031541407108306885,
0.000034993870940525085,
-0.02129674330353737,
-0.007354050409048796,
0.01142178289592266,
0.01585603691637516,
-0.028796300292015076,
-0.0328320637345314,
-0.0413973294198513,
0.02737550623714924,
0.02691456861793995,
0.04474484920501709,
0.03808717802166939,
-0.02007381245493889,
-0.04594074562191963,
0.015828724950551987,
0.019243773072957993,
-0.04047676920890808,
-0.0025220580864697695,
0.024195248261094093,
0.05622095614671707,
-0.04396612569689751,
-0.006361339241266251,
-0.012757965363562107,
0.0033526099286973476,
0.021046796813607216,
0.01031727809458971,
-0.03856511786580086,
-0.042422134429216385,
0.024407492950558662,
0.007996800355613232,
-0.017727715894579887,
-0.08403690904378891,
0.03043241612613201,
-0.027253631502389908,
0.011557786725461483,
0.048273324966430664,
0.027490438893437386,
-0.01447041891515255,
0.06156981363892555,
-0.0049241045489907265,
0.033631332218647,
-0.011403209529817104,
0.029355665668845177,
-0.011282525025308132,
-0.010081547312438488,
-0.01938324235379696,
-0.05340001359581947,
-0.005607053637504578,
-0.028566626831889153,
-0.02791464328765869,
-0.025710055604577065,
-0.03638899698853493,
0.00235134270042181,
-0.03162160888314247,
-0.008007291704416275,
-0.02987990900874138,
0.03253179043531418,
-0.024016449227929115,
-0.011165128089487553,
-0.043377719819545746,
-0.05652410909533501,
-0.06022963300347328,
-0.03931659832596779,
0.0032412000000476837,
0.014430968090891838,
0.009528858587145805,
0.01574169658124447,
0.027730310335755348,
0.024332178756594658,
0.013370828703045845,
-0.013563599437475204,
0.023393040522933006,
0.01768137887120247,
-0.026864267885684967,
-0.05078565329313278,
0.0016627328004688025,
0.03619353100657463,
0.017532633617520332,
-0.00482276501134038,
0.06145516782999039,
0.025015948340296745,
-0.032628122717142105,
-0.011441463604569435,
0.05861460417509079,
0.021921375766396523,
-0.07557400315999985,
-0.028030678629875183,
-0.013654213398694992,
-0.03803396597504616,
0.05067149177193642,
0.004593486897647381,
-0.00009171543206321076,
0.03796974942088127,
0.047618404030799866,
0.018389396369457245,
-0.03744225203990936,
-0.028581099584698677,
0.017464477568864822,
-0.02032260224223137,
0.030440855771303177,
-0.06582359969615936,
0.038493562489748,
-0.03840378299355507,
0.016561293974518776,
-0.01652868278324604,
-0.020720021799206734,
-0.019396832212805748,
0.048131562769412994,
0.008259144611656666,
-0.02301691100001335,
-0.016501929610967636,
0.027633879333734512,
-0.02986152656376362,
0.03025192767381668,
0.00021402098354883492,
0.03066393733024597,
-0.019528169184923172,
0.06602737307548523,
-0.05733989551663399,
-0.019454604014754295,
-0.04225435480475426,
-0.029255982488393784,
-0.014955757185816765,
-0.05138629674911499,
-0.034559108316898346,
-0.03486555442214012,
0.03127812594175339,
0.022122196853160858,
0.05130677670240402,
0.030735699459910393,
0.0230740737169981,
-0.0041505154222249985,
0.024516550824046135,
-0.07463882863521576,
-0.02707855775952339,
-0.004943869076669216,
0.017067722976207733,
-0.00261348532512784,
0.05970476567745209,
0.0346134714782238,
-0.05249001830816269,
-0.06349823623895645,
0.0317862331867218,
0.016244972124695778,
0.014706745743751526,
0.020170988515019417,
0.060248177498579025,
0.04138926789164543,
0.04417824000120163,
-0.03975745290517807,
0.010784648358821869,
-0.00990164652466774,
-0.019234931096434593,
0.03482573479413986,
0.0009687652345746756,
0.019016603007912636,
0.0035729254595935345,
-0.030742386355996132,
-0.011100677773356438,
0.08041797578334808,
0.04789271205663681,
0.009791015647351742,
0.015119141899049282,
-0.029151972383260727,
0.012049391865730286,
0.005701125133782625,
-0.050925493240356445,
0.005277843214571476,
0.001970651326701045,
-0.0361429788172245,
0.0654916986823082,
-0.011740484274923801,
0.04112885147333145,
0.025083715096116066,
0.02000431902706623,
-0.002169353887438774,
0.04642121493816376,
-0.0556614063680172,
0.023959634825587273,
0.04325302690267563,
-0.03728337585926056,
0.006770229898393154,
-0.02667485736310482,
0.07104550302028656,
-0.07853391766548157,
0.06750603020191193,
0.020139619708061218,
0.020336495712399483,
0.001966618001461029,
-0.04191039502620697,
-0.024704527109861374,
0.008330478332936764,
-0.05225394293665886,
0.06951671838760376,
0.005659337621182203,
-0.06494838744401932,
0.04100582376122475,
0.032155439257621765,
-0.07502792030572891,
0.08766739815473557,
0.038589801639318466,
0.047926731407642365,
0.04631231725215912,
0.039227861911058426,
-0.059441205114126205,
-0.0035350003745406866,
-0.021393651142716408,
0.036150336265563965,
-0.06649050861597061,
0.007359031122177839,
0.02719162590801716,
-0.03523196280002594,
0.004758950788527727,
0.03060423582792282,
-0.016455035656690598,
0.009134264662861824,
-0.012738781049847603,
-0.052028220146894455,
-0.04420917108654976,
-0.007397617679089308,
0.018354300409555435,
-0.018905796110630035,
0.02052580565214157,
-0.04422455281019211,
0.012036985717713833,
-0.01229262724518776,
-0.01345127820968628,
-0.05653976649045944,
0.01069584395736456,
0.03159197419881821,
-0.07049410790205002,
-0.031343523412942886,
0.04078732803463936,
-0.00810668058693409,
-0.0017379167256876826,
0.03366192802786827,
-0.007977217435836792,
0.017232980579137802,
0.027535073459148407,
-0.0014218169962987304,
0.016052432358264923,
-0.06440538167953491,
-0.0073057482950389385,
0.00790469255298376,
-0.01656121388077736,
0.027593957260251045,
-0.02987677976489067,
0.027835918590426445,
0.04280581325292587,
0.030248112976551056,
0.039196860045194626,
-0.04376807436347008,
-0.03897489979863167,
0.03129725903272629,
-0.04073803499341011,
0.017900774255394936,
0.017735838890075684,
-0.029931098222732544,
-0.029772263020277023,
0.00592580484226346,
-0.01004757545888424,
0.039021220058202744,
-0.046918824315071106,
-0.003343099495396018,
0.001749625662341714,
-0.02772362157702446,
-0.040324293076992035,
-0.0527837797999382,
-0.02541222982108593,
-0.030571848154067993,
0.056894272565841675,
0.0007444106158800423,
-0.020626461133360863,
0.03679561987519264,
-0.04244738817214966,
-0.045552074909210205,
0.02941906452178955,
0.0006776758818887174,
-0.02636914700269699,
0.059351224452257156,
0.034548595547676086,
-0.03915120288729668,
0.017060883343219757,
0.025919316336512566,
-0.02762674167752266,
0.004369513597339392,
0.005054888781160116,
0.00946960598230362,
0.012604628689587116,
0.02080930396914482,
-0.017688097432255745,
-0.009103011339902878,
-0.04308752715587616,
-0.04378180950880051,
-0.0349029004573822,
-0.005907418206334114,
0.05254238471388817
] |
CAMeL-Lab/bert-base-arabic-camelbert-mix-pos-egy | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 62 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: 'عامل ايه ؟'
---
# CAMeLBERT-Mix POS-EGY Model
## Model description
**CAMeLBERT-Mix POS-EGY Model** is a Egyptian Arabic POS tagging model that was built by fine-tuning the [CAMeLBERT-Mix](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-mix/) model.
For the fine-tuning, we used the ARZTB dataset .
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-Mix POS-EGY model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> pos = pipeline('token-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-mix-pos-egy')
>>> text = 'عامل ايه ؟'
>>> pos(text)
[{'entity': 'adj', 'score': 0.9972628, 'index': 1, 'word': 'عامل', 'start': 0, 'end': 4}, {'entity': 'pron_interrog', 'score': 0.9525163, 'index': 2, 'word': 'ايه', 'start': 5, 'end': 8}, {'entity': 'punc', 'score': 0.99869114, 'index': 3, 'word': '؟', 'start': 9, 'end': 10}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
0.004900260362774134,
0.0003382728318683803,
-0.013093364425003529,
0.038628119975328445,
0.047927290201187134,
0.0324653685092926,
-0.00009910540393320844,
-0.004580098204314709,
-0.008870751596987247,
0.07670558243989944,
0.016278604045510292,
-0.026980789378285408,
0.002318092854693532,
0.03857904672622681,
-0.0412370003759861,
-0.03494401276111603,
0.003915043547749519,
-0.018369950354099274,
-0.05507635325193405,
-0.019760049879550934,
0.007124008145183325,
0.012000467628240585,
-0.009459910914301872,
0.0029404249507933855,
-0.012126006186008453,
0.023346928879618645,
-0.017302600666880608,
0.05158635973930359,
0.03634746000170708,
-0.06674554198980331,
-0.019569991156458855,
-0.014132615178823471,
-0.021090853959321976,
-0.019871385768055916,
-0.039058852940797806,
-0.0010023468639701605,
0.005768962670117617,
-0.010810662992298603,
0.028217460960149765,
0.06356674432754517,
-0.02763037011027336,
0.019679659977555275,
-0.003373952815309167,
-0.042257264256477356,
0.058526862412691116,
0.014215140603482723,
-0.02624729834496975,
-0.0025581803638488054,
0.04623979702591896,
-0.03348657488822937,
-0.07114730030298233,
-0.04742938280105591,
-0.0454917773604393,
0.024581359699368477,
0.008601629175245762,
-0.010451607406139374,
-0.03566335514187813,
-0.020531224086880684,
0.07859206199645996,
-0.06364724040031433,
-0.03824501112103462,
-0.0010749716311693192,
-0.0551324337720871,
0.02974177710711956,
0.021098725497722626,
-0.025510482490062714,
0.008368290029466152,
-0.044676993042230606,
0.05498366057872772,
-0.0346762053668499,
0.048218466341495514,
-0.007600968703627586,
0.019726337864995003,
-0.0786350890994072,
0.0213633980602026,
-0.025470638647675514,
0.03882987052202225,
0.0343925878405571,
-0.02522951550781727,
0.07698184996843338,
0.02023804932832718,
0.007010715082287788,
0.029670609161257744,
-0.007644050754606724,
-0.014477509073913097,
0.02777562290430069,
-0.0547158382833004,
0.001225614338181913,
0.016081174835562706,
0.04004480317234993,
-0.043554969131946564,
-0.051631905138492584,
-0.01943124271929264,
-0.04259933531284332,
-0.014949537813663483,
0.026182133704423904,
0.020184088498353958,
-0.02039608545601368,
0.06558641791343689,
0.027794335037469864,
0.012294968590140343,
0.04905640333890915,
-0.020344898104667664,
0.059818387031555176,
-0.02126721478998661,
-0.010365336202085018,
-0.02581326849758625,
-0.03686688840389252,
-0.02954741381108761,
0.04159129410982132,
0.013925060629844666,
-0.02982097677886486,
-0.06128445640206337,
0.042119789868593216,
-0.012640212662518024,
-0.02071002498269081,
0.047509126365184784,
-0.03819795697927475,
-0.0505870021879673,
-0.03678731992840767,
0.04601619392633438,
-0.0011543318396434188,
0.009798511862754822,
0.009430420584976673,
-0.05077196657657623,
-0.011240633204579353,
-0.07069865614175797,
-0.019459884613752365,
-0.030271507799625397,
0.026577234268188477,
-0.011074700392782688,
0.031309276819229126,
0.011623627506196499,
-0.046084433794021606,
0.0069586667232215405,
-0.006095984950661659,
-0.06497763842344284,
0.04556054621934891,
0.04381287470459938,
0.10871297866106033,
-0.05693795159459114,
-0.03313170745968819,
0.008473241701722145,
0.00517339026555419,
-0.03203838691115379,
-0.002723030047491193,
0.005383174866437912,
-0.03226713463664055,
-0.021160360425710678,
-0.020521460101008415,
0.08008576184511185,
-0.047730594873428345,
0.01660432480275631,
0.04433921352028847,
-0.005668081343173981,
0.033349890261888504,
-0.03633958101272583,
-0.009833085350692272,
0.007140173111110926,
-0.0013064758386462927,
-0.038884736597537994,
0.04555535688996315,
-0.005056616850197315,
-0.020610256120562553,
-0.039377517998218536,
-0.047280605882406235,
-0.0000037250770219543483,
0.08428533375263214,
-0.009443605318665504,
-0.0011450171004980803,
-0.025430211797356606,
0.009051311761140823,
0.043839722871780396,
0.01974514126777649,
-0.058029476553201675,
0.029000146314501762,
0.06053199991583824,
0.0011336724273860455,
-0.03895757347345352,
0.0871410146355629,
0.012048294767737389,
-0.018119217827916145,
-0.00887974165380001,
-0.01863308623433113,
-0.0049219136126339436,
-0.030682193115353584,
0.038292448967695236,
0.01880848966538906,
-0.016866426914930344,
-0.0370728075504303,
-0.011025575920939445,
0.0692468136548996,
0.015565966255962849,
0.017963554710149765,
-0.010125845670700073,
-0.029150979593396187,
-0.04366477578878403,
0.04732893034815788,
-0.011061078868806362,
0.0028564399108290672,
-0.026861611753702164,
0.0031308827456086874,
0.000043871812522411346,
0.041974905878305435,
0.045053787529468536,
0.04254278540611267,
-0.024926939979195595,
0.07068885117769241,
-0.031400054693222046,
0.019837671890854836,
-0.03871295228600502,
-0.03471962362527847,
-0.002638800535351038,
0.03315294161438942,
0.02495359629392624,
0.03811224550008774,
-0.015617191791534424,
-0.03114481270313263,
0.029199229553341866,
0.04093094542622566,
0.04154711961746216,
0.025269227102398872,
-0.028770923614501953,
-0.01606151834130287,
0.03050859645009041,
0.06459815800189972,
-0.0803697258234024,
-0.045782074332237244,
0.0366094633936882,
0.03482351452112198,
-0.05334655940532684,
0.021415211260318756,
-0.020515887066721916,
0.04154512286186218,
-0.044785261154174805,
-0.050127752125263214,
0.04787762463092804,
0.026685597375035286,
-0.008758030831813812,
0.028167301788926125,
-0.01209282223135233,
-0.02249027229845524,
0.018490901216864586,
0.022972315549850464,
-0.020381243899464607,
-0.03892921656370163,
0.00567827420309186,
0.022225838154554367,
0.07087452709674835,
-0.03273896500468254,
0.024869432672858238,
0.011051706969738007,
0.025324128568172455,
0.048406124114990234,
-0.043731700628995895,
0.02652376890182495,
0.028744099661707878,
0.003932812251150608,
-0.025415610522031784,
0.042079828679561615,
-0.010061141103506088,
0.01602322980761528,
0.05522716045379639,
-0.0020727303344756365,
0.06589191406965256,
-0.019655674695968628,
0.04855045676231384,
0.0758022740483284,
0.017513331025838852,
0.011277463287115097,
0.00919788796454668,
0.08486241847276688,
0.006467208731919527,
-0.011348278261721134,
0.06558312475681305,
-0.05170563608407974,
0.020634982734918594,
-0.04411560669541359,
0.0013828492956236005,
-0.011417195200920105,
-0.02329745702445507,
0.045840878039598465,
0.018521873280405998,
-0.011356783099472523,
-0.02259693667292595,
-0.015045339241623878,
-0.01048562303185463,
0.031324226409196854,
-0.025615420192480087,
-0.04157557338476181,
-0.00003333222775836475,
-0.007495956029742956,
0.011226089671254158,
-0.06782982498407364,
-0.015862278640270233,
-0.02529509738087654,
-0.03843789920210838,
-0.0017002056119963527,
-0.07905026525259018,
-0.02552460879087448,
-0.06951764971017838,
-0.01024851854890585,
0.03712970390915871,
-0.003984249196946621,
0.004024682100862265,
-0.047447267919778824,
0.0375576950609684,
-0.0463695265352726,
-0.04213104769587517,
-0.03919793665409088,
-0.0753973051905632,
-0.019868122413754463,
-0.03625834733247757,
0.0415634922683239,
0.014470777474343777,
0.006001087836921215,
0.006732782814651728,
0.026934949681162834,
-0.02276887744665146,
-0.033400312066078186,
0.03327260538935661,
0.02820533886551857,
-0.026041850447654724,
-0.06438799202442169,
0.04690612852573395,
-0.01525211613625288,
-0.0007208305760286748,
-0.024332629516720772,
-0.06803996115922928,
0.081819087266922,
0.07642870396375656,
0.01989862695336342,
0.00942578911781311,
-0.018742386251688004,
-0.05246530845761299,
-0.03724674880504608,
-0.03427613899111748,
-0.034117236733436584,
-0.013970855623483658,
0.005870158784091473,
-0.029774518683552742,
-0.01994856260716915,
-0.04392772167921066,
-0.0019317191326990724,
-0.006980101112276316,
0.02541145496070385,
0.029685402289032936,
0.04486425593495369,
0.03309230878949165,
0.06357138603925705,
-0.028906390070915222,
-0.0232772845774889,
0.06704986840486526,
0.012172572314739227,
-0.003156631952151656,
-0.07124228030443192,
-0.03723889961838722,
0.036203883588314056,
0.01984328217804432,
0.00006905573536641896,
0.002823715563863516,
0.06410426646471024,
0.01226869598031044,
-0.0023251441307365894,
0.018858056515455246,
-0.011293690651655197,
-0.04102224484086037,
-0.015171527862548828,
0.00433287164196372,
0.0037408049684017897,
-0.048687905073165894,
-0.007768332026898861,
0.00625553959980607,
0.05297699198126793,
-0.04793734848499298,
-0.07106445729732513,
-0.0013458472676575184,
0.06519444286823273,
0.007403856609016657,
-0.0011640932643786073,
-0.021267812699079514,
0.008199909701943398,
-0.0417151115834713,
-0.0363488495349884,
-0.0011232438264414668,
0.006625740323215723,
0.02005377598106861,
0.030659543350338936,
0.01793033443391323,
-0.013534636236727238,
0.0345052145421505,
0.02906862646341324,
0.052308790385723114,
0.013457836583256721,
-0.024061955511569977,
0.00902362260967493,
-0.026594139635562897,
0.027270296588540077,
0.004979544319212437,
-0.025546768680214882,
-0.0417061485350132,
-0.10188008099794388,
-0.006035021040588617,
0.0009588183602318168,
-0.028815291821956635,
-0.009236310608685017,
0.041252877563238144,
-0.02183377370238304,
-0.011462445370852947,
-0.0025430868845432997,
0.01778898760676384,
0.04201044514775276,
-0.03229280561208725,
0.05352920666337013,
-0.001315183937549591,
0.03710411489009857,
-0.03226220980286598,
0.042937271296978,
-0.03723852336406708,
-0.0007424454088322818,
-0.012505716644227505,
0.05420990660786629,
0.03486737981438637,
0.03599207475781441,
0.06912975013256073,
0.04281757399439812,
-0.036660123616456985,
0.04073844850063324,
0.054263677448034286,
-0.009384364821016788,
-0.055905554443597794,
-0.0014264230849221349,
-0.0023900545202195644,
-0.010998036712408066,
0.006984136998653412,
-0.009003733284771442,
-0.011677955277264118,
0.02784767374396324,
0.000585577916353941,
0.01770782470703125,
-0.007721305824816227,
-0.029357386752963066,
-0.048770952969789505,
-0.067264623939991,
-0.03739636763930321,
0.0164879709482193,
-0.021985948085784912,
0.029994800686836243,
0.04071328043937683,
0.015259109437465668,
0.07598188519477844,
0.0724448412656784,
-0.013910641893744469,
-0.0478147491812706,
0.012981087900698185,
0.024896401911973953,
-0.017616065219044685,
-0.06405891478061676,
-0.06399081647396088,
0.060917872935533524,
0.04509273171424866,
0.011201704852283001,
-0.07740813493728638,
-0.000475992972496897,
0.05296069756150246,
-0.019052594900131226,
0.06297799199819565,
0.0003940252645406872,
0.04716380313038826,
0.06176639348268509,
-0.03269929438829422,
0.01928507536649704,
-0.04804249107837677,
0.007495558355003595,
-0.0013197744265198708,
0.005821636412292719,
-0.03312178701162338,
-0.03057488054037094,
-0.05050649121403694,
0.0262775719165802,
0.040892913937568665,
0.04847743362188339,
0.04497920721769333,
-0.011345935985445976,
-0.05191938951611519,
0.0032658574637025595,
0.008809827268123627,
-0.044086795300245285,
0.0034526288509368896,
0.0285910926759243,
0.0321492925286293,
-0.04153677821159363,
-0.0036244187504053116,
-0.017355406656861305,
-0.0028307801112532616,
0.013354582712054253,
0.0030673411674797535,
-0.056905876845121384,
-0.04327128827571869,
0.00668962812051177,
-0.031024841591715813,
-0.01416257955133915,
-0.0988391861319542,
0.05548221990466118,
-0.04354994744062424,
0.0018139968160539865,
0.042954497039318085,
0.029345033690333366,
0.01319856196641922,
0.050935205072164536,
-0.009990536607801914,
0.02271748147904873,
-0.030560025945305824,
0.016571875661611557,
-0.009700793772935867,
-0.019911548122763634,
-0.015898291021585464,
-0.07653690874576569,
-0.0050248270854353905,
-0.021429365500807762,
-0.03308979049324989,
-0.03277812525629997,
-0.015580182895064354,
0.007309501525014639,
-0.009374911896884441,
0.009958199225366116,
-0.019672788679599762,
0.040568094700574875,
-0.03208812698721886,
-0.01739429123699665,
-0.013647501356899738,
-0.03759824112057686,
-0.08703108131885529,
-0.05961984023451805,
-0.012673569843173027,
0.0106408866122365,
0.032922372221946716,
0.03236587345600128,
0.014676842838525772,
0.006989086512476206,
0.015955548733472824,
-0.01796107366681099,
0.01787610724568367,
0.0063966079615056515,
-0.02799968048930168,
-0.03980488330125809,
-0.007109574507921934,
0.0354062058031559,
0.05035988613963127,
-0.01010826975107193,
0.03701091185212135,
0.03936045616865158,
-0.0390816330909729,
0.00512763811275363,
0.03280174732208252,
0.010748480446636677,
-0.06504032015800476,
-0.03497090935707092,
-0.020258920267224312,
-0.04361184313893318,
0.02800457924604416,
-0.015961529687047005,
-0.012768656015396118,
0.01178355235606432,
0.037559185177087784,
0.02770509570837021,
-0.008989814668893814,
-0.03160155564546585,
0.009073319844901562,
-0.036534201353788376,
0.026841802522540092,
-0.04750974103808403,
0.062112387269735336,
-0.03354446589946747,
0.01570473238825798,
0.004401892423629761,
-0.035529520362615585,
-0.017158634960651398,
0.044510677456855774,
0.004218618385493755,
-0.01934017427265644,
-0.01819482445716858,
0.02064293622970581,
-0.020034249871969223,
0.034476056694984436,
0.012457490898668766,
0.024806855246424675,
-0.0056830462999641895,
0.029916923493146896,
-0.044609434902668,
-0.0010405018692836165,
-0.02709835208952427,
0.008122053928673267,
-0.027688398957252502,
-0.03282118961215019,
-0.008892339654266834,
-0.06191902235150337,
0.029956551268696785,
0.004876676481217146,
0.04498010128736496,
0.029088212177157402,
0.002120982389897108,
-0.001904694247059524,
0.018260914832353592,
-0.05286507308483124,
-0.010362728498876095,
-0.01933501660823822,
0.035363998264074326,
0.019572820514440536,
0.07103142887353897,
0.04421801120042801,
-0.03510340675711632,
-0.04575987905263901,
0.0388469472527504,
0.018102407455444336,
0.026709172874689102,
0.012499414384365082,
0.05973600968718529,
0.04033786803483963,
0.05609382316470146,
-0.037856344133615494,
0.00856457557529211,
-0.015241187065839767,
-0.01692977547645569,
0.008004609495401382,
0.013460427522659302,
0.026227256283164024,
0.005441450513899326,
-0.04042903706431389,
-0.010019887238740921,
0.07994142919778824,
0.036856893450021744,
-0.004107649903744459,
0.005831289570778608,
-0.01818443275988102,
0.028814192861318588,
-0.0024782123509794474,
-0.06317470967769623,
-0.01625717803835869,
0.021602917462587357,
-0.049993567168712616,
0.09347426146268845,
-0.024201447144150734,
0.028320930898189545,
0.013295624405145645,
0.02483408898115158,
0.012554367072880268,
0.05852394551038742,
-0.044864848256111145,
0.04145001247525215,
0.04694638028740883,
-0.03613794595003128,
0.015398876741528511,
-0.028675587847828865,
0.06238758563995361,
-0.06888813525438309,
0.05939944460988045,
0.02277975156903267,
0.017137007787823677,
0.012694663368165493,
-0.026483580470085144,
-0.03431922197341919,
0.02096901275217533,
-0.042026273906230927,
0.07649854570627213,
-0.010781227611005306,
-0.05238020792603493,
0.042044319212436676,
0.03400706127285957,
-0.06427404284477234,
0.07273123413324356,
0.03540796414017677,
0.06342763453722,
0.04067783057689667,
0.047895804047584534,
-0.0695900246500969,
0.010177482850849628,
-0.03354225307703018,
0.0391213558614254,
-0.07920622825622559,
0.011277790181338787,
0.029586289077997208,
-0.04143248870968819,
-0.01244176086038351,
0.03957695513963699,
0.013143393211066723,
-0.010662933811545372,
0.00844237394630909,
-0.04746691510081291,
-0.048218827694654465,
-0.015517763793468475,
0.013267368078231812,
-0.04106921702623367,
0.021428655833005905,
-0.05339636653661728,
0.013759802095592022,
-0.007670159917324781,
-0.023571766912937164,
-0.05417612940073013,
0.012859080918133259,
0.05298401415348053,
-0.07399608194828033,
-0.031127968803048134,
0.045138273388147354,
0.0001528318243799731,
-0.020432520657777786,
0.03712997958064079,
-0.0027240028139203787,
0.03716776520013809,
0.02540717087686062,
0.010798759758472443,
0.030715592205524445,
-0.05323850363492966,
-0.017198441550135612,
0.023894332349300385,
-0.016793154180049896,
0.019409799948334694,
-0.023046113550662994,
0.03771403059363365,
0.07205463945865631,
0.034787122160196304,
0.006690955255180597,
-0.05027967318892479,
-0.0270210150629282,
0.010837318375706673,
-0.04936034604907036,
0.025716884061694145,
0.001511352602392435,
-0.03651405870914459,
-0.045904237776994705,
-0.013211402110755444,
-0.020174995064735413,
0.030478714033961296,
-0.03298540040850639,
0.0019902759231626987,
0.022905144840478897,
-0.02466903068125248,
-0.044552698731422424,
-0.08254478126764297,
-0.026975132524967194,
-0.04219842702150345,
0.041261810809373856,
0.022250177338719368,
-0.030842160806059837,
0.015564566478133202,
-0.04369499906897545,
-0.05924774706363678,
0.04112578555941582,
0.007153965998440981,
-0.03216281905770302,
0.07007838040590286,
0.036061856895685196,
-0.04171659052371979,
0.018891189247369766,
0.03442426398396492,
-0.02829967997968197,
0.0006846222095191479,
0.007578787859529257,
0.003974677994847298,
0.03114917315542698,
0.036852434277534485,
-0.026834478601813316,
-0.010656535625457764,
-0.0506516769528389,
-0.04415960982441902,
-0.038323525339365005,
-0.020113449543714523,
0.06439222395420074
] |
CAMeL-Lab/bert-base-arabic-camelbert-mix-pos-glf | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 132 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: 'شلونك ؟ شخبارك ؟'
---
# CAMeLBERT-Mix POS-GLF Model
## Model description
**CAMeLBERT-Mix POS-GLF Model** is a Gulf Arabic POS tagging model that was built by fine-tuning the [CAMeLBERT-Mix](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-mix/) model.
For the fine-tuning, we used the [Gumar](https://camel.abudhabi.nyu.edu/annotated-gumar-corpus/) dataset .
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-Mix POS-GLF model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> pos = pipeline('token-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-mix-pos-glf')
>>> text = 'شلونك ؟ شخبارك ؟'
>>> pos(text)
[{'entity': 'pron_interrog', 'score': 0.82657206, 'index': 1, 'word': 'شلون', 'start': 0, 'end': 4}, {'entity': 'prep', 'score': 0.9771731, 'index': 2, 'word': '##ك', 'start': 4, 'end': 5}, {'entity': 'punc', 'score': 0.9999568, 'index': 3, 'word': '؟', 'start': 6, 'end': 7}, {'entity': 'noun', 'score': 0.9977217, 'index': 4, 'word': 'ش', 'start': 8, 'end': 9}, {'entity': 'noun', 'score': 0.99993783, 'index': 5, 'word': '##خبار', 'start': 9, 'end': 13}, {'entity': 'prep', 'score': 0.5309442, 'index': 6, 'word': '##ك', 'start': 13, 'end': 14}, {'entity': 'punc', 'score': 0.9999575, 'index': 7, 'word': '؟', 'start': 15, 'end': 16}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
0.012303389608860016,
-0.004682254511862993,
-0.010784881189465523,
0.036009885370731354,
0.06130979210138321,
0.02831057459115982,
-0.005034447181969881,
-0.00044356859871186316,
-0.0049822526052594185,
0.07695616781711578,
0.01706065982580185,
-0.030836312100291252,
0.003982750233262777,
0.04022803157567978,
-0.03921549767255783,
-0.04286614805459976,
0.0004063646774739027,
-0.020150600001215935,
-0.058536019176244736,
-0.02232419140636921,
0.0037854891270399094,
0.002088654087856412,
-0.007064240984618664,
0.00160115712787956,
-0.013959068804979324,
0.025799524039030075,
-0.013983061537146568,
0.05296952649950981,
0.036508508026599884,
-0.06605889648199081,
-0.018309490755200386,
-0.01664418913424015,
-0.016366280615329742,
-0.0254066064953804,
-0.04368080943822861,
-0.003769972361624241,
0.01742525026202202,
-0.0005651055253110826,
0.02008904702961445,
0.05616946518421173,
-0.02422192320227623,
0.02296859212219715,
-0.003813980147242546,
-0.039756644517183304,
0.04823101684451103,
0.006931984331458807,
-0.031010890379548073,
0.003705727867782116,
0.0324922651052475,
-0.04866708070039749,
-0.05590316653251648,
-0.055706024169921875,
-0.055242493748664856,
0.030443115159869194,
0.013746675103902817,
-0.010709064081311226,
-0.036027584224939346,
-0.0102542107924819,
0.07334528863430023,
-0.058009423315525055,
-0.050049781799316406,
-0.0018234248273074627,
-0.06001438573002815,
0.029013458639383316,
0.00689637940376997,
-0.02055644802749157,
0.0017882969696074724,
-0.04023509472608566,
0.060751162469387054,
-0.024651719257235527,
0.057223547250032425,
-0.011413945816457272,
0.019492637366056442,
-0.07802975922822952,
0.028341012075543404,
-0.018277933821082115,
0.026165854185819626,
0.03910881653428078,
-0.0343247689306736,
0.07090257853269577,
0.023316606879234314,
0.004272052552551031,
0.023894544690847397,
-0.006502934731543064,
-0.005311799701303244,
0.026021452620625496,
-0.04895377159118652,
-0.009600533172488213,
0.020811866968870163,
0.040747664868831635,
-0.03676014021039009,
-0.050414085388183594,
-0.007611753419041634,
-0.042013078927993774,
-0.021076299250125885,
0.023434003815054893,
0.021038534119725227,
-0.024687018245458603,
0.06049211323261261,
0.023330826312303543,
0.01688920333981514,
0.04177407547831535,
-0.022733137011528015,
0.04690907895565033,
-0.021057920530438423,
-0.002735000802204013,
-0.02486627735197544,
-0.041873522102832794,
-0.02983079105615616,
0.045618023723363876,
0.018590444698929787,
-0.04299350455403328,
-0.05855647474527359,
0.039838533848524094,
-0.014071639627218246,
-0.024595363065600395,
0.0492190457880497,
-0.0437895692884922,
-0.04418783262372017,
-0.04578198865056038,
0.04999876022338867,
0.004915051162242889,
0.00524168973788619,
0.013618637807667255,
-0.04452561214566231,
-0.010099362581968307,
-0.057150933891534805,
-0.009396090172231197,
-0.03135305270552635,
0.03066164068877697,
-0.007874959148466587,
0.022575372830033302,
0.01372544001787901,
-0.05186916142702103,
0.014804578386247158,
0.0032172214705497026,
-0.05626455321907997,
0.040964387357234955,
0.04281102865934372,
0.10367219150066376,
-0.06756266206502914,
-0.037206538021564484,
0.03056897595524788,
0.00804881751537323,
-0.014336093328893185,
-0.007212072145193815,
0.011891434900462627,
-0.04181483015418053,
-0.022340277209877968,
-0.01690755784511566,
0.0683274045586586,
-0.047369398176670074,
0.011894342489540577,
0.04254560172557831,
-0.01534202042967081,
0.029251838102936745,
-0.024537235498428345,
-0.015153948217630386,
0.012891721911728382,
-0.00910967867821455,
-0.03823889419436455,
0.041689079254865646,
0.0015730614541098475,
-0.016622794792056084,
-0.03755461424589157,
-0.04968264698982239,
0.001073231571353972,
0.08979864418506622,
0.0012586972443386912,
0.005447351839393377,
-0.0209652129560709,
0.014014500193297863,
0.037064533680677414,
0.025718484073877335,
-0.05173976719379425,
0.02444242313504219,
0.05255226418375969,
0.0023679472506046295,
-0.035777006298303604,
0.09443290531635284,
0.016702432185411453,
-0.020513158291578293,
-0.016742775216698647,
-0.014450792223215103,
-0.013678666204214096,
-0.032059937715530396,
0.04025169461965561,
0.026095781475305557,
-0.01807546056807041,
-0.031517393887043,
-0.00486564077436924,
0.06592227518558502,
0.011753277853131294,
0.01481664925813675,
-0.014435074292123318,
-0.018537983298301697,
-0.04219897836446762,
0.044443171471357346,
-0.012622368521988392,
0.00571097619831562,
-0.03442460671067238,
0.006544396746903658,
0.0007422984926961362,
0.0417284332215786,
0.04361329600214958,
0.036521438509225845,
-0.028831783682107925,
0.06799563020467758,
-0.02644350938498974,
0.023707522079348564,
-0.04555050656199455,
-0.03387974202632904,
-0.0008012664038687944,
0.021271103993058205,
0.01650581695139408,
0.03715161979198456,
-0.017171988263726234,
-0.0242248997092247,
0.027339091524481773,
0.04920651763677597,
0.030163563787937164,
0.025605766102671623,
-0.02350716106593609,
-0.011527309194207191,
0.03783998265862465,
0.057010211050510406,
-0.08273618668317795,
-0.047902584075927734,
0.04000835120677948,
0.0350552536547184,
-0.05357302352786064,
0.021547207608819008,
-0.0074971807189285755,
0.03745987266302109,
-0.039879050105810165,
-0.06318329274654388,
0.050301168113946915,
0.029201261699199677,
-0.0015299952356144786,
0.02680686116218567,
-0.0037903934717178345,
-0.023928282782435417,
0.02185901813209057,
0.012449151836335659,
-0.012511326000094414,
-0.045508209615945816,
0.013353819027543068,
0.02488391473889351,
0.08034713566303253,
-0.0338967889547348,
0.02320883981883526,
0.008389187976717949,
0.030518600717186928,
0.05229134485125542,
-0.04453745856881142,
0.01724810153245926,
0.027441248297691345,
0.0072897993959486485,
-0.01950092427432537,
0.03894328325986862,
-0.004748753737658262,
0.01985873281955719,
0.05460873991250992,
-0.004701654426753521,
0.05925538390874863,
-0.01618068479001522,
0.048678282648324966,
0.08420618623495102,
0.022061176598072052,
0.015149817802011967,
0.02019762620329857,
0.0749603882431984,
0.01411499734967947,
-0.00891236960887909,
0.053893305361270905,
-0.05228187143802643,
0.02579379267990589,
-0.048759885132312775,
0.002114091766998172,
-0.01483242493122816,
-0.025888310745358467,
0.05340816453099251,
0.028223993256688118,
-0.010828393511474133,
-0.011253220960497856,
-0.020168913528323174,
-0.01372175570577383,
0.03096715547144413,
-0.029742633923888206,
-0.03529539331793785,
-0.0026709784287959337,
-0.0011949235340580344,
0.017602652311325073,
-0.0633513480424881,
-0.017491856589913368,
-0.022864045575261116,
-0.03438439965248108,
0.0061063687317073345,
-0.07816946506500244,
-0.021124977618455887,
-0.06513188034296036,
-0.016176367178559303,
0.03712243586778641,
0.013298384845256805,
0.0029479966033250093,
-0.05058450624346733,
0.036836378276348114,
-0.046012986451387405,
-0.044801682233810425,
-0.04166067764163017,
-0.06948691606521606,
-0.019479524344205856,
-0.04622267186641693,
0.046949274837970734,
0.01663607358932495,
0.010224134661257267,
0.008393784984946251,
0.029909340664744377,
-0.017848780378699303,
-0.035282447934150696,
0.021890252828598022,
0.04144368693232536,
-0.024291276931762695,
-0.06509014964103699,
0.044950805604457855,
-0.014774988405406475,
0.001411018194630742,
-0.02773839607834816,
-0.06964369118213654,
0.08308636397123337,
0.07397329062223434,
0.022267717868089676,
0.015450635924935341,
-0.028087738901376724,
-0.06228909268975258,
-0.03732231631875038,
-0.035828422755002975,
-0.04135296493768692,
-0.014786086976528168,
0.014577425085008144,
-0.03491119667887688,
-0.0180731900036335,
-0.03386789932847023,
0.006576571613550186,
-0.008108887821435928,
0.027255075052380562,
0.03307579830288887,
0.050613921135663986,
0.029448239132761955,
0.0583852156996727,
-0.03074413351714611,
-0.0243847593665123,
0.07122883200645447,
0.014082210138440132,
-0.0028011691756546497,
-0.05845082551240921,
-0.04174297675490379,
0.035738829523324966,
0.010970463044941425,
-0.0014191331574693322,
0.006530941464006901,
0.06885848194360733,
0.006905789487063885,
0.003121481742709875,
0.023120474070310593,
-0.02190524712204933,
-0.04537303373217583,
-0.010888584889471531,
0.003690783167257905,
-0.007291753310710192,
-0.046210769563913345,
-0.005230375099927187,
0.005642296280711889,
0.0597083680331707,
-0.035603586584329605,
-0.06793917715549469,
0.0017690191743895411,
0.0705074891448021,
0.010519283823668957,
-0.008161746896803379,
-0.019192740321159363,
0.0074467104859650135,
-0.045079298317432404,
-0.04453553631901741,
-0.005386555567383766,
-0.0027233597356826067,
0.019206980243325233,
0.03602909296751022,
0.022329965606331825,
-0.011260570026934147,
0.02938864752650261,
0.030224548652768135,
0.05380978062748909,
0.015594352036714554,
-0.02258213236927986,
0.01675967127084732,
-0.03882938623428345,
0.02243686467409134,
0.0036060898564755917,
-0.02372807078063488,
-0.043898805975914,
-0.09584103524684906,
-0.00900339987128973,
-0.004966778680682182,
-0.03552514314651489,
-0.004419026896357536,
0.0459202378988266,
-0.015831556171178818,
-0.006720830220729113,
0.0036550723016262054,
0.01901146024465561,
0.03583452105522156,
-0.03921962156891823,
0.05903170257806778,
0.0022288551554083824,
0.03576135262846947,
-0.04238405451178551,
0.036306388676166534,
-0.042470984160900116,
-0.0005767745315097272,
-0.004616747610270977,
0.06296034902334213,
0.025717483833432198,
0.028001410886645317,
0.0729774609208107,
0.03990950062870979,
-0.03677704930305481,
0.046749405562877655,
0.05465543270111084,
-0.009271636605262756,
-0.05933159962296486,
-0.000517429958563298,
-0.004093119874596596,
-0.014838135801255703,
-0.0017041433602571487,
-0.021039463579654694,
-0.0017008811701089144,
0.025448808446526527,
0.004662095103412867,
0.01522869523614645,
-0.010723005048930645,
-0.0360124446451664,
-0.047226641327142715,
-0.06796946376562119,
-0.036076683551073074,
0.01725713163614273,
-0.03549491614103317,
0.032616231590509415,
0.047093335539102554,
0.019471606239676476,
0.08026289939880371,
0.06791699677705765,
-0.010954217985272408,
-0.06325466185808182,
0.014542767778038979,
0.029124639928340912,
-0.020135844126343727,
-0.055360764265060425,
-0.059057146310806274,
0.05251604691147804,
0.0459880605340004,
0.001945145078934729,
-0.0783095434308052,
-0.002092809183523059,
0.056264109909534454,
-0.01699705608189106,
0.060874175280332565,
-0.01156118605285883,
0.04774973541498184,
0.06491561979055405,
-0.032066039741039276,
0.016316048800945282,
-0.048854079097509384,
0.0216019656509161,
0.0019211650360375643,
0.006346887908875942,
-0.03643414378166199,
-0.028411678969860077,
-0.045830048620700836,
0.02417186088860035,
0.043562740087509155,
0.04227287322282791,
0.04709215089678764,
-0.005676701664924622,
-0.058261800557374954,
0.0034313523210585117,
0.008592456579208374,
-0.04431324452161789,
-0.0025452529080212116,
0.028835248202085495,
0.043153513222932816,
-0.03935933858156204,
0.0028988190460950136,
-0.01354728452861309,
-0.0017687085783109069,
0.01570983976125717,
-0.005180955398827791,
-0.061548393219709396,
-0.04705188423395157,
0.009632425382733345,
-0.02885521575808525,
-0.02558281645178795,
-0.098082035779953,
0.04720493406057358,
-0.036421507596969604,
0.0031622089445590973,
0.04857344925403595,
0.013886592350900173,
0.01536269299685955,
0.05048900470137596,
-0.0068827103823423386,
0.0258528683334589,
-0.037216365337371826,
0.01694372668862343,
-0.013788372278213501,
-0.013026881031692028,
-0.022318733856081963,
-0.07372599840164185,
-0.009241894818842411,
-0.018115555867552757,
-0.027995958924293518,
-0.03997911140322685,
-0.02204616740345955,
0.00006366581510519609,
-0.009200271219015121,
0.01767999678850174,
-0.015637017786502838,
0.03691401332616806,
-0.02540932036936283,
-0.01788882166147232,
-0.016234178096055984,
-0.041794225573539734,
-0.09000783413648605,
-0.05448060482740402,
-0.0028593840543180704,
0.00964407529681921,
0.01866154372692108,
0.023942604660987854,
0.013439292088150978,
0.018490582704544067,
0.02619183622300625,
-0.013738634996116161,
0.027072904631495476,
0.008693456649780273,
-0.03282875195145607,
-0.037472620606422424,
-0.00839809887111187,
0.03447208181023598,
0.04387832060456276,
-0.006570860743522644,
0.032686423510313034,
0.0348125658929348,
-0.03966166079044342,
0.013716344721615314,
0.0397619865834713,
0.017218245193362236,
-0.07250598818063736,
-0.034915126860141754,
-0.03145243227481842,
-0.045434389263391495,
0.02249716781079769,
-0.02477283962070942,
-0.020033568143844604,
0.014983955770730972,
0.034840960055589676,
0.039958372712135315,
-0.006452138070017099,
-0.0345921628177166,
0.0014191099908202887,
-0.023844309151172638,
0.03005179576575756,
-0.041292235255241394,
0.06081344932317734,
-0.03693697229027748,
0.017077038064599037,
-0.0007264590240083635,
-0.03697221726179123,
-0.022870074957609177,
0.04192148894071579,
0.008757801726460457,
-0.01655382290482521,
-0.017288219183683395,
0.007662904914468527,
-0.02665182761847973,
0.030953899025917053,
0.0062436857260763645,
0.026412781327962875,
-0.011758014559745789,
0.036887504160404205,
-0.046833060681819916,
-0.0011888367589563131,
-0.018202727660536766,
0.002536304295063019,
-0.023584431037306786,
-0.03884662687778473,
-0.016914578154683113,
-0.06741438060998917,
0.03695504739880562,
0.006801834795624018,
0.04742952436208725,
0.022839557379484177,
0.010633621364831924,
0.0013575771590694785,
0.03183424472808838,
-0.06246443837881088,
-0.011383090168237686,
-0.019813958555459976,
0.03843136876821518,
0.015258647501468658,
0.06616149097681046,
0.032032355666160583,
-0.0371241569519043,
-0.05212518945336342,
0.036175020039081573,
0.024598291143774986,
0.029847338795661926,
0.008657436817884445,
0.06017816811800003,
0.03805558383464813,
0.047072358429431915,
-0.03622811287641525,
0.0021018125116825104,
-0.013299943879246712,
-0.013624394312500954,
0.020133402198553085,
0.023483410477638245,
0.028729524463415146,
0.005477591883391142,
-0.04047005623579025,
-0.00943586602807045,
0.08480285853147507,
0.03989478573203087,
0.01086853351444006,
0.002898534992709756,
-0.034132275730371475,
0.010506510734558105,
-0.0006854443345218897,
-0.057843293994665146,
-0.01447613351047039,
0.023819757625460625,
-0.049433521926403046,
0.08302704244852066,
-0.02614453434944153,
0.03156125918030739,
0.022664546966552734,
0.024085555225610733,
0.008846297860145569,
0.05627739802002907,
-0.03974471986293793,
0.028098294511437416,
0.0353408120572567,
-0.04248251020908356,
0.01827310211956501,
-0.0308646522462368,
0.06766106933355331,
-0.06943080574274063,
0.054611291736364365,
0.023771950975060463,
0.008607903495430946,
0.011801266111433506,
-0.026578759774565697,
-0.03780873864889145,
0.010599191300570965,
-0.0405069924890995,
0.07813850045204163,
-0.01844662055373192,
-0.05209677666425705,
0.03921329602599144,
0.031626444309949875,
-0.0722770243883133,
0.06999426335096359,
0.031655117869377136,
0.05973508954048157,
0.051037367433309555,
0.04328051581978798,
-0.06744404882192612,
0.006543794646859169,
-0.030838796868920326,
0.039797499775886536,
-0.07805156707763672,
0.010374445468187332,
0.03350081667304039,
-0.04450126737356186,
-0.012598573230206966,
0.0404822900891304,
0.0018881697906181216,
-0.005571331363171339,
0.004927380010485649,
-0.04483833536505699,
-0.04800907522439957,
-0.008344084955751896,
0.018479490652680397,
-0.043239492923021317,
0.011585176922380924,
-0.054480500519275665,
0.013962442986667156,
-0.0021518771536648273,
-0.009337078779935837,
-0.056787554174661636,
0.006711853668093681,
0.05268848314881325,
-0.08199597895145416,
-0.025396104902029037,
0.051623400300741196,
0.007203764282166958,
-0.030039284378290176,
0.032136473804712296,
-0.011947546154260635,
0.030618226155638695,
0.02493464946746826,
0.0022903315257281065,
0.0352725125849247,
-0.04520486295223236,
-0.023859431967139244,
0.016003964468836784,
-0.027423961088061333,
0.012438463978469372,
-0.017398610711097717,
0.037513989955186844,
0.05816756933927536,
0.0353616401553154,
0.023552142083644867,
-0.056797195225954056,
-0.027160348370671272,
0.012179399840533733,
-0.05115024745464325,
0.018258916214108467,
0.007376206573098898,
-0.04235101863741875,
-0.04604640603065491,
-0.01722443290054798,
-0.019171224907040596,
0.035302434116601944,
-0.025806281715631485,
-0.00927519891411066,
0.019124692305922508,
-0.02920633740723133,
-0.03805344179272652,
-0.08024764806032181,
-0.020521707832813263,
-0.039948198944330215,
0.03722237050533295,
0.02114606276154518,
-0.027298659086227417,
0.021821103990077972,
-0.045937132090330124,
-0.05943451076745987,
0.0302218459546566,
0.008008435368537903,
-0.03091452829539776,
0.05069941654801369,
0.04078078269958496,
-0.04125487059354782,
0.022077158093452454,
0.03950385004281998,
-0.025109343230724335,
0.014899488538503647,
0.005577207077294588,
-0.005857964977622032,
0.027717208489775658,
0.02057132124900818,
-0.04029790312051773,
-0.01492333970963955,
-0.056932102888822556,
-0.03811918944120407,
-0.042263880372047424,
-0.014014827087521553,
0.06543281674385071
] |
CAMeL-Lab/bert-base-arabic-camelbert-mix-pos-msa | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 1,862 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: 'إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع'
---
# CAMeLBERT-Mix POS-MSA Model
## Model description
**CAMeLBERT-Mix POS-MSA Model** is a Modern Standard Arabic (MSA) POS tagging model that was built by fine-tuning the [CAMeLBERT-Mix](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-mix/) model.
For the fine-tuning, we used the [PATB](https://dl.acm.org/doi/pdf/10.5555/1621804.1621808) dataset.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-Mix POS-MSA model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> pos = pipeline('token-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-mix-pos-msa')
>>> text = 'إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع'
>>> pos(text)
[{'entity': 'noun', 'score': 0.9999592, 'index': 1, 'word': 'إمارة', 'start': 0, 'end': 5}, {'entity': 'noun_prop', 'score': 0.9997877, 'index': 2, 'word': 'أبوظبي', 'start': 6, 'end': 12}, {'entity': 'pron', 'score': 0.9998405, 'index': 3, 'word': 'هي', 'start': 13, 'end': 15}, {'entity': 'noun', 'score': 0.9697179, 'index': 4, 'word': 'إحدى', 'start': 16, 'end': 20}, {'entity': 'noun', 'score': 0.99967164, 'index': 5, 'word': 'إما', 'start': 21, 'end': 24}, {'entity': 'noun', 'score': 0.99980617, 'index': 6, 'word': '##رات', 'start': 24, 'end': 27}, {'entity': 'noun', 'score': 0.99997973, 'index': 7, 'word': 'دولة', 'start': 28, 'end': 32}, {'entity': 'noun', 'score': 0.99995637, 'index': 8, 'word': 'الإمارات', 'start': 33, 'end': 41}, {'entity': 'adj', 'score': 0.9983974, 'index': 9, 'word': 'العربية', 'start': 42, 'end': 49}, {'entity': 'adj', 'score': 0.9999469, 'index': 10, 'word': 'المتحدة', 'start': 50, 'end': 57}, {'entity': 'noun_num', 'score': 0.9993273, 'index': 11, 'word': 'السبع', 'start': 58, 'end': 63}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
0.0002694506256375462,
-0.0008331125136464834,
-0.016157833859324455,
0.04323124140501022,
0.05012010782957077,
0.030048072338104248,
0.0021906632464379072,
-0.0005267664091661572,
-0.010872927494347095,
0.0768967941403389,
0.014881055802106857,
-0.020652228966355324,
0.009975053369998932,
0.05204513296484947,
-0.0354926623404026,
-0.030634906142950058,
0.002390814945101738,
-0.019312160089612007,
-0.05110666900873184,
-0.020920880138874054,
0.004186286125332117,
-0.004842070396989584,
-0.0017547768075019121,
0.002760931383818388,
-0.011944404803216457,
0.019322246313095093,
-0.028085768222808838,
0.051609400659799576,
0.03262742981314659,
-0.06455361843109131,
-0.017299409955739975,
-0.006334976758807898,
-0.02180955745279789,
-0.02431439608335495,
-0.03541221097111702,
-0.0011925628641620278,
0.011390389874577522,
-0.0001673763181315735,
0.02568146213889122,
0.06200519576668739,
-0.03345262259244919,
0.02187797799706459,
-0.008610495366156101,
-0.0427698977291584,
0.054326821118593216,
0.010007210075855255,
-0.027286741882562637,
-0.0012627555988729,
0.03877745196223259,
-0.03982538729906082,
-0.060959309339523315,
-0.0483601912856102,
-0.054043471813201904,
0.021508557721972466,
0.007508331444114447,
-0.010628234595060349,
-0.03595653548836708,
-0.013355422765016556,
0.07509483397006989,
-0.06357961148023605,
-0.04533762484788895,
-0.007133608218282461,
-0.05165381729602814,
0.031725168228149414,
0.015213505364954472,
-0.023731457069516182,
0.008347772993147373,
-0.04413031414151192,
0.05367313697934151,
-0.03267873823642731,
0.05676263943314552,
-0.011176224797964096,
0.016815291717648506,
-0.0833641067147255,
0.02299412339925766,
-0.029442710801959038,
0.03448013961315155,
0.03805749863386154,
-0.026554768905043602,
0.0735693871974945,
0.023819386959075928,
0.0020477219950407743,
0.031791284680366516,
-0.00785213802009821,
-0.010390544310212135,
0.028328662738204002,
-0.05353279784321785,
-0.001523092039860785,
0.01936354488134384,
0.03575511649250984,
-0.04460196942090988,
-0.043248921632766724,
-0.00854529906064272,
-0.04286513105034828,
-0.0200701504945755,
0.020377332344651222,
0.024280639365315437,
-0.027152495458722115,
0.0593009851872921,
0.024678697809576988,
0.015570596791803837,
0.052061595022678375,
-0.018840759992599487,
0.04720901697874069,
-0.02409512922167778,
-0.010611742734909058,
-0.032833531498909,
-0.03596407547593117,
-0.03450419008731842,
0.04214530438184738,
0.009894261136651039,
-0.03519153967499733,
-0.0507650300860405,
0.0422416515648365,
-0.010851575061678886,
-0.02494269609451294,
0.046704888343811035,
-0.034772906452417374,
-0.04667128622531891,
-0.04465961456298828,
0.047327470034360886,
-0.005069295410066843,
0.0035978856030851603,
0.012301402166485786,
-0.05109542980790138,
-0.00995263084769249,
-0.0608593113720417,
-0.01663205400109291,
-0.024251515045762062,
0.03322252258658409,
-0.0007886813255026937,
0.025498514994978905,
0.014986984431743622,
-0.056094203144311905,
0.01986784115433693,
-0.0019587010610848665,
-0.05165114998817444,
0.03643326088786125,
0.044557124376297,
0.10579430311918259,
-0.05900378152728081,
-0.03378532454371452,
0.02185952477157116,
0.00046621885849162936,
-0.020861703902482986,
-0.0004907118855044246,
0.010130834765732288,
-0.03333918750286102,
-0.023618049919605255,
-0.02237982675433159,
0.06513426452875137,
-0.04980054497718811,
0.012731323018670082,
0.041712794452905655,
-0.01322852447628975,
0.03534786030650139,
-0.031387075781822205,
-0.01755942590534687,
0.014307670295238495,
-0.008099876344203949,
-0.03977039456367493,
0.045107025653123856,
0.00009666231198934838,
-0.016383100301027298,
-0.03578075021505356,
-0.041836194694042206,
0.0009044309845194221,
0.08843688666820526,
-0.00391835393384099,
-0.002363898791372776,
-0.019274350255727768,
0.004847955424338579,
0.039985936135053635,
0.014927221462130547,
-0.05769996717572212,
0.029589906334877014,
0.05934451147913933,
-0.0030724091921001673,
-0.03381044417619705,
0.08739069104194641,
0.009671679697930813,
-0.008093111217021942,
-0.014831471256911755,
-0.015022759325802326,
-0.009825670160353184,
-0.030148319900035858,
0.04101087152957916,
0.023022381588816643,
-0.011556170880794525,
-0.033741362392902374,
-0.01093585230410099,
0.06796376407146454,
0.00833092536777258,
0.01700543984770775,
-0.013685762882232666,
-0.026003524661064148,
-0.04525982216000557,
0.04501938819885254,
-0.007845073938369751,
-0.007040180265903473,
-0.028574779629707336,
0.004073270130902529,
-0.001416529412381351,
0.03627002611756325,
0.049113187938928604,
0.03662525489926338,
-0.02801317535340786,
0.07177828997373581,
-0.02887214533984661,
0.017084889113903046,
-0.036220941692590714,
-0.036118295043706894,
0.0012054869439452887,
0.03421053662896156,
0.022826600819826126,
0.03727521747350693,
-0.02006116323173046,
-0.026650652289390564,
0.031559135764837265,
0.045345280319452286,
0.03600833937525749,
0.026161503046751022,
-0.02994263917207718,
-0.01057922188192606,
0.023463064804673195,
0.06497998535633087,
-0.08376971632242203,
-0.0476670078933239,
0.037558916956186295,
0.047989360988140106,
-0.06157497689127922,
0.016190597787499428,
-0.01048203930258751,
0.0306540634483099,
-0.03995145857334137,
-0.05983657017350197,
0.046865757554769516,
0.0323219895362854,
-0.006845796946436167,
0.035375818610191345,
-0.015898339450359344,
-0.023163318634033203,
0.024889713153243065,
0.024502456188201904,
-0.014584527350962162,
-0.040635574609041214,
0.0034076939336955547,
0.02353503182530403,
0.08128071576356888,
-0.03950626403093338,
0.027858756482601166,
0.006446142215281725,
0.017245346680283546,
0.04746752604842186,
-0.048986006528139114,
0.023269999772310257,
0.02923235483467579,
0.0013347910717129707,
-0.015456268563866615,
0.04377342388033867,
-0.0053228577598929405,
0.015618008561432362,
0.059923477470874786,
0.0011199436848983169,
0.065950907766819,
-0.019394278526306152,
0.05035790801048279,
0.07918199896812439,
0.017583943903446198,
0.01752568781375885,
0.016039665788412094,
0.08555339276790619,
0.011473797261714935,
-0.0056098527275025845,
0.05838821828365326,
-0.05275091901421547,
0.022162344306707382,
-0.04399243742227554,
0.005382259842008352,
-0.019648676738142967,
-0.019982492551207542,
0.05122878775000572,
0.012345975264906883,
-0.014118650928139687,
-0.017817683517932892,
-0.018741969019174576,
-0.010992017574608326,
0.03929131478071213,
-0.022269349545240402,
-0.03202345222234726,
-0.005727576557546854,
-0.006822740193456411,
0.016620472073554993,
-0.060745809227228165,
-0.019551517441868782,
-0.025565460324287415,
-0.03606873378157616,
0.0015652398578822613,
-0.07076872140169144,
-0.016647348180413246,
-0.06314720213413239,
-0.015205604024231434,
0.03320205211639404,
-0.0010523739038035274,
0.0005379257490858436,
-0.043147265911102295,
0.03743140399456024,
-0.04331227019429207,
-0.03708681836724281,
-0.029140662401914597,
-0.07563432306051254,
-0.022678634151816368,
-0.0442386120557785,
0.04928918927907944,
0.015940632671117783,
0.00929122231900692,
0.010694224387407303,
0.030110526829957962,
-0.01457857247442007,
-0.04113432392477989,
0.031910404562950134,
0.035812076181173325,
-0.022803304716944695,
-0.06595269590616226,
0.040383901447057724,
-0.015442905947566032,
-0.005116881337016821,
-0.027899980545043945,
-0.06021581217646599,
0.08287594467401505,
0.07793504744768143,
0.012108512222766876,
0.006521077360957861,
-0.01903373934328556,
-0.05430270731449127,
-0.03739745542407036,
-0.037069171667099,
-0.03518626093864441,
-0.019590653479099274,
0.0024350411258637905,
-0.0330439917743206,
-0.019036173820495605,
-0.03431793674826622,
-0.0009952762629836798,
-0.0027998785953968763,
0.02946373261511326,
0.03530823439359665,
0.04394294321537018,
0.029136089608073235,
0.05781276151537895,
-0.029573101550340652,
-0.022255415096879005,
0.06882481276988983,
0.012752126902341843,
-0.0010481036733835936,
-0.06542723625898361,
-0.04043308272957802,
0.038005340844392776,
0.01356637105345726,
0.00040829528006725013,
0.0027795606292784214,
0.0672912523150444,
0.005165766924619675,
0.0021630029659718275,
0.018994981423020363,
-0.015141359530389309,
-0.034474849700927734,
-0.00465260399505496,
0.0034183398820459843,
-0.006301308982074261,
-0.04910057410597801,
-0.011182814836502075,
0.011179485358297825,
0.05981966108083725,
-0.04083310440182686,
-0.06414433568716049,
-0.008331861346960068,
0.06626474857330322,
0.010026567615568638,
0.0010040906490758061,
-0.01992744766175747,
0.011162488721311092,
-0.0374019481241703,
-0.044688232243061066,
0.0032247190829366446,
0.0014585379976779222,
0.014313573017716408,
0.033823076635599136,
0.015855029225349426,
-0.018931794911623,
0.027906568720936775,
0.031293466687202454,
0.054399870336055756,
0.012658433057367802,
-0.03136026859283447,
0.015130393207073212,
-0.03192400187253952,
0.02292538434267044,
0.0012814007932320237,
-0.02742120809853077,
-0.042369041591882706,
-0.10330606251955032,
-0.0024326390121132135,
0.0015735565684735775,
-0.03603542968630791,
-0.010534600354731083,
0.052001576870679855,
-0.02126160077750683,
-0.0011477863881736994,
-0.0015152276027947664,
0.021735312417149544,
0.04411241039633751,
-0.03013276495039463,
0.059595655649900436,
0.006145823281258345,
0.03238767012953758,
-0.03937242552638054,
0.038761936128139496,
-0.03942069411277771,
0.0021633519791066647,
-0.0002985142346005887,
0.06018183380365372,
0.02389078214764595,
0.03434162586927414,
0.0743565633893013,
0.046073004603385925,
-0.0423087440431118,
0.047541745007038116,
0.06134655699133873,
-0.006304337177425623,
-0.053115364164114,
0.000494411971885711,
-0.005677890032529831,
-0.018840938806533813,
0.006032932549715042,
-0.02623254619538784,
-0.007252777460962534,
0.036124393343925476,
0.0017590129282325506,
0.0057670967653393745,
-0.005386102478951216,
-0.037832729518413544,
-0.054844267666339874,
-0.06927675008773804,
-0.037461500614881516,
0.019375508651137352,
-0.024038035422563553,
0.0349925197660923,
0.04749355837702751,
0.021531054750084877,
0.0700804740190506,
0.07892005890607834,
-0.010482880286872387,
-0.054298534989356995,
0.010501306504011154,
0.02824844978749752,
-0.025482164695858955,
-0.061027754098176956,
-0.06314396113157272,
0.054666366428136826,
0.05216316878795624,
0.009640570729970932,
-0.07745610177516937,
0.0017087028827518225,
0.05618901178240776,
-0.014541955664753914,
0.06425034999847412,
-0.0022081786300987005,
0.050742678344249725,
0.059673357754945755,
-0.03205937519669533,
0.01826222985982895,
-0.04603264108300209,
0.010761097073554993,
-0.004763094708323479,
0.01149576622992754,
-0.028421156108379364,
-0.03229488059878349,
-0.04342521354556084,
0.02340511977672577,
0.04163944348692894,
0.04318523406982422,
0.056107763200998306,
-0.012823870405554771,
-0.05280159413814545,
0.0006413434166461229,
0.005563473794609308,
-0.051294755190610886,
0.0010726540349423885,
0.0316903330385685,
0.03421904146671295,
-0.03476415574550629,
-0.0020700921304523945,
-0.023584440350532532,
-0.007024705875664949,
0.01389375701546669,
-0.001534570474177599,
-0.05807625129818916,
-0.04659397155046463,
0.004885327070951462,
-0.02687748335301876,
-0.024320095777511597,
-0.09826585650444031,
0.05933314934372902,
-0.03564392402768135,
0.0014381237560883164,
0.04648809880018234,
0.022870000451803207,
0.02191334217786789,
0.05028408393263817,
-0.015088505111634731,
0.024525810033082962,
-0.0357399582862854,
0.023042237386107445,
-0.005422992166131735,
-0.016337836161255836,
-0.015239541418850422,
-0.0703025683760643,
-0.006591686047613621,
-0.015126463025808334,
-0.03340890258550644,
-0.033429935574531555,
-0.015940969809889793,
0.00809978786855936,
-0.009277306497097015,
0.01293239090591669,
-0.022239139303565025,
0.04133424162864685,
-0.026946421712636948,
-0.0134876174852252,
-0.010612484067678452,
-0.03999271243810654,
-0.09328596293926239,
-0.05219053849577904,
-0.000847287941724062,
0.011146541684865952,
0.02278926968574524,
0.02506457455456257,
0.01304076611995697,
0.009907582774758339,
0.010491970926523209,
-0.01069888100028038,
0.021884191781282425,
0.007150547578930855,
-0.034610047936439514,
-0.035576701164245605,
-0.007882745005190372,
0.0396844707429409,
0.040742650628089905,
-0.017573794350028038,
0.03586513176560402,
0.0349467508494854,
-0.03738121688365936,
0.005194574128836393,
0.03522597625851631,
0.01665167696774006,
-0.06985349953174591,
-0.03530185669660568,
-0.024711348116397858,
-0.04839920997619629,
0.0269129928201437,
-0.019716182723641396,
-0.009582088328897953,
0.012200308963656425,
0.04112885892391205,
0.04069449380040169,
-0.010811894200742245,
-0.033814024180173874,
-0.0037032137624919415,
-0.03689180314540863,
0.025948388502001762,
-0.04150564223527908,
0.06785501539707184,
-0.04127724841237068,
0.013493730686604977,
0.0028180954977869987,
-0.037779904901981354,
-0.016470132395625114,
0.044962331652641296,
0.005346656311303377,
-0.013258524239063263,
-0.01640012115240097,
0.015314382500946522,
-0.026314208284020424,
0.033991921693086624,
0.017498111352324486,
0.024968458339571953,
-0.00835450366139412,
0.03473340719938278,
-0.05040770396590233,
-0.006078456528484821,
-0.020992955192923546,
0.0014066554140299559,
-0.023713067173957825,
-0.0405082069337368,
-0.016639230772852898,
-0.06543528288602829,
0.02167876809835434,
0.00950403232127428,
0.04852427914738655,
0.0319097563624382,
0.0060273995622992516,
-0.0023679635487496853,
0.028000755235552788,
-0.06040544435381889,
-0.004854804370552301,
-0.016150755807757378,
0.03723902255296707,
0.02185722626745701,
0.06830447912216187,
0.035912103950977325,
-0.03216938301920891,
-0.05091053992509842,
0.0360833965241909,
0.019297955557703972,
0.028394140303134918,
0.01756044290959835,
0.059521615505218506,
0.03926697000861168,
0.05189898982644081,
-0.02649182826280594,
0.005040830001235008,
-0.01943826861679554,
-0.016180891543626785,
0.012469923123717308,
0.017084313556551933,
0.02555096708238125,
0.0006025458569638431,
-0.04848857596516609,
-0.022768748924136162,
0.08454979956150055,
0.034217145293951035,
0.006001296918839216,
0.00742005743086338,
-0.025277186185121536,
0.02854834869503975,
-0.005212639458477497,
-0.059874530881643295,
-0.01309739425778389,
0.01557594072073698,
-0.042194705456495285,
0.08126798272132874,
-0.023622414097189903,
0.03299032896757126,
0.014771886169910431,
0.022498127073049545,
0.0014573803637176752,
0.05613025650382042,
-0.04205608740448952,
0.038783490657806396,
0.043087899684906006,
-0.042217690497636795,
0.010468656197190285,
-0.02984793297946453,
0.06336850672960281,
-0.07475431263446808,
0.06072576716542244,
0.03054075874388218,
0.020858846604824066,
0.011186031624674797,
-0.02656223252415657,
-0.0368778295814991,
0.011794197373092175,
-0.03925840184092522,
0.0713706687092781,
-0.0008800664218142629,
-0.05438065901398659,
0.035973794758319855,
0.03590846061706543,
-0.06876058876514435,
0.07665867358446121,
0.023843780159950256,
0.06278479099273682,
0.05197674781084061,
0.04016690328717232,
-0.0698637068271637,
0.012321855872869492,
-0.03991842269897461,
0.0382564403116703,
-0.0752045288681984,
0.008491180837154388,
0.033856309950351715,
-0.04449436813592911,
-0.01019207201898098,
0.03413701057434082,
0.005240665748715401,
-0.004561303183436394,
0.004040509928017855,
-0.049213044345378876,
-0.053792890161275864,
-0.015359373763203621,
0.018623514100909233,
-0.04297344759106636,
0.02209158055484295,
-0.0472242496907711,
0.012375881895422935,
0.009189426898956299,
-0.016999686136841774,
-0.05655325576663017,
0.004210570827126503,
0.0489007905125618,
-0.08243032544851303,
-0.03621466085314751,
0.05264607071876526,
0.0030953881796449423,
-0.019996942952275276,
0.030011095106601715,
-0.005685047712177038,
0.03219696879386902,
0.025723015889525414,
0.0018745532725006342,
0.031226513907313347,
-0.05473755672574043,
-0.016075437888503075,
0.018882472068071365,
-0.021309947595000267,
0.02143607847392559,
-0.02519071102142334,
0.03722134232521057,
0.06899099797010422,
0.042364515364170074,
0.011426226235926151,
-0.05013934522867203,
-0.029090551659464836,
0.010372900404036045,
-0.04965045303106308,
0.012563505209982395,
-0.00017864684923551977,
-0.04397686943411827,
-0.04076201841235161,
-0.010026871226727962,
-0.021295953541994095,
0.029816925525665283,
-0.029553918167948723,
-0.003548417938873172,
0.023696327582001686,
-0.029578108340501785,
-0.045031365007162094,
-0.07507726550102234,
-0.0261171106249094,
-0.03590696305036545,
0.0387810654938221,
0.016614951193332672,
-0.03143395856022835,
0.015720663592219353,
-0.03817758336663246,
-0.0597698874771595,
0.04078788310289383,
0.01011666376143694,
-0.026066754013299942,
0.05946013703942299,
0.025087354704737663,
-0.042020756751298904,
0.015756845474243164,
0.04470169544219971,
-0.028410067781805992,
0.005007630214095116,
-0.002722139237448573,
0.0016260126139968634,
0.024215903133153915,
0.030711857602000237,
-0.03399796038866043,
-0.003549142275005579,
-0.05012431740760803,
-0.04144887998700142,
-0.04449089616537094,
-0.013050341978669167,
0.0668666884303093
] |
CAMeL-Lab/bert-base-arabic-camelbert-mix-sentiment | [
"pytorch",
"tf",
"bert",
"text-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 855 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "أنا بخير"
---
# CAMeLBERT Mix SA Model
## Model description
**CAMeLBERT Mix SA Model** is a Sentiment Analysis (SA) model that was built by fine-tuning the [CAMeLBERT Mix](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-mix/) model.
For the fine-tuning, we used the [ASTD](https://aclanthology.org/D15-1299.pdf), [ArSAS](http://lrec-conf.org/workshops/lrec2018/W30/pdf/22_W30.pdf), and [SemEval](https://aclanthology.org/S17-2088.pdf) datasets.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT Mix SA model directly as part of our [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) SA component (*recommended*) or as part of the transformers pipeline.
#### How to use
To use the model with the [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) SA component:
```python
>>> from camel_tools.sentiment import SentimentAnalyzer
>>> sa = SentimentAnalyzer("CAMeL-Lab/bert-base-arabic-camelbert-mix-sentiment")
>>> sentences = ['أنا بخير', 'أنا لست بخير']
>>> sa.predict(sentences)
>>> ['positive', 'negative']
```
You can also use the SA model directly with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> sa = pipeline('sentiment-analysis', model='CAMeL-Lab/bert-base-arabic-camelbert-mix-sentiment')
>>> sentences = ['أنا بخير', 'أنا لست بخير']
>>> sa(sentences)
[{'label': 'positive', 'score': 0.9616648554801941},
{'label': 'negative', 'score': 0.9779177904129028}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
-0.0029413981828838587,
-0.004471493884921074,
-0.03344187140464783,
0.06411410123109818,
0.05802544951438904,
0.034880004823207855,
-0.010319949127733707,
-0.013453897088766098,
-0.024502241984009743,
0.07997258007526398,
0.014618834480643272,
-0.03884640336036682,
0.025942455977201462,
0.04243265837430954,
-0.052477892488241196,
-0.015321698971092701,
-0.009248089045286179,
-0.02177734673023224,
-0.05234357342123985,
-0.0398050919175148,
0.004643717780709267,
0.008879234082996845,
0.0005845815176144242,
0.0021803132258355618,
-0.0034321509301662445,
0.025473088026046753,
-0.037403661757707596,
0.05285373702645302,
0.020256921648979187,
-0.06923270225524902,
-0.0186921339482069,
-0.011780704371631145,
-0.027284689247608185,
-0.020943354815244675,
-0.015172048471868038,
0.008541892282664776,
0.01504543237388134,
-0.003081402974203229,
0.002221014117822051,
0.04841705039143562,
-0.010701233521103859,
0.015964949503540993,
-0.016252968460321426,
-0.027668427675962448,
0.05221598967909813,
0.021621545776724815,
-0.03263191506266594,
0.0008211943204514682,
0.02889885939657688,
-0.06288725882768631,
-0.07198449969291687,
-0.07092240452766418,
-0.04751347750425339,
0.046407848596572876,
0.012092173099517822,
-0.0035151969641447067,
-0.03175193816423416,
-0.020063325762748718,
0.08364568650722504,
-0.06290853023529053,
-0.03694527596235275,
-0.0008081215200945735,
-0.05795864388346672,
0.002213290659710765,
0.012425283901393414,
-0.031442366540431976,
0.01230712328106165,
-0.0344696082174778,
0.05498833954334259,
-0.03334745392203331,
0.05341270565986633,
-0.021711496636271477,
0.033112309873104095,
-0.0657297894358635,
0.01543272566050291,
-0.04177640378475189,
0.03948270529508591,
0.04116509109735489,
-0.024301990866661072,
0.07181848585605621,
0.013270427472889423,
0.006342961452901363,
0.03899693116545677,
-0.01049322821199894,
-0.012251080013811588,
0.028603244572877884,
-0.056681688874959946,
0.007811746560037136,
0.0021388407330960035,
0.030874235555529594,
-0.044055480509996414,
-0.05022728443145752,
-0.01083387341350317,
-0.05059210956096649,
-0.02268129773437977,
0.025028521195054054,
0.017074141651391983,
-0.02685311809182167,
0.058590009808540344,
0.013300091028213501,
0.033513788133859634,
0.03661791607737541,
-0.025947479531168938,
0.03982098773121834,
-0.0161944217979908,
-0.02543896809220314,
-0.020833740010857582,
-0.03483795374631882,
-0.03724502772092819,
0.04966527596116066,
-0.004911663476377726,
-0.05401237681508064,
-0.05996803566813469,
0.022682366892695427,
-0.007435820531100035,
-0.03323214128613472,
0.035563066601753235,
-0.037066515535116196,
-0.040121231228113174,
-0.04170835018157959,
0.04479780048131943,
-0.0069487919099628925,
-0.0023095894139260054,
0.012537334114313126,
-0.06885363161563873,
0.012099447660148144,
-0.06381221860647202,
-0.02337772771716118,
-0.02938242256641388,
0.021205468103289604,
0.01166353840380907,
0.024793017655611038,
0.010292746126651764,
-0.06488681584596634,
0.00834727380424738,
-0.012136853300035,
-0.05714689567685127,
0.04113347828388214,
0.04065516218543053,
0.10711310058832169,
-0.0486002191901207,
-0.03828240931034088,
0.016696179285645485,
-0.0030820344109088182,
-0.0114992531016469,
-0.0021636963356286287,
0.024007851257920265,
-0.02593378536403179,
-0.024297134950757027,
-0.01565789058804512,
0.06440970301628113,
-0.05190941318869591,
-0.005941404961049557,
0.03800545632839203,
0.004334497731178999,
0.026976602151989937,
-0.03235457092523575,
-0.02710847556591034,
0.0013718847185373306,
0.010191702283918858,
-0.03049475885927677,
0.05710877105593681,
-0.00319974054582417,
-0.039635080844163895,
-0.029854489490389824,
-0.0381382554769516,
-0.004948079120367765,
0.08430954068899155,
-0.005609747488051653,
-0.02191631682217121,
-0.01901119202375412,
0.014842741191387177,
0.03240669518709183,
0.01606508530676365,
-0.035826295614242554,
0.007921546697616577,
0.06272787600755692,
0.006724830251187086,
-0.022059710696339607,
0.07816879451274872,
-0.00843728519976139,
-0.008693847805261612,
-0.013557936064898968,
-0.009415548294782639,
0.0005340914358384907,
-0.035864006727933884,
0.04687286913394928,
0.040550023317337036,
-0.014656546525657177,
-0.024570317938923836,
-0.024953467771410942,
0.06764663755893707,
-0.011943758465349674,
0.007488279137760401,
-0.017532257363200188,
-0.006021623499691486,
-0.03906287997961044,
0.03942370414733887,
-0.011403637006878853,
0.004754578694701195,
-0.03579293563961983,
-0.002505805343389511,
-0.000017523780115880072,
0.024858102202415466,
0.0329333171248436,
0.022464768961071968,
-0.030028246343135834,
0.07915118336677551,
-0.03194411098957062,
0.00798092968761921,
-0.040639542043209076,
-0.05281392112374306,
-0.00831159483641386,
0.04189672693610191,
0.03047136217355728,
0.04173830524086952,
-0.008055505342781544,
-0.03485304117202759,
0.015732306987047195,
0.04252302274107933,
0.03162491321563721,
0.03553009033203125,
-0.020326390862464905,
-0.030659731477499008,
0.0291141290217638,
0.0665300041437149,
-0.08170709758996964,
-0.04056818038225174,
0.026154059916734695,
0.03568384796380997,
-0.038957998156547546,
0.015273108147084713,
-0.012002777308225632,
0.02892502211034298,
-0.027851959690451622,
-0.08649083971977234,
0.06353288888931274,
0.033136822283267975,
0.0014504010323435068,
0.021641358733177185,
-0.006501368246972561,
-0.01984618417918682,
0.013080360367894173,
0.029145775362849236,
-0.01150499191135168,
-0.05321447178721428,
0.01663358323276043,
0.015664158388972282,
0.09384212642908096,
-0.03774907812476158,
0.03399430587887764,
0.0054981219582259655,
0.013409039005637169,
0.023996058851480484,
-0.040996357798576355,
0.022890562191605568,
0.025806987658143044,
0.005552066955715418,
-0.02810193970799446,
0.03492739424109459,
0.0017198424320667982,
0.01649567484855652,
0.055270031094551086,
-0.02097882702946663,
0.05895773321390152,
0.004058642312884331,
0.053674809634685516,
0.06523159146308899,
0.031964436173439026,
0.021401086822152138,
0.009695461019873619,
0.08343882113695145,
0.013060392811894417,
-0.010912088677287102,
0.06572848558425903,
-0.054940469563007355,
0.02686304971575737,
-0.031613435596227646,
-0.0029330886900424957,
-0.008749247528612614,
-0.025312628597021103,
0.04417933523654938,
0.00671000313013792,
-0.0033957604318857193,
-0.02275504358112812,
-0.01919804885983467,
0.012201080098748207,
0.03479855880141258,
-0.02631235122680664,
-0.022575896233320236,
-0.011843467131257057,
-0.04663008451461792,
-0.009061313234269619,
-0.06362597644329071,
-0.0018422704888507724,
-0.01932261325418949,
-0.032600630074739456,
0.005336052738130093,
-0.06906489282846451,
-0.04708511382341385,
-0.06142953410744667,
-0.007986906915903091,
0.03894718363881111,
0.0022661287803202868,
0.006101168692111969,
-0.03262566402554512,
0.043491702526807785,
-0.039130836725234985,
-0.044600196182727814,
-0.02658523991703987,
-0.0628545805811882,
-0.0006878721178509295,
-0.04276568442583084,
0.05456991866230965,
0.021491840481758118,
0.023206746205687523,
-0.006753941066563129,
0.01745029352605343,
-0.020264534279704094,
-0.04989304766058922,
0.024240322411060333,
0.04054825380444527,
-0.015258260071277618,
-0.09116778522729874,
0.020376374945044518,
0.002191660925745964,
-0.006654429715126753,
-0.03610272333025932,
-0.05013616010546684,
0.06871647387742996,
0.08029633015394211,
0.002187554258853197,
0.03044476918876171,
-0.024565499275922775,
-0.05584363266825676,
-0.05729401111602783,
-0.022471735253930092,
-0.041851725429296494,
-0.027415497228503227,
-0.008160029537975788,
-0.029892902821302414,
-0.028025245293974876,
-0.03486949950456619,
-0.011473424732685089,
0.0017272926634177566,
0.013731171377003193,
0.03084598109126091,
0.034508589655160904,
0.035121507942676544,
0.04689576476812363,
-0.039726387709379196,
-0.020352253690361977,
0.0763111487030983,
0.02157726138830185,
0.013174356892704964,
-0.07941733300685883,
-0.03364099934697151,
0.05374474078416824,
0.014521905221045017,
-0.010329369455575943,
-0.0062343766912817955,
0.08176290988922119,
0.006601216271519661,
-0.0032091934699565172,
0.0051752482540905476,
0.0032305861823260784,
-0.04500165581703186,
-0.010953596793115139,
0.01140054501593113,
-0.00991864688694477,
-0.04593578726053238,
-0.01365573238581419,
-0.004100401420146227,
0.05210694298148155,
-0.03106989711523056,
-0.0583329014480114,
0.006104696076363325,
0.06293267011642456,
0.01645880751311779,
-0.003680687863379717,
-0.016833826899528503,
0.007141734007745981,
-0.05089937895536423,
-0.03755910322070122,
0.003283164231106639,
-0.021255703642964363,
0.009078455157577991,
0.049670636653900146,
0.00831269659101963,
0.00149631523527205,
0.02330031618475914,
0.027605129405856133,
0.0513603612780571,
0.011109156534075737,
-0.03275451436638832,
0.015627827495336533,
-0.031112171709537506,
0.016709517687559128,
0.022104624658823013,
-0.04568777605891228,
-0.06119227781891823,
-0.08569569885730743,
-0.016220811754465103,
0.001921270857565105,
-0.020427489653229713,
-0.024036018177866936,
0.042560677975416183,
-0.025936182588338852,
-0.004563802853226662,
0.005977886263281107,
0.015740549191832542,
0.04833628237247467,
-0.04110770300030708,
0.06287865340709686,
-0.004954120609909296,
0.029998095706105232,
-0.05620051175355911,
0.027678394690155983,
-0.04056096076965332,
0.009900632314383984,
-0.0023547129239887,
0.06202145665884018,
0.011821400374174118,
0.03996153548359871,
0.061731211841106415,
0.04808802902698517,
-0.040136683732271194,
0.029518038034439087,
0.04939635843038559,
-0.005984318442642689,
-0.036587562412023544,
0.0033858157694339752,
-0.0061682360246777534,
-0.02329629845917225,
0.004497738555073738,
-0.029093369841575623,
-0.009380064904689789,
0.016975516453385353,
-0.003919986076653004,
0.013815654441714287,
0.0012301976094022393,
-0.046755097806453705,
-0.046977449208498,
-0.0550924651324749,
-0.034363534301519394,
0.030189651995897293,
-0.027861403301358223,
0.03981902077794075,
0.048057250678539276,
0.02928847447037697,
0.06814921647310257,
0.07311023026704788,
0.0035830747801810503,
-0.05274610221385956,
0.017565321177244186,
0.039416469633579254,
-0.025296125560998917,
-0.06784751266241074,
-0.05964042618870735,
0.037267785519361496,
0.04671816527843475,
0.027537282556295395,
-0.08625428378582001,
0.007749733980745077,
0.060260236263275146,
-0.014281116425991058,
0.03469483554363251,
-0.0022235880605876446,
0.07221731543540955,
0.06750860810279846,
-0.019696099683642387,
0.023521646857261658,
-0.04295776039361954,
0.014180848374962807,
0.0007106627454049885,
0.008013213984668255,
-0.029547907412052155,
-0.014156127348542213,
-0.05777526646852493,
0.027743229642510414,
0.037729304283857346,
0.022361712530255318,
0.041044075042009354,
-0.013051159679889679,
-0.02598605304956436,
0.011430907994508743,
0.002849821001291275,
-0.039076417684555054,
0.003805599408224225,
0.037075966596603394,
0.029670270159840584,
-0.03334258496761322,
0.005262242630124092,
-0.012964273802936077,
0.010565887205302715,
0.026850836351513863,
-0.012786068953573704,
-0.044478461146354675,
-0.0329718254506588,
0.008316458202898502,
-0.019468022510409355,
-0.01984396204352379,
-0.0916411355137825,
0.031125396490097046,
-0.029087847098708153,
-0.000008756042007007636,
0.044258128851652145,
0.026695095002651215,
0.009610682725906372,
0.05385125055909157,
-0.0016215918585658073,
0.016054358333349228,
-0.038939595222473145,
0.017133358865976334,
-0.00826931931078434,
-0.002175144152715802,
-0.019492577761411667,
-0.061745062470436096,
-0.0126314302906394,
-0.010562878102064133,
-0.03976001590490341,
-0.02412502095103264,
-0.031585972756147385,
0.017416885122656822,
-0.007732126396149397,
0.009646194986999035,
-0.02368246763944626,
0.05329335480928421,
-0.04093732312321663,
-0.0270882286131382,
-0.0058523607440292835,
-0.03678971901535988,
-0.08199668675661087,
-0.05055942386388779,
-0.007847301661968231,
0.014326781034469604,
0.021573251113295555,
0.014611104503273964,
0.027744701132178307,
0.02307991124689579,
0.019604111090302467,
-0.02835686318576336,
0.019952110946178436,
0.009814170189201832,
-0.05092144384980202,
-0.039500296115875244,
-0.025187205523252487,
0.025896212086081505,
0.059766363352537155,
-0.01702164113521576,
0.03821989893913269,
0.023622388020157814,
-0.04500407725572586,
-0.000954003888182342,
0.030454937368631363,
0.03434907644987106,
-0.07645570486783981,
-0.025579798966646194,
-0.02702726051211357,
-0.026546712964773178,
0.0336688756942749,
-0.021288515999913216,
-0.008555036038160324,
0.035390548408031464,
0.03533312305808067,
0.035604726523160934,
-0.0024663161020725965,
-0.04803452640771866,
0.012331809848546982,
-0.020052870735526085,
0.016124537214636803,
-0.057256732136011124,
0.05383862182497978,
-0.05862203985452652,
0.007415975444018841,
-0.00853174738585949,
-0.026973437517881393,
-0.02871180884540081,
0.04815789684653282,
-0.019613252952694893,
-0.011095473542809486,
0.01749875210225582,
0.002646491164341569,
-0.03112504445016384,
0.03467641398310661,
-0.005014003720134497,
0.02227444387972355,
-0.03674759715795517,
0.047730252146720886,
-0.0482233501970768,
-0.009627730585634708,
-0.022616036236286163,
-0.0025696996599435806,
-0.043344344943761826,
-0.04444260522723198,
-0.014709096401929855,
-0.051766086369752884,
0.03254265338182449,
0.021727805957198143,
0.03908863291144371,
0.03703899681568146,
0.006316638085991144,
-0.01691400445997715,
0.013259000144898891,
-0.06400739401578903,
-0.017022348940372467,
-0.008689943701028824,
0.04304003342986107,
0.008362690918147564,
0.0636061280965805,
0.03125277906656265,
-0.0563708059489727,
-0.047587137669324875,
0.032420702278614044,
0.0133907999843359,
0.016717083752155304,
0.009352604858577251,
0.06955920159816742,
0.028961623087525368,
0.03278537094593048,
-0.027967829257249832,
-0.008225553669035435,
-0.027269693091511726,
-0.019184699282050133,
0.0005964012234471738,
0.009851152077317238,
-0.00847482867538929,
0.003358684480190277,
-0.0425829254090786,
-0.020610885694622993,
0.0904529020190239,
0.027288679033517838,
0.01564357616007328,
0.021865472197532654,
-0.03344869986176491,
0.015380092896521091,
-0.0008678422891534865,
-0.04242955520749092,
-0.006245291326195002,
0.014257613569498062,
-0.025887424126267433,
0.07137399166822433,
-0.019479747861623764,
0.021725762635469437,
0.034444477409124374,
0.024393197149038315,
-0.018900999799370766,
0.03810201585292816,
-0.03627161309123039,
0.03730616346001625,
0.05609571933746338,
-0.0373685248196125,
0.016030602157115936,
-0.04368676245212555,
0.06279205530881882,
-0.08668414503335953,
0.06172114610671997,
0.03190226852893829,
0.005924462806433439,
-0.0011503087589517236,
-0.022349528968334198,
-0.041949301958084106,
0.01692841574549675,
-0.031615063548088074,
0.07982160896062851,
-0.008379080332815647,
-0.062102798372507095,
0.03997550159692764,
0.023581642657518387,
-0.07180161029100418,
0.07403449714183807,
0.03232227638363838,
0.059542253613471985,
0.04726293683052063,
0.02510463446378708,
-0.07722555100917816,
0.002846541814506054,
-0.040912121534347534,
0.04268941655755043,
-0.05825693532824516,
0.0008935594232752919,
0.042223572731018066,
-0.04921451956033707,
-0.017724277451634407,
0.036238059401512146,
-0.008470083586871624,
-0.018496351316571236,
0.014931240119040012,
-0.05389636382460594,
-0.04243573918938637,
-0.008678244426846504,
0.020642593502998352,
-0.03478871285915375,
-0.00402515335008502,
-0.04401177167892456,
0.012374271638691425,
-0.0031541679054498672,
-0.0018767149886116385,
-0.04170861095190048,
-0.002779388800263405,
0.022263500839471817,
-0.0673714429140091,
-0.017908615991473198,
0.04858938604593277,
0.007555441930890083,
-0.01538387592881918,
0.03677317127585411,
-0.014055328443646431,
0.024482984095811844,
0.02046240121126175,
0.010126803070306778,
0.022900840267539024,
-0.047384314239025116,
-0.03615063428878784,
0.023905685171484947,
-0.01613454520702362,
0.018611907958984375,
-0.01003881823271513,
0.038599926978349686,
0.06374228745698929,
0.017647365108132362,
0.026550406590104103,
-0.043891798704862595,
-0.032363176345825195,
0.026136673986911774,
-0.04677433893084526,
0.009981143288314342,
0.006702275015413761,
-0.053900670260190964,
-0.027597369626164436,
-0.002850269665941596,
-0.020124921575188637,
0.029723001644015312,
-0.04202631115913391,
-0.00016530102584511042,
0.017496095970273018,
-0.03574192523956299,
-0.03373679891228676,
-0.06616505980491638,
-0.03250201418995857,
-0.044315505772829056,
0.04385880380868912,
0.01909586787223816,
-0.03510770574212074,
0.018380889669060707,
-0.050792891532182693,
-0.0487838089466095,
0.03503405302762985,
0.030396101996302605,
-0.04895341396331787,
0.06406424939632416,
0.029859693720936775,
-0.03355704993009567,
0.00315872929058969,
0.044713955372571945,
-0.02963920682668686,
0.012547863647341728,
0.0029127018060535192,
0.010400460101664066,
0.038254301995038986,
0.02439255639910698,
-0.03328155726194382,
-0.015196476131677628,
-0.05650607869029045,
-0.052269041538238525,
-0.054039910435676575,
0.0007755688275210559,
0.06273993104696274
] |
CAMeL-Lab/bert-base-arabic-camelbert-mix | [
"pytorch",
"tf",
"jax",
"bert",
"fill-mask",
"ar",
"arxiv:2103.06678",
"transformers",
"Arabic",
"Dialect",
"Egyptian",
"Gulf",
"Levantine",
"Classical Arabic",
"MSA",
"Modern Standard Arabic",
"license:apache-2.0",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 20,880 | null | ---
language:
- ar
license: apache-2.0
tags:
- Arabic
- Dialect
- Egyptian
- Gulf
- Levantine
- Classical Arabic
- MSA
- Modern Standard Arabic
widget:
- text: "الهدف من الحياة هو [MASK] ."
---
# CAMeLBERT: A collection of pre-trained models for Arabic NLP tasks
## Model description
**CAMeLBERT** is a collection of BERT models pre-trained on Arabic texts with different sizes and variants.
We release pre-trained language models for Modern Standard Arabic (MSA), dialectal Arabic (DA), and classical Arabic (CA), in addition to a model pre-trained on a mix of the three.
We also provide additional models that are pre-trained on a scaled-down set of the MSA variant (half, quarter, eighth, and sixteenth).
The details are described in the paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."*
This model card describes **CAMeLBERT-Mix** (`bert-base-arabic-camelbert-mix`), a model pre-trained on a mixture of these variants: MSA, DA, and CA.
||Model|Variant|Size|#Word|
|-|-|:-:|-:|-:|
|✔|`bert-base-arabic-camelbert-mix`|CA,DA,MSA|167GB|17.3B|
||`bert-base-arabic-camelbert-ca`|CA|6GB|847M|
||`bert-base-arabic-camelbert-da`|DA|54GB|5.8B|
||`bert-base-arabic-camelbert-msa`|MSA|107GB|12.6B|
||`bert-base-arabic-camelbert-msa-half`|MSA|53GB|6.3B|
||`bert-base-arabic-camelbert-msa-quarter`|MSA|27GB|3.1B|
||`bert-base-arabic-camelbert-msa-eighth`|MSA|14GB|1.6B|
||`bert-base-arabic-camelbert-msa-sixteenth`|MSA|6GB|746M|
## Intended uses
You can use the released model for either masked language modeling or next sentence prediction.
However, it is mostly intended to be fine-tuned on an NLP task, such as NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
We release our fine-tuninig code [here](https://github.com/CAMeL-Lab/CAMeLBERT).
#### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='CAMeL-Lab/bert-base-arabic-camelbert-mix')
>>> unmasker("الهدف من الحياة هو [MASK] .")
[{'sequence': '[CLS] الهدف من الحياة هو النجاح. [SEP]',
'score': 0.10861027985811234,
'token': 6232,
'token_str': 'النجاح'},
{'sequence': '[CLS] الهدف من الحياة هو.. [SEP]',
'score': 0.07626965641975403,
'token': 18,
'token_str': '.'},
{'sequence': '[CLS] الهدف من الحياة هو الحياة. [SEP]',
'score': 0.05131986364722252,
'token': 3696,
'token_str': 'الحياة'},
{'sequence': '[CLS] الهدف من الحياة هو الموت. [SEP]',
'score': 0.03734956309199333,
'token': 4295,
'token_str': 'الموت'},
{'sequence': '[CLS] الهدف من الحياة هو العمل. [SEP]',
'score': 0.027189988642930984,
'token': 2854,
'token_str': 'العمل'}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`. Otherwise, you could download the models manually.
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-mix')
model = AutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-mix')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AutoTokenizer, TFAutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-mix')
model = TFAutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-mix')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
## Training data
- MSA (Modern Standard Arabic)
- [The Arabic Gigaword Fifth Edition](https://catalog.ldc.upenn.edu/LDC2011T11)
- [Abu El-Khair Corpus](http://www.abuelkhair.net/index.php/en/arabic/abu-el-khair-corpus)
- [OSIAN corpus](https://vlo.clarin.eu/search;jsessionid=31066390B2C9E8C6304845BA79869AC1?1&q=osian)
- [Arabic Wikipedia](https://archive.org/details/arwiki-20190201)
- The unshuffled version of the Arabic [OSCAR corpus](https://oscar-corpus.com/)
- DA (dialectal Arabic)
- A collection of dialectal Arabic data described in [our paper](https://arxiv.org/abs/2103.06678).
- CA (classical Arabic)
- [OpenITI (Version 2020.1.2)](https://zenodo.org/record/3891466#.YEX4-F0zbzc)
## Training procedure
We use [the original implementation](https://github.com/google-research/bert) released by Google for pre-training.
We follow the original English BERT model's hyperparameters for pre-training, unless otherwise specified.
### Preprocessing
- After extracting the raw text from each corpus, we apply the following pre-processing.
- We first remove invalid characters and normalize white spaces using the utilities provided by [the original BERT implementation](https://github.com/google-research/bert/blob/eedf5716ce1268e56f0a50264a88cafad334ac61/tokenization.py#L286-L297).
- We also remove lines without any Arabic characters.
- We then remove diacritics and kashida using [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools).
- Finally, we split each line into sentences with a heuristics-based sentence segmenter.
- We train a WordPiece tokenizer on the entire dataset (167 GB text) with a vocabulary size of 30,000 using [HuggingFace's tokenizers](https://github.com/huggingface/tokenizers).
- We do not lowercase letters nor strip accents.
### Pre-training
- The model was trained on a single cloud TPU (`v3-8`) for one million steps in total.
- The first 90,000 steps were trained with a batch size of 1,024 and the rest was trained with a batch size of 256.
- The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%.
- We use whole word masking and a duplicate factor of 10.
- We set max predictions per sequence to 20 for the dataset with max sequence length of 128 tokens and 80 for the dataset with max sequence length of 512 tokens.
- We use a random seed of 12345, masked language model probability of 0.15, and short sequence probability of 0.1.
- The optimizer used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01, learning rate warmup for 10,000 steps and linear decay of the learning rate after.
## Evaluation results
- We evaluate our pre-trained language models on five NLP tasks: NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
- We fine-tune and evaluate the models using 12 dataset.
- We used Hugging Face's transformers to fine-tune our CAMeLBERT models.
- We used transformers `v3.1.0` along with PyTorch `v1.5.1`.
- The fine-tuning was done by adding a fully connected linear layer to the last hidden state.
- We use \\(F_{1}\\) score as a metric for all tasks.
- Code used for fine-tuning is available [here](https://github.com/CAMeL-Lab/CAMeLBERT).
### Results
| Task | Dataset | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | --------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| NER | ANERcorp | MSA | 80.8% | 67.9% | 74.1% | 82.4% | 82.0% | 82.1% | 82.6% | 80.8% |
| POS | PATB (MSA) | MSA | 98.1% | 97.8% | 97.7% | 98.3% | 98.2% | 98.3% | 98.2% | 98.2% |
| | ARZTB (EGY) | DA | 93.6% | 92.3% | 92.7% | 93.6% | 93.6% | 93.7% | 93.6% | 93.6% |
| | Gumar (GLF) | DA | 97.3% | 97.7% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% |
| SA | ASTD | MSA | 76.3% | 69.4% | 74.6% | 76.9% | 76.0% | 76.8% | 76.7% | 75.3% |
| | ArSAS | MSA | 92.7% | 89.4% | 91.8% | 93.0% | 92.6% | 92.5% | 92.5% | 92.3% |
| | SemEval | MSA | 69.0% | 58.5% | 68.4% | 72.1% | 70.7% | 72.8% | 71.6% | 71.2% |
| DID | MADAR-26 | DA | 62.9% | 61.9% | 61.8% | 62.6% | 62.0% | 62.8% | 62.0% | 62.2% |
| | MADAR-6 | DA | 92.5% | 91.5% | 92.2% | 91.9% | 91.8% | 92.2% | 92.1% | 92.0% |
| | MADAR-Twitter-5 | MSA | 75.7% | 71.4% | 74.2% | 77.6% | 78.5% | 77.3% | 77.7% | 76.2% |
| | NADI | DA | 24.7% | 17.3% | 20.1% | 24.9% | 24.6% | 24.6% | 24.9% | 23.8% |
| Poetry | APCD | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
### Results (Average)
| | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| Variant-wise-average<sup>[[1]](#footnote-1)</sup> | MSA | 82.1% | 75.7% | 80.1% | 83.4% | 83.0% | 83.3% | 83.2% | 82.3% |
| | DA | 74.4% | 72.1% | 72.9% | 74.2% | 74.0% | 74.3% | 74.1% | 73.9% |
| | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
| Macro-Average | ALL | 78.7% | 74.7% | 77.1% | 79.2% | 79.0% | 79.2% | 79.1% | 78.6% |
<a name="footnote-1">[1]</a>: Variant-wise-average refers to average over a group of tasks in the same language variant.
## Acknowledgements
This research was supported with Cloud TPUs from Google’s TensorFlow Research Cloud (TFRC).
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
```
| [
0.012179635465145111,
0.0035290971864014864,
-0.024493340402841568,
0.078578419983387,
0.040774013847112656,
0.023515045642852783,
0.00827475730329752,
-0.02083495445549488,
-0.014039366506040096,
0.07028469443321228,
0.007319895550608635,
-0.02787882834672928,
0.003958368208259344,
0.032127607613801956,
-0.05281541496515274,
-0.021067677065730095,
-0.005726935807615519,
-0.02365824021399021,
-0.04820180684328079,
-0.03647945448756218,
-0.011755662970244884,
0.0056291613727808,
0.0014018547954037786,
0.01607023924589157,
-0.00009339773532701656,
0.01363788265734911,
-0.014831984415650368,
0.05179077759385109,
0.018820149824023247,
-0.05791027471423149,
-0.01937132142484188,
-0.03470833599567413,
-0.032150186598300934,
-0.024243619292974472,
-0.03610185161232948,
0.007675852160900831,
0.0023086671717464924,
0.003528497414663434,
0.015619163401424885,
0.0675583928823471,
-0.01936265267431736,
0.0029855857137590647,
-0.009607390500605106,
-0.04158342257142067,
0.022017952054739,
-0.00039275881135836244,
-0.03766518458724022,
0.014878815971314907,
0.03921700641512871,
-0.06695450842380524,
-0.06907614320516586,
-0.03718676418066025,
-0.0468948595225811,
0.011636392213404179,
0.007748476229608059,
-0.013326957821846008,
-0.023869983851909637,
-0.0222433153539896,
0.07289712131023407,
-0.064461350440979,
-0.048076558858156204,
0.007531382143497467,
-0.0534968264400959,
0.021002285182476044,
0.02029573917388916,
-0.029604053124785423,
0.010856608860194683,
-0.044841229915618896,
0.06313680112361908,
-0.02655068039894104,
0.03151388466358185,
-0.016237232834100723,
0.013027021661400795,
-0.07473170757293701,
0.030899476259946823,
-0.03041001781821251,
0.036812905222177505,
0.044286247342824936,
-0.04770389199256897,
0.06706609576940536,
0.0032738905865699053,
-0.009289565496146679,
0.027075812220573425,
-0.02984299510717392,
-0.009296838194131851,
0.02361147850751877,
-0.04686284065246582,
-0.005439113825559616,
0.01733449287712574,
0.020555643364787102,
-0.04342374950647354,
-0.036800187081098557,
-0.03266039490699768,
-0.03676224499940872,
-0.006720132660120726,
0.016224142163991928,
0.022656962275505066,
-0.017869705334305763,
0.06003672257065773,
0.017796479165554047,
0.029302746057510376,
0.041403550654649734,
-0.0379081666469574,
0.05421830341219902,
-0.030711142346262932,
-0.022482920438051224,
-0.03341969847679138,
-0.03649025782942772,
-0.01681547425687313,
0.019548499956727028,
0.006792115978896618,
-0.05101294443011284,
-0.05987503007054329,
0.0562833733856678,
-0.03592000901699066,
-0.041060786694288254,
0.027539586648344994,
-0.031437914818525314,
-0.06413685530424118,
-0.036111827939748764,
0.04147016257047653,
-0.010951186530292034,
0.020073432475328445,
0.017794165760278702,
-0.07072456926107407,
0.027883131057024002,
-0.06489774584770203,
-0.022042015567421913,
-0.01911826990544796,
0.03327358886599541,
-0.004023000597953796,
0.04564376547932625,
0.01521308720111847,
-0.06704435497522354,
0.0028988183476030827,
-0.025333289057016373,
-0.03654345124959946,
0.04324553161859512,
0.019191091880202293,
0.10853420197963715,
-0.03674869239330292,
-0.060512278228998184,
0.029348498210310936,
-0.001210015150718391,
-0.027699243277311325,
-0.0132881635800004,
0.011287265457212925,
-0.02169935032725334,
-0.01356662716716528,
-0.018150266259908676,
0.06419049203395844,
-0.05048375204205513,
0.01847100630402565,
0.05300389230251312,
0.0016025943914428353,
0.02721473202109337,
-0.04363247752189636,
-0.018372628837823868,
-0.004002331756055355,
0.0057207816280424595,
-0.027602339163422585,
0.03622306510806084,
-0.0036692246794700623,
-0.03745700791478157,
-0.04462043195962906,
-0.042436614632606506,
-0.006443843711167574,
0.08285986632108688,
0.010484803467988968,
0.004778257571160793,
-0.021362077444791794,
-0.0017349449917674065,
0.04339820146560669,
0.00477177556604147,
-0.046791598200798035,
0.02461162395775318,
0.04561877250671387,
0.01696155220270157,
-0.02526259608566761,
0.08446335047483444,
-0.00211128918454051,
-0.016318833455443382,
-0.034276556223630905,
0.0026633895467966795,
0.008730853907763958,
-0.016357798129320145,
0.0542476549744606,
0.035474564880132675,
-0.006934997159987688,
-0.04329340532422066,
-0.020413247868418694,
0.07480456680059433,
0.00216416222974658,
0.009775733575224876,
0.0050378297455608845,
-0.020032735541462898,
-0.05646039545536041,
0.04672016575932503,
-0.01789664477109909,
0.013040157966315746,
-0.03923354297876358,
0.014481437392532825,
0.008660366758704185,
0.030426794663071632,
0.04706321284174919,
0.04590047523379326,
-0.004409100394695997,
0.06574217230081558,
-0.014774630777537823,
0.006614066194742918,
-0.04910217225551605,
-0.04486357793211937,
-0.007788114715367556,
0.041985951364040375,
0.030620943754911423,
0.04700252786278725,
-0.022976724430918694,
-0.038057513535022736,
0.035812947899103165,
0.05982915684580803,
0.045682743191719055,
0.012609382160007954,
-0.024468230083584785,
-0.0038834610022604465,
0.04042908176779747,
0.06537787616252899,
-0.06828917562961578,
-0.03681740537285805,
0.03426269441843033,
0.05367330089211464,
-0.026840854436159134,
0.009010766632854939,
-0.008812068961560726,
0.024864640086889267,
-0.034497570246458054,
-0.072821244597435,
0.04719396308064461,
0.03553250432014465,
0.003874742891639471,
0.020384619012475014,
0.003945129457861185,
0.006926806643605232,
0.017322028055787086,
0.044534772634506226,
-0.0053686900064349174,
-0.035631123930215836,
0.001891934429295361,
0.013645119033753872,
0.06831129640340805,
-0.04073990881443024,
0.021457873284816742,
-0.009354094043374062,
0.030286500230431557,
0.03689737245440483,
-0.028902770951390266,
0.03263729810714722,
0.006738070398569107,
0.012233509682118893,
-0.04840507358312607,
0.03942662477493286,
-0.010942394845187664,
0.010599538683891296,
0.057161472737789154,
-0.015076207928359509,
0.05127744749188423,
-0.007830802351236343,
0.057292088866233826,
0.05675046145915985,
0.034913334995508194,
0.009539136663079262,
-0.0001706712500890717,
0.07528039813041687,
0.00842025876045227,
-0.0172457043081522,
0.07246985286474228,
-0.04868127033114433,
0.015197338536381721,
-0.05437549948692322,
0.018054360523819923,
0.008445216342806816,
-0.007508163806051016,
0.016382167115807533,
0.010802758857607841,
-0.00015959294978529215,
-0.0057107629254460335,
-0.019362526014447212,
0.00353686953894794,
0.026784971356391907,
-0.03469344973564148,
-0.015004461631178856,
-0.030116599053144455,
-0.027409624308347702,
0.007017049938440323,
-0.07118810713291168,
-0.014280669391155243,
-0.01645846664905548,
-0.03572899475693703,
-0.004403649363666773,
-0.07759197056293488,
-0.030156560242176056,
-0.049072686582803726,
-0.006339435465633869,
0.0226339939981699,
0.009419884532690048,
-0.004078691825270653,
-0.03632587566971779,
0.025052454322576523,
-0.05745363235473633,
-0.02807943895459175,
-0.030233683064579964,
-0.0676436647772789,
-0.03154423460364342,
-0.03234672173857689,
0.052304450422525406,
0.02732834592461586,
-0.001426929491572082,
0.011017316952347755,
0.026932235807180405,
-0.007961503230035305,
-0.038405898958444595,
0.019532494246959686,
0.037005990743637085,
-0.03696642816066742,
-0.057969167828559875,
0.02122006006538868,
-0.006846447940915823,
0.0007752763340249658,
-0.018053971230983734,
-0.032211799174547195,
0.09040862321853638,
0.08180490136146545,
0.009919844567775726,
0.008761017583310604,
-0.011388567276299,
-0.0659872367978096,
-0.04412255436182022,
-0.018425574526190758,
-0.044282689690589905,
-0.01976444572210312,
-0.0212730560451746,
-0.03133809566497803,
-0.02932565100491047,
-0.05279809236526489,
0.005475369747728109,
0.008116848766803741,
0.019167210906744003,
0.04231831058859825,
0.04517866671085358,
0.026412731036543846,
0.048544131219387054,
-0.031021839007735252,
-0.016089020296931267,
0.07150370627641678,
0.006560829468071461,
0.027878906577825546,
-0.06690140813589096,
-0.03042457439005375,
0.05016101896762848,
0.003639583708718419,
-0.016464387997984886,
-0.018130280077457428,
0.0814768522977829,
-0.0033504366874694824,
-0.00859903171658516,
0.0050855521112680435,
0.00005025547943660058,
-0.04531748220324516,
-0.014194588176906109,
0.005905891768634319,
-0.0112002557143569,
-0.04983745142817497,
-0.007430919446051121,
0.0030285802204161882,
0.06425939500331879,
-0.036845650523900986,
-0.059152524918317795,
-0.012512202374637127,
0.05664413794875145,
-0.00448352238163352,
-0.004967282991856337,
-0.0189849641174078,
0.0107804536819458,
-0.04368448629975319,
-0.035335224121809006,
-0.0018110943492501974,
-0.011159735731780529,
-0.011687777936458588,
0.0376109704375267,
0.013373157940804958,
-0.01058004517108202,
0.01873825490474701,
0.025935707613825798,
0.05075442045927048,
0.010459356009960175,
-0.03966985642910004,
0.029285239055752754,
-0.023888040333986282,
0.024629488587379456,
-0.002277608495205641,
-0.038494233042001724,
-0.053582895547151566,
-0.07856784015893936,
-0.003577259834855795,
0.0037359660491347313,
-0.04871638864278793,
-0.0236346535384655,
0.03850686177611351,
-0.033706262707710266,
0.005709933117032051,
-0.005516977980732918,
0.034870248287916183,
0.014559907838702202,
-0.0308617502450943,
0.06594247370958328,
-0.0015854149824008346,
0.04939659312367439,
-0.07135599851608276,
0.040880341082811356,
-0.03429073840379715,
0.0036977867130190134,
-0.00016709788178559393,
0.06488289684057236,
0.019088342785835266,
0.03895345330238342,
0.07591771334409714,
0.052370585501194,
-0.03440958634018898,
0.04185978323221207,
0.05475490912795067,
0.003931126557290554,
-0.0455319881439209,
-0.0015275394544005394,
-0.012472388334572315,
-0.017182607203722,
-0.015360449440777302,
-0.006917930673807859,
-0.02628353051841259,
0.022415589541196823,
-0.003982885740697384,
0.008870551362633705,
0.01010760385543108,
-0.034165095537900925,
-0.04031480848789215,
-0.051820456981658936,
-0.03674641624093056,
0.020199056714773178,
-0.032931286841630936,
0.05141628533601761,
0.016276158392429352,
0.017642326653003693,
0.0719120055437088,
0.06778273731470108,
-0.005698653403669596,
-0.02970702573657036,
0.016243262216448784,
0.03570692241191864,
-0.02360393851995468,
-0.05408427119255066,
-0.05270310863852501,
0.05077493190765381,
0.04889587685465813,
0.018772905692458153,
-0.09154798835515976,
-0.008243043906986713,
0.057495858520269394,
-0.016050338745117188,
0.0510578416287899,
-0.014610791578888893,
0.05570010468363762,
0.049524299800395966,
-0.03555356338620186,
0.025979463011026382,
-0.021834908053278923,
0.02684750221669674,
-0.009844481945037842,
0.00037969747791066766,
-0.01775740273296833,
-0.03443223983049393,
-0.0674266517162323,
0.02300378493964672,
0.0317913293838501,
0.026556769385933876,
0.061305269598960876,
-0.015253100544214249,
-0.03433552756905556,
0.02045585960149765,
0.010296755470335484,
-0.035638052970170975,
0.01078362762928009,
0.03352295234799385,
0.03975565731525421,
-0.039081260561943054,
0.00269247405230999,
-0.013834701851010323,
-0.0022056528832763433,
0.01579132117331028,
0.006782654672861099,
-0.05123423784971237,
-0.05542139708995819,
0.007268585730344057,
-0.02597637102007866,
-0.018237493932247162,
-0.098036028444767,
0.039664313197135925,
-0.029354847967624664,
-0.0063330987468361855,
0.03368676081299782,
0.004438008181750774,
0.01869727298617363,
0.050100553780794144,
0.018770575523376465,
0.02162504941225052,
-0.03562973439693451,
0.04511503130197525,
-0.008130005560815334,
0.0005489060422405601,
-0.02438206411898136,
-0.04685856029391289,
0.012407977133989334,
-0.009348608553409576,
-0.011062218807637691,
-0.03525662422180176,
-0.011102044023573399,
0.023283954709768295,
-0.010727368295192719,
0.0000480432718177326,
-0.0314360037446022,
0.049877990037202835,
-0.03897102549672127,
-0.04163438826799393,
-0.024110527709126472,
-0.034299712628126144,
-0.08011051267385483,
-0.0655519887804985,
-0.0020417498890310526,
0.02042851224541664,
0.021204419434070587,
0.017856575548648834,
0.02062404900789261,
0.017162857577204704,
0.01701228693127632,
-0.02844516560435295,
0.03519101440906525,
-0.003199267666786909,
-0.050771765410900116,
-0.059089016169309616,
-0.01782868802547455,
0.03177115321159363,
0.03186870738863945,
-0.02275252155959606,
0.03327258303761482,
0.03227611258625984,
-0.04255780577659607,
0.016805624589323997,
0.024990631267428398,
0.023270228877663612,
-0.06817213445901871,
-0.04376139119267464,
-0.02471514232456684,
-0.05301055312156677,
0.04671592637896538,
-0.007763063535094261,
-0.005998499691486359,
0.026958107948303223,
0.04400055110454559,
0.03508499264717102,
0.005479821935296059,
-0.03828226029872894,
0.023026451468467712,
-0.022619014605879784,
0.020461106672883034,
-0.043769463896751404,
0.04998918995261192,
-0.033478744328022,
0.009745382703840733,
-0.0023355239536613226,
-0.024580325931310654,
-0.015259802341461182,
0.05031532794237137,
-0.01631929539144039,
-0.015875454992055893,
-0.0001827399682952091,
0.015885787084698677,
-0.023104721680283546,
0.040035612881183624,
-0.021483229473233223,
0.03204444423317909,
-0.02480718493461609,
0.05125702917575836,
-0.028580818325281143,
-0.015390503220260143,
-0.035118747502565384,
-0.006681446917355061,
-0.02844231203198433,
-0.022941598668694496,
-0.01642174832522869,
-0.05242490395903587,
0.024339500814676285,
0.03224128857254982,
0.05373198166489601,
0.048880331218242645,
-0.0016982327215373516,
0.004328330513089895,
0.016103247180581093,
-0.044994354248046875,
-0.010791906155645847,
-0.012411118485033512,
0.03660744056105614,
0.013092752546072006,
0.07422174513339996,
0.02947154827415943,
-0.0422796756029129,
-0.0599985308945179,
0.036939289420843124,
0.016299616545438766,
0.02443738654255867,
0.016751376911997795,
0.06346946954727173,
0.02964829094707966,
0.04237935319542885,
-0.023915749043226242,
0.0026535457000136375,
-0.017669472843408585,
-0.037480223923921585,
0.011749766767024994,
0.003988204058259726,
-0.0041681453585624695,
-0.001451533637009561,
-0.026514196768403053,
-0.02749364823102951,
0.0757903978228569,
0.031081030145287514,
-0.009571691043674946,
0.021991973742842674,
-0.032197121530771255,
0.02465587854385376,
-0.011035759933292866,
-0.05749078467488289,
-0.004349713679403067,
-0.0021457297261804342,
-0.04610254615545273,
0.06246752664446831,
-0.012529897503554821,
0.03486699238419533,
0.03316349536180496,
0.010086851194500923,
-0.0017312774434685707,
0.04643411934375763,
-0.038219016045331955,
0.025162076577544212,
0.029889976605772972,
-0.050814189016819,
0.02009090781211853,
-0.04128311574459076,
0.07996483892202377,
-0.09053651243448257,
0.05645686015486717,
0.02575669251382351,
0.012444737367331982,
0.012554790824651718,
-0.008029050193727016,
-0.02677927538752556,
0.009905815124511719,
-0.03662451356649399,
0.07760116457939148,
0.01130451075732708,
-0.051189176738262177,
0.03289695456624031,
0.03615522384643555,
-0.06547980010509491,
0.08285532146692276,
0.042711470276117325,
0.06502741575241089,
0.03709471970796585,
0.03396783396601677,
-0.057323019951581955,
0.005814214237034321,
-0.028392402455210686,
0.02877197228372097,
-0.0644528716802597,
0.005679725669324398,
0.04252977296710014,
-0.041231919080019,
-0.009971683844923973,
0.025005806237459183,
-0.01824357733130455,
-0.015244574286043644,
0.032923467457294464,
-0.056833963841199875,
-0.0562933012843132,
-0.005891628563404083,
0.022478656843304634,
-0.06542032212018967,
0.0036863964051008224,
-0.039692845195531845,
0.001313281711190939,
0.006276752799749374,
-0.019026469439268112,
-0.06818556785583496,
0.011958960443735123,
0.04319123923778534,
-0.06328073889017105,
-0.029164759442210197,
0.0742841511964798,
0.011017108336091042,
-0.023068493232131004,
0.036225222051143646,
-0.017831379547715187,
0.006132133770734072,
0.030560605227947235,
0.006649704184383154,
0.014371746219694614,
-0.05616460368037224,
-0.026810811832547188,
0.003928134683519602,
-0.01455893274396658,
0.010018078610301018,
-0.017654407769441605,
0.03574737161397934,
0.0735694020986557,
0.03437088057398796,
0.03326807916164398,
-0.05288922041654587,
-0.019470227882266045,
0.04164184629917145,
-0.05791974812746048,
0.002171035623177886,
0.005486969370394945,
-0.04510826990008354,
-0.028327742591500282,
-0.011667423881590366,
-0.02234799414873123,
0.040076542645692825,
-0.05358944460749626,
-0.011639871634542942,
-0.00993343349546194,
-0.03167988359928131,
-0.03773839771747589,
-0.09524554014205933,
-0.015949998050928116,
-0.048194196075201035,
0.044109709560871124,
0.005503687541931868,
-0.038130760192871094,
0.027672743424773216,
-0.04165886715054512,
-0.060179296880960464,
0.030972778797149658,
0.028301842510700226,
-0.059527184814214706,
0.0469309538602829,
0.03911808133125305,
-0.0359099917113781,
0.0017401495715603232,
0.0417378805577755,
-0.020703162997961044,
0.00142951391171664,
0.00901014357805252,
0.0005553874652832747,
0.027979470789432526,
0.021060550585389137,
-0.018860651180148125,
-0.017883671447634697,
-0.05284485965967178,
-0.048213887959718704,
-0.02032526396214962,
0.00019007819355465472,
0.05837395787239075
] |
CAMeL-Lab/bert-base-arabic-camelbert-msa-did-madar-twitter5 | [
"pytorch",
"tf",
"bert",
"text-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 75 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "عامل ايه ؟"
---
# CAMeLBERT-MSA DID MADAR Twitter-5 Model
## Model description
**CAMeLBERT-MSA DID MADAR Twitter-5 Model** is a dialect identification (DID) model that was built by fine-tuning the [CAMeLBERT-MSA](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-msa/) model.
For the fine-tuning, we used the [MADAR Twitter-5](https://camel.abudhabi.nyu.edu/madar-shared-task-2019/) dataset, which includes 21 labels.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-MSA DID MADAR Twitter-5 model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> did = pipeline('text-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-did-madar-twitter5')
>>> sentences = ['عامل ايه ؟', 'شلونك ؟ شخبارك ؟']
>>> did(sentences)
[{'label': 'Egypt', 'score': 0.5741344094276428},
{'label': 'Kuwait', 'score': 0.5225679278373718}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
-0.002267074305564165,
-0.015714971348643303,
-0.025773359462618828,
0.060107868164777756,
0.0664815828204155,
0.03431851789355278,
-0.015534059144556522,
-0.015253392979502678,
-0.00617400836199522,
0.06469719856977463,
0.011874234303832054,
-0.022866077721118927,
0.005545404274016619,
0.030384249985218048,
-0.030148683115839958,
-0.030488424003124237,
0.003144998336210847,
-0.03810540959239006,
-0.043705329298973083,
-0.021598251536488533,
-0.007436078507453203,
0.0028219560626894236,
-0.0010429808171465993,
-0.0018687431002035737,
0.0015115855494514108,
0.021522745490074158,
-0.027498818933963776,
0.05821674317121506,
0.06203661859035492,
-0.059185273945331573,
-0.02361391671001911,
-0.020597461611032486,
-0.0188573207706213,
-0.00877239927649498,
-0.04331888630986214,
0.00486752251163125,
0.000034407785278744996,
0.015064531937241554,
0.013768781907856464,
0.048452228307724,
-0.021310193464159966,
0.01703447289764881,
-0.010016575455665588,
-0.02379949577152729,
0.050555646419525146,
0.02192930318415165,
-0.03940484672784805,
0.020673658698797226,
0.04462403059005737,
-0.03497627377510071,
-0.07866969704627991,
-0.0666036382317543,
-0.06482028216123581,
0.04458140581846237,
0.01206876803189516,
-0.02047562412917614,
-0.034202396869659424,
-0.03868493437767029,
0.054927341639995575,
-0.06165869161486626,
-0.025887949392199516,
0.011384251527488232,
-0.04594048112630844,
0.021883973851799965,
0.036464035511016846,
-0.02321469597518444,
0.01757340505719185,
-0.04170503094792366,
0.0658789575099945,
-0.027799777686595917,
0.050249163061380386,
-0.010767722502350807,
0.01689193956553936,
-0.0627310648560524,
0.017209846526384354,
-0.028352586552500725,
0.0504966601729393,
0.04173078387975693,
-0.03465355187654495,
0.0739995539188385,
0.007793312892317772,
0.006897217594087124,
0.038350217044353485,
-0.01204057689756155,
-0.005040290299803019,
0.034083545207977295,
-0.05677597597241402,
-0.00080247683217749,
0.027113821357488632,
0.0345005989074707,
-0.04739469289779663,
-0.04052003473043442,
-0.013284154236316681,
-0.04614910110831261,
-0.015797529369592667,
0.045635949820280075,
0.014777772128582,
-0.02609875053167343,
0.04473203048110008,
0.036807283759117126,
0.03970997780561447,
0.0500505194067955,
-0.020871099084615707,
0.053010959178209305,
-0.01518924068659544,
-0.016674580052495003,
0.00044941811938770115,
-0.034915827214717865,
-0.026285987347364426,
0.05118359252810478,
0.016556868329644203,
-0.0574188306927681,
-0.04666626453399658,
0.03919530659914017,
0.002010124968364835,
-0.01627470925450325,
0.04387656971812248,
-0.038564443588256836,
-0.045898765325546265,
-0.01974773220717907,
0.036097452044487,
-0.010944787412881851,
0.005125535652041435,
0.021412797272205353,
-0.04275185987353325,
0.005016399081796408,
-0.06374610960483551,
-0.025804124772548676,
-0.011059414595365524,
0.0117464205250144,
-0.01501227356493473,
0.039750099182128906,
0.019515208899974823,
-0.06366515904664993,
-0.005723757203668356,
0.0006278780638240278,
-0.060896579176187515,
0.03355424478650093,
0.027882391586899757,
0.0996817871928215,
-0.0547749325633049,
-0.04519926384091377,
0.013601085171103477,
-0.0060447570867836475,
-0.021298695355653763,
-0.0063078212551772594,
0.015793679282069206,
-0.02692868374288082,
-0.019824186339974403,
-0.009416581131517887,
0.04948902130126953,
-0.04816379398107529,
0.0006325836875475943,
0.04115097224712372,
0.009609149768948555,
0.03313833475112915,
-0.028599698096513748,
-0.004820612259209156,
-0.008620642125606537,
0.014648670330643654,
-0.061418019235134125,
0.06033432111144066,
0.005702880676835775,
-0.02496790885925293,
-0.021724168211221695,
-0.044263217598199844,
-0.010233422741293907,
0.08631199598312378,
-0.008745361119508743,
-0.0008355387253686786,
-0.010037209838628769,
0.002126827836036682,
0.043223243206739426,
0.01675812155008316,
-0.03329144045710564,
0.02940983697772026,
0.055003393441438675,
0.01040453277528286,
-0.01813630759716034,
0.08602502197027206,
-0.00394286448135972,
-0.03008047118782997,
-0.021115237846970558,
-0.006514956243336201,
-0.004026821348816156,
-0.020426008850336075,
0.04088946431875229,
0.03559757396578789,
-0.019551517441868782,
-0.042967330664396286,
-0.028959989547729492,
0.06534069031476974,
0.0015223314985632896,
0.0064685451798141,
-0.024995846673846245,
-0.007818645797669888,
-0.04222564399242401,
0.04137919098138809,
-0.032888203859329224,
0.009668097831308842,
-0.015119924210011959,
0.004408013075590134,
-0.006032210309058428,
0.03194662556052208,
0.04902457818388939,
0.03262833505868912,
-0.020117219537496567,
0.08233293145895004,
-0.0331113263964653,
0.010441676713526249,
-0.033624064177274704,
-0.054900187999010086,
-0.016932466998696327,
0.0317862443625927,
0.02848559245467186,
0.02592414803802967,
-0.021665092557668686,
-0.028819803148508072,
0.0241683442145586,
0.05608036369085312,
0.047907087951898575,
0.02673865109682083,
-0.029601596295833588,
-0.012995928525924683,
0.03705863282084465,
0.06142013520002365,
-0.07942447811365128,
-0.028262361884117126,
0.031176162883639336,
0.03184366598725319,
-0.05351138114929199,
0.012171972543001175,
-0.0018471037037670612,
0.03150124102830887,
-0.04694962501525879,
-0.07166814059019089,
0.042678263038396835,
0.022755499929189682,
0.016749754548072815,
0.01142650842666626,
-0.01954217441380024,
-0.029805772006511688,
0.03172467648983002,
0.009812829084694386,
0.00023159502597991377,
-0.04838300123810768,
0.008881119079887867,
0.01568574830889702,
0.0632551833987236,
-0.05389119312167168,
0.023992208763957024,
0.007735836319625378,
-0.005701726768165827,
0.052149225026369095,
-0.045478761196136475,
0.03439733386039734,
0.02436480112373829,
0.007435573264956474,
-0.03138357028365135,
0.027133917436003685,
-0.008028748445212841,
0.02221614122390747,
0.04219691455364227,
-0.0032179667614400387,
0.05657733604311943,
-0.020487051457166672,
0.05635768920183182,
0.06245018541812897,
0.04050729051232338,
0.0060193478129804134,
0.019804371520876884,
0.06655282527208328,
0.006644026376307011,
-0.016656992956995964,
0.05991888791322708,
-0.06152962148189545,
0.03094227984547615,
-0.04560521990060806,
0.011410280130803585,
-0.01332422997802496,
-0.01676027663052082,
0.04831864312291145,
0.019966302439570427,
-0.007116988766938448,
-0.015704574063420296,
-0.018570266664028168,
0.010258082300424576,
0.04083649441599846,
-0.029872193932533264,
-0.03262220695614815,
-0.009150234051048756,
-0.03471733257174492,
0.024967078119516373,
-0.06511810421943665,
-0.017178364098072052,
-0.02096005529165268,
-0.03603688254952431,
0.0005729232798330486,
-0.07107237726449966,
-0.0458611324429512,
-0.04633646458387375,
-0.011149662546813488,
0.034446198493242264,
0.016388028860092163,
-0.0020647982601076365,
-0.032325223088264465,
0.020039010792970657,
-0.03709433972835541,
-0.030144359916448593,
-0.04257430508732796,
-0.07839982956647873,
0.0019797468557953835,
-0.042075373232364655,
0.03456014394760132,
0.0075687686912715435,
-0.008608410134911537,
0.004207781050354242,
0.021086877211928368,
-0.016175920143723488,
-0.04352852702140808,
0.035499364137649536,
0.03122027963399887,
-0.015806524083018303,
-0.0662836879491806,
0.024323133751749992,
-0.024043168872594833,
0.019968124106526375,
-0.02609892375767231,
-0.05495274066925049,
0.07059243321418762,
0.06344431638717651,
0.010905049741268158,
0.01832091435790062,
-0.020338591188192368,
-0.05949966609477997,
-0.04812588170170784,
-0.03326219692826271,
-0.0272259209305048,
-0.04172039031982422,
0.0024506687186658382,
-0.036274317651987076,
-0.030222943052649498,
-0.056187085807323456,
-0.01577710546553135,
0.013770170509815216,
0.015399381518363953,
0.03958668187260628,
0.05249166116118431,
0.042256567627191544,
0.05725691467523575,
-0.030963828787207603,
-0.029998769983649254,
0.06657908111810684,
0.020611446350812912,
0.01385054923593998,
-0.07456833124160767,
-0.035876136273145676,
0.04710494726896286,
0.024517297744750977,
-0.020717406645417213,
-0.011550664901733398,
0.0730246901512146,
-0.002406288171187043,
0.001578938914462924,
0.010008223354816437,
-0.00849247071892023,
-0.005959221627563238,
-0.005408515688031912,
0.006272262893617153,
0.009607587940990925,
-0.056581851094961166,
-0.016067782416939735,
0.01036730408668518,
0.07015194743871689,
-0.050903260707855225,
-0.06524588912725449,
-0.005556704942137003,
0.06624916940927505,
0.026688413694500923,
0.003977079410105944,
-0.03647707402706146,
0.014180399477481842,
-0.06059940904378891,
-0.04187043011188507,
0.024461552500724792,
0.00008333189180120826,
0.005830489099025726,
0.032661013305187225,
0.013656901195645332,
-0.03556547313928604,
0.032403673976659775,
0.024902919307351112,
0.05328169837594032,
0.013719571754336357,
-0.04713219776749611,
0.016276152804493904,
-0.026483014225959778,
0.020845625549554825,
-0.004929916467517614,
-0.04663807153701782,
-0.0459311343729496,
-0.09586601704359055,
-0.023818673565983772,
0.005728987045586109,
-0.025198742747306824,
-0.01772521436214447,
0.04556059464812279,
-0.01959773153066635,
0.0009644695674069226,
-0.004000308457762003,
0.03260314464569092,
0.046146273612976074,
-0.013163292780518532,
0.05214644968509674,
-0.0033763847313821316,
0.04084490239620209,
-0.05826286971569061,
0.012814261019229889,
-0.018185757100582123,
0.028601331636309624,
0.0027667907997965813,
0.06568176299333572,
0.02811593748629093,
0.049465928226709366,
0.07460315525531769,
0.04387172684073448,
-0.029376650229096413,
0.04077984765172005,
0.048383790999650955,
-0.005404022056609392,
-0.04039711132645607,
-0.00615656329318881,
-0.02011597342789173,
-0.01825224794447422,
0.018090445548295975,
-0.02226349525153637,
-0.003927999176084995,
0.014736180193722248,
-0.011662163771688938,
0.003439673688262701,
0.002881989348679781,
-0.030150076374411583,
-0.026782626286149025,
-0.061763275414705276,
-0.015965590253472328,
0.047634247690439224,
-0.03121252730488777,
0.02889331802725792,
0.030617648735642433,
0.011690626852214336,
0.08696965873241425,
0.05674733966588974,
-0.004451966844499111,
-0.06301771849393845,
0.01643380895256996,
0.03312588483095169,
-0.027942821383476257,
-0.07012075185775757,
-0.0699789822101593,
0.047662217170000076,
0.04667217656970024,
-0.0021617033053189516,
-0.07867085933685303,
0.008707549422979355,
0.05968654155731201,
-0.009256957098841667,
0.06806963682174683,
-0.011141357012093067,
0.042885467410087585,
0.06296811252832413,
-0.0499456450343132,
0.014729335904121399,
-0.035716138780117035,
0.027077311649918556,
0.004061234183609486,
0.02975684590637684,
-0.02532268315553665,
-0.02673429436981678,
-0.04310411214828491,
0.04080062732100487,
0.03533986210823059,
0.03231430798768997,
0.049555301666259766,
0.006548500154167414,
-0.045645151287317276,
0.0032340760808438063,
0.0053028324618935585,
-0.02968878298997879,
-0.01611008681356907,
0.04252231493592262,
0.05770358443260193,
-0.0300265122205019,
-0.00830378383398056,
-0.008962752297520638,
-0.01358296349644661,
0.009814999997615814,
-0.0002775337197817862,
-0.056429821997880936,
-0.048149265348911285,
0.006273484323173761,
-0.022981276735663414,
-0.015617216005921364,
-0.10028266161680222,
0.044764913618564606,
-0.028604786843061447,
-0.005147257819771767,
0.04541274532675743,
0.023753594607114792,
0.010653459466993809,
0.0455995537340641,
0.009053517132997513,
0.02887638285756111,
-0.02662701904773712,
0.03295176848769188,
0.007761841639876366,
-0.01816295087337494,
-0.026245882734656334,
-0.0670371726155281,
-0.0010726446053013206,
-0.008914768695831299,
-0.03554154932498932,
-0.042922962456941605,
-0.028996998444199562,
0.011666135862469673,
0.0097711943089962,
-0.003916771151125431,
-0.030774524435400963,
0.0603572279214859,
-0.043420348316431046,
-0.015438107773661613,
-0.0153944818302989,
-0.0329255647957325,
-0.08875607699155807,
-0.05910829082131386,
-0.015941325575113297,
0.0155034139752388,
0.019515199586749077,
0.012429358437657356,
0.014648040756583214,
0.01941818930208683,
0.007473446894437075,
-0.03311026841402054,
0.02910059131681919,
-0.0007077626651152968,
-0.03232669457793236,
-0.03293061628937721,
-0.020173484459519386,
0.029334530234336853,
0.055420584976673126,
0.001139541738666594,
0.03285486623644829,
0.046267375349998474,
-0.026377873495221138,
-0.0063805654644966125,
0.03742366284132004,
0.030145149677991867,
-0.0642276480793953,
-0.05256335064768791,
-0.021785110235214233,
-0.0482398122549057,
0.026090748608112335,
-0.020852170884609222,
-0.004879457410424948,
0.013534611091017723,
0.02491825446486473,
0.021365884691476822,
-0.00954562146216631,
-0.03563345596194267,
0.015851270407438278,
-0.022729480639100075,
0.011180654168128967,
-0.059705253690481186,
0.04150031507015228,
-0.033129021525382996,
-0.0010519148781895638,
-0.007687426172196865,
-0.03161392733454704,
-0.025888174772262573,
0.06203228607773781,
0.002435601083561778,
-0.01467670314013958,
-0.005446154158562422,
-0.0012009124038740993,
-0.009168349206447601,
0.03301335871219635,
0.01666378043591976,
0.020293960347771645,
-0.046676911413669586,
0.044267017394304276,
-0.04217229038476944,
0.0005174161633476615,
-0.038165971636772156,
-0.016932642087340355,
-0.01607377640902996,
-0.05286452919244766,
-0.035629063844680786,
-0.054726652801036835,
0.03413553163409233,
0.013716611079871655,
0.026487309485673904,
0.04685261845588684,
0.005082228220999241,
0.01188802719116211,
0.016307715326547623,
-0.08126642554998398,
-0.023736631497740746,
-0.019736051559448242,
0.04916718602180481,
0.02579396404325962,
0.061757367104291916,
0.027853574603796005,
-0.03271053731441498,
-0.06557264178991318,
0.045867517590522766,
0.020619820803403854,
0.013915611431002617,
0.02461792342364788,
0.0537840761244297,
0.03624491021037102,
0.04895680397748947,
-0.024805385619401932,
-0.013906030915677547,
-0.01939292997121811,
-0.04320210590958595,
0.0010932186851277947,
0.016053516417741776,
-0.00856414157897234,
0.008209804072976112,
-0.038118649274110794,
-0.01374074537307024,
0.07232324779033661,
0.05888950079679489,
-0.0006480024312622845,
0.011259865947067738,
-0.04013993591070175,
0.03163553401827812,
-0.007565569132566452,
-0.05640960484743118,
-0.03335536643862724,
0.010250287130475044,
-0.04775075241923332,
0.07493144273757935,
-0.014714720658957958,
0.02237425372004509,
0.017439117655158043,
0.03347877785563469,
-0.003942289389669895,
0.04180595278739929,
-0.03615409508347511,
0.031011240556836128,
0.031856805086135864,
-0.0392281636595726,
0.01609492115676403,
-0.031110944226384163,
0.0577702634036541,
-0.07002001255750656,
0.0513429157435894,
0.019060514867305756,
0.012630539014935493,
0.01062905415892601,
-0.030705135315656662,
-0.02855992689728737,
0.02099921554327011,
-0.030031396076083183,
0.06545372307300568,
-0.01615390181541443,
-0.052939072251319885,
0.047238171100616455,
0.03845297172665596,
-0.08925717324018478,
0.07299952208995819,
0.05140671506524086,
0.048645008355379105,
0.035106219351291656,
0.017026975750923157,
-0.07539448887109756,
0.010700860060751438,
-0.03668580204248428,
0.03033137135207653,
-0.0806727185845375,
0.013585573993623257,
0.03009135089814663,
-0.02755640633404255,
-0.01700628362596035,
0.03061855025589466,
-0.012499978765845299,
-0.011969097889959812,
0.0033222760539501905,
-0.04754895716905594,
-0.03706050291657448,
-0.022285407409071922,
0.009279838763177395,
-0.04022447392344475,
0.005318594630807638,
-0.03446638211607933,
-0.0019634105265140533,
0.014017017558217049,
-0.016905702650547028,
-0.051679372787475586,
0.006242867559194565,
0.03109605237841606,
-0.06182500720024109,
-0.021268660202622414,
0.0683097094297409,
0.005206916481256485,
-0.029443390667438507,
0.03529919683933258,
-0.01683018170297146,
0.02051156386733055,
0.01758694276213646,
-0.0018553026020526886,
0.012090159580111504,
-0.05658799037337303,
-0.005541834980249405,
0.002043704502284527,
-0.007871085777878761,
0.01801481284201145,
-0.01959495060145855,
0.03102296218276024,
0.07281220704317093,
0.031641118228435516,
0.029393041506409645,
-0.042597655206918716,
-0.018208084627985954,
0.010945076122879982,
-0.04954679682850838,
-0.0015410961350426078,
0.006872208323329687,
-0.04975083842873573,
-0.03285401314496994,
-0.023579329252243042,
-0.016785694286227226,
0.04873202368617058,
-0.04248528927564621,
-0.007878299802541733,
0.007078775204718113,
-0.024997921660542488,
-0.023105058819055557,
-0.0691676065325737,
-0.03386601060628891,
-0.02266782894730568,
0.038200270384550095,
0.013900483958423138,
-0.0398135781288147,
0.019221946597099304,
-0.043664030730724335,
-0.07160890847444534,
0.014772125519812107,
0.01994319073855877,
-0.027065420523285866,
0.05681959167122841,
0.04048687592148781,
-0.034912385046482086,
0.027215925976634026,
0.04011520743370056,
-0.020972490310668945,
0.01774679869413376,
-0.007189296185970306,
0.014767230488359928,
0.020886221900582314,
0.039147961884737015,
-0.02219659648835659,
-0.024199651554226875,
-0.06202973425388336,
-0.041522182524204254,
-0.03796767443418503,
0.0005870641325600445,
0.06165967881679535
] |
CAMeL-Lab/bert-base-arabic-camelbert-msa-did-nadi | [
"pytorch",
"tf",
"bert",
"text-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 71 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "عامل ايه ؟"
---
# CAMeLBERT-MSA DID NADI Model
## Model description
**CAMeLBERT-MSA DID NADI Model** is a dialect identification (DID) model that was built by fine-tuning the [CAMeLBERT Modern Standard Arabic (MSA)](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-msa/) model.
For the fine-tuning, we used the [NADI Coountry-level](https://sites.google.com/view/nadi-shared-task) dataset, which includes 21 labels.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-MSA DID NADI model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> did = pipeline('text-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-did-nadi')
>>> sentences = ['عامل ايه ؟', 'شلونك ؟ شخبارك ؟']
>>> did(sentences)
[{'label': 'Egypt', 'score': 0.9242768287658691},
{'label': 'Saudi_Arabia', 'score': 0.3400847613811493}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
-0.0008572228252887726,
-0.0047104801051318645,
-0.027140013873577118,
0.05817613750696182,
0.06655055284500122,
0.029706118628382683,
-0.00880313292145729,
-0.009501297026872635,
-0.006922428961843252,
0.07461602985858917,
-0.003114960854873061,
-0.02374286577105522,
0.02055269666016102,
0.03561555594205856,
-0.03927331417798996,
-0.016521846875548363,
0.004120803903788328,
-0.04410387948155403,
-0.06078759580850601,
-0.030344808474183083,
-0.005388353485614061,
-0.0017057576915249228,
0.0029956812504678965,
0.002344034379348159,
-0.000005739469088439364,
0.029351700097322464,
-0.03230961412191391,
0.054167769849300385,
0.06234104558825493,
-0.05719491466879845,
-0.018598144873976707,
-0.018036281690001488,
-0.0245047714561224,
-0.020262880250811577,
-0.048620667308568954,
0.0016497181495651603,
-0.0006622105138376355,
0.010061608627438545,
0.012739558704197407,
0.04960218444466591,
-0.02518419548869133,
0.030418923124670982,
-0.01654074341058731,
-0.022765478119254112,
0.04348520562052727,
0.028343072161078453,
-0.03555376082658768,
0.019726943224668503,
0.028272848576307297,
-0.04067199304699898,
-0.07179397344589233,
-0.06673675030469894,
-0.06115519255399704,
0.03817841038107872,
0.005503201857209206,
-0.011819550767540932,
-0.03689940273761749,
-0.034209396690130234,
0.057998113334178925,
-0.06563349068164825,
-0.027314670383930206,
0.013836785219609737,
-0.054880280047655106,
0.017868006601929665,
0.03176979348063469,
-0.03095848672091961,
0.021384945139288902,
-0.039372291415929794,
0.05711260810494423,
-0.03515251353383064,
0.04853055253624916,
-0.011005652137100697,
0.007490028161555529,
-0.06488312780857086,
0.022230172529816628,
-0.02832908183336258,
0.04413454607129097,
0.03288455680012703,
-0.03202638030052185,
0.06423216313123703,
0.006920442450791597,
0.012178786098957062,
0.0325617678463459,
-0.011758661828935146,
-0.008920673280954361,
0.0304347462952137,
-0.05329528823494911,
-0.005676403641700745,
0.024591689929366112,
0.032369811087846756,
-0.05213397741317749,
-0.04331067577004433,
-0.000837907602544874,
-0.047116391360759735,
-0.0083955442532897,
0.037493426352739334,
0.017304016277194023,
-0.028242086991667747,
0.049184512346982956,
0.03515729308128357,
0.03859765827655792,
0.04774317145347595,
-0.023809995502233505,
0.051838990300893784,
-0.013023865409195423,
-0.01391683705151081,
-0.0028877053409814835,
-0.03624730184674263,
-0.030150989070534706,
0.049623753875494,
0.006840571761131287,
-0.0489436499774456,
-0.0456174835562706,
0.03446203097701073,
-0.011509370058774948,
-0.026854444295167923,
0.0471700020134449,
-0.044467806816101074,
-0.049558840692043304,
-0.03641621395945549,
0.02834467589855194,
-0.011630222201347351,
0.004816347733139992,
0.017646251246333122,
-0.0420699380338192,
0.013380383141338825,
-0.06996061652898788,
-0.016879985108971596,
-0.018442098051309586,
0.011603903025388718,
-0.005135113839060068,
0.043670859187841415,
0.01822611130774021,
-0.07111713290214539,
-0.005208849441260099,
-0.0017046688590198755,
-0.0600249208509922,
0.029849959537386894,
0.02044287882745266,
0.09893998503684998,
-0.05307074263691902,
-0.040974512696266174,
0.016960900276899338,
-0.006046862807124853,
-0.0065207211300730705,
-0.016531841829419136,
0.01154378056526184,
-0.040874529629945755,
-0.009957307949662209,
-0.008896591141819954,
0.0569780096411705,
-0.049858685582876205,
0.00821355078369379,
0.04715890437364578,
0.007300517521798611,
0.032688044011592865,
-0.030086006969213486,
-0.013257617130875587,
-0.009492415003478527,
0.016572749242186546,
-0.051996201276779175,
0.05918419733643532,
0.0022347895428538322,
-0.032623596489429474,
-0.021574076265096664,
-0.043996598571538925,
-0.00928331259638071,
0.09087318927049637,
-0.0006722121615894139,
-0.0010373612167313695,
-0.012836297042667866,
0.012175824493169785,
0.045233242213726044,
0.018738383427262306,
-0.03646932169795036,
0.019192170351743698,
0.05963819473981857,
-0.003006203332915902,
-0.016784513369202614,
0.08888700604438782,
-0.016734685748815536,
-0.024567075073719025,
-0.01711067371070385,
-0.009152929298579693,
-0.002215065760537982,
-0.02473955787718296,
0.03328552842140198,
0.03818431869149208,
-0.0181454885751009,
-0.04026990383863449,
-0.029132796451449394,
0.06259837001562119,
0.003814987139776349,
0.0005203522159717977,
-0.027591725811362267,
-0.018460432067513466,
-0.03894517943263054,
0.037653036415576935,
-0.027027513831853867,
0.0060700527392327785,
-0.01987156644463539,
0.01688189059495926,
0.003622582880780101,
0.025308359414339066,
0.05155705288052559,
0.022963326424360275,
-0.02116966061294079,
0.07606919854879379,
-0.04009566456079483,
-0.00030812466866336763,
-0.030169259756803513,
-0.054832421243190765,
-0.012719224207103252,
0.03360336646437645,
0.02584739774465561,
0.02873946912586689,
-0.02188747003674507,
-0.033260591328144073,
0.02804865688085556,
0.04764914885163307,
0.05254332721233368,
0.03699490427970886,
-0.022188859060406685,
-0.024297334253787994,
0.033973578363657,
0.052751995623111725,
-0.07636106759309769,
-0.04415500909090042,
0.04037715122103691,
0.03262696415185928,
-0.050211336463689804,
0.01144053041934967,
0.0058671352453529835,
0.03937926143407822,
-0.05182216316461563,
-0.07100655883550644,
0.04049897938966751,
0.02945375069975853,
0.0019364834297448397,
0.026197344064712524,
-0.021927855908870697,
-0.022888842970132828,
0.03787664696574211,
0.013775958679616451,
0.0009233575547114015,
-0.04740340635180473,
0.021103138104081154,
0.01375328004360199,
0.06447126716375351,
-0.05313999205827713,
0.028599482029676437,
0.002106843050569296,
0.014123460277915001,
0.039773620665073395,
-0.04290412738919258,
0.032496530562639236,
0.02008064277470112,
0.0022431425750255585,
-0.03703545033931732,
0.02836383879184723,
-0.007282171864062548,
0.01541007962077856,
0.04782623052597046,
-0.0012067705392837524,
0.055637482553720474,
-0.02600283734500408,
0.06495031714439392,
0.06548567861318588,
0.04303985461592674,
0.011079163290560246,
0.016957158222794533,
0.05447736382484436,
-0.002755885012447834,
-0.023572726175189018,
0.05319765582680702,
-0.05724600329995155,
0.02601604349911213,
-0.05357198789715767,
0.0006057810387574136,
-0.01687045581638813,
-0.008703389205038548,
0.04870672896504402,
0.018351390957832336,
-0.005241677165031433,
-0.011013350449502468,
-0.016117412596940994,
0.010470181703567505,
0.04221899434924126,
-0.018631741404533386,
-0.03421996161341667,
-0.014281547628343105,
-0.03169788047671318,
0.016564887017011642,
-0.06480314582586288,
-0.0193732101470232,
-0.029130546376109123,
-0.04889243468642235,
-0.0032260294537991285,
-0.0680103674530983,
-0.03560667857527733,
-0.03725448250770569,
-0.009791262447834015,
0.02684737555682659,
0.02384633757174015,
0.009875665418803692,
-0.038682110607624054,
0.035929590463638306,
-0.030531378462910652,
-0.03296666592359543,
-0.04684910178184509,
-0.0638028010725975,
-0.003446642542257905,
-0.038609474897384644,
0.039310306310653687,
0.015043113380670547,
-0.006538238376379013,
0.008775074034929276,
0.019300760701298714,
-0.008921468630433083,
-0.05492853745818138,
0.02563917636871338,
0.03797520324587822,
-0.016921840608119965,
-0.05345829948782921,
0.02297070063650608,
-0.02120608277618885,
0.019916342571377754,
-0.033359333872795105,
-0.05486323684453964,
0.08136135339736938,
0.06996726989746094,
0.010903121903538704,
0.00827421247959137,
-0.01615118235349655,
-0.06866505742073059,
-0.05033707618713379,
-0.033454034477472305,
-0.027479643002152443,
-0.04152626544237137,
0.005873730406165123,
-0.03663387522101402,
-0.028857773169875145,
-0.04962940514087677,
-0.016079606488347054,
0.01690525747835636,
0.02111838012933731,
0.05036553367972374,
0.05334090813994408,
0.03651406615972519,
0.04943588748574257,
-0.03523920848965645,
-0.02864377573132515,
0.0579729825258255,
0.019699910655617714,
0.03749893605709076,
-0.06951609253883362,
-0.03393256664276123,
0.04905647411942482,
0.013598774559795856,
-0.020654471591114998,
-0.0031762036960572004,
0.08723001927137375,
0.004564014729112387,
0.0005708446842618287,
0.005413108505308628,
-0.010177046060562134,
-0.02558571845293045,
0.0007502708467654884,
0.007362166419625282,
0.004539539571851492,
-0.06637921929359436,
-0.017554398626089096,
0.004960645921528339,
0.07141676545143127,
-0.04527115076780319,
-0.05868341773748398,
-0.0032301731407642365,
0.06980182975530624,
0.013525629416108131,
0.008782234974205494,
-0.03503075987100601,
0.022876296192407608,
-0.04992031306028366,
-0.029014388099312782,
0.012940492480993271,
-0.0028727329336106777,
0.005454532336443663,
0.03707998991012573,
0.020629294216632843,
-0.03431469947099686,
0.017720486968755722,
0.033495090901851654,
0.05141659453511238,
0.01413784734904766,
-0.04260462149977684,
0.011614487506449223,
-0.02206575497984886,
0.015609134919941425,
-0.0003664976102299988,
-0.03825052082538605,
-0.05347428098320961,
-0.09874029457569122,
-0.01897784322500229,
0.0035319814924150705,
-0.031136369332671165,
-0.0265070591121912,
0.041209328919649124,
-0.016172168776392937,
-0.00045711008715443313,
0.0005614861729554832,
0.024782996624708176,
0.03646468371152878,
-0.011166908778250217,
0.046553123742341995,
0.004842157941311598,
0.03489530831575394,
-0.059264205396175385,
0.018651552498340607,
-0.02271387167274952,
0.02197429910302162,
-0.002807827666401863,
0.06154865771532059,
0.022657591849565506,
0.0366886667907238,
0.07361429929733276,
0.03303922340273857,
-0.028584856539964676,
0.041193295270204544,
0.044134434312582016,
-0.006014774087816477,
-0.0421285443007946,
-0.00006590185512322932,
-0.025793351233005524,
-0.014421222731471062,
0.014497770927846432,
-0.027743469923734665,
0.0029062749817967415,
0.01766759715974331,
-0.009495774284005165,
-0.005954903084784746,
-0.002365470165386796,
-0.036614563316106796,
-0.03490397706627846,
-0.05787639692425728,
-0.010031190700829029,
0.04437961056828499,
-0.029104989022016525,
0.03697564825415611,
0.0364006906747818,
0.019912175834178925,
0.07991950213909149,
0.061477482318878174,
0.002770025748759508,
-0.06429149210453033,
0.020128846168518066,
0.0277758426964283,
-0.029132643714547157,
-0.06538625061511993,
-0.07355529069900513,
0.04549383744597435,
0.040857892483472824,
-0.0032565367873758078,
-0.07719194144010544,
0.007912415079772472,
0.05909211188554764,
-0.009460559114813805,
0.05484667047858238,
-0.016412800177931786,
0.050531014800071716,
0.06605539470911026,
-0.05723962187767029,
0.00866711512207985,
-0.036664653569459915,
0.02826482616364956,
-0.0029451739974319935,
0.026149775832891464,
-0.027159081771969795,
-0.0371544249355793,
-0.04304548725485802,
0.03362860903143883,
0.037896528840065,
0.03283807262778282,
0.042831119149923325,
0.00033677974715828896,
-0.04822196066379547,
0.0023519382812082767,
0.004061329178512096,
-0.03482421115040779,
-0.016703223809599876,
0.04122941568493843,
0.05475122854113579,
-0.02635454200208187,
-0.007166112307459116,
-0.0032551519107073545,
-0.00905901100486517,
0.014475933276116848,
-0.0029771968256682158,
-0.05305679142475128,
-0.05140812322497368,
0.001714214333333075,
-0.029692012816667557,
-0.024085117504000664,
-0.09990370273590088,
0.03330106660723686,
-0.03326285630464554,
-0.00873869564384222,
0.044943928718566895,
0.021267898380756378,
0.015746885910630226,
0.04523628577589989,
0.004163267090916634,
0.023302419111132622,
-0.03432757034897804,
0.037092339247465134,
-0.00037262990372255445,
-0.0035009472630918026,
-0.025778507813811302,
-0.07305904477834702,
0.00017659470904618502,
0.0009222408407367766,
-0.03239251300692558,
-0.04114723578095436,
-0.021380601450800896,
0.016265172511339188,
0.004094729200005531,
-0.012436787597835064,
-0.029663363471627235,
0.0569983646273613,
-0.03794776275753975,
-0.025440935045480728,
-0.014170311391353607,
-0.033237650990486145,
-0.08383359760046005,
-0.047217465937137604,
-0.006908521056175232,
0.016515538096427917,
0.011924080550670624,
0.008185796439647675,
0.019228288903832436,
0.015237204730510712,
0.018087238073349,
-0.03014487400650978,
0.03191983327269554,
0.0036562636960297823,
-0.045484233647584915,
-0.030524609610438347,
-0.021935878321528435,
0.030894014984369278,
0.0528690442442894,
-0.010149595327675343,
0.025579608976840973,
0.0497044175863266,
-0.03622816875576973,
-0.00005894147398066707,
0.04517935961484909,
0.038745563477277756,
-0.06044980511069298,
-0.03508627042174339,
-0.022447166964411736,
-0.046575795859098434,
0.031105399131774902,
-0.023027652874588966,
0.001352248014882207,
0.023901337757706642,
0.029431307688355446,
0.03399938344955444,
-0.011562488973140717,
-0.04389343410730362,
0.01874346099793911,
-0.020551951602101326,
0.009206188842654228,
-0.0560358427464962,
0.04987045004963875,
-0.023751532658934593,
0.0034408855717629194,
-0.006580257788300514,
-0.03167605400085449,
-0.02808401733636856,
0.06532799452543259,
-0.012958564795553684,
-0.012739554978907108,
-0.002828932600095868,
-0.0048600430600345135,
-0.024783315137028694,
0.04102329909801483,
0.01866038329899311,
0.027025261893868446,
-0.039798565208911896,
0.0383230596780777,
-0.03179367631673813,
-0.001822310034185648,
-0.026417450979351997,
-0.025512635707855225,
-0.016094470396637917,
-0.035176001489162445,
-0.02932007983326912,
-0.059190452098846436,
0.03246495872735977,
0.0186400655657053,
0.03570020943880081,
0.03873332589864731,
-0.0011941427364945412,
0.007528608199208975,
0.020000699907541275,
-0.07348022609949112,
-0.016334660351276398,
-0.020755240693688393,
0.05104515329003334,
0.023080656304955482,
0.061082273721694946,
0.018124062567949295,
-0.03892698511481285,
-0.0572604276239872,
0.051277074962854385,
0.0270135048776865,
0.023953810334205627,
0.02074376866221428,
0.06386644393205643,
0.04164647310972214,
0.047029294073581696,
-0.01694854348897934,
-0.02874252013862133,
-0.02326892502605915,
-0.03793993592262268,
-0.001466318848542869,
0.026230504736304283,
-0.004668256733566523,
0.0056131863966584206,
-0.027262505143880844,
-0.022021465003490448,
0.07524357736110687,
0.05606367811560631,
-0.0005061006522737443,
0.0004021986969746649,
-0.03839632496237755,
0.01964118517935276,
-0.014267615973949432,
-0.05493582412600517,
-0.03583081439137459,
0.013707076199352741,
-0.053587425500154495,
0.07441262900829315,
-0.008611860685050488,
0.01929098553955555,
0.014918921515345573,
0.027982300147414207,
-0.005578263662755489,
0.038259267807006836,
-0.034088559448719025,
0.025684824213385582,
0.036720290780067444,
-0.051045309752225876,
0.016001511365175247,
-0.02849668450653553,
0.05684968829154968,
-0.07177624106407166,
0.04999891668558121,
0.022227605804800987,
0.01580403558909893,
0.018127702176570892,
-0.03164206072688103,
-0.028150049969553947,
0.021568387746810913,
-0.035206347703933716,
0.0629434585571289,
-0.009597627446055412,
-0.04538453742861748,
0.041695620864629745,
0.039051178842782974,
-0.09922398626804352,
0.07250796258449554,
0.05170866474509239,
0.05941899120807648,
0.05116681382060051,
0.018820159137248993,
-0.08220575004816055,
0.0033323720563203096,
-0.02931945212185383,
0.036702029407024384,
-0.07678274810314178,
0.01971851848065853,
0.029117906466126442,
-0.033486053347587585,
-0.018865734338760376,
0.026911580935120583,
-0.0008424912230111659,
-0.004413971211761236,
0.005760286469012499,
-0.05846452713012695,
-0.05074484273791313,
-0.019594529643654823,
0.011871729046106339,
-0.04179473966360092,
0.002845733892172575,
-0.04185299202799797,
-0.011113106273114681,
0.0168392863124609,
-0.012632160447537899,
-0.05396391451358795,
0.007038914132863283,
0.03926923871040344,
-0.0625590905547142,
-0.006082463543862104,
0.05794263258576393,
0.015919286757707596,
-0.023620333522558212,
0.03548141568899155,
-0.012165549211204052,
0.01804455555975437,
0.015509289689362049,
-0.003067911369726062,
-0.0004335362173151225,
-0.04538895562291145,
-0.014922106638550758,
0.00004271348734619096,
-0.009484312497079372,
0.02275943011045456,
-0.017433062195777893,
0.03918030485510826,
0.07073009759187698,
0.026484819129109383,
0.031070513650774956,
-0.04518696665763855,
-0.02015514299273491,
0.010972694493830204,
-0.049583837389945984,
-0.000392582209315151,
0.0012158066965639591,
-0.052706487476825714,
-0.03096536360681057,
-0.02247903123497963,
-0.009537721984088421,
0.05534771829843521,
-0.04383627325296402,
-0.010731780901551247,
-0.0007572497124783695,
-0.02119595929980278,
-0.028123654425144196,
-0.06940099596977234,
-0.02452043630182743,
-0.022047460079193115,
0.03189362958073616,
0.014067934826016426,
-0.035966113209724426,
0.023608224466443062,
-0.044987548142671585,
-0.07552674412727356,
0.010967597365379333,
0.019723184406757355,
-0.03787023201584816,
0.05511358752846718,
0.04440522938966751,
-0.035013347864151,
0.029696637764573097,
0.040990475565195084,
-0.013487322255969048,
0.025736188516020775,
-0.014680206775665283,
0.01864519901573658,
0.036693353205919266,
0.018810324370861053,
-0.02698037587106228,
-0.03804055228829384,
-0.05930595099925995,
-0.04062531888484955,
-0.029352406039834023,
0.000690598099026829,
0.05736188590526581
] |
CAMeL-Lab/bert-base-arabic-camelbert-msa-eighth | [
"pytorch",
"tf",
"jax",
"bert",
"fill-mask",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 21 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "الهدف من الحياة هو [MASK] ."
---
# CAMeLBERT: A collection of pre-trained models for Arabic NLP tasks
## Model description
**CAMeLBERT** is a collection of BERT models pre-trained on Arabic texts with different sizes and variants.
We release pre-trained language models for Modern Standard Arabic (MSA), dialectal Arabic (DA), and classical Arabic (CA), in addition to a model pre-trained on a mix of the three.
We also provide additional models that are pre-trained on a scaled-down set of the MSA variant (half, quarter, eighth, and sixteenth).
The details are described in the paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."*
This model card describes **CAMeLBERT-MSA-eighth** (`bert-base-arabic-camelbert-msa-eighth`), a model pre-trained on an eighth of the full MSA dataset.
||Model|Variant|Size|#Word|
|-|-|:-:|-:|-:|
||`bert-base-arabic-camelbert-mix`|CA,DA,MSA|167GB|17.3B|
||`bert-base-arabic-camelbert-ca`|CA|6GB|847M|
||`bert-base-arabic-camelbert-da`|DA|54GB|5.8B|
||`bert-base-arabic-camelbert-msa`|MSA|107GB|12.6B|
||`bert-base-arabic-camelbert-msa-half`|MSA|53GB|6.3B|
||`bert-base-arabic-camelbert-msa-quarter`|MSA|27GB|3.1B|
|✔|`bert-base-arabic-camelbert-msa-eighth`|MSA|14GB|1.6B|
||`bert-base-arabic-camelbert-msa-sixteenth`|MSA|6GB|746M|
## Intended uses
You can use the released model for either masked language modeling or next sentence prediction.
However, it is mostly intended to be fine-tuned on an NLP task, such as NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
We release our fine-tuninig code [here](https://github.com/CAMeL-Lab/CAMeLBERT).
#### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-eighth')
>>> unmasker("الهدف من الحياة هو [MASK] .")
[{'sequence': '[CLS] الهدف من الحياة هو الحياة. [SEP]',
'score': 0.057812128216028214,
'token': 3696,
'token_str': 'الحياة'},
{'sequence': '[CLS] الهدف من الحياة هو النجاح. [SEP]',
'score': 0.05573025345802307,
'token': 6232,
'token_str': 'النجاح'},
{'sequence': '[CLS] الهدف من الحياة هو الكمال. [SEP]',
'score': 0.035942986607551575,
'token': 17188,
'token_str': 'الكمال'},
{'sequence': '[CLS] الهدف من الحياة هو التعلم. [SEP]',
'score': 0.03375256434082985,
'token': 12554,
'token_str': 'التعلم'},
{'sequence': '[CLS] الهدف من الحياة هو العمل. [SEP]',
'score': 0.030303971841931343,
'token': 2854,
'token_str': 'العمل'}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`. Otherwise, you could download the models manually.
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-eighth')
model = AutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-eighth')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AutoTokenizer, TFAutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-eighth')
model = TFAutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-eighth')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
## Training data
- MSA (Modern Standard Arabic)
- [The Arabic Gigaword Fifth Edition](https://catalog.ldc.upenn.edu/LDC2011T11)
- [Abu El-Khair Corpus](http://www.abuelkhair.net/index.php/en/arabic/abu-el-khair-corpus)
- [OSIAN corpus](https://vlo.clarin.eu/search;jsessionid=31066390B2C9E8C6304845BA79869AC1?1&q=osian)
- [Arabic Wikipedia](https://archive.org/details/arwiki-20190201)
- The unshuffled version of the Arabic [OSCAR corpus](https://oscar-corpus.com/)
## Training procedure
We use [the original implementation](https://github.com/google-research/bert) released by Google for pre-training.
We follow the original English BERT model's hyperparameters for pre-training, unless otherwise specified.
### Preprocessing
- After extracting the raw text from each corpus, we apply the following pre-processing.
- We first remove invalid characters and normalize white spaces using the utilities provided by [the original BERT implementation](https://github.com/google-research/bert/blob/eedf5716ce1268e56f0a50264a88cafad334ac61/tokenization.py#L286-L297).
- We also remove lines without any Arabic characters.
- We then remove diacritics and kashida using [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools).
- Finally, we split each line into sentences with a heuristics-based sentence segmenter.
- We train a WordPiece tokenizer on the entire dataset (167 GB text) with a vocabulary size of 30,000 using [HuggingFace's tokenizers](https://github.com/huggingface/tokenizers).
- We do not lowercase letters nor strip accents.
### Pre-training
- The model was trained on a single cloud TPU (`v3-8`) for one million steps in total.
- The first 90,000 steps were trained with a batch size of 1,024 and the rest was trained with a batch size of 256.
- The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%.
- We use whole word masking and a duplicate factor of 10.
- We set max predictions per sequence to 20 for the dataset with max sequence length of 128 tokens and 80 for the dataset with max sequence length of 512 tokens.
- We use a random seed of 12345, masked language model probability of 0.15, and short sequence probability of 0.1.
- The optimizer used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01, learning rate warmup for 10,000 steps and linear decay of the learning rate after.
## Evaluation results
- We evaluate our pre-trained language models on five NLP tasks: NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
- We fine-tune and evaluate the models using 12 dataset.
- We used Hugging Face's transformers to fine-tune our CAMeLBERT models.
- We used transformers `v3.1.0` along with PyTorch `v1.5.1`.
- The fine-tuning was done by adding a fully connected linear layer to the last hidden state.
- We use \\(F_{1}\\) score as a metric for all tasks.
- Code used for fine-tuning is available [here](https://github.com/CAMeL-Lab/CAMeLBERT).
### Results
| Task | Dataset | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | --------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| NER | ANERcorp | MSA | 80.8% | 67.9% | 74.1% | 82.4% | 82.0% | 82.1% | 82.6% | 80.8% |
| POS | PATB (MSA) | MSA | 98.1% | 97.8% | 97.7% | 98.3% | 98.2% | 98.3% | 98.2% | 98.2% |
| | ARZTB (EGY) | DA | 93.6% | 92.3% | 92.7% | 93.6% | 93.6% | 93.7% | 93.6% | 93.6% |
| | Gumar (GLF) | DA | 97.3% | 97.7% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% |
| SA | ASTD | MSA | 76.3% | 69.4% | 74.6% | 76.9% | 76.0% | 76.8% | 76.7% | 75.3% |
| | ArSAS | MSA | 92.7% | 89.4% | 91.8% | 93.0% | 92.6% | 92.5% | 92.5% | 92.3% |
| | SemEval | MSA | 69.0% | 58.5% | 68.4% | 72.1% | 70.7% | 72.8% | 71.6% | 71.2% |
| DID | MADAR-26 | DA | 62.9% | 61.9% | 61.8% | 62.6% | 62.0% | 62.8% | 62.0% | 62.2% |
| | MADAR-6 | DA | 92.5% | 91.5% | 92.2% | 91.9% | 91.8% | 92.2% | 92.1% | 92.0% |
| | MADAR-Twitter-5 | MSA | 75.7% | 71.4% | 74.2% | 77.6% | 78.5% | 77.3% | 77.7% | 76.2% |
| | NADI | DA | 24.7% | 17.3% | 20.1% | 24.9% | 24.6% | 24.6% | 24.9% | 23.8% |
| Poetry | APCD | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
### Results (Average)
| | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| Variant-wise-average<sup>[[1]](#footnote-1)</sup> | MSA | 82.1% | 75.7% | 80.1% | 83.4% | 83.0% | 83.3% | 83.2% | 82.3% |
| | DA | 74.4% | 72.1% | 72.9% | 74.2% | 74.0% | 74.3% | 74.1% | 73.9% |
| | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
| Macro-Average | ALL | 78.7% | 74.7% | 77.1% | 79.2% | 79.0% | 79.2% | 79.1% | 78.6% |
<a name="footnote-1">[1]</a>: Variant-wise-average refers to average over a group of tasks in the same language variant.
## Acknowledgements
This research was supported with Cloud TPUs from Google’s TensorFlow Research Cloud (TFRC).
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
```
| [
0.008159455843269825,
0.006773865316063166,
-0.022250745445489883,
0.07545620948076248,
0.04332023859024048,
0.014562414959073067,
0.0003501418686937541,
-0.02582024224102497,
-0.019027812406420708,
0.06332410871982574,
0.004263310227543116,
-0.0243136715143919,
0.011197760701179504,
0.040199533104896545,
-0.05289427191019058,
-0.019695298746228218,
0.006113668438047171,
-0.02192547917366028,
-0.04831597954034805,
-0.03201356157660484,
-0.015317365527153015,
0.0047835372388362885,
0.003179431427270174,
0.018828241154551506,
0.005199198145419359,
0.0067101772874593735,
-0.017515448853373528,
0.0595489963889122,
0.02078024484217167,
-0.058031924068927765,
-0.0176888145506382,
-0.026295986026525497,
-0.04097851738333702,
-0.02379448339343071,
-0.03464338928461075,
0.007883342914283276,
0.0007999619701877236,
0.001989476615563035,
0.017411908134818077,
0.06474868208169937,
-0.01609703339636326,
0.004066383931785822,
-0.010081176646053791,
-0.04105960950255394,
0.020541002973914146,
-0.003176902886480093,
-0.04120875895023346,
0.012165196239948273,
0.04687253758311272,
-0.06259667873382568,
-0.06923720240592957,
-0.04108116403222084,
-0.03865306079387665,
0.018837127834558487,
0.007364839781075716,
-0.008388758637011051,
-0.027516363188624382,
-0.024828029796481133,
0.08136342465877533,
-0.06444942951202393,
-0.05422983691096306,
-0.0007513934979215264,
-0.055462200194597244,
0.024226948618888855,
0.025096755474805832,
-0.025418721139431,
0.022679628804326057,
-0.04661988839507103,
0.06014946475625038,
-0.019661622121930122,
0.028390036895871162,
-0.021529575809836388,
0.009361700154840946,
-0.08001558482646942,
0.027952352538704872,
-0.02916187047958374,
0.04120247811079025,
0.04658682271838188,
-0.044384777545928955,
0.06755981594324112,
0.0029927175492048264,
-0.011708030477166176,
0.029567796736955643,
-0.022698182612657547,
-0.0074806115590035915,
0.02399614453315735,
-0.049518562853336334,
-0.003979930654168129,
0.011058625765144825,
0.022450463846325874,
-0.04041937366127968,
-0.03363090008497238,
-0.034793607890605927,
-0.03481046482920647,
-0.013403664343059063,
0.020927270874381065,
0.029970020055770874,
-0.018606653437018394,
0.05106433108448982,
0.01226005144417286,
0.03536413982510567,
0.038057614117860794,
-0.03378865495324135,
0.053645484149456024,
-0.03222309425473213,
-0.02173183672130108,
-0.03704448789358139,
-0.03570445626974106,
-0.020232506096363068,
0.023100141435861588,
0.002417517825961113,
-0.050138961523771286,
-0.05525610223412514,
0.05629950389266014,
-0.027797965332865715,
-0.04281693696975708,
0.027916904538869858,
-0.02917562797665596,
-0.06379412114620209,
-0.03721383959054947,
0.03796111047267914,
-0.015110937878489494,
0.02134176902472973,
0.015584184788167477,
-0.07776959985494614,
0.02380642294883728,
-0.05793856084346771,
-0.022771846503019333,
-0.015839284285902977,
0.03275611251592636,
-0.0011895496863871813,
0.04063370078802109,
0.01737171597778797,
-0.07615689933300018,
0.008155599236488342,
-0.021621258929371834,
-0.037231773138046265,
0.042548686265945435,
0.014314360916614532,
0.10975182801485062,
-0.03690105676651001,
-0.05829635635018349,
0.0254961010068655,
0.004696427844464779,
-0.02306279167532921,
-0.005938056390732527,
0.017266415059566498,
-0.023180974647402763,
-0.017746593803167343,
-0.015685435384511948,
0.05673929303884506,
-0.0552314892411232,
0.01773526892066002,
0.058010488748550415,
0.002156002214178443,
0.02590225450694561,
-0.04362852871417999,
-0.01865677908062935,
-0.003769129514694214,
0.004254755564033985,
-0.02521507628262043,
0.03988786041736603,
-0.006669875234365463,
-0.033850423991680145,
-0.039555422961711884,
-0.03791775554418564,
-0.0020582161378115416,
0.08512859791517258,
0.011209676042199135,
0.004659947007894516,
-0.02126297354698181,
0.003150506876409054,
0.04281427338719368,
0.0052726794965565205,
-0.05035902187228203,
0.026273982599377632,
0.049731746315956116,
0.01107307430356741,
-0.020134851336479187,
0.07872795313596725,
-0.0022034633439034224,
-0.01310238428413868,
-0.029697375372052193,
0.006471047643572092,
0.009961847215890884,
-0.018438909202814102,
0.04701996222138405,
0.03928831219673157,
-0.010832469910383224,
-0.03967062011361122,
-0.025097686797380447,
0.07247962802648544,
0.0005450950702652335,
0.008694133721292019,
0.004142279736697674,
-0.012909895740449429,
-0.05249592661857605,
0.03988796845078468,
-0.01860707998275757,
0.00964247528463602,
-0.03834077715873718,
0.01040668599307537,
0.008727768436074257,
0.030737435445189476,
0.04659513384103775,
0.05178026482462883,
-0.006314229220151901,
0.06497763842344284,
-0.019063541665673256,
0.010240950621664524,
-0.053539931774139404,
-0.04562061280012131,
-0.005172353703528643,
0.040688805282115936,
0.030711809173226357,
0.0459023155272007,
-0.01783066987991333,
-0.044748660176992416,
0.03675638139247894,
0.05873946473002434,
0.04517899453639984,
0.012812230736017227,
-0.03392257168889046,
-0.007314007729291916,
0.036632366478443146,
0.06057872995734215,
-0.07049548625946045,
-0.03510463982820511,
0.03160729259252548,
0.05882078409194946,
-0.027844756841659546,
0.007545792497694492,
-0.006280349101871252,
0.02823047712445259,
-0.03256342560052872,
-0.07311876863241196,
0.0478057861328125,
0.03432627022266388,
0.006692470051348209,
0.02556018717586994,
0.0011636893032118678,
0.005984934978187084,
0.018114767968654633,
0.04048604145646095,
0.00020880029478576034,
-0.03590119257569313,
0.0049032894894480705,
0.012307780794799328,
0.06806953251361847,
-0.04411773383617401,
0.026279114186763763,
-0.011868268251419067,
0.028199803084135056,
0.02851393073797226,
-0.021921951323747635,
0.03515184670686722,
0.00861549936234951,
0.01219976507127285,
-0.04381207004189491,
0.04086549952626228,
-0.009409455582499504,
0.016201039776206017,
0.05646985396742821,
-0.013044116087257862,
0.05262794718146324,
-0.002663523657247424,
0.06037355586886406,
0.055324625223875046,
0.031092483550310135,
0.014119436964392662,
0.006060038227587938,
0.07993876188993454,
0.014896596781909466,
-0.01545446552336216,
0.07434995472431183,
-0.05366744473576546,
0.012599388137459755,
-0.05563589930534363,
0.010849137790501118,
0.002784611424431205,
-0.014196514151990414,
0.0254506953060627,
0.01121753454208374,
0.00804278627038002,
-0.004676480777561665,
-0.017330428585410118,
0.00030227546812966466,
0.03565132990479469,
-0.030499253422021866,
-0.01152720209211111,
-0.02387876622378826,
-0.032371532171964645,
0.003626077203080058,
-0.0661696344614029,
-0.012285972014069557,
-0.01883280836045742,
-0.035505909472703934,
-0.0007441017660312355,
-0.08241837471723557,
-0.023336093872785568,
-0.049289826303720474,
-0.01033154409378767,
0.017932049930095673,
0.013514550402760506,
-0.008245883509516716,
-0.04281763732433319,
0.029613865539431572,
-0.05115151405334473,
-0.024294886738061905,
-0.026948818936944008,
-0.06422536075115204,
-0.031950339674949646,
-0.04141301289200783,
0.04961972311139107,
0.02810414507985115,
0.0013078474439680576,
0.00847980473190546,
0.027206363156437874,
-0.007640657015144825,
-0.039763323962688446,
0.02125314064323902,
0.04020725563168526,
-0.03690950945019722,
-0.06203693524003029,
0.01349735725671053,
-0.0008893054910004139,
-0.0010469519766047597,
-0.024472706019878387,
-0.027966773137450218,
0.0879654511809349,
0.08319810032844543,
0.009726663120090961,
0.003269034903496504,
-0.011075109243392944,
-0.06060722470283508,
-0.04650241509079933,
-0.019821956753730774,
-0.04403712972998619,
-0.022625567391514778,
-0.024845076724886894,
-0.029167408123612404,
-0.029324032366275787,
-0.051346905529499054,
0.004564088303595781,
0.0025534231681376696,
0.016076888889074326,
0.045280296355485916,
0.03735915198922157,
0.020084863528609276,
0.05018709972500801,
-0.03790929913520813,
-0.01836184598505497,
0.06856062263250351,
0.008264902979135513,
0.0265312809497118,
-0.06952084600925446,
-0.02540365420281887,
0.05149882659316063,
0.006426855456084013,
-0.008961692452430725,
-0.017292991280555725,
0.08123153448104858,
-0.0037160932552069426,
-0.010380497202277184,
0.006074936594814062,
-0.002276767510920763,
-0.03667327016592026,
-0.017599793151021004,
0.011960870586335659,
-0.013727238401770592,
-0.051893625408411026,
-0.020125344395637512,
0.0021195311564952135,
0.059298522770404816,
-0.036256011575460434,
-0.055669356137514114,
-0.004057914949953556,
0.05917567014694214,
-0.001237373100593686,
-0.007445665076375008,
-0.025569388642907143,
0.009403582662343979,
-0.04412728548049927,
-0.03199708089232445,
-0.00124604650773108,
-0.011239863932132721,
-0.008399893529713154,
0.03876442462205887,
0.013734191656112671,
-0.01608111336827278,
0.016602935269474983,
0.02955883927643299,
0.05537364259362221,
0.00870060920715332,
-0.04763771966099739,
0.03153719753026962,
-0.020913707092404366,
0.01680748350918293,
-0.004311033058911562,
-0.04088380187749863,
-0.05130530521273613,
-0.07459388673305511,
-0.004395181313157082,
0.0033410624600946903,
-0.04758590832352638,
-0.026723986491560936,
0.03960904851555824,
-0.03163020312786102,
0.007588519249111414,
-0.005968731828033924,
0.030555780977010727,
0.015205866657197475,
-0.026458194479346275,
0.07313952594995499,
-0.0025357019621878862,
0.04227171838283539,
-0.07072364538908005,
0.0319209098815918,
-0.04171989858150482,
0.005735952407121658,
0.010353297926485538,
0.062316931784152985,
0.023189280182123184,
0.052250105887651443,
0.07162588089704514,
0.049536727368831635,
-0.03571639582514763,
0.04541800916194916,
0.05703867971897125,
0.005788257345557213,
-0.04047412425279617,
-0.004842741414904594,
-0.01887747459113598,
-0.020291324704885483,
-0.013241915963590145,
-0.006322448141872883,
-0.01937883161008358,
0.024065319448709488,
-0.003289567306637764,
0.005383369512856007,
0.015404997393488884,
-0.032246898859739304,
-0.037885479629039764,
-0.05338648706674576,
-0.04168957471847534,
0.01581176184117794,
-0.035599078983068466,
0.051138877868652344,
0.024683544412255287,
0.022300109267234802,
0.07390579581260681,
0.07037056982517242,
-0.006635719444602728,
-0.030003845691680908,
0.012544128112494946,
0.035020239651203156,
-0.030974991619586945,
-0.055997345596551895,
-0.05557113513350487,
0.05035879462957382,
0.045630019158124924,
0.015169414691627026,
-0.08614346385002136,
-0.005448175128549337,
0.05748584121465683,
-0.02438259683549404,
0.04709118604660034,
-0.012607763521373272,
0.05737341195344925,
0.04821856692433357,
-0.03657368943095207,
0.027130600064992905,
-0.01654934138059616,
0.017054179683327675,
-0.007513302378356457,
0.003053798107430339,
-0.016705263406038284,
-0.03276699036359787,
-0.06299657374620438,
0.021168187260627747,
0.02997453883290291,
0.02967546321451664,
0.05853961035609245,
-0.015936212614178658,
-0.03158879652619362,
0.02044426091015339,
0.012666385620832443,
-0.03469754755496979,
0.004217174835503101,
0.03519375994801521,
0.03684389218688011,
-0.04213779419660568,
0.001780920079909265,
-0.019317153841257095,
-0.00668733473867178,
0.0181225948035717,
0.008669298142194748,
-0.04843781143426895,
-0.05658657103776932,
0.003778379410505295,
-0.017678232863545418,
-0.017453445121645927,
-0.09101197868585587,
0.039570700377225876,
-0.02541247569024563,
-0.007920440286397934,
0.028403712436556816,
0.012837662361562252,
0.01659530960023403,
0.05125539377331734,
0.01183986198157072,
0.01618018187582493,
-0.03810754418373108,
0.04754050821065903,
-0.008985868655145168,
-0.009704634547233582,
-0.0216970331966877,
-0.05070880800485611,
0.007273613940924406,
-0.012318935245275497,
-0.010446540080010891,
-0.03632534295320511,
-0.013784516602754593,
0.018716348335146904,
-0.012935585342347622,
-0.002862157765775919,
-0.02965698577463627,
0.05377892032265663,
-0.03369160369038582,
-0.04008520394563675,
-0.026616215705871582,
-0.03458448126912117,
-0.07794391363859177,
-0.0634293332695961,
-0.0056051393039524555,
0.02349289506673813,
0.016470424830913544,
0.019326303154230118,
0.022920900955796242,
0.010757486335933208,
0.015858927741646767,
-0.029916398227214813,
0.033506691455841064,
-0.00602326262742281,
-0.04862138256430626,
-0.054749034345149994,
-0.015997862443327904,
0.03549320623278618,
0.03205175697803497,
-0.02533649653196335,
0.0336075983941555,
0.031020045280456543,
-0.032451946288347244,
0.00962320901453495,
0.031544316560029984,
0.027797291055321693,
-0.06905840337276459,
-0.040155213326215744,
-0.029420968145132065,
-0.05092479661107063,
0.05046771839261055,
-0.011809777468442917,
-0.0022477968595921993,
0.02647605910897255,
0.04143515229225159,
0.03774135932326317,
0.004603499546647072,
-0.04215351119637489,
0.02369353175163269,
-0.027400651946663857,
0.016687870025634766,
-0.04370635747909546,
0.04710545763373375,
-0.04058381915092468,
0.013278229162096977,
-0.003865656675770879,
-0.023650046437978745,
-0.02003069967031479,
0.0435689352452755,
-0.021436331793665886,
-0.01799589768052101,
-0.0048474944196641445,
0.01714164949953556,
-0.026798220351338387,
0.04371616244316101,
-0.020708024501800537,
0.032588645815849304,
-0.02244921214878559,
0.05618506297469139,
-0.029187684878706932,
-0.01362890750169754,
-0.03135007992386818,
-0.00001338258880423382,
-0.032462552189826965,
-0.02230161800980568,
-0.01686251163482666,
-0.05162440240383148,
0.02484722062945366,
0.03737333416938782,
0.04874564707279205,
0.0448562428355217,
-0.0015476868720725179,
-0.0006888086791150272,
0.02161599136888981,
-0.04984438419342041,
-0.008697018958628178,
-0.010876912623643875,
0.03680425137281418,
0.013619402423501015,
0.07145170867443085,
0.03531226888298988,
-0.04717050865292549,
-0.0582197904586792,
0.03697282448410988,
0.02253117226064205,
0.023582473397254944,
0.017699560150504112,
0.06508412957191467,
0.030203713104128838,
0.04458208009600639,
-0.021277405321598053,
-0.00314948707818985,
-0.016114704310894012,
-0.036220651119947433,
0.012611554004251957,
0.006945397704839706,
0.003395131789147854,
0.0021117706783115864,
-0.0342988558113575,
-0.03643466904759407,
0.07709532231092453,
0.029998259618878365,
-0.0028523067012429237,
0.01733090728521347,
-0.02866583690047264,
0.028631282970309258,
-0.01244339533150196,
-0.054305970668792725,
-0.004846880678087473,
0.004485095385462046,
-0.0408981591463089,
0.06615455448627472,
-0.009169843047857285,
0.03295223414897919,
0.03140221908688545,
0.012630936689674854,
-0.0054262662306427956,
0.05370735377073288,
-0.04103557765483856,
0.03264765068888664,
0.02782732993364334,
-0.04607323184609413,
0.01779128983616829,
-0.037024691700935364,
0.07700701057910919,
-0.09391601383686066,
0.05886293947696686,
0.02963048778474331,
0.014607545919716358,
0.009063742123544216,
-0.009684382006525993,
-0.028328735381364822,
0.004169662017375231,
-0.04206142574548721,
0.07260927557945251,
0.012921174056828022,
-0.04915134608745575,
0.03173629567027092,
0.03714071586728096,
-0.06164014711976051,
0.07706575840711594,
0.046396560966968536,
0.06529421359300613,
0.0390823595225811,
0.035073649138212204,
-0.060701631009578705,
0.007345831021666527,
-0.03519708663225174,
0.03011336550116539,
-0.0631788969039917,
-0.002768323989585042,
0.04906831309199333,
-0.04485763981938362,
-0.010813795030117035,
0.027561170980334282,
-0.02295825071632862,
-0.01587391272187233,
0.03971073031425476,
-0.05874958634376526,
-0.0585227906703949,
-0.00748823955655098,
0.02610056661069393,
-0.057266946882009506,
0.0034772055223584175,
-0.045753683894872665,
0.005338441114872694,
0.005166941322386265,
-0.018118256703019142,
-0.06858636438846588,
0.0079659353941679,
0.040566325187683105,
-0.06671588122844696,
-0.02857665717601776,
0.07497493177652359,
0.008579794317483902,
-0.023944074288010597,
0.0357838049530983,
-0.020704524591565132,
0.0071286833845078945,
0.029515830799937248,
0.00761804636567831,
0.018141387030482292,
-0.05359179154038429,
-0.026631765067577362,
0.0062964241951704025,
-0.016799205914139748,
0.011356688104569912,
-0.015485752373933792,
0.032365284860134125,
0.06409327685832977,
0.03947554901242256,
0.029940104112029076,
-0.05149019882082939,
-0.023005694150924683,
0.04614967852830887,
-0.05389157682657242,
-0.0028357391711324453,
0.00024005156592465937,
-0.04438946768641472,
-0.030513416975736618,
-0.004916428122669458,
-0.028057560324668884,
0.04510520026087761,
-0.05084516108036041,
-0.011890401132404804,
-0.004449107684195042,
-0.030996905639767647,
-0.03967959061264992,
-0.09702932834625244,
-0.0175842996686697,
-0.04409157857298851,
0.03803013265132904,
0.003273668233305216,
-0.035382531583309174,
0.028899917379021645,
-0.05007578805088997,
-0.05841628089547157,
0.03405284509062767,
0.026323851197957993,
-0.06212014704942703,
0.047206997871398926,
0.04013316333293915,
-0.03336479142308235,
-0.005177476443350315,
0.04560781270265579,
-0.025547614321112633,
0.006066781468689442,
0.006775474641472101,
0.005327314138412476,
0.024524586275219917,
0.024427520111203194,
-0.01819387450814247,
-0.017489133402705193,
-0.05048515275120735,
-0.050107624381780624,
-0.023860668763518333,
0.0020480032544583082,
0.05774788185954094
] |
CAMeL-Lab/bert-base-arabic-camelbert-msa-half | [
"pytorch",
"tf",
"jax",
"bert",
"fill-mask",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 16 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "الهدف من الحياة هو [MASK] ."
---
# CAMeLBERT: A collection of pre-trained models for Arabic NLP tasks
## Model description
**CAMeLBERT** is a collection of BERT models pre-trained on Arabic texts with different sizes and variants.
We release pre-trained language models for Modern Standard Arabic (MSA), dialectal Arabic (DA), and classical Arabic (CA), in addition to a model pre-trained on a mix of the three.
We also provide additional models that are pre-trained on a scaled-down set of the MSA variant (half, quarter, eighth, and sixteenth).
The details are described in the paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."*
This model card describes **CAMeLBERT-MSA-half** (`bert-base-arabic-camelbert-msa-half`), a model pre-trained on a half of the full MSA dataset.
||Model|Variant|Size|#Word|
|-|-|:-:|-:|-:|
||`bert-base-arabic-camelbert-mix`|CA,DA,MSA|167GB|17.3B|
||`bert-base-arabic-camelbert-ca`|CA|6GB|847M|
||`bert-base-arabic-camelbert-da`|DA|54GB|5.8B|
||`bert-base-arabic-camelbert-msa`|MSA|107GB|12.6B|
|✔|`bert-base-arabic-camelbert-msa-half`|MSA|53GB|6.3B|
||`bert-base-arabic-camelbert-msa-quarter`|MSA|27GB|3.1B|
||`bert-base-arabic-camelbert-msa-eighth`|MSA|14GB|1.6B|
||`bert-base-arabic-camelbert-msa-sixteenth`|MSA|6GB|746M|
## Intended uses
You can use the released model for either masked language modeling or next sentence prediction.
However, it is mostly intended to be fine-tuned on an NLP task, such as NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
We release our fine-tuninig code [here](https://github.com/CAMeL-Lab/CAMeLBERT).
#### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-half')
>>> unmasker("الهدف من الحياة هو [MASK] .")
[{'sequence': '[CLS] الهدف من الحياة هو الحياة. [SEP]',
'score': 0.09132730215787888,
'token': 3696,
'token_str': 'الحياة'},
{'sequence': '[CLS] الهدف من الحياة هو.. [SEP]',
'score': 0.08282623440027237,
'token': 18,
'token_str': '.'},
{'sequence': '[CLS] الهدف من الحياة هو البقاء. [SEP]',
'score': 0.04031957685947418,
'token': 9331,
'token_str': 'البقاء'},
{'sequence': '[CLS] الهدف من الحياة هو النجاح. [SEP]',
'score': 0.032019514590501785,
'token': 6232,
'token_str': 'النجاح'},
{'sequence': '[CLS] الهدف من الحياة هو الحب. [SEP]',
'score': 0.028731243684887886,
'token': 3088,
'token_str': 'الحب'}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`. Otherwise, you could download the models manually.
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-half')
model = AutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-half')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AutoTokenizer, TFAutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-half')
model = TFAutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-half')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
## Training data
- MSA (Modern Standard Arabic)
- [The Arabic Gigaword Fifth Edition](https://catalog.ldc.upenn.edu/LDC2011T11)
- [Abu El-Khair Corpus](http://www.abuelkhair.net/index.php/en/arabic/abu-el-khair-corpus)
- [OSIAN corpus](https://vlo.clarin.eu/search;jsessionid=31066390B2C9E8C6304845BA79869AC1?1&q=osian)
- [Arabic Wikipedia](https://archive.org/details/arwiki-20190201)
- The unshuffled version of the Arabic [OSCAR corpus](https://oscar-corpus.com/)
## Training procedure
We use [the original implementation](https://github.com/google-research/bert) released by Google for pre-training.
We follow the original English BERT model's hyperparameters for pre-training, unless otherwise specified.
### Preprocessing
- After extracting the raw text from each corpus, we apply the following pre-processing.
- We first remove invalid characters and normalize white spaces using the utilities provided by [the original BERT implementation](https://github.com/google-research/bert/blob/eedf5716ce1268e56f0a50264a88cafad334ac61/tokenization.py#L286-L297).
- We also remove lines without any Arabic characters.
- We then remove diacritics and kashida using [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools).
- Finally, we split each line into sentences with a heuristics-based sentence segmenter.
- We train a WordPiece tokenizer on the entire dataset (167 GB text) with a vocabulary size of 30,000 using [HuggingFace's tokenizers](https://github.com/huggingface/tokenizers).
- We do not lowercase letters nor strip accents.
### Pre-training
- The model was trained on a single cloud TPU (`v3-8`) for one million steps in total.
- The first 90,000 steps were trained with a batch size of 1,024 and the rest was trained with a batch size of 256.
- The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%.
- We use whole word masking and a duplicate factor of 10.
- We set max predictions per sequence to 20 for the dataset with max sequence length of 128 tokens and 80 for the dataset with max sequence length of 512 tokens.
- We use a random seed of 12345, masked language model probability of 0.15, and short sequence probability of 0.1.
- The optimizer used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01, learning rate warmup for 10,000 steps and linear decay of the learning rate after.
## Evaluation results
- We evaluate our pre-trained language models on five NLP tasks: NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
- We fine-tune and evaluate the models using 12 dataset.
- We used Hugging Face's transformers to fine-tune our CAMeLBERT models.
- We used transformers `v3.1.0` along with PyTorch `v1.5.1`.
- The fine-tuning was done by adding a fully connected linear layer to the last hidden state.
- We use \\(F_{1}\\) score as a metric for all tasks.
- Code used for fine-tuning is available [here](https://github.com/CAMeL-Lab/CAMeLBERT).
### Results
| Task | Dataset | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | --------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| NER | ANERcorp | MSA | 80.8% | 67.9% | 74.1% | 82.4% | 82.0% | 82.1% | 82.6% | 80.8% |
| POS | PATB (MSA) | MSA | 98.1% | 97.8% | 97.7% | 98.3% | 98.2% | 98.3% | 98.2% | 98.2% |
| | ARZTB (EGY) | DA | 93.6% | 92.3% | 92.7% | 93.6% | 93.6% | 93.7% | 93.6% | 93.6% |
| | Gumar (GLF) | DA | 97.3% | 97.7% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% |
| SA | ASTD | MSA | 76.3% | 69.4% | 74.6% | 76.9% | 76.0% | 76.8% | 76.7% | 75.3% |
| | ArSAS | MSA | 92.7% | 89.4% | 91.8% | 93.0% | 92.6% | 92.5% | 92.5% | 92.3% |
| | SemEval | MSA | 69.0% | 58.5% | 68.4% | 72.1% | 70.7% | 72.8% | 71.6% | 71.2% |
| DID | MADAR-26 | DA | 62.9% | 61.9% | 61.8% | 62.6% | 62.0% | 62.8% | 62.0% | 62.2% |
| | MADAR-6 | DA | 92.5% | 91.5% | 92.2% | 91.9% | 91.8% | 92.2% | 92.1% | 92.0% |
| | MADAR-Twitter-5 | MSA | 75.7% | 71.4% | 74.2% | 77.6% | 78.5% | 77.3% | 77.7% | 76.2% |
| | NADI | DA | 24.7% | 17.3% | 20.1% | 24.9% | 24.6% | 24.6% | 24.9% | 23.8% |
| Poetry | APCD | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
### Results (Average)
| | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| Variant-wise-average<sup>[[1]](#footnote-1)</sup> | MSA | 82.1% | 75.7% | 80.1% | 83.4% | 83.0% | 83.3% | 83.2% | 82.3% |
| | DA | 74.4% | 72.1% | 72.9% | 74.2% | 74.0% | 74.3% | 74.1% | 73.9% |
| | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
| Macro-Average | ALL | 78.7% | 74.7% | 77.1% | 79.2% | 79.0% | 79.2% | 79.1% | 78.6% |
<a name="footnote-1">[1]</a>: Variant-wise-average refers to average over a group of tasks in the same language variant.
## Acknowledgements
This research was supported with Cloud TPUs from Google’s TensorFlow Research Cloud (TFRC).
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
```
| [
0.006942119915038347,
0.007150757592171431,
-0.02040565386414528,
0.07501205801963806,
0.04117410629987717,
0.013797612860798836,
0.0012807946186512709,
-0.024401109665632248,
-0.019738590344786644,
0.06463190913200378,
0.000569639727473259,
-0.024171898141503334,
0.010428711771965027,
0.04433056712150574,
-0.054620467126369476,
-0.02022150717675686,
0.003454996505752206,
-0.02039938047528267,
-0.04764702543616295,
-0.028538770973682404,
-0.01439786795526743,
0.005029540974646807,
0.005198178347200155,
0.02132398448884487,
0.004203528165817261,
0.008110049180686474,
-0.019899846985936165,
0.06074071303009987,
0.021306008100509644,
-0.05958407372236252,
-0.018133295699954033,
-0.02880721352994442,
-0.04551200941205025,
-0.02375783771276474,
-0.03273802995681763,
0.00997829157859087,
-0.001966454554349184,
-0.0008515766821801662,
0.02114795334637165,
0.06339278072118759,
-0.015420896001160145,
0.0015645348466932774,
-0.011696795001626015,
-0.039116065949201584,
0.019350629299879074,
-0.00118448946159333,
-0.04517687112092972,
0.00847169291228056,
0.044773027300834656,
-0.06245603784918785,
-0.06665578484535217,
-0.04176443815231323,
-0.04040742293000221,
0.015351668000221252,
0.0037354030646383762,
-0.008876779116690159,
-0.027284909039735794,
-0.02669251710176468,
0.07750101387500763,
-0.06387045979499817,
-0.053285278379917145,
-0.0012261499650776386,
-0.05519692972302437,
0.023328818380832672,
0.026569413021206856,
-0.028108177706599236,
0.02351142279803753,
-0.046607762575149536,
0.059661563485860825,
-0.021775390952825546,
0.02917380817234516,
-0.02266891486942768,
0.010481203906238079,
-0.0816548615694046,
0.02660604752600193,
-0.03229416534304619,
0.03591565415263176,
0.04702184721827507,
-0.04825558513402939,
0.06833629310131073,
0.0022965800017118454,
-0.00989371258765459,
0.02677532285451889,
-0.022882087156176567,
-0.006416886579245329,
0.027279304340481758,
-0.05074789747595787,
-0.0027791946195065975,
0.009801353327929974,
0.02305550128221512,
-0.042615532875061035,
-0.034243207424879074,
-0.03489673510193825,
-0.0342964231967926,
-0.01206748466938734,
0.019896287471055984,
0.029444603249430656,
-0.019584696739912033,
0.05574098229408264,
0.012773515656590462,
0.03717757388949394,
0.03746500238776207,
-0.03242164105176926,
0.053339384496212006,
-0.03187146410346031,
-0.023694556206464767,
-0.03807695209980011,
-0.0374414436519146,
-0.020409636199474335,
0.020582258701324463,
0.0015181108610704541,
-0.05043426901102066,
-0.05431902036070824,
0.05790330097079277,
-0.029404141008853912,
-0.04225866124033928,
0.03029313124716282,
-0.029446953907608986,
-0.06483250111341476,
-0.0363677442073822,
0.03662862628698349,
-0.014053207822144032,
0.02240421436727047,
0.013814887963235378,
-0.07763375341892242,
0.02351062372326851,
-0.05576300248503685,
-0.021893968805670738,
-0.015670649707317352,
0.03688225522637367,
-0.0020055354107171297,
0.03924701735377312,
0.01583532989025116,
-0.07372475415468216,
0.008330076932907104,
-0.01752394251525402,
-0.03954837843775749,
0.03881959989666939,
0.016878271475434303,
0.11374859511852264,
-0.03475204482674599,
-0.060748446732759476,
0.026397673413157463,
0.0014673186233267188,
-0.020047327503561974,
-0.004321826156228781,
0.018855897709727287,
-0.02394747920334339,
-0.015840230509638786,
-0.018058864399790764,
0.05608348548412323,
-0.055173709988594055,
0.014632067643105984,
0.05773870274424553,
0.0010382349137216806,
0.02795913815498352,
-0.04389427602291107,
-0.0180035587400198,
-0.005142438691109419,
0.0032509074080735445,
-0.02445012703537941,
0.03804976865649223,
-0.008220506832003593,
-0.03738826885819435,
-0.038615576922893524,
-0.037989016622304916,
-0.0030129754450172186,
0.08501000702381134,
0.011293136514723301,
0.004225202836096287,
-0.02546917460858822,
0.0030389814637601376,
0.039990924298763275,
0.006972653325647116,
-0.05128496140241623,
0.024120792746543884,
0.04875941202044487,
0.011041221208870411,
-0.0209912471473217,
0.08081664890050888,
0.000659664801787585,
-0.01154453493654728,
-0.029849156737327576,
0.006371138617396355,
0.012251541949808598,
-0.016330689191818237,
0.048781029880046844,
0.03724969923496246,
-0.011430326849222183,
-0.041670266538858414,
-0.0243985615670681,
0.0689053162932396,
0.0015688170678913593,
0.008409983478486538,
0.004152285400778055,
-0.01358122006058693,
-0.05277636647224426,
0.042237233370542526,
-0.01930757239460945,
0.009743807837367058,
-0.035675909370183945,
0.012968407943844795,
0.011296606622636318,
0.03282821178436279,
0.0486149899661541,
0.049083590507507324,
-0.006502838805317879,
0.06770087778568268,
-0.015484318137168884,
0.007197757717221975,
-0.04818522930145264,
-0.0463833212852478,
-0.0065007079392671585,
0.03869449719786644,
0.03144727647304535,
0.044703301042318344,
-0.0168750137090683,
-0.046577088534832,
0.03825247660279274,
0.05976119637489319,
0.045168910175561905,
0.01612268015742302,
-0.0347253642976284,
-0.005610053893178701,
0.03662019595503807,
0.0624447725713253,
-0.07231007516384125,
-0.03285685554146767,
0.0333818681538105,
0.05950423702597618,
-0.027653710916638374,
0.009317255578935146,
-0.008764008991420269,
0.025586316362023354,
-0.030586127191781998,
-0.0716385468840599,
0.04777948930859566,
0.03310670703649521,
0.004663438070565462,
0.02647339180111885,
0.0025880117900669575,
0.007863634265959263,
0.01768500544130802,
0.043562814593315125,
0.001376351690851152,
-0.03814674913883209,
0.005651932675391436,
0.014791327528655529,
0.06706681102514267,
-0.04555107280611992,
0.026857515797019005,
-0.011776076629757881,
0.02880103699862957,
0.029313884675502777,
-0.01923571154475212,
0.035898394882678986,
0.009334839880466461,
0.009412769228219986,
-0.04397828131914139,
0.04158110171556473,
-0.007956472225487232,
0.015328279696404934,
0.05978023633360863,
-0.013669961132109165,
0.051940128207206726,
-0.0016565535916015506,
0.060145579278469086,
0.055580925196409225,
0.0312439426779747,
0.01569322869181633,
0.004674836061894894,
0.07936447858810425,
0.015184723772108555,
-0.017172880470752716,
0.07449668645858765,
-0.05412603169679642,
0.00888864602893591,
-0.055077459663152695,
0.011669077910482883,
0.004324290901422501,
-0.014269881881773472,
0.02400803007185459,
0.011298799887299538,
0.00949886068701744,
-0.003868469502776861,
-0.017521271482110023,
0.0005267796223051846,
0.03834287077188492,
-0.03150903433561325,
-0.01156395860016346,
-0.023798033595085144,
-0.03135083243250847,
0.004526123404502869,
-0.0671197846531868,
-0.013511059805750847,
-0.017250744625926018,
-0.033959344029426575,
0.0002678185992408544,
-0.08349646627902985,
-0.026044543832540512,
-0.04892818629741669,
-0.008704950101673603,
0.02126500755548477,
0.009538648650050163,
-0.008869395591318607,
-0.03963609039783478,
0.02989378571510315,
-0.05085526406764984,
-0.023905448615550995,
-0.02633487991988659,
-0.07032452523708344,
-0.03056698478758335,
-0.041141364723443985,
0.05317863076925278,
0.029254846274852753,
0.0009858486009761691,
0.011014195159077644,
0.02934606373310089,
-0.006551946979016066,
-0.041222985833883286,
0.01940225437283516,
0.0361882708966732,
-0.03615263104438782,
-0.06493917852640152,
0.01704721711575985,
-0.0016270354390144348,
-0.0031815175898373127,
-0.02125857211649418,
-0.028900127857923508,
0.08850913494825363,
0.08494926244020462,
0.008340838365256786,
0.0041250623762607574,
-0.009136196225881577,
-0.0610552579164505,
-0.045656729489564896,
-0.020287195220589638,
-0.04619436711072922,
-0.024018824100494385,
-0.02515310049057007,
-0.02779838629066944,
-0.02788885124027729,
-0.05223392695188522,
0.0036190557293593884,
0.0032559959217906,
0.013951536267995834,
0.04899577423930168,
0.04106893762946129,
0.0219365656375885,
0.05101127550005913,
-0.03430633246898651,
-0.0182968657463789,
0.0718388557434082,
0.010204930789768696,
0.025231432169675827,
-0.07025890052318573,
-0.026171691715717316,
0.05145147815346718,
0.006722449325025082,
-0.010014011524617672,
-0.019288182258605957,
0.07852619141340256,
-0.0021025605965405703,
-0.00936908833682537,
0.006541697308421135,
-0.0011789322597905993,
-0.03747386857867241,
-0.017869245260953903,
0.009952809661626816,
-0.0134775685146451,
-0.051542773842811584,
-0.019370876252651215,
0.002301697852090001,
0.06067131087183952,
-0.03659401088953018,
-0.05738513544201851,
-0.008250681683421135,
0.0576946884393692,
-0.0024757846258580685,
-0.007549657020717859,
-0.022482935339212418,
0.005884715821594,
-0.044261299073696136,
-0.03219878301024437,
-0.0006318095838651061,
-0.012034762650728226,
-0.008414187468588352,
0.03752826526761055,
0.014431660994887352,
-0.012723652645945549,
0.013877040706574917,
0.02580851875245571,
0.05451241508126259,
0.007369238883256912,
-0.046904824674129486,
0.03190775215625763,
-0.01957748271524906,
0.021447157487273216,
-0.004304748494178057,
-0.037697866559028625,
-0.05016782879829407,
-0.0754263699054718,
-0.006015589460730553,
0.0028302790597081184,
-0.04650645703077316,
-0.026075338944792747,
0.03988642618060112,
-0.031090714037418365,
0.00698017468675971,
-0.007722990121692419,
0.03357059508562088,
0.014363706111907959,
-0.028685063123703003,
0.07203763723373413,
-0.002576749073341489,
0.041574448347091675,
-0.06856858730316162,
0.033835019916296005,
-0.040729161351919174,
0.005706630181521177,
0.008951939642429352,
0.06467033922672272,
0.022063463926315308,
0.04801712930202484,
0.07265734672546387,
0.04776771366596222,
-0.03476762771606445,
0.04438947141170502,
0.057354968041181564,
0.004402270540595055,
-0.036520760506391525,
-0.006858269218355417,
-0.01239220704883337,
-0.0201592817902565,
-0.01596660166978836,
-0.005043216980993748,
-0.01993546448647976,
0.02533489465713501,
-0.007590004242956638,
0.005656722467392683,
0.017226139083504677,
-0.030239993706345558,
-0.03682217746973038,
-0.05047246441245079,
-0.03752128407359123,
0.013524172827601433,
-0.0395827554166317,
0.05058469623327255,
0.025608409196138382,
0.022481711581349373,
0.07068097591400146,
0.06918096542358398,
-0.0063595641404390335,
-0.030776068568229675,
0.012424476444721222,
0.03605514392256737,
-0.029776599258184433,
-0.05555995553731918,
-0.05828889459371567,
0.0500701479613781,
0.0459761843085289,
0.016070978716015816,
-0.08721498399972916,
-0.00462153647094965,
0.05820167437195778,
-0.026714442297816277,
0.04987595975399017,
-0.011694160290062428,
0.054202623665332794,
0.04489421844482422,
-0.036467045545578,
0.028016509488224983,
-0.017289690673351288,
0.014844768680632114,
-0.008956585079431534,
0.003673046361654997,
-0.013942885212600231,
-0.033325038850307465,
-0.0634346753358841,
0.01613897830247879,
0.032219551503658295,
0.029304800555109978,
0.059705011546611786,
-0.014628668315708637,
-0.029866380617022514,
0.020935988053679466,
0.009762820787727833,
-0.03710120916366577,
0.004921416286379099,
0.036671627312898636,
0.03533700108528137,
-0.042172931134700775,
0.001374714425764978,
-0.018573245033621788,
-0.0068944301456213,
0.01597326621413231,
0.009195906110107899,
-0.04734683781862259,
-0.05540981888771057,
0.0057762074284255505,
-0.015964845195412636,
-0.016867170110344887,
-0.09182150661945343,
0.03783034533262253,
-0.025592194870114326,
-0.006530039943754673,
0.024837849661707878,
0.012322193011641502,
0.02013223245739937,
0.05293985456228256,
0.011853470467031002,
0.016513286158442497,
-0.03781954199075699,
0.043877944350242615,
-0.006621397100389004,
-0.009292599745094776,
-0.01953360065817833,
-0.04927048832178116,
0.00857759639620781,
-0.01076025702059269,
-0.01044920738786459,
-0.03775637969374657,
-0.010047178715467453,
0.018683481961488724,
-0.014240325428545475,
-0.0012786360457539558,
-0.02959015965461731,
0.05374785140156746,
-0.03353896364569664,
-0.04024162515997887,
-0.026324067264795303,
-0.03199354559183121,
-0.07976897805929184,
-0.06227998062968254,
-0.004689766559749842,
0.0262986421585083,
0.015944018959999084,
0.01714417338371277,
0.023342350497841835,
0.011401220224797726,
0.017573541030287743,
-0.025612104684114456,
0.033559489995241165,
-0.005772117059677839,
-0.046854447573423386,
-0.05231134220957756,
-0.01737808994948864,
0.03498378023505211,
0.030663784593343735,
-0.02665361762046814,
0.031017931178212166,
0.03200046718120575,
-0.03260766714811325,
0.007177225314080715,
0.035217393189668655,
0.026018105447292328,
-0.06985606998205185,
-0.038123562932014465,
-0.02780565246939659,
-0.04880296438932419,
0.0514829121530056,
-0.009349562227725983,
-0.005582560785114765,
0.026873867958784103,
0.04131225124001503,
0.03793974220752716,
0.00350641505792737,
-0.04084179922938347,
0.02179006300866604,
-0.02529536932706833,
0.01700088568031788,
-0.04366671293973923,
0.04705117270350456,
-0.035413242876529694,
0.012112084776163101,
-0.0024406493175774813,
-0.02176577039062977,
-0.020432809367775917,
0.044779449701309204,
-0.01845746487379074,
-0.019733000546693802,
-0.004269403871148825,
0.015843786299228668,
-0.029706144705414772,
0.04238630086183548,
-0.01871110498905182,
0.029891716316342354,
-0.02631324715912342,
0.054540447890758514,
-0.03243108093738556,
-0.01483184564858675,
-0.03012719191610813,
-0.00047589215682819486,
-0.031873803585767746,
-0.021803900599479675,
-0.017921241000294685,
-0.05443503335118294,
0.02365644834935665,
0.04014888033270836,
0.0511932410299778,
0.04710209742188454,
0.0007619936368428171,
0.001156579703092575,
0.023984309285879135,
-0.049412038177251816,
-0.008011179976165295,
-0.010822487995028496,
0.03745630756020546,
0.014545428566634655,
0.07184717059135437,
0.035012125968933105,
-0.048956189304590225,
-0.05923232063651085,
0.03539209067821503,
0.021001605316996574,
0.026453634724020958,
0.013256709091365337,
0.06843447685241699,
0.029254194349050522,
0.041205763816833496,
-0.02271897718310356,
-0.005004430655390024,
-0.017753059044480324,
-0.03768036141991615,
0.015291565097868443,
0.008526571094989777,
0.0033865859732031822,
0.0025164508260786533,
-0.03372654318809509,
-0.03596629947423935,
0.07758200913667679,
0.03475065156817436,
-0.0020133189391344786,
0.01723209209740162,
-0.02889793924987316,
0.02531178668141365,
-0.008739843033254147,
-0.051670391112565994,
-0.0060103763826191425,
-0.0008461923571303487,
-0.037655461579561234,
0.06436263769865036,
-0.01087914127856493,
0.03462144359946251,
0.030515659600496292,
0.012499998323619366,
-0.007554993033409119,
0.05539770424365997,
-0.04075772315263748,
0.03035522811114788,
0.03147151321172714,
-0.047119513154029846,
0.016574878245592117,
-0.03620778024196625,
0.07558491826057434,
-0.09574995934963226,
0.058114439249038696,
0.026341792196035385,
0.014674107544124126,
0.009339149110019207,
-0.00752326101064682,
-0.02995312213897705,
0.004359270446002483,
-0.043446339666843414,
0.07467889785766602,
0.01246044784784317,
-0.050537776201963425,
0.03258896991610527,
0.034977979958057404,
-0.05970020592212677,
0.0765734314918518,
0.04677937924861908,
0.06598973274230957,
0.038139499723911285,
0.030950132757425308,
-0.05873924866318703,
0.0061120945028960705,
-0.0327579602599144,
0.02832750417292118,
-0.05996400862932205,
-0.005357170011848211,
0.047460444271564484,
-0.04487822577357292,
-0.006459579803049564,
0.02870362624526024,
-0.026322325691580772,
-0.01325549092143774,
0.037371858954429626,
-0.05602136626839638,
-0.059791792184114456,
-0.004750473890453577,
0.02685079723596573,
-0.05702000483870506,
0.00450638635084033,
-0.04512745141983032,
0.0023474348708987236,
0.006255667190998793,
-0.017285339534282684,
-0.06897054612636566,
0.008958392776548862,
0.03888541832566261,
-0.06368811428546906,
-0.031012309715151787,
0.07527709752321243,
0.009515590034425259,
-0.023578571155667305,
0.03465957194566727,
-0.02226737141609192,
0.006864101160317659,
0.027319563552737236,
0.008649643510580063,
0.01628299430012703,
-0.05191635340452194,
-0.027379529550671577,
0.005884278565645218,
-0.016936082392930984,
0.011188816279172897,
-0.016531560570001602,
0.03466852009296417,
0.06605952978134155,
0.040211886167526245,
0.034511856734752655,
-0.05070558562874794,
-0.02251390926539898,
0.04471232369542122,
-0.05398792773485184,
0.0020966504234820604,
-0.002128059510141611,
-0.04323311895132065,
-0.0279436893761158,
-0.010436145588755608,
-0.026143429800868034,
0.04666534811258316,
-0.04681611806154251,
-0.015570791438221931,
-0.0005337949842214584,
-0.030466923490166664,
-0.04150494188070297,
-0.09759499877691269,
-0.018718285486102104,
-0.0434643030166626,
0.03717285767197609,
0.0026522306725382805,
-0.036794550716876984,
0.029073424637317657,
-0.05016569793224335,
-0.06152605637907982,
0.0338493287563324,
0.02849070355296135,
-0.06224850192666054,
0.04611612856388092,
0.04000433161854744,
-0.03386344388127327,
-0.0036872655618935823,
0.046227745711803436,
-0.02652859129011631,
0.007710003759711981,
0.007320967968553305,
0.004922180902212858,
0.02628193236887455,
0.022509532049298286,
-0.01645844429731369,
-0.017991425469517708,
-0.0488303005695343,
-0.04846714809536934,
-0.023969057947397232,
0.0027150094974786043,
0.05705876275897026
] |
CAMeL-Lab/bert-base-arabic-camelbert-msa-ner | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 229 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع"
---
# CAMeLBERT MSA NER Model
## Model description
**CAMeLBERT MSA NER Model** is a Named Entity Recognition (NER) model that was built by fine-tuning the [CAMeLBERT Modern Standard Arabic (MSA)](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-msa/) model.
For the fine-tuning, we used the [ANERcorp](https://camel.abudhabi.nyu.edu/anercorp/) dataset.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678).
"* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT MSA NER model directly as part of our [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) NER component (*recommended*) or as part of the transformers pipeline.
#### How to use
To use the model with the [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) NER component:
```python
>>> from camel_tools.ner import NERecognizer
>>> from camel_tools.tokenizers.word import simple_word_tokenize
>>> ner = NERecognizer('CAMeL-Lab/bert-base-arabic-camelbert-msa-ner')
>>> sentence = simple_word_tokenize('إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع')
>>> ner.predict_sentence(sentence)
>>> ['O', 'B-LOC', 'O', 'O', 'O', 'O', 'B-LOC', 'I-LOC', 'I-LOC', 'O']
```
You can also use the NER model directly with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> ner = pipeline('ner', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-ner')
>>> ner("إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع")
[{'word': 'أبوظبي',
'score': 0.9895730018615723,
'entity': 'B-LOC',
'index': 2,
'start': 6,
'end': 12},
{'word': 'الإمارات',
'score': 0.8156259655952454,
'entity': 'B-LOC',
'index': 8,
'start': 33,
'end': 41},
{'word': 'العربية',
'score': 0.890906810760498,
'entity': 'I-LOC',
'index': 9,
'start': 42,
'end': 49},
{'word': 'المتحدة',
'score': 0.8169114589691162,
'entity': 'I-LOC',
'index': 10,
'start': 50,
'end': 57}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
```
| [
-0.004703985061496496,
0.0016186973080039024,
-0.02360241487622261,
0.05507110059261322,
0.04884697496891022,
0.027795154601335526,
-0.017561348155140877,
-0.018845099955797195,
-0.022453393787145615,
0.06865411251783371,
0.010826937854290009,
-0.02287803217768669,
0.02224890887737274,
0.045715849846601486,
-0.046232670545578,
-0.02569538727402687,
0.004689762834459543,
-0.018061228096485138,
-0.057306163012981415,
-0.03455051779747009,
-0.002042953157797456,
0.009437869302928448,
0.013004411943256855,
0.003774753538891673,
-0.0030163745395839214,
0.023328905925154686,
-0.015209704637527466,
0.05995507165789604,
0.0424225740134716,
-0.05857636407017708,
-0.015112957917153835,
-0.015399787575006485,
-0.031234482303261757,
-0.017029300332069397,
-0.025522276759147644,
0.011356587521731853,
0.0056876069866120815,
-0.00580852385610342,
0.013982737436890602,
0.06179036945104599,
-0.03251314535737038,
0.027995029464364052,
-0.002500972943380475,
-0.0352870337665081,
0.03764113411307335,
0.00655809510499239,
-0.031005095690488815,
0.00635224673897028,
0.037481509149074554,
-0.06601297110319138,
-0.07101985812187195,
-0.05346343666315079,
-0.05442756414413452,
0.03939143195748329,
0.0018017480615526438,
-0.004316421691328287,
-0.025469619780778885,
-0.03607141971588135,
0.08309966325759888,
-0.06946716457605362,
-0.03636845201253891,
-0.0069099050015211105,
-0.05284509062767029,
0.0258686114102602,
0.031163398176431656,
-0.019974999129772186,
0.012056437321007252,
-0.043902166187763214,
0.05716581642627716,
-0.03245621547102928,
0.041129592806100845,
-0.024143733084201813,
0.006455305498093367,
-0.08324949443340302,
0.019475391134619713,
-0.022299669682979584,
0.04749678820371628,
0.04577931761741638,
-0.03305366262793541,
0.06792671978473663,
0.008622831664979458,
-0.00017574949015397578,
0.03770691156387329,
-0.024029230698943138,
-0.007085027173161507,
0.025871358811855316,
-0.04452330991625786,
0.005391724873334169,
0.013775354251265526,
0.03217875584959984,
-0.0453510545194149,
-0.030450113117694855,
0.004712129943072796,
-0.04593275487422943,
-0.028432967141270638,
0.02454358898103237,
0.03295096755027771,
0.002112804679200053,
0.03852340579032898,
0.021861940622329712,
0.03728717938065529,
0.048219215124845505,
-0.022893700748682022,
0.05053911730647087,
-0.023318054154515266,
-0.029787834733724594,
-0.032582737505435944,
-0.02917994000017643,
-0.02682499587535858,
0.04439832642674446,
0.013809864409267902,
-0.059860046952962875,
-0.05662880465388298,
0.03329279273748398,
-0.00026240781880915165,
-0.03415326774120331,
0.03836437314748764,
-0.03457676246762276,
-0.06433725357055664,
-0.03332557901740074,
0.04773591458797455,
-0.012184564024209976,
0.01155166607350111,
0.000900781771633774,
-0.04317457973957062,
0.0016020379262045026,
-0.06289930641651154,
-0.021030882373452187,
-0.021917754784226418,
0.02426319196820259,
-0.004693394526839256,
0.03166608512401581,
0.008706208318471909,
-0.07613131403923035,
0.02044667862355709,
-0.01576850190758705,
-0.04924947768449783,
0.05953195318579674,
0.0368986614048481,
0.1097758337855339,
-0.044206663966178894,
-0.04911842942237854,
0.014942868612706661,
0.023132676258683205,
-0.020916152745485306,
-0.01168721355497837,
0.01855291798710823,
-0.03139524906873703,
-0.030320359393954277,
-0.01575002633035183,
0.056463081389665604,
-0.053098343312740326,
0.015976114198565483,
0.04435591399669647,
-0.005759082734584808,
0.034607112407684326,
-0.03201204165816307,
-0.024390533566474915,
-0.0030000130645930767,
0.02569381333887577,
-0.021024100482463837,
0.05322938784956932,
0.005732047837227583,
-0.012454417534172535,
-0.041133198887109756,
-0.04470185190439224,
-0.002843683585524559,
0.09143203496932983,
-0.00425098929554224,
-0.010646466165781021,
-0.027900276705622673,
0.0024216659367084503,
0.040104061365127563,
0.01673601008951664,
-0.03756871074438095,
0.026986975222826004,
0.0621548555791378,
0.01703507825732231,
-0.02485920675098896,
0.06690331548452377,
0.01012436393648386,
-0.014539753086864948,
0.00004161097604082897,
-0.010201947763562202,
0.0010635387152433395,
-0.023202884942293167,
0.04148323833942413,
0.05292203649878502,
-0.0156935416162014,
-0.039405759423971176,
-0.022969231009483337,
0.0716908648610115,
0.0057255784049630165,
0.016903294250369072,
0.00005488987881108187,
-0.020446252077817917,
-0.04025745391845703,
0.0467398539185524,
-0.01280361320823431,
0.015186931006610394,
-0.024993030354380608,
0.003429099917411804,
-0.0032368232496082783,
0.03797616809606552,
0.04861351102590561,
0.028947923332452774,
-0.03619153052568436,
0.06779970973730087,
-0.02918080985546112,
0.009973227977752686,
-0.040967632085084915,
-0.045266080647706985,
-0.004320577252656221,
0.04143816977739334,
0.03354354947805405,
0.04171797260642052,
-0.015053019858896732,
-0.028797727078199387,
0.024415835738182068,
0.04061435908079147,
0.03536741062998772,
0.027615541592240334,
-0.024517135694622993,
-0.01767120510339737,
0.030819831416010857,
0.07345999777317047,
-0.07643703371286392,
-0.04181472584605217,
0.03531964495778084,
0.03904520347714424,
-0.03196603059768677,
0.021399343386292458,
-0.003916380926966667,
0.03315187990665436,
-0.04226728156208992,
-0.08209960162639618,
0.05107073113322258,
0.021693972870707512,
-0.009791777469217777,
0.026287991553544998,
-0.012580504640936852,
-0.010069024749100208,
0.018206579610705376,
0.027132894843816757,
0.0006365751032717526,
-0.05343444272875786,
0.008839882910251617,
0.012798906303942204,
0.061377499252557755,
-0.0438883937895298,
0.04147546738386154,
0.004603064153343439,
0.01942279376089573,
0.03624781221151352,
-0.03941154479980469,
0.028707601130008698,
0.017691968008875847,
0.004846884403377771,
-0.031642962247133255,
0.04061098024249077,
0.0013635868672281504,
0.015870003029704094,
0.053755540400743484,
-0.005865523591637611,
0.05810246989130974,
-0.008557830937206745,
0.04785997048020363,
0.05922119319438934,
0.025646382942795753,
0.02211996726691723,
0.014738631434738636,
0.07420116662979126,
0.0043693529441952705,
-0.025675412267446518,
0.07593405246734619,
-0.05593317002058029,
0.023110317066311836,
-0.039980653673410416,
0.003176518250256777,
-0.004175303969532251,
-0.01241451408714056,
0.05089638754725456,
0.0075074778869748116,
0.0032127047888934612,
-0.015528576448559761,
-0.024941790848970413,
0.003751395968720317,
0.023032156750559807,
-0.023394007235765457,
-0.01759488508105278,
-0.01875411532819271,
-0.03025716356933117,
0.006838057655841112,
-0.06922601908445358,
-0.009474390186369419,
-0.006369577720761299,
-0.03419677913188934,
0.003286955179646611,
-0.07571220397949219,
-0.026301490142941475,
-0.04776256904006004,
-0.014832557179033756,
0.033854153007268906,
0.013141839765012264,
0.0021506203338503838,
-0.04324891045689583,
0.03681004047393799,
-0.04534321278333664,
-0.038880813866853714,
-0.045514173805713654,
-0.060008492320775986,
-0.020972808822989464,
-0.052027102559804916,
0.041290782392024994,
0.011425642296671867,
0.013975199311971664,
0.006376464851200581,
0.014718507416546345,
-0.026936572045087814,
-0.040617115795612335,
0.026784107089042664,
0.03833259269595146,
-0.028096672147512436,
-0.057113196700811386,
0.024811120703816414,
-0.005294217728078365,
0.005965519230812788,
-0.045417848974466324,
-0.047737520188093185,
0.061304908245801926,
0.08537333458662033,
0.011503307148814201,
0.01522344071418047,
-0.006986529566347599,
-0.05049319565296173,
-0.04671258479356766,
-0.02304479479789734,
-0.04149332270026207,
-0.0334792286157608,
-0.018934503197669983,
-0.03581305220723152,
-0.01688123680651188,
-0.04590918496251106,
-0.01646941341459751,
0.004343620501458645,
0.012808454222977161,
0.03732520714402199,
0.04949573799967766,
0.03164280205965042,
0.03385642543435097,
-0.035373374819755554,
-0.028646592050790787,
0.06816583126783371,
0.01784532144665718,
0.01525331474840641,
-0.06930452585220337,
-0.040608588606119156,
0.048715535551309586,
0.01844191364943981,
-0.016513796523213387,
-0.016987627372145653,
0.06684261560440063,
-0.009997512213885784,
-0.011059745214879513,
0.006288993172347546,
-0.0008712327107787132,
-0.04635212570428848,
-0.0030093127861618996,
0.015072553418576717,
-0.0038145780563354492,
-0.05541938170790672,
-0.011718873865902424,
0.016565052792429924,
0.056009579449892044,
-0.03227325901389122,
-0.059323035180568695,
-0.006415300536900759,
0.06407471746206284,
0.01691436395049095,
0.006017125211656094,
-0.020232265815138817,
0.013708709739148617,
-0.040295619517564774,
-0.04327825829386711,
0.015195934101939201,
-0.01571084000170231,
0.004349022638052702,
0.05080404132604599,
0.014103042893111706,
-0.013594279997050762,
0.03370639309287071,
0.030740443617105484,
0.04498668015003204,
0.007884247228503227,
-0.032345931977033615,
0.026135075837373734,
-0.020854171365499496,
0.010579640045762062,
0.011293607763946056,
-0.032260287553071976,
-0.05030734837055206,
-0.09535393863916397,
-0.012246699072420597,
0.006032091565430164,
-0.020578688010573387,
-0.021320419386029243,
0.038483887910842896,
-0.017273379489779472,
0.00767497206106782,
0.0036214806605130434,
0.023831646889448166,
0.030164100229740143,
-0.03056364692747593,
0.053968124091625214,
-0.01974577270448208,
0.045533645898103714,
-0.04916103929281235,
0.017270801588892937,
-0.0259069986641407,
0.017116989940404892,
0.005294559057801962,
0.06526074558496475,
0.026647618040442467,
0.029263809323310852,
0.06514030694961548,
0.051449067890644073,
-0.03985176235437393,
0.03476069122552872,
0.0487908273935318,
0.0013281693682074547,
-0.04743137210607529,
-0.0045370254665613174,
-0.01913641206920147,
-0.03288770839571953,
-0.0072342888452112675,
-0.036141715943813324,
-0.011766131967306137,
0.031603846698999405,
0.010360851883888245,
0.0038036410696804523,
0.017701376229524612,
-0.025403227657079697,
-0.031219065189361572,
-0.07092265784740448,
-0.02718316949903965,
0.02108999900519848,
-0.02388540655374527,
0.039535801857709885,
0.04350920766592026,
0.02436978556215763,
0.07340384274721146,
0.08080479502677917,
-0.0024063587188720703,
-0.05747072771191597,
0.022268375381827354,
0.02944418229162693,
-0.046379394829273224,
-0.05843878537416458,
-0.04875267297029495,
0.049778882414102554,
0.05275455117225647,
0.006089765578508377,
-0.08951730281114578,
0.0029399662744253874,
0.05986528471112251,
-0.01789085939526558,
0.06187696009874344,
-0.011519428342580795,
0.059547603130340576,
0.06007803976535797,
-0.031627360731363297,
0.021411379799246788,
-0.04128212109208107,
0.02494063600897789,
-0.003271711291745305,
0.01797887496650219,
-0.022300729528069496,
-0.032818105071783066,
-0.03534530848264694,
0.021783437579870224,
0.04357548803091049,
0.03306243568658829,
0.05476929619908333,
-0.004489637445658445,
-0.03442913666367531,
0.00013582360406871885,
0.004651729483157396,
-0.04138385131955147,
0.003749708877876401,
0.03521374240517616,
0.03241250663995743,
-0.043018270283937454,
-0.011615720577538013,
-0.005742019973695278,
-0.003221104620024562,
0.013645783998072147,
0.004505391698330641,
-0.044703271239995956,
-0.04475606977939606,
0.0045748320408165455,
-0.002084077801555395,
-0.01586281508207321,
-0.0900968536734581,
0.042565375566482544,
-0.034817665815353394,
0.0022089958656579256,
0.04208376258611679,
0.014214720577001572,
0.00876655150204897,
0.039998073130846024,
-0.013214089907705784,
0.01250686775892973,
-0.03501640260219574,
0.030983436852693558,
-0.003923983778804541,
-0.019949879497289658,
-0.031177323311567307,
-0.05823944881558418,
-0.0016447745729237795,
-0.008853144012391567,
-0.028203845024108887,
-0.031054096296429634,
-0.012424703687429428,
0.03413005918264389,
-0.0096442811191082,
0.014357872307300568,
-0.016603901982307434,
0.05366998910903931,
-0.05056781321763992,
-0.03416100889444351,
-0.01795058511197567,
-0.031523026525974274,
-0.08108143508434296,
-0.0452493391931057,
-0.0015938571887090802,
0.018680047243833542,
0.011429431848227978,
0.021919462829828262,
0.019451724365353584,
0.0057547446340322495,
0.02045002393424511,
-0.03319951146841049,
0.031939588487148285,
-0.009133649058640003,
-0.040567170828580856,
-0.03475451469421387,
-0.02267150767147541,
0.0293690487742424,
0.03479262813925743,
-0.017799077555537224,
0.0362226702272892,
0.0348426029086113,
-0.033713046461343765,
0.0019528282573446631,
0.03303100913763046,
0.024828273802995682,
-0.0710340142250061,
-0.03295765817165375,
-0.02205647900700569,
-0.03857056051492691,
0.03916307911276817,
-0.016663474962115288,
-0.008987183682620525,
0.014525177888572216,
0.02968677692115307,
0.02740461565554142,
-0.008133727125823498,
-0.038691096007823944,
0.013531725853681564,
-0.026105931028723717,
0.026741228997707367,
-0.040276508778333664,
0.0637904480099678,
-0.03926210477948189,
0.023872720077633858,
-0.017600370571017265,
-0.031341858208179474,
-0.023114120587706566,
0.04831218346953392,
-0.016089141368865967,
-0.013118308037519455,
0.01177983544766903,
0.004619961604475975,
-0.03832273557782173,
0.03605113551020622,
-0.007629192899912596,
0.025050168856978416,
-0.018875684589147568,
0.02643183059990406,
-0.039199650287628174,
-0.022130580618977547,
-0.022798920050263405,
-0.0038201624993234873,
-0.03287598490715027,
-0.04574599489569664,
-0.016504665836691856,
-0.054305415600538254,
0.0326697938144207,
0.028078878298401833,
0.028751857578754425,
0.036304693669080734,
-0.005941489245742559,
-0.00850383099168539,
0.011202222667634487,
-0.06049666553735733,
-0.0032531071919947863,
-0.014047228731215,
0.04851080849766731,
0.01392541266977787,
0.07028693705797195,
0.047455575317144394,
-0.04845574125647545,
-0.046702902764081955,
0.05198580399155617,
0.013749836944043636,
0.014772758819162846,
0.01908150129020214,
0.060616385191679,
0.03149544075131416,
0.04311752691864967,
-0.02619193308055401,
-0.012797659263014793,
-0.025592297315597534,
-0.025074148550629616,
0.008250797167420387,
0.012566453777253628,
0.010364213958382607,
0.005520153790712357,
-0.043989650905132294,
-0.029148058965802193,
0.09942114353179932,
0.030369779095053673,
0.0023325318470597267,
0.009133824147284031,
-0.03347275033593178,
0.027959145605564117,
-0.006082718726247549,
-0.0630914717912674,
-0.008711217902600765,
0.018329927697777748,
-0.04375506937503815,
0.08441672474145889,
-0.008694514632225037,
0.024373380467295647,
0.020586049184203148,
0.01912936009466648,
-0.012000057846307755,
0.05809924378991127,
-0.04906342178583145,
0.02871134504675865,
0.04266555979847908,
-0.04782968387007713,
0.020610779523849487,
-0.04515540599822998,
0.06409981846809387,
-0.08656467497348785,
0.05640384927392006,
0.026472244411706924,
0.004563280381262302,
-0.001801066449843347,
-0.027492137625813484,
-0.023077648133039474,
0.004568563774228096,
-0.03210480511188507,
0.0693594440817833,
-0.008169491775333881,
-0.05313584953546524,
0.038725193589925766,
0.033820755779743195,
-0.07653199881315231,
0.07064785808324814,
0.0232466459274292,
0.0642913281917572,
0.05109701678156853,
0.04111585021018982,
-0.09158960729837418,
0.010023417882621288,
-0.04044802114367485,
0.039159808307886124,
-0.07400599122047424,
0.007499014493077993,
0.04560782015323639,
-0.04109000787138939,
-0.008242974989116192,
0.03994102030992508,
-0.02356329746544361,
-0.017284667119383812,
0.013065217062830925,
-0.06292300671339035,
-0.03666795417666435,
-0.02188420295715332,
0.026952670887112617,
-0.03246495872735977,
0.011902493424713612,
-0.03841003403067589,
0.0020152414217591286,
0.0075724744237959385,
-0.006080155726522207,
-0.045597899705171585,
-0.005571234039962292,
0.04802732914686203,
-0.08153567463159561,
-0.015312223695218563,
0.05802857503294945,
0.009858260862529278,
-0.005742814391851425,
0.03551410511136055,
-0.01877850852906704,
0.03293789178133011,
0.018201297149062157,
0.016395526006817818,
0.01341244112700224,
-0.04588591679930687,
-0.013142830692231655,
0.01976516842842102,
-0.003124185837805271,
0.032996080815792084,
-0.007301726378500462,
0.03822392597794533,
0.07302486896514893,
0.024757767096161842,
0.02497842162847519,
-0.06715581566095352,
-0.03364565968513489,
0.027052760124206543,
-0.04956841096282005,
0.008112646639347076,
-0.014323504641652107,
-0.04707009717822075,
-0.03191133216023445,
-0.014234648086130619,
-0.03191294148564339,
0.04972125589847565,
-0.04743560776114464,
0.001602915464900434,
0.011493416503071785,
-0.026504095643758774,
-0.03922717273235321,
-0.06397014856338501,
-0.024022528901696205,
-0.0254159327596426,
0.024164777249097824,
0.00730287516489625,
-0.01980183832347393,
0.02448430471122265,
-0.04743548482656479,
-0.06535209715366364,
0.041140615940093994,
0.020584264770150185,
-0.043203338980674744,
0.060024477541446686,
0.02484152652323246,
-0.028166642412543297,
0.0053055924363434315,
0.04464825987815857,
-0.037894509732723236,
0.012916188687086105,
-0.020049966871738434,
0.014743789099156857,
0.03757833316922188,
0.027390431612730026,
-0.027520213276147842,
-0.01428371574729681,
-0.06202804297208786,
-0.04231538251042366,
-0.03742039576172829,
-0.00330056669190526,
0.0729999989271164
] |
CAMeL-Lab/bert-base-arabic-camelbert-msa-poetry | [
"pytorch",
"tf",
"bert",
"text-classification",
"ar",
"arxiv:1905.05700",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 25 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: 'الخيل والليل والبيداء تعرفني [SEP] والسيف والرمح والقرطاس والقلم'
---
# CAMeLBERT-MSA Poetry Classification Model
## Model description
**CAMeLBERT-MSA Poetry Classification Model** is a poetry classification model that was built by fine-tuning the [CAMeLBERT Modern Standard Arabic (MSA)](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-msa/) model.
For the fine-tuning, we used the [APCD](https://arxiv.org/pdf/1905.05700.pdf) dataset.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-MSA Poetry Classification model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> poetry = pipeline('text-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-poetry')
>>> # A list of verses where each verse consists of two parts.
>>> verses = [
['الخيل والليل والبيداء تعرفني' ,'والسيف والرمح والقرطاس والقلم'],
['قم للمعلم وفه التبجيلا' ,'كاد المعلم ان يكون رسولا']
]
>>> # A function that concatenates the halves of each verse by using the [SEP] token.
>>> join_verse = lambda half: ' [SEP] '.join(half)
>>> # Apply this to all the verses in the list.
>>> verses = [join_verse(verse) for verse in verses]
>>> poetry(sentences)
[{'label': 'البسيط', 'score': 0.9914996027946472},
{'label': 'الكامل', 'score': 0.917242169380188}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
0.010826119221746922,
-0.006938772741705179,
-0.014591881074011326,
0.05971730872988701,
0.041411615908145905,
0.01579599641263485,
-0.020496755838394165,
-0.022795328870415688,
-0.014671425335109234,
0.07107338309288025,
0.023426679894328117,
-0.010514072142541409,
0.01295232493430376,
0.03769448772072792,
-0.028831081464886665,
-0.020639654248952866,
-0.008601542562246323,
-0.030778678134083748,
-0.04460180178284645,
-0.0132973063737154,
-0.005009065382182598,
-0.023274803534150124,
0.006214606575667858,
0.002873706631362438,
0.0006354663637466729,
-0.009790483862161636,
-0.014161555096507072,
0.035811129957437515,
0.0490027517080307,
-0.03755338117480278,
-0.006828907877206802,
-0.021863024681806564,
-0.037914175540208817,
-0.023191001266241074,
-0.033148303627967834,
0.00957890972495079,
0.0009486282360740006,
0.003886694321408868,
0.016202721744775772,
0.04682411625981331,
-0.01683180034160614,
0.032357729971408844,
-0.02862868458032608,
-0.027875235304236412,
0.019550494849681854,
0.01079231034964323,
-0.0519208163022995,
0.0016776883276179433,
0.0521237887442112,
-0.06497448682785034,
-0.04551466926932335,
-0.06631317734718323,
-0.05993909016251564,
0.03170596435666084,
0.032895877957344055,
-0.0018874621018767357,
-0.04059546813368797,
-0.03753453493118286,
0.09005045145750046,
-0.07062972337007523,
-0.02343566343188286,
0.015609120018780231,
-0.04751311242580414,
0.04204938933253288,
0.025440391153097153,
-0.03442992642521858,
0.025253908708691597,
-0.04221152886748314,
0.06182952970266342,
-0.03935038298368454,
0.05599365383386612,
-0.01647118665277958,
0.0273909829556942,
-0.07356840372085571,
0.0286115650087595,
-0.04435243085026741,
0.03110453300178051,
0.03383372351527214,
-0.03568936511874199,
0.09478458017110825,
0.012339862063527107,
0.0074575915932655334,
0.030947478488087654,
-0.006013735197484493,
-0.014698414131999016,
0.05064332112669945,
-0.04960810765624046,
0.020364532247185707,
0.0045885671861469746,
0.05666635185480118,
-0.04224243760108948,
-0.05184585601091385,
-0.010644352994859219,
-0.029431898146867752,
-0.03248024359345436,
0.03959650173783302,
0.029169054701924324,
-0.04837971553206444,
0.03923704847693443,
0.03713418170809746,
0.03427198529243469,
0.046257708221673965,
-0.027482710778713226,
0.04786599799990654,
-0.017741939052939415,
-0.020209431648254395,
-0.0442955456674099,
-0.03846492990851402,
-0.026434430852532387,
0.029409134760499,
-0.0035121790133416653,
-0.03406205028295517,
-0.04672018066048622,
0.04767543822526932,
0.0026338049210608006,
-0.04334491491317749,
0.04359077289700508,
-0.0434403195977211,
-0.07300706207752228,
-0.04532250761985779,
0.01990492269396782,
-0.007331229280680418,
0.025769129395484924,
0.018929719924926758,
-0.054478712379932404,
0.004213713109493256,
-0.07440188527107239,
-0.030804334208369255,
-0.021923163905739784,
0.028769001364707947,
-0.021720649674534798,
0.02239071950316429,
0.024854738265275955,
-0.06823428720235825,
0.009851237758994102,
-0.0026243741158396006,
-0.05918283388018608,
0.04434095323085785,
0.034408461302518845,
0.1082896739244461,
-0.061348821967840195,
-0.025039106607437134,
0.014231177978217602,
0.01276760920882225,
-0.03251287713646889,
0.026543481275439262,
0.019152924418449402,
-0.04786509647965431,
-0.029494518414139748,
-0.03672565147280693,
0.05551847442984581,
-0.05041038244962692,
0.016422830522060394,
0.03771922364830971,
0.005842031445354223,
0.04825504124164581,
-0.037732142955064774,
0.0168658047914505,
0.002295783255249262,
-0.0038981782272458076,
-0.04284002631902695,
0.04888254031538963,
-0.00520719587802887,
-0.016565196216106415,
-0.03052886389195919,
-0.046465471386909485,
-0.012482973746955395,
0.11119447648525238,
0.00001773087751644198,
-0.023144636303186417,
-0.014109635725617409,
-0.0014748572139069438,
0.024807946756482124,
0.03880875185132027,
-0.03866561874747276,
0.015472214668989182,
0.054094646126031876,
0.01866440661251545,
-0.029028691351413727,
0.09649904072284698,
-0.018704034388065338,
-0.028139004483819008,
-0.0170147642493248,
-0.0019107477273792028,
0.006663288921117783,
-0.02391900308430195,
0.03974790498614311,
0.0399213545024395,
-0.016402941197156906,
-0.005033422727137804,
-0.00619380222633481,
0.06013031676411629,
-0.0037278386298567057,
-0.003231491893529892,
0.009574215859174728,
-0.012872792780399323,
-0.058103837072849274,
0.06641193479299545,
-0.036950863897800446,
0.0034007744397968054,
-0.022952301427721977,
0.0011916464427486062,
0.01014732662588358,
0.022004174068570137,
0.04425701126456261,
0.031585223972797394,
-0.0415191687643528,
0.08650148659944534,
-0.0307990163564682,
0.004373618867248297,
-0.03728790953755379,
-0.04763805493712425,
0.004168050829321146,
0.044767167419195175,
0.008656270802021027,
0.04053735360503197,
-0.005072671454399824,
-0.045759882777929306,
0.02423045039176941,
0.03705869987607002,
0.0478033684194088,
0.03791991248726845,
-0.028204506263136864,
-0.010314666666090488,
0.012228607200086117,
0.05798685550689697,
-0.0892079770565033,
-0.04212431237101555,
0.043652456253767014,
0.06100804731249809,
-0.049045320600271225,
0.03710346296429634,
-0.007997634820640087,
0.03350270166993141,
-0.028520192950963974,
-0.07567410916090012,
0.035647932440042496,
0.025088882073760033,
0.018054258078336716,
0.019043590873479843,
-0.014607290737330914,
0.0036465609446167946,
0.01830418035387993,
0.015558627434074879,
-0.010344577953219414,
-0.04291943833231926,
0.003709066892042756,
0.013042355887591839,
0.08344870060682297,
-0.032245736569166183,
0.040897972881793976,
-0.007397127337753773,
0.01776082254946232,
0.01807616837322712,
-0.02599739283323288,
0.009100336581468582,
0.026586206629872322,
-0.010518460534512997,
-0.038997575640678406,
0.05637768656015396,
-0.0059643154963850975,
0.018988806754350662,
0.06799282133579254,
-0.00383163383230567,
0.054879359900951385,
-0.012345569208264351,
0.05580651015043259,
0.058151114732027054,
0.01484735868871212,
0.024448836222290993,
0.015997743234038353,
0.07376378774642944,
-0.014282429590821266,
-0.0182806309312582,
0.062253691256046295,
-0.04891044273972511,
0.02302292175590992,
-0.03601958602666855,
0.01606285572052002,
-0.009185662493109703,
-0.025908859446644783,
0.03430551290512085,
0.012230592779815197,
-0.007627573329955339,
-0.012591056525707245,
0.009327652864158154,
0.0011745623778551817,
0.046305954456329346,
-0.015909431502223015,
-0.030915411189198494,
-0.007336507085710764,
-0.002798419212922454,
0.01578448712825775,
-0.06826362013816833,
0.003187289461493492,
-0.018211830407381058,
-0.020272066816687584,
0.009267069399356842,
-0.08089102804660797,
-0.04371637478470802,
-0.05545497313141823,
-0.018100103363394737,
0.03961927071213722,
0.0032618138939142227,
0.0007670790073461831,
-0.03608814626932144,
0.02755080536007881,
-0.035078998655080795,
-0.029240436851978302,
-0.03651570528745651,
-0.058198750019073486,
-0.003958279732614756,
-0.02460416778922081,
0.04036951810121536,
0.01072849053889513,
0.01733565144240856,
0.019956480711698532,
0.006627967115491629,
-0.03076641820371151,
-0.0426081046462059,
0.05981176719069481,
0.03008834645152092,
-0.015585305169224739,
-0.06527384370565414,
0.02294354885816574,
0.002269166521728039,
0.004514030646532774,
-0.024428805336356163,
-0.06062779948115349,
0.07065463066101074,
0.07902393490076065,
0.01942254789173603,
0.0067168958485126495,
-0.017654424533247948,
-0.050894636660814285,
-0.043909478932619095,
-0.02748740464448929,
-0.03548109531402588,
-0.0396413654088974,
-0.002753980690613389,
-0.035958822816610336,
-0.0517582893371582,
-0.04365983605384827,
-0.02245684713125229,
-0.011235415935516357,
0.018357565626502037,
0.04870006442070007,
0.07180182635784149,
0.027983538806438446,
0.04263288527727127,
-0.048045117408037186,
-0.030274922028183937,
0.06554216146469116,
0.022290732711553574,
-0.0064566354267299175,
-0.06001341715455055,
-0.032384876161813736,
0.022618260234594345,
0.010165096260607243,
-0.022121695801615715,
0.0003371986385900527,
0.05586174875497818,
-0.00412651477381587,
0.00045410849270410836,
0.018202682957053185,
0.00837575551122427,
-0.035850197076797485,
-0.022673847153782845,
0.0074875145219266415,
0.0038098024670034647,
-0.05088995397090912,
-0.03001195192337036,
0.012438414618372917,
0.07366636395454407,
-0.03402222692966461,
-0.04976845160126686,
-0.005306201986968517,
0.04144229739904404,
0.02262464538216591,
0.0034848987124860287,
-0.036115363240242004,
0.015614381991326809,
-0.05190960317850113,
-0.038080573081970215,
0.011261058039963245,
-0.0236658938229084,
0.0010771341621875763,
0.03513973578810692,
0.017632480710744858,
-0.010758329182863235,
0.031859517097473145,
0.010018833912909031,
0.054122477769851685,
0.015360163524746895,
-0.028800081461668015,
-0.005538632161915302,
-0.023952621966600418,
0.03852405026555061,
0.0061523341573774815,
-0.04681911692023277,
-0.059807728976011276,
-0.09253333508968353,
-0.004713201895356178,
0.015236828476190567,
-0.021979041397571564,
-0.016383668407797813,
0.021258268505334854,
-0.022584445774555206,
-0.022130001336336136,
0.023913143202662468,
0.02200515940785408,
0.03307173028588295,
-0.00960533507168293,
0.07036308944225311,
0.0014368274714797735,
0.02639363892376423,
-0.04381832852959633,
0.021105242893099785,
-0.04264257848262787,
0.008690410293638706,
-0.00033816994982771575,
0.06835553050041199,
0.027876347303390503,
0.03680412471294403,
0.06513923406600952,
0.04381784424185753,
-0.029766611754894257,
0.046511560678482056,
0.0451485812664032,
-0.0009847553446888924,
-0.038733869791030884,
0.021164488047361374,
-0.014842252247035503,
-0.01660064049065113,
0.022308383136987686,
-0.008020846173167229,
-0.0002660316531546414,
0.0261315256357193,
0.008668803609907627,
0.0009507821523584425,
0.0002156593545805663,
-0.01664677821099758,
-0.03750905394554138,
-0.050088316202163696,
-0.02068755403161049,
0.014189722947776318,
-0.016894403845071793,
0.034588105976581573,
0.05814617872238159,
0.018924063071608543,
0.07732301205396652,
0.06609688699245453,
-0.010905024595558643,
-0.05750907585024834,
0.00045974916429258883,
0.01849295198917389,
-0.051172588020563126,
-0.06101430580019951,
-0.03908305987715721,
0.04828861355781555,
0.049486998468637466,
0.008688416332006454,
-0.08596198260784149,
0.020924793556332588,
0.06665211170911789,
-0.03643089532852173,
0.04266032949090004,
-0.008007796481251717,
0.04145315662026405,
0.046574316918849945,
-0.03309726342558861,
0.0029710433445870876,
-0.02177116647362709,
-0.0072092777118086815,
0.00940951518714428,
0.02524777501821518,
-0.02657812088727951,
-0.027962807565927505,
-0.04222045838832855,
0.023794738575816154,
0.02349003590643406,
0.04002295061945915,
0.04445910453796387,
-0.020388180390000343,
-0.046191588044166565,
0.013704263605177402,
0.015372478403151035,
-0.046413421630859375,
-0.006328584160655737,
0.026977814733982086,
0.05186332017183304,
-0.04618513211607933,
-0.011369667947292328,
-0.008858215995132923,
0.002926256274804473,
0.025030065327882767,
0.012788649648427963,
-0.041677046567201614,
-0.04867132753133774,
0.029889361932873726,
0.0101082194596529,
-0.023176060989499092,
-0.08571302890777588,
0.03398112580180168,
-0.026729559525847435,
0.008735718205571175,
0.045901939272880554,
0.017894556745886803,
-0.011553182266652584,
0.05859129875898361,
-0.012198257260024548,
0.0341348871588707,
-0.014159171842038631,
0.03482990711927414,
0.00012923544272780418,
-0.011565854772925377,
-0.022569864988327026,
-0.0491064079105854,
-0.0031339742708951235,
-0.024344898760318756,
-0.017401903867721558,
-0.025771059095859528,
-0.03261292725801468,
0.008979855105280876,
-0.029440362006425858,
-0.013690618798136711,
-0.026213394477963448,
0.03902890160679817,
-0.01589706912636757,
-0.007522846106439829,
-0.04293423146009445,
-0.052832454442977905,
-0.06698860973119736,
-0.03860512003302574,
0.002303479239344597,
0.01577727124094963,
0.00367378699593246,
0.017340822145342827,
0.02785477787256241,
0.014653992839157581,
0.011104892939329147,
-0.012729279696941376,
0.025715284049510956,
0.0093743447214365,
-0.032327715307474136,
-0.05233325809240341,
0.0011965851299464703,
0.03938969597220421,
0.017202170565724373,
-0.012996038421988487,
0.05464867874979973,
0.02874079905450344,
-0.0355268195271492,
-0.01687578111886978,
0.05755116045475006,
0.027258718386292458,
-0.0696236863732338,
-0.028323929756879807,
-0.015066291205585003,
-0.034154899418354034,
0.051404304802417755,
0.00932388473302126,
0.0069931806065142155,
0.03221815451979637,
0.055117759853601456,
0.020142070949077606,
-0.030417243018746376,
-0.03426695615053177,
0.01760110817849636,
-0.0230095237493515,
0.017684955149888992,
-0.06292650103569031,
0.04066706448793411,
-0.035511214286088943,
0.02282702550292015,
-0.018389295786619186,
-0.02079201303422451,
-0.023325789719820023,
0.04901944100856781,
0.01151044387370348,
-0.013632584363222122,
-0.018546702340245247,
0.027337579056620598,
-0.029690204188227654,
0.03401795029640198,
0.004325116518884897,
0.025108743458986282,
-0.016909604892134666,
0.0562426932156086,
-0.054733775556087494,
-0.02030727081000805,
-0.041841018944978714,
-0.024535801261663437,
-0.01143781840801239,
-0.051684390753507614,
-0.04072651267051697,
-0.033083222806453705,
0.02425920031964779,
0.025390662252902985,
0.05455685406923294,
0.032189030200242996,
0.02251487784087658,
-0.005358350463211536,
0.02560722455382347,
-0.07413632422685623,
-0.023907974362373352,
-0.0057634999975562096,
0.023121897131204605,
-0.002449451247230172,
0.06373053789138794,
0.036072518676519394,
-0.05181833729147911,
-0.06875009834766388,
0.03416381776332855,
0.016025735065340996,
0.012007186189293861,
0.02545197121798992,
0.06079749017953873,
0.046386152505874634,
0.04770059511065483,
-0.03519102558493614,
0.007867015898227692,
-0.010545818135142326,
-0.022452907636761665,
0.03857405111193657,
0.007144572213292122,
0.016812391579151154,
0.005881664343178272,
-0.041863806545734406,
-0.018012091517448425,
0.08250145614147186,
0.04985973611474037,
0.010166523978114128,
0.017425276339054108,
-0.029824163764715195,
0.01825004070997238,
0.001627773861400783,
-0.0537673644721508,
0.009208163246512413,
-0.0007867679232731462,
-0.03306114673614502,
0.0639244019985199,
-0.010345456190407276,
0.04109584912657738,
0.019021887332201004,
0.019325697794556618,
-0.005802534986287355,
0.045370183885097504,
-0.05544113740324974,
0.02404838614165783,
0.04472377523779869,
-0.0379539430141449,
0.006993303541094065,
-0.02449050545692444,
0.06513218581676483,
-0.08072753250598907,
0.06174327805638313,
0.022509321570396423,
0.014675199054181576,
-0.0012576915323734283,
-0.04436372220516205,
-0.018362196162343025,
0.003718586405739188,
-0.05285117030143738,
0.06400411576032639,
0.012289626523852348,
-0.06403304636478424,
0.03361741825938225,
0.033845771104097366,
-0.08388184756040573,
0.0882079154253006,
0.03548794984817505,
0.051609594374895096,
0.04986092075705528,
0.03724834695458412,
-0.05860849469900131,
-0.001023657969199121,
-0.028599511831998825,
0.03612308204174042,
-0.06477776169776917,
0.006731411907821894,
0.032834701240062714,
-0.033251624554395676,
0.009753179736435413,
0.026437368243932724,
-0.01951834373176098,
0.00897238403558731,
-0.009101908653974533,
-0.06075602024793625,
-0.04115544632077217,
-0.010822207666933537,
0.018193168565630913,
-0.017929764464497566,
0.025511063635349274,
-0.04388851672410965,
0.00846001598984003,
-0.0074979569762945175,
-0.012548359110951424,
-0.05696475878357887,
0.009431978687644005,
0.030991975218057632,
-0.08029408007860184,
-0.03205270320177078,
0.04380416125059128,
-0.007734140381217003,
0.003168090945109725,
0.03733297064900398,
-0.007228021044284105,
0.016892902553081512,
0.03272781893610954,
-0.0055602677166461945,
0.004947299603372812,
-0.06379304081201553,
-0.0017455487977713346,
0.005864505190402269,
-0.01878640241920948,
0.034121714532375336,
-0.03685249015688896,
0.028885936364531517,
0.04242727532982826,
0.030779432505369186,
0.03653513640165329,
-0.05249948427081108,
-0.04239718243479729,
0.03724968060851097,
-0.038803670555353165,
0.01407034881412983,
0.006897279992699623,
-0.03224720433354378,
-0.02688840590417385,
0.005308830179274082,
-0.015570479445159435,
0.040317144244909286,
-0.039450738579034805,
-0.011384517885744572,
0.004239767324179411,
-0.025289015844464302,
-0.03804228827357292,
-0.0550168938934803,
-0.024753868579864502,
-0.024490438401699066,
0.0519656278192997,
-0.0019091636640951037,
-0.025342443957924843,
0.03370998427271843,
-0.04941147193312645,
-0.048558250069618225,
0.03533019497990608,
-0.0001124656992033124,
-0.023526744917035103,
0.058199089020490646,
0.037536270916461945,
-0.03650160878896713,
0.014015225693583488,
0.02990228496491909,
-0.028440482914447784,
-0.0015363936545327306,
-0.0015911934897303581,
0.014885012060403824,
0.01290618721395731,
0.027709802612662315,
-0.012784232385456562,
-0.005738472566008568,
-0.03924623131752014,
-0.04373444244265556,
-0.02868211269378662,
-0.0023899287916719913,
0.060630980879068375
] |
CAMeL-Lab/bert-base-arabic-camelbert-msa-pos-egy | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 52 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: 'عامل ايه ؟'
---
# CAMeLBERT-MSA POS-EGY Model
## Model description
**CAMeLBERT-MSA POS-EGY Model** is a Egyptian Arabic POS tagging model that was built by fine-tuning the [CAMeLBERT-MSA](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-msa/) model.
For the fine-tuning, we used the ARZTB dataset .
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-MSA POS-EGY model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> pos = pipeline('token-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-pos-egy')
>>> text = 'عامل ايه ؟'
>>> pos(text)
[{'entity': 'adj', 'score': 0.99979395, 'index': 1, 'word': 'عامل', 'start': 0, 'end': 4}, {'entity': 'pron_interrog', 'score': 0.998192, 'index': 2, 'word': 'ايه', 'start': 5, 'end': 8}, {'entity': 'punc', 'score': 0.99929804, 'index': 3, 'word': '؟', 'start': 9, 'end': 10}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
0.0008497652015648782,
-0.002463516779243946,
-0.016261817887425423,
0.03939446061849594,
0.04900803044438362,
0.034565772861242294,
-0.0034814407117664814,
-0.002684112638235092,
-0.010235786437988281,
0.07171375304460526,
0.014723915606737137,
-0.025979196652770042,
0.0068449582904577255,
0.040519021451473236,
-0.04059261083602905,
-0.03740744665265083,
0.010748445987701416,
-0.023983918130397797,
-0.05217374861240387,
-0.01666189357638359,
0.007059135939925909,
0.007552267983555794,
-0.00799735076725483,
0.004656570497900248,
-0.009376909583806992,
0.026194702833890915,
-0.019010314717888832,
0.05074591934680939,
0.04203930124640465,
-0.06672194600105286,
-0.019042056053876877,
-0.013302001170814037,
-0.027122534811496735,
-0.020845046266913414,
-0.03846322372555733,
0.005455340258777142,
0.002574879676103592,
-0.011635742150247097,
0.028419896960258484,
0.06594620645046234,
-0.03472596034407616,
0.02216968685388565,
-0.00013055780436843634,
-0.038684505969285965,
0.05336742848157883,
0.006978393066674471,
-0.026074927300214767,
0.0008838085923343897,
0.0496993362903595,
-0.03079705499112606,
-0.06841123104095459,
-0.048170484602451324,
-0.048729490488767624,
0.02797066420316696,
0.0071763768792152405,
-0.01000381913036108,
-0.03376711159944534,
-0.027842942625284195,
0.07911961525678635,
-0.06668207049369812,
-0.041664741933345795,
-0.0013197669759392738,
-0.052759867161512375,
0.03333122655749321,
0.03199964016675949,
-0.02130476012825966,
0.007791013922542334,
-0.04403239116072655,
0.0525069497525692,
-0.03315544128417969,
0.045356910675764084,
-0.009098636917769909,
0.01928548328578472,
-0.08384671062231064,
0.022662170231342316,
-0.022557241842150688,
0.04580387845635414,
0.036448776721954346,
-0.02360919490456581,
0.07960140705108643,
0.020274881273508072,
0.0052260058000683784,
0.03500467911362648,
-0.008345763199031353,
-0.01301853358745575,
0.029694760218262672,
-0.05878080427646637,
0.002239017514511943,
0.018367117270827293,
0.041574589908123016,
-0.042728397995233536,
-0.04618792235851288,
-0.017556671053171158,
-0.0423637330532074,
-0.019578775390982628,
0.03174538165330887,
0.024478726089000702,
-0.020046096295118332,
0.05799175053834915,
0.03063218481838703,
0.012380597181618214,
0.05155499652028084,
-0.019032923504710197,
0.05745638906955719,
-0.020064322277903557,
-0.013663116842508316,
-0.03260941430926323,
-0.03181789442896843,
-0.025492429733276367,
0.04436710849404335,
0.008616391569375992,
-0.0335034504532814,
-0.058549292385578156,
0.036746684461832047,
-0.005913681350648403,
-0.023943454027175903,
0.04470289498567581,
-0.03110656328499317,
-0.05272825062274933,
-0.038598012179136276,
0.047706909477710724,
-0.0008466476574540138,
0.00901368074119091,
0.005210092756897211,
-0.04587266594171524,
-0.013052099384367466,
-0.07000929117202759,
-0.020765773952007294,
-0.02538326568901539,
0.023388219997286797,
-0.009683158248662949,
0.030906222760677338,
0.013320825062692165,
-0.05664695426821709,
0.012197669595479965,
-0.0043035950511693954,
-0.06928916275501251,
0.04079391062259674,
0.03775098919868469,
0.10801304876804352,
-0.05501612275838852,
-0.03181913122534752,
0.007546518463641405,
0.008252748288214207,
-0.036450404673814774,
-0.0046168104745447636,
0.009307673200964928,
-0.03054852969944477,
-0.024853596463799477,
-0.024643203243613243,
0.07853026688098907,
-0.04898890480399132,
0.01924116164445877,
0.04469145089387894,
-0.005917185917496681,
0.03095824457705021,
-0.0334344208240509,
-0.01082522887736559,
0.008491761051118374,
0.002140115015208721,
-0.03204580768942833,
0.04609965160489082,
-0.006589572411030531,
-0.02072172611951828,
-0.040624428540468216,
-0.04505651816725731,
0.0024730104487389326,
0.0857505276799202,
-0.007511699106544256,
-0.0040319450199604034,
-0.020335687324404716,
0.003170895390212536,
0.04697556793689728,
0.013766885735094547,
-0.05470424145460129,
0.026361608877778053,
0.0629456639289856,
0.000811245059594512,
-0.03425198048353195,
0.08138010650873184,
0.011889548972249031,
-0.011239337734878063,
-0.009800233878195286,
-0.018101507797837257,
-0.00550531642511487,
-0.031146103516221046,
0.037083543837070465,
0.02100161276757717,
-0.013230057433247566,
-0.03077775426208973,
-0.01213289238512516,
0.06965117901563644,
0.014264469034969807,
0.021790320053696632,
-0.010517612099647522,
-0.0309899989515543,
-0.045696236193180084,
0.04476657509803772,
-0.008787177503108978,
0.006131135392934084,
-0.025832436978816986,
-0.00019157228234689683,
0.0024527229834347963,
0.04344897344708443,
0.05239638313651085,
0.040389031171798706,
-0.024973414838314056,
0.07409045100212097,
-0.02898450195789337,
0.01722588948905468,
-0.035529475659132004,
-0.03485945984721184,
-0.007938090711832047,
0.03347036615014076,
0.024000611156225204,
0.039861105382442474,
-0.012585878372192383,
-0.035301823168992996,
0.030994068831205368,
0.046373531222343445,
0.03796125948429108,
0.02799750119447708,
-0.03326166048645973,
-0.011289937421679497,
0.02933724783360958,
0.06396115571260452,
-0.07967372238636017,
-0.04771671071648598,
0.039200056344270706,
0.037835441529750824,
-0.05666147544980049,
0.019219787791371346,
-0.019472811371088028,
0.041845764964818954,
-0.042059868574142456,
-0.052030205726623535,
0.046709463000297546,
0.02686639130115509,
-0.009462767280638218,
0.030948152765631676,
-0.01474468968808651,
-0.028505168855190277,
0.0210084430873394,
0.019966252148151398,
-0.01405452098697424,
-0.04045986384153366,
0.004181753844022751,
0.020650895312428474,
0.0665840208530426,
-0.036111876368522644,
0.026754537597298622,
0.011596258729696274,
0.019238101318478584,
0.04427623003721237,
-0.04100403934717178,
0.02664824388921261,
0.02782757394015789,
-0.00002674378629308194,
-0.027873793616890907,
0.03998755291104317,
-0.012534026056528091,
0.01359522994607687,
0.052691102027893066,
-0.001221098587848246,
0.06542523950338364,
-0.022393278777599335,
0.04967092350125313,
0.0752740427851677,
0.017717106267809868,
0.01325628999620676,
0.011418134905397892,
0.07966925203800201,
0.003964855335652828,
-0.014683770947158337,
0.06384357064962387,
-0.054983410984277725,
0.01687581278383732,
-0.04563838988542557,
0.0010124490363523364,
-0.018532123416662216,
-0.01897038333117962,
0.04429473727941513,
0.014590917155146599,
-0.010908442549407482,
-0.02481859363615513,
-0.01343898382037878,
-0.009441175498068333,
0.029764460399746895,
-0.022850511595606804,
-0.03360879793763161,
-0.002598436316475272,
-0.009319988079369068,
0.016214588657021523,
-0.059409186244010925,
-0.011205674149096012,
-0.0235864520072937,
-0.03941233456134796,
-0.001912201987579465,
-0.07709597051143646,
-0.023454798385500908,
-0.06140856444835663,
-0.009307709522545338,
0.03622427210211754,
-0.001030110870487988,
0.0019189540762454271,
-0.04987839609384537,
0.03319679573178291,
-0.04086865484714508,
-0.03518866002559662,
-0.035075604915618896,
-0.07247021049261093,
-0.024957779794931412,
-0.036653392016887665,
0.03371203690767288,
0.01238431315869093,
0.005163426045328379,
0.0055481791496276855,
0.02372514083981514,
-0.020315131172537804,
-0.031830042600631714,
0.03908417373895645,
0.026630351319909096,
-0.023584840819239616,
-0.06359338015317917,
0.04137011244893074,
-0.013871220871806145,
0.0029297408182173967,
-0.02551879547536373,
-0.06400073319673538,
0.08159901201725006,
0.07912110537290573,
0.015967397019267082,
0.001436307793483138,
-0.017307039350271225,
-0.052821606397628784,
-0.034044526517391205,
-0.034258440136909485,
-0.03067716769874096,
-0.017019538208842278,
0.0061798724345862865,
-0.030677063390612602,
-0.0173867829144001,
-0.04078410565853119,
-0.003950025886297226,
-0.005447513423860073,
0.03416880592703819,
0.03191332891583443,
0.04411080852150917,
0.03314000740647316,
0.05928254872560501,
-0.03255445137619972,
-0.028646361082792282,
0.07004643231630325,
0.01812308467924595,
0.0021320851519703865,
-0.06551183760166168,
-0.039620961993932724,
0.03784232586622238,
0.015296357683837414,
-0.007288508582860231,
-0.0030607921071350574,
0.058776892721652985,
0.005721535068005323,
-0.000578399165533483,
0.018913574516773224,
-0.01042921468615532,
-0.036724772304296494,
-0.013585838489234447,
0.005579957738518715,
0.00005836673153680749,
-0.052928376942873,
-0.012834503315389156,
0.009213685989379883,
0.05661037936806679,
-0.0499604307115078,
-0.06799452751874924,
-0.0018583271885290742,
0.06878257542848587,
0.00817521009594202,
0.003844466060400009,
-0.029039187356829643,
0.008164692670106888,
-0.04679804667830467,
-0.032452236860990524,
0.003956535831093788,
0.007811474613845348,
0.017335951328277588,
0.027148209512233734,
0.015715915709733963,
-0.020011913031339645,
0.03324942663311958,
0.022803615778684616,
0.05388820543885231,
0.010009885765612125,
-0.030394937843084335,
0.009924370795488358,
-0.026262633502483368,
0.027004370465874672,
0.009525799192488194,
-0.028646057471632957,
-0.038465097546577454,
-0.10139645636081696,
-0.004932919051498175,
-0.0008170630317181349,
-0.02556464821100235,
-0.007139126304537058,
0.035961173474788666,
-0.02383829466998577,
-0.018007386475801468,
-0.0023135384544730186,
0.015090720728039742,
0.04642455652356148,
-0.027489304542541504,
0.057420458644628525,
-0.0033463728614151478,
0.035711098462343216,
-0.03351299837231636,
0.03757968172430992,
-0.0324871763586998,
0.0040395730175077915,
-0.004804844502359629,
0.054698895663022995,
0.035952210426330566,
0.03742486611008644,
0.06583961844444275,
0.04473287984728813,
-0.03601314499974251,
0.04469338431954384,
0.05489644408226013,
-0.0049733128398656845,
-0.052374545484781265,
-0.000060373171436367556,
-0.010483941063284874,
-0.013148332946002483,
0.009337817318737507,
-0.011103073135018349,
-0.0068411375395953655,
0.030335284769535065,
0.00362468883395195,
0.008621873334050179,
-0.00045787921408191323,
-0.026760201901197433,
-0.048667244613170624,
-0.06579836457967758,
-0.034865446388721466,
0.014510740526020527,
-0.020017549395561218,
0.029635747894644737,
0.04083642736077309,
0.018287090584635735,
0.07292816787958145,
0.07211366295814514,
-0.012932945974171162,
-0.04920901730656624,
0.016206320375204086,
0.019443683326244354,
-0.024773772805929184,
-0.06533455848693848,
-0.06917380541563034,
0.05684458464384079,
0.04163166508078575,
0.009577206335961819,
-0.07171906530857086,
-0.0008607299532741308,
0.05105569213628769,
-0.02238495834171772,
0.06424234807491302,
-0.003552851965650916,
0.046183157712221146,
0.06052831560373306,
-0.03278151527047157,
0.0231965072453022,
-0.04812854528427124,
0.007551100105047226,
-0.0025072351563721895,
0.016605287790298462,
-0.03126784786581993,
-0.030124088749289513,
-0.049525629729032516,
0.02367694303393364,
0.03820169344544411,
0.047944601625204086,
0.052048832178115845,
-0.010537161491811275,
-0.050148140639066696,
-0.0006493683904409409,
0.0063951085321605206,
-0.047872330993413925,
-0.0013345172628760338,
0.030481403693556786,
0.029238341376185417,
-0.046410419046878815,
-0.006932199001312256,
-0.01855439879000187,
-0.0030378929805010557,
0.016094891354441643,
0.007669568993151188,
-0.0585135817527771,
-0.046883635222911835,
0.008126398548483849,
-0.029588870704174042,
-0.01725938729941845,
-0.09962625801563263,
0.05886402353644371,
-0.041125714778900146,
-0.0012812722707167268,
0.04243958368897438,
0.02397702820599079,
0.016687793657183647,
0.04592735692858696,
-0.015715058892965317,
0.022414835169911385,
-0.03476492315530777,
0.022874820977449417,
-0.002452119952067733,
-0.022609831765294075,
-0.015936383977532387,
-0.07347562909126282,
-0.0024051046930253506,
-0.01904870755970478,
-0.027740903198719025,
-0.032614417374134064,
-0.01449990551918745,
0.012626942247152328,
-0.008835377171635628,
0.003976849373430014,
-0.01821199618279934,
0.04639975354075432,
-0.03046213835477829,
-0.01693464070558548,
-0.015706757083535194,
-0.035327497869729996,
-0.09206113964319229,
-0.061800517141819,
-0.015031058341264725,
0.01469505950808525,
0.026747383177280426,
0.03460101783275604,
0.014194474555552006,
0.0003962560440413654,
0.011754842475056648,
-0.01925480179488659,
0.022393101826310158,
-0.0014187574852257967,
-0.030130838975310326,
-0.03946320712566376,
-0.006448943167924881,
0.0392131432890892,
0.05013503134250641,
-0.014370222575962543,
0.030727343633770943,
0.041935209184885025,
-0.04069206863641739,
0.00010849299724213779,
0.03409504517912865,
0.016476107761263847,
-0.05981042981147766,
-0.03527683764696121,
-0.02465146593749523,
-0.04263460636138916,
0.02783067524433136,
-0.01177289243787527,
-0.009170010685920715,
0.0038646094035357237,
0.039385195821523666,
0.028087789192795753,
-0.002085163025185466,
-0.03575582057237625,
0.006656420882791281,
-0.04188819229602814,
0.014162285253405571,
-0.042878251522779465,
0.06574765592813492,
-0.03264746442437172,
0.019753817468881607,
0.003308320650830865,
-0.03555603697896004,
-0.0212942436337471,
0.04517817124724388,
0.008080179803073406,
-0.012098527513444424,
-0.01940280571579933,
0.016599418595433235,
-0.020791225135326385,
0.03633512929081917,
0.015298004262149334,
0.019849443808197975,
-0.004635780118405819,
0.0224676001816988,
-0.041042082011699677,
-0.003014391055330634,
-0.02602504938840866,
0.013118221424520016,
-0.025234175845980644,
-0.03306225687265396,
-0.015100513584911823,
-0.06201763078570366,
0.025434104725718498,
0.007791160140186548,
0.043875180184841156,
0.029378190636634827,
-0.00055271404562518,
-0.0022724478039890528,
0.018897175788879395,
-0.05556374788284302,
-0.0068161338567733765,
-0.017890146002173424,
0.041823673993349075,
0.021715227514505386,
0.07549060881137848,
0.04707351699471474,
-0.03255275636911392,
-0.047628920525312424,
0.043396517634391785,
0.01622847281396389,
0.02205607481300831,
0.01916026882827282,
0.05921388044953346,
0.0449732169508934,
0.059677641838788986,
-0.03668098524212837,
0.0025492992717772722,
-0.013507479801774025,
-0.020689457654953003,
0.01068071462213993,
0.016879014670848846,
0.02675984613597393,
0.00729780038818717,
-0.04802102968096733,
-0.015432075597345829,
0.08309668302536011,
0.038029417395591736,
-0.003048941260203719,
0.0055592963472008705,
-0.019564282149076462,
0.03471442312002182,
-0.005683863069862127,
-0.06423035264015198,
-0.016182413324713707,
0.02169780805706978,
-0.044339366257190704,
0.09340447932481766,
-0.021561674773693085,
0.028565363958477974,
0.007834955118596554,
0.02537538856267929,
0.008322097361087799,
0.05841292068362236,
-0.04608288034796715,
0.04267248138785362,
0.04741537198424339,
-0.035032592713832855,
0.016066238284111023,
-0.027251360937952995,
0.05759957432746887,
-0.0702526792883873,
0.053435251116752625,
0.025639262050390244,
0.016431713476777077,
0.00888227578252554,
-0.028187040239572525,
-0.029998144134879112,
0.016601301729679108,
-0.044026196002960205,
0.07431517541408539,
-0.0046060592867434025,
-0.050066858530044556,
0.039437659084796906,
0.035084329545497894,
-0.07364468276500702,
0.0701809749007225,
0.03444235399365425,
0.067119300365448,
0.04552534595131874,
0.045017652213573456,
-0.07265501469373703,
0.01500733569264412,
-0.040444303303956985,
0.03744698315858841,
-0.07824066281318665,
0.010645399801433086,
0.03364367038011551,
-0.04007915034890175,
-0.008180028758943081,
0.035564348101615906,
0.009417008608579636,
-0.013635980896651745,
0.010133018717169762,
-0.053914543241262436,
-0.04369114711880684,
-0.02096029743552208,
0.012440023943781853,
-0.04215995594859123,
0.027660729363560677,
-0.055230651050806046,
0.011460050009191036,
-0.00010234542423859239,
-0.022352349013090134,
-0.05684370547533035,
0.011019639670848846,
0.05254947021603584,
-0.08015701919794083,
-0.03208466246724129,
0.04796227067708969,
0.0031644778791815042,
-0.01648784428834915,
0.037367016077041626,
-0.0006946755456738174,
0.03838333114981651,
0.02725553698837757,
0.00835463684052229,
0.02222563326358795,
-0.05029800906777382,
-0.010290534235537052,
0.0242864228785038,
-0.01829497329890728,
0.024770138785243034,
-0.028386780992150307,
0.038808006793260574,
0.07064361870288849,
0.03404559567570686,
0.003366263350471854,
-0.05729005113244057,
-0.027070967480540276,
0.013425824232399464,
-0.04697909951210022,
0.02155822329223156,
-0.006055829580873251,
-0.03899198770523071,
-0.04130176827311516,
-0.010725810192525387,
-0.025829195976257324,
0.03160190209746361,
-0.027694735676050186,
-0.0037688466254621744,
0.027478953823447227,
-0.0230731088668108,
-0.04082009196281433,
-0.0849093422293663,
-0.02515166811645031,
-0.03556953743100166,
0.038073763251304626,
0.020886162295937538,
-0.03370886296033859,
0.010539913550019264,
-0.04860205203294754,
-0.06489647179841995,
0.04582506790757179,
0.007448441348969936,
-0.029780326411128044,
0.06999518722295761,
0.03531515598297119,
-0.040877461433410645,
0.01698898710310459,
0.03840569779276848,
-0.030388668179512024,
-0.003635055385529995,
0.00161264487542212,
0.010384906083345413,
0.028994964435696602,
0.04111345112323761,
-0.024655457586050034,
-0.005414288025349379,
-0.04909706115722656,
-0.043820708990097046,
-0.03379758819937706,
-0.019206861034035683,
0.0725000724196434
] |
CAMeL-Lab/bert-base-arabic-camelbert-msa-pos-glf | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 21 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: 'شلونك ؟ شخبارك ؟'
---
# CAMeLBERT-MSA POS-GLF Model
## Model description
**CAMeLBERT-MSA POS-GLF Model** is a Gulf Arabic POS tagging model that was built by fine-tuning the [CAMeLBERT-MSA](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-msa/) model.
For the fine-tuning, we used the [Gumar](https://camel.abudhabi.nyu.edu/annotated-gumar-corpus/) dataset.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."*
Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-MSA POS-GLF model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> pos = pipeline('token-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-pos-glf')
>>> text = 'شلونك ؟ شخبارك ؟'
>>> pos(text)
[{'entity': 'adv_interrog', 'score': 0.5622676, 'index': 1, 'word': 'شلون', 'start': 0, 'end': 4}, {'entity': 'prep', 'score': 0.99969727, 'index': 2, 'word': '##ك', 'start': 4, 'end': 5}, {'entity': 'punc', 'score': 0.9999299, 'index': 3, 'word': '؟', 'start': 6, 'end': 7}, {'entity': 'noun', 'score': 0.9843815, 'index': 4, 'word': 'ش', 'start': 8, 'end': 9}, {'entity': 'noun', 'score': 0.9998467, 'index': 5, 'word': '##خبار', 'start': 9, 'end': 13}, {'entity': 'prep', 'score': 0.9993611, 'index': 6, 'word': '##ك', 'start': 13, 'end': 14}, {'entity': 'punc', 'score': 0.99993765, 'index': 7, 'word': '؟', 'start': 15, 'end': 16}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
0.007422875612974167,
-0.007600839249789715,
-0.014012846164405346,
0.03627728670835495,
0.0634346678853035,
0.028864791616797447,
-0.007839695550501347,
0.0031226330902427435,
-0.0051903496496379375,
0.07332907617092133,
0.016708293929696083,
-0.02856498956680298,
0.009281512349843979,
0.04384700581431389,
-0.03814271092414856,
-0.04405855014920235,
0.00840054638683796,
-0.02307288534939289,
-0.05683796480298042,
-0.019391760230064392,
0.005351350177079439,
-0.001335037755779922,
-0.005597887095063925,
0.0019161829259246588,
-0.01138834934681654,
0.029309691861271858,
-0.017434194684028625,
0.05168437212705612,
0.03986780345439911,
-0.06604321300983429,
-0.016888992860913277,
-0.015586783178150654,
-0.020661650225520134,
-0.02593260258436203,
-0.042880360037088394,
0.005181554704904556,
0.013969271443784237,
-0.0015533335972577333,
0.020003564655780792,
0.05784037336707115,
-0.03203975781798363,
0.024181921035051346,
-0.0009444896131753922,
-0.037164945155382156,
0.042795099318027496,
0.001337469439022243,
-0.03092668391764164,
0.006983928382396698,
0.03552722930908203,
-0.047546956688165665,
-0.05458361655473709,
-0.05833994224667549,
-0.058774083852767944,
0.03308640420436859,
0.012261594645678997,
-0.01077866367995739,
-0.03430737555027008,
-0.019002830609679222,
0.07462786883115768,
-0.061842381954193115,
-0.0529436357319355,
-0.001715304097160697,
-0.05614633858203888,
0.03184719756245613,
0.01838867738842964,
-0.016962558031082153,
0.002528832061216235,
-0.03999287635087967,
0.05699393153190613,
-0.024973157793283463,
0.05416274443268776,
-0.013284506276249886,
0.018788153305649757,
-0.08268865942955017,
0.027209874242544174,
-0.015199230052530766,
0.031259626150131226,
0.04157671332359314,
-0.032047685235738754,
0.07469102740287781,
0.021489113569259644,
0.001664038049057126,
0.02978445775806904,
-0.007993336766958237,
-0.004808912053704262,
0.02748551405966282,
-0.05411141365766525,
-0.008210685104131699,
0.022108804434537888,
0.041416801512241364,
-0.035735853016376495,
-0.04474920406937599,
-0.0047144172713160515,
-0.04180261865258217,
-0.024781538173556328,
0.027512961998581886,
0.025104962289333344,
-0.02481856569647789,
0.0536162368953228,
0.025586431846022606,
0.018210768699645996,
0.044835854321718216,
-0.021667668595910072,
0.04609996825456619,
-0.02053586021065712,
-0.006882394198328257,
-0.030722739174962044,
-0.03596218675374985,
-0.025992823764681816,
0.04899989441037178,
0.012966706417500973,
-0.046733155846595764,
-0.05469036474823952,
0.03352588787674904,
-0.006971369963139296,
-0.02647254429757595,
0.047687944024801254,
-0.036577027291059494,
-0.047689396888017654,
-0.0454225018620491,
0.0510682612657547,
0.004853936843574047,
0.0026359092444181442,
0.011266615241765976,
-0.03960191830992699,
-0.014129189774394035,
-0.05535813793540001,
-0.009443244896829128,
-0.026260560378432274,
0.029284022748470306,
-0.005767377093434334,
0.02368566393852234,
0.014800261706113815,
-0.06167319044470787,
0.020020833238959312,
0.00491375382989645,
-0.061473820358514786,
0.035140447318553925,
0.03787168487906456,
0.1018441841006279,
-0.06618309020996094,
-0.03527209535241127,
0.029383955523371696,
0.011222757399082184,
-0.018326256424188614,
-0.00852736085653305,
0.01675005629658699,
-0.03796853497624397,
-0.026939740404486656,
-0.020715957507491112,
0.06764765083789825,
-0.04842180013656616,
0.013220692053437233,
0.04275507107377052,
-0.016350287944078445,
0.02515759877860546,
-0.021402601152658463,
-0.017631735652685165,
0.012447847053408623,
-0.004450321663171053,
-0.03338460996747017,
0.041883789002895355,
-0.001696219900622964,
-0.016923049464821815,
-0.0388457328081131,
-0.04644622653722763,
0.0035637046676129103,
0.09291956573724747,
0.0017485653515905142,
0.0008487927261739969,
-0.015985960140824318,
0.007629380561411381,
0.04017747566103935,
0.019366934895515442,
-0.04966147989034653,
0.02014131471514702,
0.056178875267505646,
0.0007897844188846648,
-0.0313117690384388,
0.08817696571350098,
0.016568105667829514,
-0.013665894977748394,
-0.016920512542128563,
-0.014494703151285648,
-0.014321600086987019,
-0.031557679176330566,
0.03939126431941986,
0.02958529442548752,
-0.015882017090916634,
-0.02448096126317978,
-0.006270193960517645,
0.06494458019733429,
0.01063518226146698,
0.019390415400266647,
-0.015405252575874329,
-0.021650400012731552,
-0.0446099229156971,
0.04210630804300308,
-0.009965072385966778,
0.007952443324029446,
-0.0341973602771759,
0.00510058831423521,
0.002859557745978236,
0.043711282312870026,
0.05220252275466919,
0.03382999449968338,
-0.02761220373213291,
0.07175260782241821,
-0.025228792801499367,
0.01962244138121605,
-0.0424899160861969,
-0.03349459543824196,
-0.004672348964959383,
0.02180054411292076,
0.017803197726607323,
0.039337560534477234,
-0.01369411125779152,
-0.027794882655143738,
0.030337180942296982,
0.055073074996471405,
0.026485323905944824,
0.02758483961224556,
-0.027505211532115936,
-0.006597002036869526,
0.035219620913267136,
0.056649334728717804,
-0.08105527609586716,
-0.049966104328632355,
0.04224188253283501,
0.03698347508907318,
-0.05581304430961609,
0.019355256110429764,
-0.00701251532882452,
0.03831852972507477,
-0.03906603157520294,
-0.06344908475875854,
0.04922323301434517,
0.03073681890964508,
-0.004904483444988728,
0.03120468184351921,
-0.0066345855593681335,
-0.029623854905366898,
0.023685799911618233,
0.010484213009476662,
-0.006616542581468821,
-0.04763331264257431,
0.013378736563026905,
0.022217486053705215,
0.07751144468784332,
-0.03680504113435745,
0.025125734508037567,
0.01064774114638567,
0.02446061559021473,
0.048476409167051315,
-0.04249896854162216,
0.018028775230050087,
0.02804723009467125,
0.004173613619059324,
-0.021938372403383255,
0.0364568755030632,
-0.007940471172332764,
0.016680458560585976,
0.05153079330921173,
-0.003602022072300315,
0.05980557203292847,
-0.017511161044239998,
0.04921142756938934,
0.0831528753042221,
0.022353148087859154,
0.017714504152536392,
0.022722356021404266,
0.07136321067810059,
0.011113089509308338,
-0.011957986280322075,
0.05227937549352646,
-0.05649806559085846,
0.023142168298363686,
-0.05002983659505844,
0.0019079787889495492,
-0.022707082331180573,
-0.020184144377708435,
0.05293932184576988,
0.023078598082065582,
-0.010171686299145222,
-0.012153944931924343,
-0.018766719847917557,
-0.011791408061981201,
0.029915515333414078,
-0.028478622436523438,
-0.0276950690895319,
-0.005627871491014957,
-0.0037440184969455004,
0.02027258276939392,
-0.056585971266031265,
-0.013345927931368351,
-0.020452918484807014,
-0.0366344079375267,
0.006571699865162373,
-0.07528430223464966,
-0.02111019194126129,
-0.05707075446844101,
-0.016395166516304016,
0.03612803667783737,
0.015624314546585083,
0.0006970063550397754,
-0.053319476544857025,
0.032614730298519135,
-0.03814340755343437,
-0.03813441842794418,
-0.03709418699145317,
-0.06832288205623627,
-0.022687330842018127,
-0.0460565984249115,
0.03988342732191086,
0.016183368861675262,
0.008762986399233341,
0.007935342378914356,
0.026225697249174118,
-0.015486305579543114,
-0.03351349011063576,
0.02758263610303402,
0.03873194009065628,
-0.020579589530825615,
-0.06426136195659637,
0.03996850550174713,
-0.014049059711396694,
0.005868400912731886,
-0.029737023636698723,
-0.06534644961357117,
0.08243914693593979,
0.07635481655597687,
0.01827988773584366,
0.007595255970954895,
-0.027414532378315926,
-0.06237804517149925,
-0.03473488241434097,
-0.036030691117048264,
-0.03706151247024536,
-0.01718400977551937,
0.012558978982269764,
-0.03738776966929436,
-0.015426723286509514,
-0.03048982098698616,
0.003138815052807331,
-0.007122688926756382,
0.034547772258520126,
0.036698728799819946,
0.05008145421743393,
0.029831426218152046,
0.05378434434533119,
-0.03304552659392357,
-0.028772946447134018,
0.07313710451126099,
0.019255824387073517,
0.002905691973865032,
-0.053284142166376114,
-0.04460946097970009,
0.03733015060424805,
0.005705826450139284,
-0.008520587347447872,
-0.0005609465879388154,
0.06395498663187027,
0.001286578830331564,
0.005549578461796045,
0.02042926475405693,
-0.018749477341771126,
-0.041522737592458725,
-0.008646375499665737,
0.004594922065734863,
-0.012441555969417095,
-0.05052883177995682,
-0.010732150636613369,
0.010057738050818443,
0.06237378343939781,
-0.03788870573043823,
-0.06442766636610031,
0.0000759166432544589,
0.07353393733501434,
0.012127821333706379,
-0.0030061376746743917,
-0.02620638720691204,
0.007956822402775288,
-0.051691506057977676,
-0.04168061912059784,
-0.0002671479305718094,
-0.0010787115897983313,
0.015523204579949379,
0.03256160393357277,
0.018856937065720558,
-0.017026105895638466,
0.030101757496595383,
0.02330426685512066,
0.055811770260334015,
0.013267873786389828,
-0.030822182074189186,
0.016745664179325104,
-0.037219900637865067,
0.02348535880446434,
0.007200504653155804,
-0.02598043903708458,
-0.04112965613603592,
-0.09596768021583557,
-0.008491708897054195,
-0.007998554967343807,
-0.03336315229535103,
-0.00263890135101974,
0.04283866286277771,
-0.018935764208436012,
-0.01256571989506483,
0.0035886839032173157,
0.015597359277307987,
0.04064277559518814,
-0.03321379795670509,
0.06277640908956528,
0.0008695003925822675,
0.03512026369571686,
-0.04132034629583359,
0.032468684017658234,
-0.03706211969256401,
0.004411925561726093,
0.002193051390349865,
0.06210005283355713,
0.028042171150445938,
0.02803543396294117,
0.06911339610815048,
0.04193493351340294,
-0.038500361144542694,
0.04929549619555473,
0.05570027604699135,
-0.004558183252811432,
-0.055666837841272354,
-0.00038958658115006983,
-0.011118079535663128,
-0.01859668269753456,
0.003125780960544944,
-0.023362113162875175,
0.003138497471809387,
0.026325853541493416,
0.006445581559091806,
0.0072699058800935745,
-0.0046763173304498196,
-0.03293630853295326,
-0.04756448045372963,
-0.0662209689617157,
-0.03294039145112038,
0.015710381790995598,
-0.03160354495048523,
0.031601134687662125,
0.04759461060166359,
0.02277153730392456,
0.07628123462200165,
0.06652072817087173,
-0.009187540970742702,
-0.06678643822669983,
0.016801606863737106,
0.023609217256307602,
-0.026359479874372482,
-0.057959116995334625,
-0.06463480740785599,
0.04747384786605835,
0.04294828325510025,
0.002172009088099003,
-0.07378668338060379,
-0.0005023927660658956,
0.05389738827943802,
-0.019702637568116188,
0.06274713575839996,
-0.014737692661583424,
0.047512248158454895,
0.061774156987667084,
-0.032684944570064545,
0.019511912018060684,
-0.04942775145173073,
0.019869593903422356,
0.00037761119892820716,
0.018346983939409256,
-0.03446018695831299,
-0.028393561020493507,
-0.04635525494813919,
0.02222733572125435,
0.042237285524606705,
0.04343008995056152,
0.05305291712284088,
-0.004079245496541262,
-0.05553123354911804,
0.0003554250579327345,
0.005599550437182188,
-0.04972613975405693,
-0.007405547425150871,
0.03134440630674362,
0.03972044214606285,
-0.04470360279083252,
0.00006588052201550454,
-0.014272569678723812,
-0.0030482413712888956,
0.01842636615037918,
-0.0017236581770703197,
-0.06336462497711182,
-0.0488630011677742,
0.011325125582516193,
-0.029027817770838737,
-0.029224468395113945,
-0.09910119324922562,
0.05134402960538864,
-0.03433043137192726,
-0.0002385868865530938,
0.04867028445005417,
0.007262652739882469,
0.017952317371964455,
0.046554289758205414,
-0.01398317702114582,
0.026491155847907066,
-0.04043014720082283,
0.02114366553723812,
-0.0060961004346609116,
-0.014134291559457779,
-0.0216307882219553,
-0.07077191770076752,
-0.008153540082275867,
-0.016423465684056282,
-0.02104436606168747,
-0.03791390359401703,
-0.020860305055975914,
0.006041540298610926,
-0.006863208953291178,
0.012014168314635754,
-0.012525350786745548,
0.04164666309952736,
-0.024566274136304855,
-0.016480691730976105,
-0.017413681373000145,
-0.03812331333756447,
-0.09454557299613953,
-0.056689027696847916,
-0.005574769340455532,
0.014724756591022015,
0.013845708221197128,
0.02682117559015751,
0.012977424077689648,
0.010323040187358856,
0.022739596664905548,
-0.0154879717156291,
0.030113674700260162,
0.0010384123306721449,
-0.036007240414619446,
-0.03592018038034439,
-0.008253427222371101,
0.03809032216668129,
0.043870341032743454,
-0.011418252252042294,
0.026358244940638542,
0.03682775795459747,
-0.040329042822122574,
0.00943372305482626,
0.039819199591875076,
0.02382051572203636,
-0.06846746802330017,
-0.03514285385608673,
-0.03381262347102165,
-0.04447083920240402,
0.0238881167024374,
-0.021146168932318687,
-0.016852065920829773,
0.005160009954124689,
0.03433580324053764,
0.041297491639852524,
-0.0005109828198328614,
-0.03887621685862541,
-0.0020535564981400967,
-0.029809748753905296,
0.01873200573027134,
-0.037288062274456024,
0.06370695680379868,
-0.035845644772052765,
0.02143946662545204,
-0.0015005066525191069,
-0.03629416599869728,
-0.02765379101037979,
0.04362471029162407,
0.010941596701741219,
-0.009164259769022465,
-0.0175993200391531,
0.004167078994214535,
-0.025322645902633667,
0.03339836746454239,
0.010605414398014545,
0.021576033905148506,
-0.01047500316053629,
0.030251679942011833,
-0.042445845901966095,
-0.003768203081563115,
-0.016898229718208313,
0.007061879150569439,
-0.0207639392465353,
-0.03887670487165451,
-0.02526215836405754,
-0.06747210770845413,
0.03154059126973152,
0.00960792787373066,
0.04551009461283684,
0.024142760783433914,
0.008806523866951466,
0.0005726689705625176,
0.031970784068107605,
-0.06490886956453323,
-0.008729488588869572,
-0.019260656088590622,
0.04428344964981079,
0.015522831119596958,
0.07102808356285095,
0.033759720623493195,
-0.033777084201574326,
-0.05349233001470566,
0.03950587287545204,
0.0228128619492054,
0.023421162739396095,
0.015225483104586601,
0.05998186767101288,
0.039296530187129974,
0.05079556256532669,
-0.03490874543786049,
-0.002896452322602272,
-0.01116966363042593,
-0.0171674732118845,
0.02260454371571541,
0.026215991005301476,
0.027711378410458565,
0.007269024383276701,
-0.04898987337946892,
-0.016696713864803314,
0.08816346526145935,
0.041076939553022385,
0.012404612265527248,
0.0014174284879118204,
-0.033333100378513336,
0.017197225242853165,
-0.0042929681949317455,
-0.059089720249176025,
-0.013783513568341732,
0.02393294870853424,
-0.04506530985236168,
0.08459252119064331,
-0.02496790699660778,
0.03206748142838478,
0.017635146155953407,
0.024993399158120155,
0.003540443954989314,
0.05548432841897011,
-0.04238268733024597,
0.030180729925632477,
0.037110425531864166,
-0.04286745935678482,
0.01803036779165268,
-0.029026582837104797,
0.06216568499803543,
-0.07128611952066422,
0.04866470769047737,
0.027132827788591385,
0.00898269098252058,
0.006629202980548143,
-0.029997186735272408,
-0.03448120504617691,
0.005980119574815035,
-0.04193246737122536,
0.07507158070802689,
-0.013807544484734535,
-0.048572178930044174,
0.036519259214401245,
0.032845765352249146,
-0.08066043257713318,
0.06854423880577087,
0.030950721353292465,
0.0642443373799324,
0.05595304071903229,
0.04133792966604233,
-0.07102715969085693,
0.011664103716611862,
-0.0376545712351799,
0.037758998572826385,
-0.07634972035884857,
0.009876366704702377,
0.037411194294691086,
-0.042529042810201645,
-0.01060444861650467,
0.03590169548988342,
-0.00044652316137216985,
-0.007613628637045622,
0.0059298742562532425,
-0.053616657853126526,
-0.0439411997795105,
-0.01497306115925312,
0.015812834724783897,
-0.04591115936636925,
0.018634876236319542,
-0.05540209636092186,
0.01027668360620737,
0.005453542340546846,
-0.007134622428566217,
-0.05821419134736061,
0.006107859313488007,
0.05260845646262169,
-0.08878926932811737,
-0.02521575428545475,
0.05412944778800011,
0.008419433608651161,
-0.02469385229051113,
0.02997644618153572,
-0.010282647795975208,
0.031741704791784286,
0.02733377367258072,
-0.00004212971180095337,
0.0276360921561718,
-0.043877288699150085,
-0.017057271674275398,
0.017597772181034088,
-0.02836727723479271,
0.01903797872364521,
-0.022006310522556305,
0.03957359865307808,
0.05718069523572922,
0.03648817539215088,
0.02015792392194271,
-0.0637383982539177,
-0.027764806523919106,
0.01346675492823124,
-0.049161117523908615,
0.014300605282187462,
-0.00006675726035609841,
-0.04405074939131737,
-0.04043342173099518,
-0.013342802412807941,
-0.02446582540869713,
0.03520427271723747,
-0.020126136019825935,
-0.01498109195381403,
0.023851627483963966,
-0.02826559916138649,
-0.036431167274713516,
-0.0823574811220169,
-0.02002236433327198,
-0.03219634294509888,
0.033558063209056854,
0.020724762231111526,
-0.03027539886534214,
0.016321714967489243,
-0.05006246268749237,
-0.06761529296636581,
0.03602225333452225,
0.007958157919347286,
-0.029874105006456375,
0.05270542576909065,
0.040633272379636765,
-0.040496621280908585,
0.020727790892124176,
0.04366344213485718,
-0.026700662449002266,
0.008483496494591236,
-0.0018503126921132207,
0.002729240572080016,
0.026753082871437073,
0.025800203904509544,
-0.03735612332820892,
-0.010992780327796936,
-0.05521408095955849,
-0.03935639187693596,
-0.037608981132507324,
-0.014346196316182613,
0.07428799569606781
] |
CAMeL-Lab/bert-base-arabic-camelbert-msa-pos-msa | [
"pytorch",
"tf",
"bert",
"token-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"BertForTokenClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 133 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: 'إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع'
---
# CAMeLBERT-MSA POS-MSA Model
## Model description
**CAMeLBERT-MSA POS-MSA Model** is a Modern Standard Arabic (MSA) POS tagging model that was built by fine-tuning the [CAMeLBERT-MSA](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-msa/) model.
For the fine-tuning, we used the [PATB](https://dl.acm.org/doi/pdf/10.5555/1621804.1621808) dataset .
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT-MSA POS-MSA model as part of the transformers pipeline.
This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) soon.
#### How to use
To use the model with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> pos = pipeline('token-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-pos-msa')
>>> text = 'إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع'
>>> pos(text)
[{'entity': 'noun', 'score': 0.9999764, 'index': 1, 'word': 'إمارة', 'start': 0, 'end': 5}, {'entity': 'noun_prop', 'score': 0.99991846, 'index': 2, 'word': 'أبوظبي', 'start': 6, 'end': 12}, {'entity': 'pron', 'score': 0.9998356, 'index': 3, 'word': 'هي', 'start': 13, 'end': 15}, {'entity': 'noun', 'score': 0.99368894, 'index': 4, 'word': 'إحدى', 'start': 16, 'end': 20}, {'entity': 'noun', 'score': 0.9999426, 'index': 5, 'word': 'إما', 'start': 21, 'end': 24}, {'entity': 'noun', 'score': 0.9999339, 'index': 6, 'word': '##رات', 'start': 24, 'end': 27}, {'entity': 'noun', 'score': 0.99996775, 'index': 7, 'word': 'دولة', 'start': 28, 'end': 32}, {'entity': 'noun', 'score': 0.99996895, 'index': 8, 'word': 'الإمارات', 'start': 33, 'end': 41}, {'entity': 'adj', 'score': 0.99990183, 'index': 9, 'word': 'العربية', 'start': 42, 'end': 49}, {'entity': 'adj', 'score': 0.9999347, 'index': 10, 'word': 'المتحدة', 'start': 50, 'end': 57}, {'entity': 'noun_num', 'score': 0.99931145, 'index': 11, 'word': 'السبع', 'start': 58, 'end': 63}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
-0.0005566237960010767,
-0.0019968573469668627,
-0.01924445480108261,
0.04308613762259483,
0.04992437735199928,
0.029619524255394936,
-0.002312208293005824,
-0.001571830129250884,
-0.011232594028115273,
0.07094793766736984,
0.012439207173883915,
-0.021030783653259277,
0.013312818482518196,
0.051266059279441833,
-0.03578861802816391,
-0.03442244231700897,
0.010349311865866184,
-0.023817220702767372,
-0.049899451434612274,
-0.01816510409116745,
0.001432517427019775,
-0.006344757974147797,
-0.000013023948667978402,
0.0030246784444898367,
-0.007647834252566099,
0.021702965721488,
-0.02833433263003826,
0.05115291103720665,
0.03990621864795685,
-0.06538886576890945,
-0.017212193459272385,
-0.006485703866928816,
-0.03033849224448204,
-0.02306186966598034,
-0.0351271815598011,
0.004638009238988161,
0.00742166955024004,
-0.002204719465225935,
0.026525504887104034,
0.0630657821893692,
-0.03807719424366951,
0.022944897413253784,
-0.002761675277724862,
-0.038889072835445404,
0.05209244415163994,
0.004245337098836899,
-0.02905362844467163,
0.0034571699798107147,
0.04298948869109154,
-0.039625946432352066,
-0.05943525955080986,
-0.04842119663953781,
-0.05303093418478966,
0.02594234235584736,
0.007429041899740696,
-0.008985773660242558,
-0.034584686160087585,
-0.020680006593465805,
0.0782301127910614,
-0.06463546305894852,
-0.047563061118125916,
-0.00506707513704896,
-0.04992295429110527,
0.033781539648771286,
0.023144807666540146,
-0.02037980780005455,
0.010021725669503212,
-0.04296889156103134,
0.05344859138131142,
-0.03305842727422714,
0.053219061344861984,
-0.012834115885198116,
0.01427510380744934,
-0.08731482177972794,
0.024638276547193527,
-0.02465418353676796,
0.04192657768726349,
0.040722254663705826,
-0.02623579651117325,
0.07388564944267273,
0.022525329142808914,
0.001015137298963964,
0.035550907254219055,
-0.006797269452363253,
-0.010408731177449226,
0.03026193380355835,
-0.05838456004858017,
-0.001405686722137034,
0.01917431503534317,
0.03840965777635574,
-0.04370417445898056,
-0.04015129804611206,
-0.00862632691860199,
-0.0428675152361393,
-0.023960595950484276,
0.02541927434504032,
0.02824545092880726,
-0.0261536817997694,
0.05424339696764946,
0.026681652292609215,
0.015478585846722126,
0.053432025015354156,
-0.01892225630581379,
0.04551011696457863,
-0.023409921675920486,
-0.011012466624379158,
-0.03775787353515625,
-0.030669385567307472,
-0.028201453387737274,
0.04609532281756401,
0.007903950288891792,
-0.03864189237356186,
-0.049266815185546875,
0.03810157626867294,
-0.005234519951045513,
-0.027485866099596024,
0.041875071823596954,
-0.02949203923344612,
-0.05067881569266319,
-0.04608960077166557,
0.047875791788101196,
-0.0026958673261106014,
0.005464914254844189,
0.008158117532730103,
-0.04846523329615593,
-0.010998335666954517,
-0.06085442006587982,
-0.017984284088015556,
-0.0203460231423378,
0.03260190784931183,
-0.0039998493157327175,
0.023050040006637573,
0.017644686624407768,
-0.06530269980430603,
0.023220621049404144,
-0.0004637892125174403,
-0.057609181851148605,
0.03291521593928337,
0.03998237103223801,
0.10588330030441284,
-0.05637742206454277,
-0.03318542242050171,
0.021165989339351654,
0.004423778969794512,
-0.024439148604869843,
-0.0037260737735778093,
0.014918223954737186,
-0.032121606171131134,
-0.026753902435302734,
-0.023005522787570953,
0.06315060704946518,
-0.05174870416522026,
0.015391864813864231,
0.04406552389264107,
-0.010937809012830257,
0.03271780163049698,
-0.0311829075217247,
-0.016474558040499687,
0.01701667346060276,
-0.004159898497164249,
-0.03599636256694794,
0.045330993831157684,
-0.0019513225415721536,
-0.016327030956745148,
-0.03853393718600273,
-0.040074292570352554,
0.00292936060577631,
0.08834950625896454,
-0.0018340939423069358,
-0.003417729865759611,
-0.015141086652874947,
0.0004922706866636872,
0.04476592317223549,
0.008620248176157475,
-0.05576516315340996,
0.02710653841495514,
0.06278571486473083,
-0.0023827198892831802,
-0.031516287475824356,
0.08305034041404724,
0.010147104039788246,
-0.006376328412443399,
-0.013777390122413635,
-0.013795105740427971,
-0.009618435055017471,
-0.029857369139790535,
0.04041488468647003,
0.025277715176343918,
-0.01175365038216114,
-0.02862691320478916,
-0.011725589632987976,
0.06843365728855133,
0.009774483740329742,
0.020512094721198082,
-0.012767020612955093,
-0.027014419436454773,
-0.04572071507573128,
0.04234466701745987,
-0.006264954339712858,
-0.00280390284024179,
-0.0287074763327837,
0.0009651066502556205,
-0.0010425178334116936,
0.039439693093299866,
0.05358989164233208,
0.03515837341547012,
-0.027096986770629883,
0.07338590174913406,
-0.028155675157904625,
0.015661858022212982,
-0.03462754189968109,
-0.034855443984270096,
-0.0030954056419432163,
0.03261959180235863,
0.02029707282781601,
0.03931492939591408,
-0.016215482726693153,
-0.03190343454480171,
0.03183620050549507,
0.04962551221251488,
0.03281554579734802,
0.028099780902266502,
-0.033129025250673294,
-0.005549866706132889,
0.02621511183679104,
0.062473077327013016,
-0.0823245570063591,
-0.047694187611341476,
0.038469087332487106,
0.04749726131558418,
-0.06250519305467606,
0.015947751700878143,
-0.008881033398211002,
0.032544709742069244,
-0.0378265418112278,
-0.06011440232396126,
0.0475945919752121,
0.03077741526067257,
-0.007824953645467758,
0.0383128747344017,
-0.016774624586105347,
-0.026682406663894653,
0.02663736417889595,
0.019567422568798065,
-0.010107656940817833,
-0.04232122749090195,
0.0019240179099142551,
0.022008568048477173,
0.07630185782909393,
-0.04104749485850334,
0.028360016644001007,
0.006272884085774422,
0.014397652819752693,
0.04658278450369835,
-0.044311024248600006,
0.024602709338068962,
0.02744325064122677,
-0.0010588145814836025,
-0.016758369281888008,
0.03999205678701401,
-0.007510018069297075,
0.014516430906951427,
0.05683903768658638,
0.0011221837485209107,
0.06514725834131241,
-0.019078800454735756,
0.05112263187766075,
0.0777224600315094,
0.01572544313967228,
0.01723078452050686,
0.015382301062345505,
0.0787171795964241,
0.009768025949597359,
-0.009039013646543026,
0.05748167261481285,
-0.05526905879378319,
0.018975116312503815,
-0.04956963658332825,
0.006117173470556736,
-0.02193310298025608,
-0.018328731879591942,
0.04954129457473755,
0.012474372051656246,
-0.013270076364278793,
-0.01654079556465149,
-0.0182329248636961,
-0.01153501495718956,
0.03744208440184593,
-0.019338570535182953,
-0.027473319321870804,
-0.005106229335069656,
-0.008900482207536697,
0.023176444694399834,
-0.05389227345585823,
-0.017948124557733536,
-0.022585641592741013,
-0.037611089646816254,
0.0019142661476507783,
-0.07145477831363678,
-0.016718750819563866,
-0.057000722736120224,
-0.013404492288827896,
0.032839711755514145,
0.004162573721259832,
-0.0010111506562680006,
-0.04766553267836571,
0.03271947801113129,
-0.03938373178243637,
-0.030212197452783585,
-0.02898578532040119,
-0.07025038450956345,
-0.02710983343422413,
-0.043365996330976486,
0.04096350073814392,
0.016256432980298996,
0.008261673152446747,
0.009076348505914211,
0.02820660173892975,
-0.017722124233841896,
-0.03896103426814079,
0.0366225466132164,
0.03420574218034744,
-0.021120194345712662,
-0.06214788183569908,
0.03466852009296417,
-0.015264397487044334,
-0.0003197784535586834,
-0.02876283787190914,
-0.056940458714962006,
0.08116672188043594,
0.08168332278728485,
0.009510221891105175,
0.001607782207429409,
-0.019902421161532402,
-0.05604426562786102,
-0.035518988966941833,
-0.035689130425453186,
-0.03424864262342453,
-0.021056847646832466,
0.0016322879819199443,
-0.03558492660522461,
-0.01693558320403099,
-0.03389282152056694,
-0.001771214185282588,
-0.0034366578329354525,
0.033940188586711884,
0.0366717167198658,
0.04416126385331154,
0.02603287436068058,
0.05352599546313286,
-0.03471103683114052,
-0.02562248334288597,
0.06904970854520798,
0.016340551897883415,
0.00570868793874979,
-0.060570959001779556,
-0.039895277470350266,
0.037499964237213135,
0.009648055769503117,
-0.00598518643528223,
-0.0018162475898861885,
0.0638594999909401,
-0.0012549436651170254,
0.0032379813492298126,
0.018369100987911224,
-0.011465335264801979,
-0.031196685507893562,
-0.006451429333537817,
0.006282824091613293,
-0.007858114317059517,
-0.051165446639060974,
-0.014488563872873783,
0.013329184614121914,
0.06054498255252838,
-0.04170765355229378,
-0.06260089576244354,
-0.006084381602704525,
0.06918030977249146,
0.010648750700056553,
0.006520808208733797,
-0.02629411779344082,
0.010210785083472729,
-0.043169405311346054,
-0.04133422300219536,
0.006875189952552319,
0.00025211204774677753,
0.011449307203292847,
0.03131090849637985,
0.016735948622226715,
-0.024658499285578728,
0.025333838537335396,
0.02627747505903244,
0.05402787774801254,
0.010154743678867817,
-0.03381253406405449,
0.01688520610332489,
-0.0331074558198452,
0.020247310400009155,
0.0046506416983902454,
-0.028229407966136932,
-0.038171716034412384,
-0.10290312767028809,
-0.003730685915797949,
0.0023043768014758825,
-0.03434442728757858,
-0.008515686728060246,
0.04567519947886467,
-0.023891227319836617,
-0.00819364283233881,
-0.0004499488859437406,
0.019744616001844406,
0.045025534927845,
-0.026711273938417435,
0.06533043086528778,
0.004756314679980278,
0.03123222105205059,
-0.039440903812646866,
0.03340650349855423,
-0.03443874046206474,
0.004212603904306889,
0.003647587029263377,
0.06019134074449539,
0.025788825005292892,
0.03627920523285866,
0.07272711396217346,
0.04783935099840164,
-0.039651963859796524,
0.05004924163222313,
0.06037168204784393,
-0.0021392772905528545,
-0.050282012671232224,
0.0017922100378200412,
-0.010813096538186073,
-0.020590951666235924,
0.00544116273522377,
-0.02564598247408867,
-0.0024061461444944143,
0.03492914140224457,
0.004214398562908173,
-0.0002916569064836949,
0.001068704528734088,
-0.03427596762776375,
-0.05382698029279709,
-0.06924144178628922,
-0.03654780611395836,
0.017565961927175522,
-0.022226613014936447,
0.03661375492811203,
0.04551457613706589,
0.02083895169198513,
0.06805475056171417,
0.07851624488830566,
-0.009863018058240414,
-0.051515109837055206,
0.011990506201982498,
0.027740946039557457,
-0.029880940914154053,
-0.061790831387043,
-0.07080063968896866,
0.05220257490873337,
0.04930794984102249,
0.004032923839986324,
-0.0746280625462532,
0.0023238121066242456,
0.0530381053686142,
-0.019973289221525192,
0.06667822599411011,
-0.006510270293802023,
0.0484529547393322,
0.058578163385391235,
-0.032115835696458817,
0.020656868815422058,
-0.044034194201231,
0.010267254896461964,
-0.003167957765981555,
0.019665539264678955,
-0.027176018804311752,
-0.03155990317463875,
-0.043752651661634445,
0.02459217980504036,
0.04133940488100052,
0.04464169219136238,
0.059122294187545776,
-0.012225326150655746,
-0.05174822732806206,
-0.0009960929164662957,
0.003703395137563348,
-0.05318644642829895,
-0.0047745597548782825,
0.034116700291633606,
0.034550655633211136,
-0.03878246247768402,
-0.006263380870223045,
-0.023977044969797134,
-0.007687338627874851,
0.016375821083784103,
0.003361206268891692,
-0.05829036235809326,
-0.051009442657232285,
0.006829072721302509,
-0.025196755304932594,
-0.026351425796747208,
-0.09828703850507736,
0.05885903537273407,
-0.03337427228689194,
-0.00037578336196020246,
0.04144372045993805,
0.018452050164341927,
0.024914780631661415,
0.0468670055270195,
-0.019704999402165413,
0.022727906703948975,
-0.03880579397082329,
0.02782953716814518,
-0.0015186119126155972,
-0.020303411409258842,
-0.016626298427581787,
-0.06908682733774185,
-0.004802552051842213,
-0.015494649298489094,
-0.028482049703598022,
-0.034116148948669434,
-0.015813374891877174,
0.01257352065294981,
-0.009015467949211597,
0.007849633693695068,
-0.020899180322885513,
0.04632691293954849,
-0.025420712307095528,
-0.012030428275465965,
-0.012146063148975372,
-0.04051651060581207,
-0.09488938003778458,
-0.053578395396471024,
-0.005911161657422781,
0.015533547848463058,
0.018929388374090195,
0.028175802901387215,
0.014145578257739544,
0.005767508875578642,
0.0080015379935503,
-0.011744864284992218,
0.026036009192466736,
0.0022490813862532377,
-0.03327500820159912,
-0.03502804413437843,
-0.008253823965787888,
0.042125824838876724,
0.04130761697888374,
-0.021638993173837662,
0.03084162436425686,
0.03784514591097832,
-0.037803396582603455,
-0.001171260024420917,
0.03516007214784622,
0.022081861272454262,
-0.06401737034320831,
-0.03728676214814186,
-0.026282507926225662,
-0.04753921926021576,
0.02675962634384632,
-0.0173468180000782,
-0.006825438234955072,
0.005441316869109869,
0.0383724682033062,
0.038804396986961365,
-0.0032029584981501102,
-0.038655415177345276,
-0.0008990646456368268,
-0.040751975029706955,
0.016416575759649277,
-0.038322992622852325,
0.06884890794754028,
-0.04013380780816078,
0.017135269939899445,
0.002410736633464694,
-0.037808697670698166,
-0.01928546093404293,
0.04104889556765556,
0.009148003533482552,
-0.009173114784061909,
-0.018264345824718475,
0.012206834740936756,
-0.02743678353726864,
0.035356491804122925,
0.018672438338398933,
0.021002130582928658,
-0.009368771687150002,
0.027859726920723915,
-0.04636402800679207,
-0.004128375090658665,
-0.020275576040148735,
0.00485053937882185,
-0.021975336596369743,
-0.03947758674621582,
-0.018459685146808624,
-0.06538879871368408,
0.02117299474775791,
0.011117659509181976,
0.04809188097715378,
0.03305350989103317,
0.004249436315149069,
-0.0035112332552671432,
0.028692664578557014,
-0.06297800689935684,
-0.004576514940708876,
-0.016805900260806084,
0.0413106307387352,
0.020240312442183495,
0.07153627276420593,
0.039541393518447876,
-0.031408607959747314,
-0.05186418816447258,
0.04177222400903702,
0.019290106371045113,
0.024500472471117973,
0.022399332374334335,
0.05919313430786133,
0.04264744371175766,
0.05369654670357704,
-0.02706153132021427,
0.0012868104968219995,
-0.016550716012716293,
-0.01847798004746437,
0.014003694988787174,
0.01924128457903862,
0.02673763409256935,
0.00355210667476058,
-0.053807809948921204,
-0.025109538808465004,
0.08372047543525696,
0.03588879480957985,
0.003813977586105466,
0.00614062650129199,
-0.025410577654838562,
0.03328659385442734,
-0.008876029402017593,
-0.06302110105752945,
-0.014716923236846924,
0.01598428189754486,
-0.04003208130598068,
0.08388496190309525,
-0.023240340873599052,
0.031848639249801636,
0.011378411203622818,
0.023564085364341736,
0.00072764657670632,
0.05543982610106468,
-0.04260716587305069,
0.03792542964220047,
0.042749885469675064,
-0.04144236817955971,
0.013151193037629128,
-0.02990989200770855,
0.060480810701847076,
-0.07408498227596283,
0.05638573318719864,
0.03487427905201912,
0.020046357065439224,
0.009223822504281998,
-0.02718924544751644,
-0.031324729323387146,
0.009739767760038376,
-0.04254602640867233,
0.06873707473278046,
0.003979379311203957,
-0.05308980867266655,
0.03451566398143768,
0.036548372358083725,
-0.07627879083156586,
0.07456552237272263,
0.025870738551020622,
0.06641555577516556,
0.05530037730932236,
0.040414292365312576,
-0.07227415591478348,
0.015669824555516243,
-0.045843224972486496,
0.03694813698530197,
-0.07426100224256516,
0.00996387843042612,
0.037416886538267136,
-0.04261402785778046,
-0.005186491180211306,
0.033556681126356125,
0.0004999755183234811,
-0.008134274743497372,
0.005546895787119865,
-0.05714888498187065,
-0.04927438125014305,
-0.019185565412044525,
0.01760120503604412,
-0.04310326650738716,
0.02711661159992218,
-0.04975060373544693,
0.01121058315038681,
0.013340573757886887,
-0.0191576536744833,
-0.05944887548685074,
0.005032804328948259,
0.048618923872709274,
-0.08563748002052307,
-0.036337535828351974,
0.053206220269203186,
0.00461173988878727,
-0.01691560260951519,
0.03173959255218506,
-0.003146140603348613,
0.031066134572029114,
0.025886373594403267,
-0.00034945475636050105,
0.02373739518225193,
-0.051544737070798874,
-0.008902526460587978,
0.01886901631951332,
-0.02143358811736107,
0.023294316604733467,
-0.026597164571285248,
0.03835757076740265,
0.06762471050024033,
0.040460217744112015,
0.006836912594735622,
-0.05633217841386795,
-0.02938772551715374,
0.013402502052485943,
-0.04799755662679672,
0.013331923633813858,
-0.00599254947155714,
-0.04578365758061409,
-0.04031963646411896,
-0.00990829337388277,
-0.025784092023968697,
0.032324500381946564,
-0.024328481405973434,
-0.009517531841993332,
0.02613959275186062,
-0.027601711452007294,
-0.04112009331583977,
-0.08066065609455109,
-0.023147912696003914,
-0.03277263790369034,
0.036265917122364044,
0.017544344067573547,
-0.032580021768808365,
0.011866911314427853,
-0.04411237686872482,
-0.06403904408216476,
0.04015755653381348,
0.01158134825527668,
-0.02595662511885166,
0.05955962836742401,
0.028921814635396004,
-0.03956850990653038,
0.013144494034349918,
0.04630837216973305,
-0.028475556522607803,
0.0020858612842857838,
-0.0068959565833210945,
0.008014936000108719,
0.02424672059714794,
0.033931273967027664,
-0.03149482607841492,
-0.0009170288685709238,
-0.04620320349931717,
-0.04203113913536072,
-0.039602018892765045,
-0.011730281636118889,
0.07255344092845917
] |
CAMeL-Lab/bert-base-arabic-camelbert-msa-quarter | [
"pytorch",
"tf",
"jax",
"bert",
"fill-mask",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 12 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "الهدف من الحياة هو [MASK] ."
---
# CAMeLBERT: A collection of pre-trained models for Arabic NLP tasks
## Model description
**CAMeLBERT** is a collection of BERT models pre-trained on Arabic texts with different sizes and variants.
We release pre-trained language models for Modern Standard Arabic (MSA), dialectal Arabic (DA), and classical Arabic (CA), in addition to a model pre-trained on a mix of the three.
We also provide additional models that are pre-trained on a scaled-down set of the MSA variant (half, quarter, eighth, and sixteenth).
The details are described in the paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."*
This model card describes **CAMeLBERT-MSA-quarter** (`bert-base-arabic-camelbert-msa-quarter`), a model pre-trained on a quarter of the full MSA dataset.
||Model|Variant|Size|#Word|
|-|-|:-:|-:|-:|
||`bert-base-arabic-camelbert-mix`|CA,DA,MSA|167GB|17.3B|
||`bert-base-arabic-camelbert-ca`|CA|6GB|847M|
||`bert-base-arabic-camelbert-da`|DA|54GB|5.8B|
||`bert-base-arabic-camelbert-msa`|MSA|107GB|12.6B|
||`bert-base-arabic-camelbert-msa-half`|MSA|53GB|6.3B|
|✔|`bert-base-arabic-camelbert-msa-quarter`|MSA|27GB|3.1B|
||`bert-base-arabic-camelbert-msa-eighth`|MSA|14GB|1.6B|
||`bert-base-arabic-camelbert-msa-sixteenth`|MSA|6GB|746M|
## Intended uses
You can use the released model for either masked language modeling or next sentence prediction.
However, it is mostly intended to be fine-tuned on an NLP task, such as NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
We release our fine-tuninig code [here](https://github.com/CAMeL-Lab/CAMeLBERT).
#### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-quarter')
>>> unmasker("الهدف من الحياة هو [MASK] .")
[{'sequence': '[CLS] الهدف من الحياة هو الحياة. [SEP]',
'score': 0.17437894642353058,
'token': 3696,
'token_str': 'الحياة'},
{'sequence': '[CLS] الهدف من الحياة هو النجاح. [SEP]',
'score': 0.042852893471717834,
'token': 6232,
'token_str': 'النجاح'},
{'sequence': '[CLS] الهدف من الحياة هو البقاء. [SEP]',
'score': 0.030925093218684196,
'token': 9331,
'token_str': 'البقاء'},
{'sequence': '[CLS] الهدف من الحياة هو الحب. [SEP]',
'score': 0.02964409440755844,
'token': 3088,
'token_str': 'الحب'},
{'sequence': '[CLS] الهدف من الحياة هو الكمال. [SEP]',
'score': 0.028030086308717728,
'token': 17188,
'token_str': 'الكمال'}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`. Otherwise, you could download the models manually.
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-quarter')
model = AutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-quarter')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AutoTokenizer, TFAutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-quarter')
model = TFAutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-quarter')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
## Training data
- MSA (Modern Standard Arabic)
- [The Arabic Gigaword Fifth Edition](https://catalog.ldc.upenn.edu/LDC2011T11)
- [Abu El-Khair Corpus](http://www.abuelkhair.net/index.php/en/arabic/abu-el-khair-corpus)
- [OSIAN corpus](https://vlo.clarin.eu/search;jsessionid=31066390B2C9E8C6304845BA79869AC1?1&q=osian)
- [Arabic Wikipedia](https://archive.org/details/arwiki-20190201)
- The unshuffled version of the Arabic [OSCAR corpus](https://oscar-corpus.com/)
## Training procedure
We use [the original implementation](https://github.com/google-research/bert) released by Google for pre-training.
We follow the original English BERT model's hyperparameters for pre-training, unless otherwise specified.
### Preprocessing
- After extracting the raw text from each corpus, we apply the following pre-processing.
- We first remove invalid characters and normalize white spaces using the utilities provided by [the original BERT implementation](https://github.com/google-research/bert/blob/eedf5716ce1268e56f0a50264a88cafad334ac61/tokenization.py#L286-L297).
- We also remove lines without any Arabic characters.
- We then remove diacritics and kashida using [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools).
- Finally, we split each line into sentences with a heuristics-based sentence segmenter.
- We train a WordPiece tokenizer on the entire dataset (167 GB text) with a vocabulary size of 30,000 using [HuggingFace's tokenizers](https://github.com/huggingface/tokenizers).
- We do not lowercase letters nor strip accents.
### Pre-training
- The model was trained on a single cloud TPU (`v3-8`) for one million steps in total.
- The first 90,000 steps were trained with a batch size of 1,024 and the rest was trained with a batch size of 256.
- The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%.
- We use whole word masking and a duplicate factor of 10.
- We set max predictions per sequence to 20 for the dataset with max sequence length of 128 tokens and 80 for the dataset with max sequence length of 512 tokens.
- We use a random seed of 12345, masked language model probability of 0.15, and short sequence probability of 0.1.
- The optimizer used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01, learning rate warmup for 10,000 steps and linear decay of the learning rate after.
## Evaluation results
- We evaluate our pre-trained language models on five NLP tasks: NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
- We fine-tune and evaluate the models using 12 dataset.
- We used Hugging Face's transformers to fine-tune our CAMeLBERT models.
- We used transformers `v3.1.0` along with PyTorch `v1.5.1`.
- The fine-tuning was done by adding a fully connected linear layer to the last hidden state.
- We use \\(F_{1}\\) score as a metric for all tasks.
- Code used for fine-tuning is available [here](https://github.com/CAMeL-Lab/CAMeLBERT).
### Results
| Task | Dataset | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | --------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| NER | ANERcorp | MSA | 80.8% | 67.9% | 74.1% | 82.4% | 82.0% | 82.1% | 82.6% | 80.8% |
| POS | PATB (MSA) | MSA | 98.1% | 97.8% | 97.7% | 98.3% | 98.2% | 98.3% | 98.2% | 98.2% |
| | ARZTB (EGY) | DA | 93.6% | 92.3% | 92.7% | 93.6% | 93.6% | 93.7% | 93.6% | 93.6% |
| | Gumar (GLF) | DA | 97.3% | 97.7% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% |
| SA | ASTD | MSA | 76.3% | 69.4% | 74.6% | 76.9% | 76.0% | 76.8% | 76.7% | 75.3% |
| | ArSAS | MSA | 92.7% | 89.4% | 91.8% | 93.0% | 92.6% | 92.5% | 92.5% | 92.3% |
| | SemEval | MSA | 69.0% | 58.5% | 68.4% | 72.1% | 70.7% | 72.8% | 71.6% | 71.2% |
| DID | MADAR-26 | DA | 62.9% | 61.9% | 61.8% | 62.6% | 62.0% | 62.8% | 62.0% | 62.2% |
| | MADAR-6 | DA | 92.5% | 91.5% | 92.2% | 91.9% | 91.8% | 92.2% | 92.1% | 92.0% |
| | MADAR-Twitter-5 | MSA | 75.7% | 71.4% | 74.2% | 77.6% | 78.5% | 77.3% | 77.7% | 76.2% |
| | NADI | DA | 24.7% | 17.3% | 20.1% | 24.9% | 24.6% | 24.6% | 24.9% | 23.8% |
| Poetry | APCD | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
### Results (Average)
| | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| Variant-wise-average<sup>[[1]](#footnote-1)</sup> | MSA | 82.1% | 75.7% | 80.1% | 83.4% | 83.0% | 83.3% | 83.2% | 82.3% |
| | DA | 74.4% | 72.1% | 72.9% | 74.2% | 74.0% | 74.3% | 74.1% | 73.9% |
| | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
| Macro-Average | ALL | 78.7% | 74.7% | 77.1% | 79.2% | 79.0% | 79.2% | 79.1% | 78.6% |
<a name="footnote-1">[1]</a>: Variant-wise-average refers to average over a group of tasks in the same language variant.
## Acknowledgements
This research was supported with Cloud TPUs from Google’s TensorFlow Research Cloud (TFRC).
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
```
| [
0.0052451021037995815,
0.011299160309135914,
-0.022358980029821396,
0.07343058288097382,
0.04019088298082352,
0.009858298115432262,
0.0028453359846025705,
-0.022550828754901886,
-0.022849196568131447,
0.060815222561359406,
-0.0000592953510931693,
-0.02675679884850979,
0.009618887677788734,
0.041726600378751755,
-0.05455266684293747,
-0.018542304635047913,
-0.00003206689507351257,
-0.020176762714982033,
-0.046784620732069016,
-0.030799882486462593,
-0.01607808656990528,
0.0054544443264603615,
0.004857187159359455,
0.021070489659905434,
0.005168091505765915,
0.00863899476826191,
-0.016740866005420685,
0.062275081872940063,
0.018413329496979713,
-0.05732674151659012,
-0.019595814868807793,
-0.027382589876651764,
-0.03906918317079544,
-0.025575777515769005,
-0.036003559827804565,
0.01756897196173668,
0.002974945120513439,
0.0008001603418961167,
0.02130233868956566,
0.06036418303847313,
-0.016756368800997734,
0.006714752409607172,
-0.007263578474521637,
-0.043199572712183,
0.01856362447142601,
-0.004710621200501919,
-0.04469221830368042,
0.007593528367578983,
0.0447649247944355,
-0.06511355191469193,
-0.06911379098892212,
-0.04196888953447342,
-0.036361005157232285,
0.016171783208847046,
0.0035214992240071297,
-0.012034009210765362,
-0.0315001979470253,
-0.025516392663121223,
0.0786994993686676,
-0.06337130814790726,
-0.05163516849279404,
0.0024327286519110203,
-0.05810348317027092,
0.02322552166879177,
0.022001132369041443,
-0.032671209424734116,
0.019436515867710114,
-0.04680679365992546,
0.05691538006067276,
-0.020631123334169388,
0.027809960767626762,
-0.022711262106895447,
0.011843565851449966,
-0.07520071417093277,
0.030681462958455086,
-0.030763743445277214,
0.03843607380986214,
0.04832538589835167,
-0.04881123825907707,
0.06465977430343628,
0.003108615055680275,
-0.008734198287129402,
0.02779107727110386,
-0.022515520453453064,
-0.00612814724445343,
0.026842419058084488,
-0.05232128128409386,
-0.0032304860651493073,
0.011296280659735203,
0.023516077548265457,
-0.03633001074194908,
-0.034294985234737396,
-0.03288505598902702,
-0.036465588957071304,
-0.01531571988016367,
0.01916232332587242,
0.029286297038197517,
-0.017553294077515602,
0.055296946316957474,
0.013909087516367435,
0.03487822413444519,
0.038446392863988876,
-0.035562749952077866,
0.0468742698431015,
-0.033606912940740585,
-0.019754119217395782,
-0.03714881092309952,
-0.03774062171578407,
-0.02146492898464203,
0.023552188649773598,
0.0032709965016692877,
-0.051272373646497726,
-0.0537724532186985,
0.05285191163420677,
-0.027823561802506447,
-0.041137874126434326,
0.03051006607711315,
-0.02638474479317665,
-0.06403481960296631,
-0.03870052471756935,
0.041235629469156265,
-0.011502075009047985,
0.02620241791009903,
0.013358565978705883,
-0.07516089826822281,
0.021256322041153908,
-0.0559648722410202,
-0.022874685004353523,
-0.018082331866025925,
0.03697127476334572,
0.000916750286705792,
0.04005374759435654,
0.019428148865699768,
-0.0732334554195404,
0.008622934110462666,
-0.01713726483285427,
-0.03681628033518791,
0.03917307406663895,
0.015207489021122456,
0.11365795880556107,
-0.03258771076798439,
-0.06369586288928986,
0.02738169953227043,
-0.0003945259377360344,
-0.022339899092912674,
-0.0031158735509961843,
0.016864167526364326,
-0.024698426946997643,
-0.014917322434484959,
-0.018274635076522827,
0.05679139494895935,
-0.05419781804084778,
0.022700119763612747,
0.05604877322912216,
0.0012843895237892866,
0.02450399659574032,
-0.04414815455675125,
-0.013676865957677364,
-0.006712875794619322,
0.006254858803004026,
-0.022518005222082138,
0.04040710628032684,
-0.007666712626814842,
-0.03610425442457199,
-0.0399881973862648,
-0.03325841203331947,
-0.003227150533348322,
0.08595728874206543,
0.010538035072386265,
0.003651772392913699,
-0.03217184916138649,
0.006162639241665602,
0.03886379674077034,
0.006406018044799566,
-0.05129087716341019,
0.024653244763612747,
0.0483962744474411,
0.011341644451022148,
-0.02433469146490097,
0.07853105664253235,
0.0019509687554091215,
-0.010559364221990108,
-0.031837668269872665,
0.010584398172795773,
0.010243850760161877,
-0.020969977602362633,
0.04701827093958855,
0.038991570472717285,
-0.012641397304832935,
-0.04099483788013458,
-0.026146797463297844,
0.06655225902795792,
-0.00048335158498957753,
0.011820470914244652,
0.005760568659752607,
-0.011789267882704735,
-0.050439171493053436,
0.04275728762149811,
-0.019896015524864197,
0.01405357290059328,
-0.04118632152676582,
0.01008488330990076,
0.012499978765845299,
0.0341280922293663,
0.043384894728660583,
0.05099055916070938,
-0.006586874835193157,
0.06777013093233109,
-0.017281070351600647,
0.008673742413520813,
-0.051021602004766464,
-0.04556883126497269,
-0.0025731453206390142,
0.03680970147252083,
0.029558008536696434,
0.04611685127019882,
-0.019512610509991646,
-0.051170866936445236,
0.040697719901800156,
0.060379404574632645,
0.03973713889718056,
0.014388518407940865,
-0.031105510890483856,
-0.005719806533306837,
0.039985593408346176,
0.06389889866113663,
-0.07123199105262756,
-0.030783362686634064,
0.03487199544906616,
0.05387631803750992,
-0.027193371206521988,
0.008271454833447933,
-0.008860484696924686,
0.025623667985200882,
-0.03217678517103195,
-0.07633362710475922,
0.04737395420670509,
0.03717530146241188,
0.00439380994066596,
0.028633959591388702,
0.0013666973682120442,
0.0050009372644126415,
0.015817826613783836,
0.040920596569776535,
0.00257686385884881,
-0.04038434103131294,
0.0026037441566586494,
0.012141694314777851,
0.06658425182104111,
-0.04398343339562416,
0.024475641548633575,
-0.011560856364667416,
0.03103390708565712,
0.031821075826883316,
-0.021196600049734116,
0.03674040734767914,
0.011550728231668472,
0.013615883886814117,
-0.04159596934914589,
0.03973613679409027,
-0.007558085024356842,
0.0166173055768013,
0.06108618527650833,
-0.011491016484797001,
0.05264955013990402,
-0.0024744169786572456,
0.058052368462085724,
0.05822283774614334,
0.031936485320329666,
0.011088411323726177,
0.0072847348637878895,
0.08291353285312653,
0.020701939240098,
-0.012322450056672096,
0.07040929794311523,
-0.057935282588005066,
0.014724561013281345,
-0.05855681002140045,
0.009784354828298092,
0.0028769723139703274,
-0.014791131019592285,
0.02090395614504814,
0.015956323593854904,
0.007175096310675144,
-0.0022553701419383287,
-0.01638869382441044,
0.0010057012550532818,
0.04007011651992798,
-0.032298408448696136,
-0.012689702212810516,
-0.025885269045829773,
-0.030727896839380264,
0.0024805800057947636,
-0.06576800346374512,
-0.01809733174741268,
-0.022056886926293373,
-0.03198415786027908,
0.00036412905319593847,
-0.08406931906938553,
-0.027643177658319473,
-0.05014211684465408,
-0.012594467960298061,
0.0239886287599802,
0.012704812921583652,
-0.008959116414189339,
-0.04070426523685455,
0.028066566213965416,
-0.05210302025079727,
-0.02316998690366745,
-0.03046790510416031,
-0.06546908617019653,
-0.032708946615457535,
-0.04480331763625145,
0.05692453682422638,
0.028588788583874702,
-0.002811421174556017,
0.010158254764974117,
0.02774813026189804,
-0.009562810882925987,
-0.03375775367021561,
0.016988733783364296,
0.03692547604441643,
-0.03457348048686981,
-0.061680328100919724,
0.01746339723467827,
0.002795562846586108,
-0.0038493715692311525,
-0.023268627002835274,
-0.025005418807268143,
0.08925563097000122,
0.08289875090122223,
0.007483740337193012,
0.0017878812504932284,
-0.008578910492360592,
-0.060222502797842026,
-0.04397507384419441,
-0.02626466192305088,
-0.0399591363966465,
-0.0229521282017231,
-0.026828020811080933,
-0.02832872048020363,
-0.028849946334958076,
-0.04876774549484253,
0.0032275114208459854,
0.0006966220098547637,
0.01825418509542942,
0.04454551264643669,
0.04257502779364586,
0.0207730233669281,
0.04882353916764259,
-0.0334852933883667,
-0.012751922942698002,
0.07246926426887512,
0.008153403177857399,
0.02938164211809635,
-0.072270467877388,
-0.026333298534154892,
0.056047625839710236,
0.006836060434579849,
-0.00317171192727983,
-0.019792117178440094,
0.08385258913040161,
-0.005013519898056984,
-0.009276862256228924,
0.01027421373873949,
0.0004352910618763417,
-0.03898153826594353,
-0.01904982328414917,
0.012159625068306923,
-0.01643921434879303,
-0.05364258587360382,
-0.019104184582829475,
0.0008812559535726905,
0.061179954558610916,
-0.03348647803068161,
-0.0555582195520401,
-0.005909895058721304,
0.058706462383270264,
-0.002256168983876705,
-0.012161139398813248,
-0.0268037561327219,
0.00568066630512476,
-0.04465177655220032,
-0.027852395549416542,
-0.004223593045026064,
-0.008765592239797115,
-0.009515045210719109,
0.03387868031859398,
0.019208384677767754,
-0.013146955519914627,
0.01236230693757534,
0.023557843640446663,
0.055031631141901016,
0.01081304531544447,
-0.04308453947305679,
0.027490220963954926,
-0.024931473657488823,
0.017358938232064247,
-0.0005123939481563866,
-0.03793329745531082,
-0.04697883501648903,
-0.07123963534832001,
-0.0025655459612607956,
0.006784175522625446,
-0.048704952001571655,
-0.02423386089503765,
0.035770121961832047,
-0.030218562111258507,
0.005533922463655472,
-0.005529023706912994,
0.029603298753499985,
0.013895558193325996,
-0.027371741831302643,
0.07506519556045532,
-0.0022830108646303415,
0.04311981424689293,
-0.06771451234817505,
0.03616848215460777,
-0.03959721699357033,
0.005845966283231974,
0.0070456876419484615,
0.0665086954832077,
0.019138138741254807,
0.04684198275208473,
0.073970265686512,
0.046940505504608154,
-0.03420427441596985,
0.044769205152988434,
0.06022917106747627,
0.004772754851728678,
-0.03336003050208092,
-0.0068457238376140594,
-0.011546210385859013,
-0.023332031443715096,
-0.014186465181410313,
-0.0038465820252895355,
-0.018726876005530357,
0.030703850090503693,
-0.007839670404791832,
0.007109302096068859,
0.013515415601432323,
-0.02796286717057228,
-0.03717326745390892,
-0.052250009030103683,
-0.0423472635447979,
0.017589041963219643,
-0.03745361045002937,
0.052742067724466324,
0.02320879139006138,
0.020982015877962112,
0.06753350794315338,
0.06610148400068283,
-0.006369141396135092,
-0.02806035615503788,
0.014783919788897038,
0.036326900124549866,
-0.031683411449193954,
-0.056159935891628265,
-0.056941282004117966,
0.04801210016012192,
0.04689407721161842,
0.01776132360100746,
-0.08489431440830231,
-0.005823876708745956,
0.0575215145945549,
-0.024195596575737,
0.052124422043561935,
-0.011603296734392643,
0.05210278555750847,
0.044309549033641815,
-0.037025805562734604,
0.026994312182068825,
-0.017978014424443245,
0.01599874347448349,
-0.009679633192718029,
0.0021774328779429197,
-0.016885308548808098,
-0.03318435698747635,
-0.060862887650728226,
0.01974756456911564,
0.02870737761259079,
0.031227296218276024,
0.06123630702495575,
-0.012986293993890285,
-0.030921388417482376,
0.025654980912804604,
0.011044464074075222,
-0.036773134022951126,
0.010052920319139957,
0.036053743213415146,
0.038276560604572296,
-0.04240189120173454,
0.0009554088464938104,
-0.018778569996356964,
-0.0021414782386273146,
0.01653757505118847,
0.017372233793139458,
-0.049357254058122635,
-0.05195844918489456,
0.003465545130893588,
-0.014269673265516758,
-0.020363984629511833,
-0.089913010597229,
0.03924116492271423,
-0.024423547089099884,
-0.00827332679182291,
0.02940133586525917,
0.011962140910327435,
0.017166348174214363,
0.04975238814949989,
0.008741280995309353,
0.015518794767558575,
-0.03759748861193657,
0.046280644834041595,
-0.012821400538086891,
-0.01216224953532219,
-0.017614442855119705,
-0.052765414118766785,
0.009463364258408546,
-0.012104763649404049,
-0.012002318166196346,
-0.03792353346943855,
-0.012850318104028702,
0.021372666582465172,
-0.013643262907862663,
-0.00039845029823482037,
-0.029465805739164352,
0.055268313735723495,
-0.0309847854077816,
-0.03705593943595886,
-0.03269711136817932,
-0.03531487658619881,
-0.07691477984189987,
-0.061886683106422424,
-0.0065164631232619286,
0.024644529446959496,
0.011564702726900578,
0.018348632380366325,
0.02183021418750286,
0.01113150455057621,
0.010356147773563862,
-0.030254676938056946,
0.03522130101919174,
-0.004389917943626642,
-0.04156860336661339,
-0.05602169409394264,
-0.021695081144571304,
0.03621487319469452,
0.030393389984965324,
-0.024523954838514328,
0.034663692116737366,
0.029833592474460602,
-0.02668146975338459,
0.006364369299262762,
0.029177596792578697,
0.023350710049271584,
-0.06828493624925613,
-0.04172198474407196,
-0.027204956859350204,
-0.04865127429366112,
0.049958184361457825,
-0.013430509716272354,
-0.004662558436393738,
0.02454562298953533,
0.04126666858792305,
0.03576833754777908,
0.005423000548034906,
-0.044390685856342316,
0.026778290048241615,
-0.027678966522216797,
0.015851136296987534,
-0.0429498590528965,
0.050700847059488297,
-0.03401942178606987,
0.01069019827991724,
-0.005463562905788422,
-0.023460395634174347,
-0.019714051857590675,
0.043699849396944046,
-0.018592683598399162,
-0.018167870119214058,
-0.007856088690459728,
0.01687862165272236,
-0.028169889003038406,
0.04270413517951965,
-0.0205384474247694,
0.03280876576900482,
-0.021826324984431267,
0.05219581723213196,
-0.034065745770931244,
-0.013124055229127407,
-0.03294116631150246,
-0.0004590344615280628,
-0.029010972008109093,
-0.02094094641506672,
-0.015164684504270554,
-0.05801651254296303,
0.016862643882632256,
0.037025853991508484,
0.05654579773545265,
0.04509353265166283,
-0.0007332962704822421,
0.002831168007105589,
0.026365431025624275,
-0.050100717693567276,
-0.00871131382882595,
-0.010634399019181728,
0.038927964866161346,
0.008269139565527439,
0.0689539983868599,
0.03799666836857796,
-0.0455847792327404,
-0.057442471385002136,
0.035146426409482956,
0.019125452265143394,
0.027359815314412117,
0.014360284432768822,
0.06734099984169006,
0.027745433151721954,
0.03848372772336006,
-0.02220955304801464,
0.0016380292363464832,
-0.013871830888092518,
-0.035019274801015854,
0.01581674814224243,
0.011686448939144611,
0.0069627002812922,
0.0010705149034038186,
-0.03498487547039986,
-0.03846799582242966,
0.07862494885921478,
0.03391178697347641,
-0.002138432115316391,
0.015400472097098827,
-0.03178360313177109,
0.027864906936883926,
-0.008199427276849747,
-0.05085952579975128,
-0.00046732902410440147,
-0.0009561984334141016,
-0.03900860622525215,
0.05957575514912605,
-0.010953842662274837,
0.035262711346149445,
0.030127979815006256,
0.016745517030358315,
-0.006157996132969856,
0.05589831620454788,
-0.03683525696396828,
0.030212190002202988,
0.030551452189683914,
-0.050391145050525665,
0.016325535252690315,
-0.03976913541555405,
0.08122311532497406,
-0.08955013751983643,
0.05498722940683365,
0.02739596553146839,
0.011918249540030956,
0.011311165057122707,
-0.003251256188377738,
-0.03204599395394325,
0.002574579557403922,
-0.0458044670522213,
0.07857933640480042,
0.010783062316477299,
-0.05414414033293724,
0.03374144062399864,
0.03733387961983681,
-0.05706723779439926,
0.07404884696006775,
0.04706573486328125,
0.06790757924318314,
0.039026208221912384,
0.03663116320967674,
-0.0572800412774086,
0.0023533052299171686,
-0.028588058426976204,
0.031663935631513596,
-0.05954962223768234,
-0.009261580184102058,
0.04600033909082413,
-0.04929403215646744,
-0.014692982658743858,
0.029682565480470657,
-0.02484968490898609,
-0.012883177027106285,
0.03631901741027832,
-0.05713682249188423,
-0.0601792111992836,
-0.007128617726266384,
0.02953234873712063,
-0.06324611604213715,
0.006764919962733984,
-0.04852770268917084,
0.0047639887779951096,
0.007400406990200281,
-0.01772947795689106,
-0.06851442158222198,
0.009323058649897575,
0.037771742790937424,
-0.06561758369207382,
-0.034336481243371964,
0.07061488181352615,
0.01093620527535677,
-0.025995079427957535,
0.035665273666381836,
-0.022674862295389175,
0.007356308400630951,
0.02902897633612156,
0.007929320447146893,
0.014184810221195221,
-0.05803908780217171,
-0.025914505124092102,
0.004969777539372444,
-0.01738029345870018,
0.010049888864159584,
-0.009962971322238445,
0.035040341317653656,
0.0639229565858841,
0.03989747166633606,
0.029372645542025566,
-0.04780121147632599,
-0.0186878964304924,
0.043753284960985184,
-0.05369873344898224,
0.0037997423205524683,
-0.0013178474036976695,
-0.044074639678001404,
-0.030685028061270714,
-0.011086379177868366,
-0.027940969914197922,
0.04454370588064194,
-0.046546850353479385,
-0.012746263295412064,
-0.0039382618851959705,
-0.030864691361784935,
-0.04140397533774376,
-0.10166854411363602,
-0.018622716888785362,
-0.0495845302939415,
0.037161897867918015,
0.005390624050050974,
-0.037027329206466675,
0.028066694736480713,
-0.05483070760965347,
-0.058944378048181534,
0.03822304308414459,
0.028501708060503006,
-0.06418262422084808,
0.04596148803830147,
0.04560845345258713,
-0.03507288545370102,
-0.004007481969892979,
0.04478878155350685,
-0.018947308883070946,
0.006104280706495047,
0.008077873848378658,
0.005761092994362116,
0.029979759827256203,
0.020836353302001953,
-0.017097000032663345,
-0.021126464009284973,
-0.04317620396614075,
-0.05031358823180199,
-0.023987945169210434,
0.0002521491842344403,
0.054132234305143356
] |
CAMeL-Lab/bert-base-arabic-camelbert-msa-sentiment | [
"pytorch",
"tf",
"bert",
"text-classification",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 574 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "أنا بخير"
---
# CAMeLBERT MSA SA Model
## Model description
**CAMeLBERT MSA SA Model** is a Sentiment Analysis (SA) model that was built by fine-tuning the [CAMeLBERT Modern Standard Arabic (MSA)](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-msa/) model.
For the fine-tuning, we used the [ASTD](https://aclanthology.org/D15-1299.pdf), [ArSAS](http://lrec-conf.org/workshops/lrec2018/W30/pdf/22_W30.pdf), and [SemEval](https://aclanthology.org/S17-2088.pdf) datasets.
Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT).
## Intended uses
You can use the CAMeLBERT MSA SA model directly as part of our [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) SA component (*recommended*) or as part of the transformers pipeline.
#### How to use
To use the model with the [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) SA component:
```python
>>> from camel_tools.sentiment import SentimentAnalyzer
>>> sa = SentimentAnalyzer("CAMeL-Lab/bert-base-arabic-camelbert-msa-sentiment")
>>> sentences = ['أنا بخير', 'أنا لست بخير']
>>> sa.predict(sentences)
>>> ['positive', 'negative']
```
You can also use the SA model directly with a transformers pipeline:
```python
>>> from transformers import pipeline
>>> sa = pipeline('sentiment-analysis', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-sentiment')
>>> sentences = ['أنا بخير', 'أنا لست بخير']
>>> sa(sentences)
[{'label': 'positive', 'score': 0.9616648554801941},
{'label': 'negative', 'score': 0.9779177904129028}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`.
Otherwise, you could download the models manually.
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
``` | [
-0.0039779203943908215,
-0.009859655052423477,
-0.03926447778940201,
0.06557862460613251,
0.05571649968624115,
0.039617881178855896,
-0.012058702297508717,
-0.005662431474775076,
-0.022997591644525528,
0.07360739260911942,
0.012303792871534824,
-0.040490470826625824,
0.03312688320875168,
0.038954488933086395,
-0.050679761916399,
-0.02075054682791233,
0.0025107301771640778,
-0.02534141205251217,
-0.04714898020029068,
-0.03786900267004967,
0.009837528690695763,
0.0028167380951344967,
0.004350452218204737,
0.005519125610589981,
-0.0009431834914721549,
0.03017522767186165,
-0.034284260123968124,
0.05117960646748543,
0.028365809470415115,
-0.06698807328939438,
-0.017924312502145767,
-0.010872261598706245,
-0.039166439324617386,
-0.019196953624486923,
-0.016959454864263535,
0.023536384105682373,
0.007046777289360762,
-0.0030660133343189955,
0.006303292233496904,
0.05264877900481224,
-0.02004212886095047,
0.014374331571161747,
-0.008703146129846573,
-0.025386957451701164,
0.04596633091568947,
0.013069246895611286,
-0.030380727723240852,
0.0068031796254217625,
0.03390398994088173,
-0.06370216608047485,
-0.06718769669532776,
-0.07186434417963028,
-0.04556870460510254,
0.04607434570789337,
0.00866613443940878,
-0.0038924249820411205,
-0.032451145350933075,
-0.030391870066523552,
0.08832816779613495,
-0.0631742998957634,
-0.038004178553819656,
0.003110702848061919,
-0.0530470572412014,
0.007561609148979187,
0.02761615812778473,
-0.021289875730872154,
0.012911777012050152,
-0.03211359307169914,
0.055214546620845795,
-0.035963594913482666,
0.049167051911354065,
-0.021643836051225662,
0.02771635912358761,
-0.07491354644298553,
0.012532114051282406,
-0.03408008813858032,
0.0463716946542263,
0.04420182481408119,
-0.02614656090736389,
0.07448230683803558,
0.010653350502252579,
0.002295450307428837,
0.04655030742287636,
-0.008046431466937065,
-0.015273413620889187,
0.029244570061564445,
-0.06371479481458664,
0.001555554335936904,
0.00460714241489768,
0.03655669093132019,
-0.04323974624276161,
-0.03761438652873039,
-0.007606171071529388,
-0.049611445516347885,
-0.0289141908288002,
0.029389983043074608,
0.024150924757122993,
-0.024177061393857002,
0.04790591821074486,
0.02054258994758129,
0.034374892711639404,
0.04573957622051239,
-0.027238639071583748,
0.033409226685762405,
-0.015724049881100655,
-0.031298138201236725,
-0.03229808807373047,
-0.030117234215140343,
-0.03161869943141937,
0.04963687062263489,
-0.0137643963098526,
-0.06178562343120575,
-0.05490893870592117,
0.013257277198135853,
0.0002681623154785484,
-0.040213800966739655,
0.032793574035167694,
-0.027953723445534706,
-0.047366686165332794,
-0.041878946125507355,
0.04611465334892273,
-0.005984215065836906,
-0.004332462791353464,
0.005262608174234629,
-0.06494307518005371,
0.010744927451014519,
-0.062202878296375275,
-0.024896005168557167,
-0.023796379566192627,
0.020111404359340668,
0.011855408549308777,
0.025932811200618744,
0.01637081615626812,
-0.07624891400337219,
0.014197849668562412,
-0.009485913440585136,
-0.06228231266140938,
0.033843912184238434,
0.032771892845630646,
0.10388841480016708,
-0.04819592088460922,
-0.034275270998477936,
0.017038650810718536,
0.002497654175385833,
-0.017334645614027977,
-0.004331444390118122,
0.027942482382059097,
-0.021651219576597214,
-0.031071797013282776,
-0.019767964258790016,
0.06198630481958389,
-0.0498838797211647,
-0.0012632736470550299,
0.0421692430973053,
0.0032531290780752897,
0.024196630343794823,
-0.032741155475378036,
-0.02317606844007969,
0.0053090984001755714,
0.015265966765582561,
-0.019475365057587624,
0.05837554857134819,
-0.006125505547970533,
-0.034403663128614426,
-0.03648565337061882,
-0.03493409603834152,
-0.005781608168035746,
0.08921750634908676,
-0.006110686343163252,
-0.030369946733117104,
-0.014440920203924179,
0.0072090462781488895,
0.039929430931806564,
0.005335583817213774,
-0.034703999757766724,
0.005544635467231274,
0.06601409614086151,
0.005686192307621241,
-0.014372129924595356,
0.07242407649755478,
-0.008451475761830807,
-0.004154772497713566,
-0.015785150229930878,
-0.007295963820070028,
0.0008931790944188833,
-0.03328889608383179,
0.04677711799740791,
0.047665972262620926,
-0.015620495192706585,
-0.017466487362980843,
-0.026342695578932762,
0.0664743036031723,
-0.013353481888771057,
0.015285596251487732,
-0.01258915662765503,
-0.010796085931360722,
-0.041939347982406616,
0.03497439995408058,
-0.006441174540668726,
0.0076803527772426605,
-0.03676971048116684,
-0.006894734222441912,
0.001256887218914926,
0.02999071590602398,
0.046547744423151016,
0.01689823716878891,
-0.03060380555689335,
0.08523568511009216,
-0.027766335755586624,
-0.0010206801816821098,
-0.03605392575263977,
-0.048806171864271164,
-0.014712154865264893,
0.0375133641064167,
0.02540770173072815,
0.041367195546627045,
-0.004175481852144003,
-0.044370137155056,
0.017124997451901436,
0.0495263896882534,
0.019441645592451096,
0.03888317942619324,
-0.026571189984679222,
-0.021035855636000633,
0.02642728015780449,
0.06348229944705963,
-0.07731960713863373,
-0.04397919028997421,
0.029376216232776642,
0.0382256880402565,
-0.04617438092827797,
0.011176046915352345,
-0.011089172214269638,
0.028404876589775085,
-0.023828456178307533,
-0.09178198873996735,
0.058830320835113525,
0.03406029939651489,
-0.0028302844148129225,
0.02865036390721798,
-0.007060177158564329,
-0.02238956280052662,
0.01825885660946369,
0.023244960233569145,
-0.0014215130358934402,
-0.055010270327329636,
0.014141278341412544,
0.01279215607792139,
0.08477811515331268,
-0.03813802823424339,
0.03580360487103462,
0.009384612552821636,
0.008823943324387074,
0.02426939457654953,
-0.03367557376623154,
0.02260201796889305,
0.022808779031038284,
0.002158096292987466,
-0.026721466332674026,
0.029748601838946342,
-0.0013197250664234161,
0.0143132284283638,
0.05467427521944046,
-0.020943745970726013,
0.06076397746801376,
0.0028577009215950966,
0.05015375092625618,
0.06680907309055328,
0.029616229236125946,
0.02445317804813385,
0.013132230378687382,
0.07860226184129715,
0.01045115664601326,
-0.014185830019414425,
0.06340231001377106,
-0.059979647397994995,
0.02368374541401863,
-0.036177560687065125,
0.004074216820299625,
-0.012382873333990574,
-0.021303841844201088,
0.03798479214310646,
0.0055630323477089405,
-0.002933056326583028,
-0.017047863453626633,
-0.018073584884405136,
0.012358259409666061,
0.032335106283426285,
-0.020737165585160255,
-0.014236697927117348,
-0.012092452496290207,
-0.04978358745574951,
0.0035923942923545837,
-0.05448278784751892,
0.0025383206084370613,
-0.007977629080414772,
-0.0352541022002697,
0.004095562733709812,
-0.0672135204076767,
-0.050305839627981186,
-0.051145248115062714,
-0.006317066494375467,
0.04139387607574463,
0.005657485220581293,
0.003964321222156286,
-0.0391610711812973,
0.03945953771471977,
-0.03233814612030983,
-0.034521132707595825,
-0.02471598982810974,
-0.060553714632987976,
-0.0061063701286911964,
-0.04008205235004425,
0.04396127909421921,
0.021114595234394073,
0.021545669063925743,
-0.007514010649174452,
0.011525419540703297,
-0.021056577563285828,
-0.04691355675458908,
0.028297776356339455,
0.03961683437228203,
-0.01592598855495453,
-0.08734039217233658,
0.014152135699987411,
0.002442039782181382,
0.004206270910799503,
-0.03988846018910408,
-0.042527031153440475,
0.06850849837064743,
0.08241502940654755,
0.0007860109908506274,
0.016538701951503754,
-0.023400533944368362,
-0.05622033402323723,
-0.05209583044052124,
-0.025945760309696198,
-0.040473420172929764,
-0.03177680820226669,
-0.011994671076536179,
-0.03610488772392273,
-0.026194097474217415,
-0.03304683044552803,
-0.01621079631149769,
0.0018553836271166801,
0.02243497408926487,
0.0315389446914196,
0.03196189925074577,
0.035314593464136124,
0.03819211572408676,
-0.04417530447244644,
-0.022975394502282143,
0.07554551959037781,
0.023734616115689278,
0.022777099162340164,
-0.07236688584089279,
-0.03567439690232277,
0.05517839640378952,
0.007370611187070608,
-0.0167531855404377,
-0.016590537503361702,
0.0752723291516304,
-0.0017512765480205417,
-0.0026944740675389767,
0.0005345529061742127,
0.0072853961028158665,
-0.04149637743830681,
-0.010474377311766148,
0.012355653569102287,
-0.01976919360458851,
-0.04909633845090866,
-0.016137566417455673,
-0.0006930258241482079,
0.056377459317445755,
-0.03000228852033615,
-0.05169277638196945,
0.00855246838182211,
0.0653749480843544,
0.01692339964210987,
0.0014015902997925878,
-0.023671574890613556,
0.010217376984655857,
-0.05272296071052551,
-0.0345459021627903,
0.011646512895822525,
-0.020786527544260025,
0.005878718104213476,
0.04749877378344536,
0.006835759151726961,
-0.0049387142062187195,
0.02551325038075447,
0.0171847902238369,
0.055518168956041336,
0.007642136421054602,
-0.039876483380794525,
0.017556848004460335,
-0.038930151611566544,
0.019065432250499725,
0.027943551540374756,
-0.04572426527738571,
-0.056910302489995956,
-0.08539848029613495,
-0.01614428497850895,
0.0013487145770341158,
-0.02122141793370247,
-0.01565779186785221,
0.03495972976088524,
-0.029460465535521507,
-0.016094759106636047,
0.009174026548862457,
0.009541559964418411,
0.0509268157184124,
-0.035555873066186905,
0.06459540873765945,
-0.006574631668627262,
0.03440486639738083,
-0.05698394030332565,
0.025426575914025307,
-0.03293639048933983,
0.0107443081215024,
0.006552080158144236,
0.06393326818943024,
0.017386725172400475,
0.03849323093891144,
0.06666838377714157,
0.04923732206225395,
-0.03800665959715843,
0.03269314765930176,
0.04802027344703674,
0.0020032802131026983,
-0.03357651084661484,
0.004090852104127407,
-0.01640699803829193,
-0.02902788482606411,
0.004839678294956684,
-0.029414763674139977,
0.0018687242409214377,
0.015162477269768715,
-0.0010045828530564904,
0.0029680095613002777,
0.010366542264819145,
-0.03695254400372505,
-0.042163047939538956,
-0.054531414061784744,
-0.029911376535892487,
0.02260051853954792,
-0.028433363884687424,
0.04073793441057205,
0.04253644123673439,
0.03221616521477699,
0.06186676397919655,
0.06894680857658386,
-0.00026697025168687105,
-0.05559961125254631,
0.01959109865128994,
0.03479723632335663,
-0.03709486499428749,
-0.0628051608800888,
-0.06840632110834122,
0.03198729455471039,
0.04342158883810043,
0.021081967279314995,
-0.08029156178236008,
0.010825366713106632,
0.057082757353782654,
-0.01506174635142088,
0.04008423164486885,
-0.0063715712167322636,
0.07041498273611069,
0.06428783386945724,
-0.023449888452887535,
0.02601783350110054,
-0.042042430490255356,
0.015229628421366215,
-0.002528934506699443,
0.02499498799443245,
-0.02694251574575901,
-0.013942492194473743,
-0.053716789931058884,
0.02659416012465954,
0.03536337614059448,
0.02204785868525505,
0.047418639063835144,
-0.009542570449411869,
-0.02469102293252945,
0.00814181100577116,
-0.0021351512987166643,
-0.04675407335162163,
0.0005842746468260884,
0.04076182097196579,
0.03114783763885498,
-0.03968961164355278,
-0.004294361919164658,
-0.012142423540353775,
0.005665454547852278,
0.031308021396398544,
-0.01196294091641903,
-0.04451005533337593,
-0.039272770285606384,
0.01764310710132122,
-0.016968179494142532,
-0.020913036540150642,
-0.09523481130599976,
0.03327982500195503,
-0.02472662180662155,
-0.0009676372283138335,
0.04061409831047058,
0.016384566202759743,
0.014660404995083809,
0.04685945063829422,
-0.013843126595020294,
0.018298719078302383,
-0.04549485072493553,
0.022062532603740692,
0.00032365924562327564,
-0.005843916442245245,
-0.019990431144833565,
-0.056305594742298126,
-0.01246495358645916,
-0.007262027356773615,
-0.025122592225670815,
-0.022355468943715096,
-0.0317404679954052,
0.024928107857704163,
-0.007012621965259314,
0.001788279740139842,
-0.0200062096118927,
0.06242939457297325,
-0.038448985666036606,
-0.024030882865190506,
-0.007383039686828852,
-0.03303559869527817,
-0.090655118227005,
-0.045365381985902786,
-0.008990699425339699,
0.019588876515626907,
0.015124690718948841,
0.01792801171541214,
0.02237420342862606,
0.013968894258141518,
0.014981154352426529,
-0.024046747013926506,
0.02700938656926155,
0.0014509663451462984,
-0.05245179682970047,
-0.04099149629473686,
-0.028219757601618767,
0.02847752533853054,
0.05650648474693298,
-0.024723919108510017,
0.03176798298954964,
0.030352167785167694,
-0.04670773819088936,
-0.004764989018440247,
0.026811884716153145,
0.03878490626811981,
-0.07518123090267181,
-0.029101472347974777,
-0.028332188725471497,
-0.024976424872875214,
0.03103407472372055,
-0.018186304718255997,
-0.0058270725421607494,
0.021153468638658524,
0.04040912166237831,
0.032551951706409454,
0.008327207528054714,
-0.05429717153310776,
0.01545136421918869,
-0.02569025382399559,
0.003780353581532836,
-0.05217119678854942,
0.057531945407390594,
-0.05477071925997734,
0.011947784572839737,
-0.009928643703460693,
-0.025614533573389053,
-0.03737912327051163,
0.05069838836789131,
-0.013215937651693821,
-0.0009076092974282801,
0.011042377911508083,
-0.001159240840934217,
-0.03192159906029701,
0.03919760510325432,
-0.0025040460750460625,
0.019818805158138275,
-0.03216646611690521,
0.037956610321998596,
-0.04240363463759422,
-0.011014084331691265,
-0.0237292367964983,
0.00321743986569345,
-0.041242048144340515,
-0.04339718446135521,
-0.021653814241290092,
-0.052260469645261765,
0.021714506670832634,
0.02642158232629299,
0.03991023078560829,
0.04019434005022049,
0.005741865374147892,
-0.015935596078634262,
0.015997063368558884,
-0.06477809697389603,
-0.014615333639085293,
-0.010153969749808311,
0.050373490899801254,
0.006459081545472145,
0.06709476560354233,
0.032265808433294296,
-0.05395485460758209,
-0.052128419280052185,
0.035932980477809906,
0.011497006751596928,
0.007156183011829853,
0.014247060753405094,
0.0676211342215538,
0.03384876996278763,
0.03794249892234802,
-0.025101901963353157,
-0.01477011851966381,
-0.024200234562158585,
-0.02456805109977722,
0.0033970412332564592,
0.014189820736646652,
-0.009272515773773193,
0.00781906209886074,
-0.05107137933373451,
-0.02638423442840576,
0.09273341298103333,
0.02331327460706234,
0.011201418936252594,
0.021099215373396873,
-0.036449652165174484,
0.025278784334659576,
-0.005729766562581062,
-0.04811251908540726,
-0.00850872602313757,
0.0145140141248703,
-0.02513088285923004,
0.07902603596448898,
-0.019251402467489243,
0.020723946392536163,
0.028471440076828003,
0.02419709973037243,
-0.021259909495711327,
0.03457775339484215,
-0.03650593012571335,
0.0332365445792675,
0.05485565960407257,
-0.03925766050815582,
0.016172748059034348,
-0.04099059849977493,
0.05955185741186142,
-0.0895027220249176,
0.05318157374858856,
0.03882749751210213,
0.007479926571249962,
-0.008214234374463558,
-0.025196654722094536,
-0.03623388335108757,
0.01152712106704712,
-0.03648998960852623,
0.07400087267160416,
-0.0030476003885269165,
-0.05555422604084015,
0.03675518557429314,
0.025943918153643608,
-0.07989183813333511,
0.07222465425729752,
0.03525030240416527,
0.0614149309694767,
0.048986781388521194,
0.018778864294290543,
-0.07717044651508331,
0.00852007232606411,
-0.048436567187309265,
0.03725169971585274,
-0.056833088397979736,
0.0032536466605961323,
0.04997868463397026,
-0.047530487179756165,
-0.01130203902721405,
0.031977713108062744,
-0.017978355288505554,
-0.02019968442618847,
0.02081339620053768,
-0.06763124465942383,
-0.0332077220082283,
-0.01608000509440899,
0.02327270619571209,
-0.04075711593031883,
0.006299169268459082,
-0.042812567204236984,
0.0054264916107058525,
0.005952318198978901,
-0.005388100165873766,
-0.0446312315762043,
-0.001722588436678052,
0.02324535697698593,
-0.07841598242521286,
-0.017730195075273514,
0.05066143721342087,
0.011945204809308052,
-0.011239776387810707,
0.03978796675801277,
-0.012365823611617088,
0.024678394198417664,
0.024989554658532143,
0.0030502374283969402,
0.010010345838963985,
-0.04845733195543289,
-0.026920756325125694,
0.02294982224702835,
-0.014279232360422611,
0.02865232527256012,
-0.015262839384377003,
0.03866024687886238,
0.062184158712625504,
0.01922629401087761,
0.017451176419854164,
-0.05465152487158775,
-0.032872702926397324,
0.032624293118715286,
-0.044950686395168304,
0.0117879007011652,
-0.003503828775137663,
-0.05564521253108978,
-0.028582138940691948,
-0.005251665133982897,
-0.0232375655323267,
0.03167741000652313,
-0.03343963623046875,
-0.010676764883100986,
0.02040068432688713,
-0.030451053753495216,
-0.031105084344744682,
-0.06860391795635223,
-0.02832421101629734,
-0.035966482013463974,
0.03874393552541733,
0.02507261373102665,
-0.03603760898113251,
0.016007671132683754,
-0.05996667221188545,
-0.058236464858055115,
0.03954043984413147,
0.030718859285116196,
-0.051783204078674316,
0.06129434332251549,
0.03518126532435417,
-0.028885522857308388,
-0.001147539122030139,
0.046798598021268845,
-0.03204882889986038,
0.009629330597817898,
-0.004656330216675997,
0.021882880479097366,
0.0368429496884346,
0.03501816466450691,
-0.023115249350667,
-0.014034229330718517,
-0.05057448521256447,
-0.05122409015893936,
-0.04409395530819893,
0.007459558080881834,
0.0739176794886589
] |
CAMeL-Lab/bert-base-arabic-camelbert-msa-sixteenth | [
"pytorch",
"tf",
"jax",
"bert",
"fill-mask",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 26 | null | ---
language:
- ar
license: apache-2.0
widget:
- text: "الهدف من الحياة هو [MASK] ."
---
# CAMeLBERT: A collection of pre-trained models for Arabic NLP tasks
## Model description
**CAMeLBERT** is a collection of BERT models pre-trained on Arabic texts with different sizes and variants.
We release pre-trained language models for Modern Standard Arabic (MSA), dialectal Arabic (DA), and classical Arabic (CA), in addition to a model pre-trained on a mix of the three.
We also provide additional models that are pre-trained on a scaled-down set of the MSA variant (half, quarter, eighth, and sixteenth).
The details are described in the paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."*
This model card describes **CAMeLBERT-MSA-sixteenth** (`bert-base-arabic-camelbert-msa-sixteenth`), a model pre-trained on a sixteenth of the full MSA dataset.
||Model|Variant|Size|#Word|
|-|-|:-:|-:|-:|
||`bert-base-arabic-camelbert-mix`|CA,DA,MSA|167GB|17.3B|
||`bert-base-arabic-camelbert-ca`|CA|6GB|847M|
||`bert-base-arabic-camelbert-da`|DA|54GB|5.8B|
||`bert-base-arabic-camelbert-msa`|MSA|107GB|12.6B|
||`bert-base-arabic-camelbert-msa-half`|MSA|53GB|6.3B|
||`bert-base-arabic-camelbert-msa-quarter`|MSA|27GB|3.1B|
||`bert-base-arabic-camelbert-msa-eighth`|MSA|14GB|1.6B|
|✔|`bert-base-arabic-camelbert-msa-sixteenth`|MSA|6GB|746M|
## Intended uses
You can use the released model for either masked language modeling or next sentence prediction.
However, it is mostly intended to be fine-tuned on an NLP task, such as NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
We release our fine-tuninig code [here](https://github.com/CAMeL-Lab/CAMeLBERT).
#### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-sixteenth')
>>> unmasker("الهدف من الحياة هو [MASK] .")
[{'sequence': '[CLS] الهدف من الحياة هو التغيير. [SEP]',
'score': 0.08320745080709457,
'token': 7946,
'token_str': 'التغيير'},
{'sequence': '[CLS] الهدف من الحياة هو التعلم. [SEP]',
'score': 0.04305094853043556,
'token': 12554,
'token_str': 'التعلم'},
{'sequence': '[CLS] الهدف من الحياة هو العمل. [SEP]',
'score': 0.0417640283703804,
'token': 2854,
'token_str': 'العمل'},
{'sequence': '[CLS] الهدف من الحياة هو الحياة. [SEP]',
'score': 0.041371218860149384,
'token': 3696,
'token_str': 'الحياة'},
{'sequence': '[CLS] الهدف من الحياة هو المعرفة. [SEP]',
'score': 0.039794355630874634,
'token': 7344,
'token_str': 'المعرفة'}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`. Otherwise, you could download the models manually.
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-sixteenth')
model = AutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-sixteenth')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AutoTokenizer, TFAutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-sixteenth')
model = TFAutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa-sixteenth')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
## Training data
- MSA (Modern Standard Arabic)
- [The Arabic Gigaword Fifth Edition](https://catalog.ldc.upenn.edu/LDC2011T11)
- [Abu El-Khair Corpus](http://www.abuelkhair.net/index.php/en/arabic/abu-el-khair-corpus)
- [OSIAN corpus](https://vlo.clarin.eu/search;jsessionid=31066390B2C9E8C6304845BA79869AC1?1&q=osian)
- [Arabic Wikipedia](https://archive.org/details/arwiki-20190201)
- The unshuffled version of the Arabic [OSCAR corpus](https://oscar-corpus.com/)
## Training procedure
We use [the original implementation](https://github.com/google-research/bert) released by Google for pre-training.
We follow the original English BERT model's hyperparameters for pre-training, unless otherwise specified.
### Preprocessing
- After extracting the raw text from each corpus, we apply the following pre-processing.
- We first remove invalid characters and normalize white spaces using the utilities provided by [the original BERT implementation](https://github.com/google-research/bert/blob/eedf5716ce1268e56f0a50264a88cafad334ac61/tokenization.py#L286-L297).
- We also remove lines without any Arabic characters.
- We then remove diacritics and kashida using [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools).
- Finally, we split each line into sentences with a heuristics-based sentence segmenter.
- We train a WordPiece tokenizer on the entire dataset (167 GB text) with a vocabulary size of 30,000 using [HuggingFace's tokenizers](https://github.com/huggingface/tokenizers).
- We do not lowercase letters nor strip accents.
### Pre-training
- The model was trained on a single cloud TPU (`v3-8`) for one million steps in total.
- The first 90,000 steps were trained with a batch size of 1,024 and the rest was trained with a batch size of 256.
- The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%.
- We use whole word masking and a duplicate factor of 10.
- We set max predictions per sequence to 20 for the dataset with max sequence length of 128 tokens and 80 for the dataset with max sequence length of 512 tokens.
- We use a random seed of 12345, masked language model probability of 0.15, and short sequence probability of 0.1.
- The optimizer used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01, learning rate warmup for 10,000 steps and linear decay of the learning rate after.
## Evaluation results
- We evaluate our pre-trained language models on five NLP tasks: NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
- We fine-tune and evaluate the models using 12 dataset.
- We used Hugging Face's transformers to fine-tune our CAMeLBERT models.
- We used transformers `v3.1.0` along with PyTorch `v1.5.1`.
- The fine-tuning was done by adding a fully connected linear layer to the last hidden state.
- We use \\(F_{1}\\) score as a metric for all tasks.
- Code used for fine-tuning is available [here](https://github.com/CAMeL-Lab/CAMeLBERT).
### Results
| Task | Dataset | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | --------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| NER | ANERcorp | MSA | 80.8% | 67.9% | 74.1% | 82.4% | 82.0% | 82.1% | 82.6% | 80.8% |
| POS | PATB (MSA) | MSA | 98.1% | 97.8% | 97.7% | 98.3% | 98.2% | 98.3% | 98.2% | 98.2% |
| | ARZTB (EGY) | DA | 93.6% | 92.3% | 92.7% | 93.6% | 93.6% | 93.7% | 93.6% | 93.6% |
| | Gumar (GLF) | DA | 97.3% | 97.7% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% |
| SA | ASTD | MSA | 76.3% | 69.4% | 74.6% | 76.9% | 76.0% | 76.8% | 76.7% | 75.3% |
| | ArSAS | MSA | 92.7% | 89.4% | 91.8% | 93.0% | 92.6% | 92.5% | 92.5% | 92.3% |
| | SemEval | MSA | 69.0% | 58.5% | 68.4% | 72.1% | 70.7% | 72.8% | 71.6% | 71.2% |
| DID | MADAR-26 | DA | 62.9% | 61.9% | 61.8% | 62.6% | 62.0% | 62.8% | 62.0% | 62.2% |
| | MADAR-6 | DA | 92.5% | 91.5% | 92.2% | 91.9% | 91.8% | 92.2% | 92.1% | 92.0% |
| | MADAR-Twitter-5 | MSA | 75.7% | 71.4% | 74.2% | 77.6% | 78.5% | 77.3% | 77.7% | 76.2% |
| | NADI | DA | 24.7% | 17.3% | 20.1% | 24.9% | 24.6% | 24.6% | 24.9% | 23.8% |
| Poetry | APCD | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
### Results (Average)
| | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| Variant-wise-average<sup>[[1]](#footnote-1)</sup> | MSA | 82.1% | 75.7% | 80.1% | 83.4% | 83.0% | 83.3% | 83.2% | 82.3% |
| | DA | 74.4% | 72.1% | 72.9% | 74.2% | 74.0% | 74.3% | 74.1% | 73.9% |
| | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
| Macro-Average | ALL | 78.7% | 74.7% | 77.1% | 79.2% | 79.0% | 79.2% | 79.1% | 78.6% |
<a name="footnote-1">[1]</a>: Variant-wise-average refers to average over a group of tasks in the same language variant.
## Acknowledgements
This research was supported with Cloud TPUs from Google’s TensorFlow Research Cloud (TFRC).
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
```
| [
0.009115229360759258,
0.004741878714412451,
-0.024862611666321754,
0.07483778148889542,
0.045178286731243134,
0.01601204089820385,
-0.0003294665366411209,
-0.02532191574573517,
-0.01884850300848484,
0.06417131423950195,
0.004955957178026438,
-0.025287209078669548,
0.008466479368507862,
0.04044812172651291,
-0.05345139652490616,
-0.020223846659064293,
0.008125531487166882,
-0.022713424637913704,
-0.0507056824862957,
-0.0323324054479599,
-0.01462221797555685,
0.002997150644659996,
0.0036522336304187775,
0.018735509365797043,
0.0065781171433627605,
0.007926554419100285,
-0.016923660412430763,
0.05863053351640701,
0.021086767315864563,
-0.06106950342655182,
-0.018175780773162842,
-0.026795553043484688,
-0.03941553458571434,
-0.024325385689735413,
-0.03326978534460068,
0.006989863235503435,
0.000075215742981527,
0.0027823629789054394,
0.0174914188683033,
0.06337696313858032,
-0.016906913369894028,
0.002100032288581133,
-0.009909464046359062,
-0.038637902587652206,
0.020771386101841927,
-0.0032198913395404816,
-0.042312636971473694,
0.013000918552279472,
0.0451606921851635,
-0.06091175600886345,
-0.06945305317640305,
-0.04149695113301277,
-0.04054776206612587,
0.018406473100185394,
0.006967845838516951,
-0.009845660999417305,
-0.026941733434796333,
-0.023869432508945465,
0.08083948493003845,
-0.06412394344806671,
-0.053677964955568314,
0.0008252880652435124,
-0.053790174424648285,
0.02416248805820942,
0.025618625804781914,
-0.02761567011475563,
0.02236933819949627,
-0.045610811561346054,
0.0589631088078022,
-0.018153978511691093,
0.029299959540367126,
-0.021426042541861534,
0.008406639099121094,
-0.07904934138059616,
0.02638937532901764,
-0.02944769710302353,
0.03948753699660301,
0.049323584884405136,
-0.044808972626924515,
0.06732892990112305,
0.0007420525071211159,
-0.010137832723557949,
0.030982187017798424,
-0.023027760908007622,
-0.007666572462767363,
0.026154911145567894,
-0.05113209784030914,
-0.0027791191823780537,
0.00984148308634758,
0.02272869646549225,
-0.042097825556993484,
-0.03432543948292732,
-0.03669104352593422,
-0.033649906516075134,
-0.013843271881341934,
0.020286479964852333,
0.029656585305929184,
-0.01892947591841221,
0.052909426391124725,
0.012547319754958153,
0.0366063229739666,
0.03830665722489357,
-0.03391210734844208,
0.05271722376346588,
-0.02940424717962742,
-0.022070005536079407,
-0.037369512021541595,
-0.036132290959358215,
-0.019664853811264038,
0.025322703644633293,
0.0017467677826061845,
-0.05105273053050041,
-0.05571326985955238,
0.05733494088053703,
-0.025473810732364655,
-0.04196711257100105,
0.02888220176100731,
-0.02871830202639103,
-0.06504561007022858,
-0.035698626190423965,
0.037153348326683044,
-0.014898729510605335,
0.021856680512428284,
0.015041030943393707,
-0.0792270302772522,
0.022280599921941757,
-0.05768623203039169,
-0.0227334126830101,
-0.015587355010211468,
0.033171821385622025,
-0.0026035539340227842,
0.041034940630197525,
0.01709861122071743,
-0.07421261817216873,
0.008516200818121433,
-0.018883246928453445,
-0.03839675709605217,
0.04217737913131714,
0.017728891223669052,
0.11010821908712387,
-0.036646850407123566,
-0.05849302187561989,
0.025343038141727448,
0.0032454102765768766,
-0.021831313148140907,
-0.006084630731493235,
0.01594146527349949,
-0.023982776328921318,
-0.01814519241452217,
-0.015318729914724827,
0.056463729590177536,
-0.053860004991292953,
0.015105306170880795,
0.05701427534222603,
0.0019206334836781025,
0.024943234398961067,
-0.04393109306693077,
-0.01720675639808178,
-0.0029584490694105625,
0.0016283636214211583,
-0.02450566366314888,
0.038480304181575775,
-0.008700571954250336,
-0.03566191345453262,
-0.04085767641663551,
-0.036330755800008774,
-0.0036380004603415728,
0.08470044285058975,
0.010246711783111095,
0.0030048273038119078,
-0.018317878246307373,
0.0016691078199073672,
0.04437147080898285,
0.006085498258471489,
-0.05194622650742531,
0.025825055316090584,
0.04941995069384575,
0.010871837846934795,
-0.020929239690303802,
0.0786392092704773,
-0.0010477579198777676,
-0.013787325471639633,
-0.03009307011961937,
0.007066140417009592,
0.008806966245174408,
-0.017371034249663353,
0.048798590898513794,
0.03920614719390869,
-0.010477496311068535,
-0.03844049200415611,
-0.025022931396961212,
0.07108600437641144,
0.00030233306461013854,
0.00795771088451147,
0.005059182643890381,
-0.012883443385362625,
-0.051912497729063034,
0.038787465542554855,
-0.017718276008963585,
0.01032280270010233,
-0.03858604282140732,
0.010213319212198257,
0.007969937287271023,
0.03058449737727642,
0.04719378799200058,
0.051629241555929184,
-0.007444395683705807,
0.06348338723182678,
-0.019284529611468315,
0.008812444284558296,
-0.05172130465507507,
-0.04477066919207573,
-0.005970708094537258,
0.039624929428100586,
0.031089987605810165,
0.04660193249583244,
-0.015944093465805054,
-0.04245314374566078,
0.03735620900988579,
0.060193050652742386,
0.044343821704387665,
0.01210654154419899,
-0.03227720782160759,
-0.006460497155785561,
0.03686658665537834,
0.06174439191818237,
-0.06865748763084412,
-0.035847101360559464,
0.03034663386642933,
0.05963430926203728,
-0.026020675897598267,
0.0071257855743169785,
-0.008061344735324383,
0.027750199660658836,
-0.03516044467687607,
-0.07392897456884384,
0.048113785684108734,
0.033876363188028336,
0.006347572430968285,
0.025483928620815277,
0.0004723021120298654,
0.005946971941739321,
0.019568320363759995,
0.041734300553798676,
0.0008179770666174591,
-0.03690360486507416,
0.004347166512161493,
0.01143496111035347,
0.06677700579166412,
-0.04388507828116417,
0.026258550584316254,
-0.010461206547915936,
0.026619192212820053,
0.029486050829291344,
-0.021542072296142578,
0.03363344445824623,
0.007979256100952625,
0.011851451359689236,
-0.042721305042505264,
0.04124469682574272,
-0.009765524417161942,
0.01696387678384781,
0.05744164437055588,
-0.012699143961071968,
0.050834134221076965,
-0.0012818702962249517,
0.058624930679798126,
0.056893136352300644,
0.030943600460886955,
0.014256929978728294,
0.0052867610938847065,
0.07801482081413269,
0.0135032394900918,
-0.014556469395756721,
0.07320970296859741,
-0.0533822663128376,
0.012667723000049591,
-0.0552646666765213,
0.011092616245150566,
0.002423055237159133,
-0.014583472162485123,
0.023250138387084007,
0.013734190724790096,
0.007889403030276299,
-0.004574477672576904,
-0.01842748373746872,
0.0011881187092512846,
0.03523129224777222,
-0.0307619608938694,
-0.010724996216595173,
-0.023681435734033585,
-0.032948389649391174,
0.006362217012792826,
-0.06525920331478119,
-0.011867913417518139,
-0.016001304611563683,
-0.03537561371922493,
0.0017249074298888445,
-0.0815439447760582,
-0.025012122467160225,
-0.0503503791987896,
-0.010757619515061378,
0.016813909634947777,
0.01296174991875887,
-0.00949826743453741,
-0.04130298271775246,
0.029449108988046646,
-0.05066109821200371,
-0.023283766582608223,
-0.02823726274073124,
-0.0660296157002449,
-0.03158917650580406,
-0.042011599987745285,
0.05004699155688286,
0.028121426701545715,
0.0007134085171855986,
0.00912945531308651,
0.027469221502542496,
-0.007383024785667658,
-0.040458809584379196,
0.02121080458164215,
0.03960420563817024,
-0.03519843891263008,
-0.06296970695257187,
0.010979380458593369,
-0.0023148886393755674,
0.0008275010623037815,
-0.021484307944774628,
-0.029636645689606667,
0.08792401850223541,
0.08301645517349243,
0.011113843880593777,
0.004262882750481367,
-0.012488117441534996,
-0.06038687378168106,
-0.049233198165893555,
-0.019498301669955254,
-0.04637274518609047,
-0.022841257974505424,
-0.025397930294275284,
-0.028567302972078323,
-0.02785939909517765,
-0.05254204571247101,
0.0048309811390936375,
0.002917444333434105,
0.01695883274078369,
0.045288216322660446,
0.03991800546646118,
0.020559415221214294,
0.05081769824028015,
-0.03892069682478905,
-0.019964246079325676,
0.06758039444684982,
0.008836422115564346,
0.026099758222699165,
-0.07163460552692413,
-0.025671007111668587,
0.051792342215776443,
0.006958744488656521,
-0.009087827987968922,
-0.0195584949105978,
0.08082880824804306,
-0.004499428905546665,
-0.009397706016898155,
0.006410602014511824,
-0.00010848326201085001,
-0.03630878031253815,
-0.01698021963238716,
0.0109840277582407,
-0.01403032150119543,
-0.05209318548440933,
-0.01884562149643898,
0.002766902558505535,
0.057278331369161606,
-0.03659377619624138,
-0.05350010097026825,
-0.005458938889205456,
0.05739497393369675,
-0.0020515024662017822,
-0.007174948696047068,
-0.027393389493227005,
0.008329198695719242,
-0.04409659653902054,
-0.03258725628256798,
-0.0023338363971561193,
-0.010698745958507061,
-0.007956242188811302,
0.039191409945487976,
0.01574220508337021,
-0.016465172171592712,
0.016707876697182655,
0.028832828626036644,
0.056116681545972824,
0.00953628495335579,
-0.0488872267305851,
0.031495943665504456,
-0.02239922620356083,
0.01782037317752838,
-0.0034911881666630507,
-0.03895203769207001,
-0.0528680644929409,
-0.0737389326095581,
-0.004493736196309328,
0.0016228376189246774,
-0.04585622623562813,
-0.025846144184470177,
0.040501948446035385,
-0.031289923936128616,
0.004397593438625336,
-0.009118336252868176,
0.029866807162761688,
0.014330516569316387,
-0.025739416480064392,
0.07074223458766937,
-0.0022760462015867233,
0.0444103442132473,
-0.0704512745141983,
0.03276429697871208,
-0.042144957929849625,
0.004729780834168196,
0.009581632912158966,
0.0631193071603775,
0.020599940791726112,
0.05255471169948578,
0.07197388261556625,
0.04762469232082367,
-0.03563511371612549,
0.044691432267427444,
0.05594542250037193,
0.0076217446476221085,
-0.03966934233903885,
-0.005688969977200031,
-0.01834649220108986,
-0.021005772054195404,
-0.014743148349225521,
-0.005357707384973764,
-0.018012046813964844,
0.022425901144742966,
-0.0046862089075148106,
0.00377976568415761,
0.014491916634142399,
-0.031827762722969055,
-0.03729013353586197,
-0.05167218670248985,
-0.03988492116332054,
0.014761331491172314,
-0.03590930998325348,
0.05266481637954712,
0.022084319964051247,
0.022198162972927094,
0.07330625504255295,
0.06915215402841568,
-0.007276273798197508,
-0.02785455621778965,
0.011520673520863056,
0.0371721088886261,
-0.030406257137656212,
-0.05385582149028778,
-0.0584726445376873,
0.04924483597278595,
0.04755960404872894,
0.01528157014399767,
-0.08678103983402252,
-0.003441017586737871,
0.05500108748674393,
-0.024574561044573784,
0.04826679825782776,
-0.014200931414961815,
0.05672798678278923,
0.04843815416097641,
-0.0373731330037117,
0.026930252090096474,
-0.016744131222367287,
0.016486166045069695,
-0.007251928094774485,
0.003442402696236968,
-0.01631300337612629,
-0.032719261944293976,
-0.06294046342372894,
0.020034022629261017,
0.028675496578216553,
0.02949466183781624,
0.05962328240275383,
-0.016388455405831337,
-0.03418503701686859,
0.01967398263514042,
0.010204438120126724,
-0.03611183539032936,
0.003191187512129545,
0.03431026265025139,
0.038781873881816864,
-0.04359795153141022,
0.002232918282970786,
-0.01827937550842762,
-0.006160767748951912,
0.019458221271634102,
0.009813303127884865,
-0.05079267546534538,
-0.05607084184885025,
0.004010798409581184,
-0.01940547116100788,
-0.01854056306183338,
-0.09085223823785782,
0.037654656916856766,
-0.025642067193984985,
-0.00709411408752203,
0.027479922398924828,
0.01050526276230812,
0.01718170754611492,
0.0510127879679203,
0.013560707680881023,
0.015863418579101562,
-0.037521157413721085,
0.04658251628279686,
-0.008465693332254887,
-0.010029195807874203,
-0.021915221586823463,
-0.050624094903469086,
0.00943751446902752,
-0.013844581320881844,
-0.01085872296243906,
-0.03671387955546379,
-0.01445029117166996,
0.017945589497685432,
-0.011813812889158726,
-0.0032895607873797417,
-0.030042234808206558,
0.05434831604361534,
-0.03354549780488014,
-0.038898762315511703,
-0.02637125924229622,
-0.03354986011981964,
-0.07808319479227066,
-0.0635339766740799,
-0.004658740945160389,
0.023827238008379936,
0.0156045937910676,
0.018698396161198616,
0.020617729052901268,
0.012114331126213074,
0.01704266294836998,
-0.029015401378273964,
0.033318549394607544,
-0.005512579809874296,
-0.0485297366976738,
-0.054847750812768936,
-0.015859080478549004,
0.035375773906707764,
0.0325559638440609,
-0.027069352567195892,
0.031868964433670044,
0.02942730113863945,
-0.03244038671255112,
0.01092623546719551,
0.03116263635456562,
0.02836746536195278,
-0.06990674138069153,
-0.03871682286262512,
-0.028248073533177376,
-0.05084557458758354,
0.05122436583042145,
-0.0112166041508317,
-0.004350258968770504,
0.02693663351237774,
0.04069920629262924,
0.038864076137542725,
0.0033587676007300615,
-0.04216533154249191,
0.022152643650770187,
-0.02645973302423954,
0.015630336478352547,
-0.04159984737634659,
0.045275501906871796,
-0.039895541965961456,
0.01212990377098322,
-0.003057473339140415,
-0.02391279861330986,
-0.021448824554681778,
0.04361848533153534,
-0.020227573812007904,
-0.018323246389627457,
-0.004870702978223562,
0.016520263627171516,
-0.02625024877488613,
0.04314665496349335,
-0.02023613080382347,
0.03261278197169304,
-0.021277165040373802,
0.05573888123035431,
-0.030667081475257874,
-0.013687740080058575,
-0.03306984156370163,
-0.00031150077120400965,
-0.032651178538799286,
-0.022375579923391342,
-0.017240146175026894,
-0.05177126079797745,
0.024415863677859306,
0.03757975995540619,
0.05096198990941048,
0.04525478929281235,
-0.00023920051171444356,
-0.0023617974948138,
0.02257712185382843,
-0.05051042139530182,
-0.008631107397377491,
-0.011039121076464653,
0.03698624297976494,
0.013800418935716152,
0.06953731179237366,
0.03426950424909592,
-0.04602963849902153,
-0.05911661311984062,
0.039215441793203354,
0.02000003680586815,
0.022677775472402573,
0.016254305839538574,
0.06722351908683777,
0.02902204357087612,
0.043369174003601074,
-0.02253943867981434,
-0.0021884304005652666,
-0.016343573108315468,
-0.037691857665777206,
0.01397756952792406,
0.005877895280718803,
0.003643557894974947,
0.003326455829665065,
-0.03337448090314865,
-0.036685504019260406,
0.07784716784954071,
0.029416805133223534,
-0.00477076880633831,
0.01723359525203705,
-0.029091164469718933,
0.025489332154393196,
-0.011301933787763119,
-0.05422776937484741,
-0.005371015053242445,
0.002792114159092307,
-0.04130561277270317,
0.06748200953006744,
-0.010417889803647995,
0.03307520970702171,
0.032252516597509384,
0.011980105191469193,
-0.003967063035815954,
0.05312701687216759,
-0.04379860311746597,
0.03209870681166649,
0.030349867418408394,
-0.04623580351471901,
0.01933983527123928,
-0.03755027428269386,
0.07669790834188461,
-0.09495698660612106,
0.059160057455301285,
0.028268838301301003,
0.015033487230539322,
0.00999224092811346,
-0.009646463207900524,
-0.02696368470788002,
0.002797400578856468,
-0.041786547750234604,
0.07306012511253357,
0.011679375544190407,
-0.05014815181493759,
0.03207722678780556,
0.03634748235344887,
-0.0639960840344429,
0.07865670323371887,
0.04752420261502266,
0.06450650095939636,
0.03961542993783951,
0.03285515680909157,
-0.06154182180762291,
0.005378998816013336,
-0.03528507426381111,
0.02927972376346588,
-0.06291212886571884,
-0.004368253517895937,
0.04847463592886925,
-0.04581296071410179,
-0.008471233770251274,
0.028396401554346085,
-0.02387743815779686,
-0.016502106562256813,
0.04073178768157959,
-0.05761585012078285,
-0.059188760817050934,
-0.008953344076871872,
0.022389676421880722,
-0.057544559240341187,
0.002774640452116728,
-0.045853398740291595,
0.006018079351633787,
0.005840386264026165,
-0.02050137333571911,
-0.06981826573610306,
0.00930639449506998,
0.04034681245684624,
-0.06725094467401505,
-0.03013351373374462,
0.0775361955165863,
0.0077626449055969715,
-0.023404009640216827,
0.0352473109960556,
-0.02102751098573208,
0.00638986099511385,
0.030613502487540245,
0.00695355050265789,
0.01774250715970993,
-0.05141487345099449,
-0.02639002911746502,
0.005540419835597277,
-0.01694234274327755,
0.011946157552301884,
-0.015177571214735508,
0.03294463828206062,
0.06522901356220245,
0.039521001279354095,
0.028324289247393608,
-0.05010196939110756,
-0.02265920303761959,
0.04505245015025139,
-0.05492378771305084,
-0.005177763756364584,
0.0008160148863680661,
-0.04275178909301758,
-0.03221674636006355,
-0.008379669860005379,
-0.029808754101395607,
0.04382803291082382,
-0.052761510014534,
-0.013303614221513271,
-0.004415892064571381,
-0.03194032981991768,
-0.039415277540683746,
-0.09716635942459106,
-0.01611042208969593,
-0.04338160529732704,
0.03760901466012001,
0.004430068656802177,
-0.03511986508965492,
0.03008006140589714,
-0.04943277686834335,
-0.05721238628029823,
0.032980695366859436,
0.027240483090281487,
-0.06349610537290573,
0.04639608412981033,
0.04099456965923309,
-0.03326958045363426,
-0.0034521010238677263,
0.04648442938923836,
-0.026377849280834198,
0.004388775676488876,
0.008165298961102962,
0.00561899458989501,
0.023689258843660355,
0.027012158185243607,
-0.02138308435678482,
-0.0188613161444664,
-0.05227182060480118,
-0.05296947807073593,
-0.024298345670104027,
0.0024417059030383825,
0.056390974670648575
] |
CAMeL-Lab/bert-base-arabic-camelbert-msa | [
"pytorch",
"tf",
"jax",
"bert",
"fill-mask",
"ar",
"arxiv:2103.06678",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 2,967 | 2021-03-11T11:20:49Z | ---
language:
- ar
license: apache-2.0
widget:
- text: "الهدف من الحياة هو [MASK] ."
---
# CAMeLBERT: A collection of pre-trained models for Arabic NLP tasks
## Model description
**CAMeLBERT** is a collection of BERT models pre-trained on Arabic texts with different sizes and variants.
We release pre-trained language models for Modern Standard Arabic (MSA), dialectal Arabic (DA), and classical Arabic (CA), in addition to a model pre-trained on a mix of the three.
We also provide additional models that are pre-trained on a scaled-down set of the MSA variant (half, quarter, eighth, and sixteenth).
The details are described in the paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678)."*
This model card describes **CAMeLBERT-MSA** (`bert-base-arabic-camelbert-msa`), a model pre-trained on the entire MSA dataset.
||Model|Variant|Size|#Word|
|-|-|:-:|-:|-:|
||`bert-base-arabic-camelbert-mix`|CA,DA,MSA|167GB|17.3B|
||`bert-base-arabic-camelbert-ca`|CA|6GB|847M|
||`bert-base-arabic-camelbert-da`|DA|54GB|5.8B|
|✔|`bert-base-arabic-camelbert-msa`|MSA|107GB|12.6B|
||`bert-base-arabic-camelbert-msa-half`|MSA|53GB|6.3B|
||`bert-base-arabic-camelbert-msa-quarter`|MSA|27GB|3.1B|
||`bert-base-arabic-camelbert-msa-eighth`|MSA|14GB|1.6B|
||`bert-base-arabic-camelbert-msa-sixteenth`|MSA|6GB|746M|
## Intended uses
You can use the released model for either masked language modeling or next sentence prediction.
However, it is mostly intended to be fine-tuned on an NLP task, such as NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
We release our fine-tuninig code [here](https://github.com/CAMeL-Lab/CAMeLBERT).
#### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='CAMeL-Lab/bert-base-arabic-camelbert-msa')
>>> unmasker("الهدف من الحياة هو [MASK] .")
[{'sequence': '[CLS] الهدف من الحياة هو العمل. [SEP]',
'score': 0.08507660031318665,
'token': 2854,
'token_str': 'العمل'},
{'sequence': '[CLS] الهدف من الحياة هو الحياة. [SEP]',
'score': 0.058905381709337234,
'token': 3696, 'token_str': 'الحياة'},
{'sequence': '[CLS] الهدف من الحياة هو النجاح. [SEP]',
'score': 0.04660581797361374, 'token': 6232,
'token_str': 'النجاح'},
{'sequence': '[CLS] الهدف من الحياة هو الربح. [SEP]',
'score': 0.04156001657247543,
'token': 12413, 'token_str': 'الربح'},
{'sequence': '[CLS] الهدف من الحياة هو الحب. [SEP]',
'score': 0.03534102067351341,
'token': 3088,
'token_str': 'الحب'}]
```
*Note*: to download our models, you would need `transformers>=3.5.0`. Otherwise, you could download the models manually.
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa')
model = AutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AutoTokenizer, TFAutoModel
tokenizer = AutoTokenizer.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa')
model = TFAutoModel.from_pretrained('CAMeL-Lab/bert-base-arabic-camelbert-msa')
text = "مرحبا يا عالم."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
## Training data
- MSA (Modern Standard Arabic)
- [The Arabic Gigaword Fifth Edition](https://catalog.ldc.upenn.edu/LDC2011T11)
- [Abu El-Khair Corpus](http://www.abuelkhair.net/index.php/en/arabic/abu-el-khair-corpus)
- [OSIAN corpus](https://vlo.clarin.eu/search;jsessionid=31066390B2C9E8C6304845BA79869AC1?1&q=osian)
- [Arabic Wikipedia](https://archive.org/details/arwiki-20190201)
- The unshuffled version of the Arabic [OSCAR corpus](https://oscar-corpus.com/)
## Training procedure
We use [the original implementation](https://github.com/google-research/bert) released by Google for pre-training.
We follow the original English BERT model's hyperparameters for pre-training, unless otherwise specified.
### Preprocessing
- After extracting the raw text from each corpus, we apply the following pre-processing.
- We first remove invalid characters and normalize white spaces using the utilities provided by [the original BERT implementation](https://github.com/google-research/bert/blob/eedf5716ce1268e56f0a50264a88cafad334ac61/tokenization.py#L286-L297).
- We also remove lines without any Arabic characters.
- We then remove diacritics and kashida using [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools).
- Finally, we split each line into sentences with a heuristics-based sentence segmenter.
- We train a WordPiece tokenizer on the entire dataset (167 GB text) with a vocabulary size of 30,000 using [HuggingFace's tokenizers](https://github.com/huggingface/tokenizers).
- We do not lowercase letters nor strip accents.
### Pre-training
- The model was trained on a single cloud TPU (`v3-8`) for one million steps in total.
- The first 90,000 steps were trained with a batch size of 1,024 and the rest was trained with a batch size of 256.
- The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%.
- We use whole word masking and a duplicate factor of 10.
- We set max predictions per sequence to 20 for the dataset with max sequence length of 128 tokens and 80 for the dataset with max sequence length of 512 tokens.
- We use a random seed of 12345, masked language model probability of 0.15, and short sequence probability of 0.1.
- The optimizer used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01, learning rate warmup for 10,000 steps and linear decay of the learning rate after.
## Evaluation results
- We evaluate our pre-trained language models on five NLP tasks: NER, POS tagging, sentiment analysis, dialect identification, and poetry classification.
- We fine-tune and evaluate the models using 12 dataset.
- We used Hugging Face's transformers to fine-tune our CAMeLBERT models.
- We used transformers `v3.1.0` along with PyTorch `v1.5.1`.
- The fine-tuning was done by adding a fully connected linear layer to the last hidden state.
- We use \\(F_{1}\\) score as a metric for all tasks.
- Code used for fine-tuning is available [here](https://github.com/CAMeL-Lab/CAMeLBERT).
### Results
| Task | Dataset | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | --------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| NER | ANERcorp | MSA | 80.8% | 67.9% | 74.1% | 82.4% | 82.0% | 82.1% | 82.6% | 80.8% |
| POS | PATB (MSA) | MSA | 98.1% | 97.8% | 97.7% | 98.3% | 98.2% | 98.3% | 98.2% | 98.2% |
| | ARZTB (EGY) | DA | 93.6% | 92.3% | 92.7% | 93.6% | 93.6% | 93.7% | 93.6% | 93.6% |
| | Gumar (GLF) | DA | 97.3% | 97.7% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% | 97.9% |
| SA | ASTD | MSA | 76.3% | 69.4% | 74.6% | 76.9% | 76.0% | 76.8% | 76.7% | 75.3% |
| | ArSAS | MSA | 92.7% | 89.4% | 91.8% | 93.0% | 92.6% | 92.5% | 92.5% | 92.3% |
| | SemEval | MSA | 69.0% | 58.5% | 68.4% | 72.1% | 70.7% | 72.8% | 71.6% | 71.2% |
| DID | MADAR-26 | DA | 62.9% | 61.9% | 61.8% | 62.6% | 62.0% | 62.8% | 62.0% | 62.2% |
| | MADAR-6 | DA | 92.5% | 91.5% | 92.2% | 91.9% | 91.8% | 92.2% | 92.1% | 92.0% |
| | MADAR-Twitter-5 | MSA | 75.7% | 71.4% | 74.2% | 77.6% | 78.5% | 77.3% | 77.7% | 76.2% |
| | NADI | DA | 24.7% | 17.3% | 20.1% | 24.9% | 24.6% | 24.6% | 24.9% | 23.8% |
| Poetry | APCD | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
### Results (Average)
| | Variant | Mix | CA | DA | MSA | MSA-1/2 | MSA-1/4 | MSA-1/8 | MSA-1/16 |
| -------------------- | ------- | ----- | ----- | ----- | ----- | ------- | ------- | ------- | -------- |
| Variant-wise-average<sup>[[1]](#footnote-1)</sup> | MSA | 82.1% | 75.7% | 80.1% | 83.4% | 83.0% | 83.3% | 83.2% | 82.3% |
| | DA | 74.4% | 72.1% | 72.9% | 74.2% | 74.0% | 74.3% | 74.1% | 73.9% |
| | CA | 79.8% | 80.9% | 79.6% | 79.7% | 79.9% | 80.0% | 79.7% | 79.8% |
| Macro-Average | ALL | 78.7% | 74.7% | 77.1% | 79.2% | 79.0% | 79.2% | 79.1% | 78.6% |
<a name="footnote-1">[1]</a>: Variant-wise-average refers to average over a group of tasks in the same language variant.
## Acknowledgements
This research was supported with Cloud TPUs from Google’s TensorFlow Research Cloud (TFRC).
## Citation
```bibtex
@inproceedings{inoue-etal-2021-interplay,
title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models",
author = "Inoue, Go and
Alhafni, Bashar and
Baimukan, Nurpeiis and
Bouamor, Houda and
Habash, Nizar",
booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop",
month = apr,
year = "2021",
address = "Kyiv, Ukraine (Online)",
publisher = "Association for Computational Linguistics",
abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.",
}
```
| [
0.009152236394584179,
0.004102387931197882,
-0.023309893906116486,
0.07480844110250473,
0.04501563310623169,
0.014249362982809544,
0.0008908639429137111,
-0.024252813309431076,
-0.018410630524158478,
0.06405945122241974,
0.0034831175580620766,
-0.02415807917714119,
0.011403733864426613,
0.04240591824054718,
-0.053084563463926315,
-0.01955508254468441,
0.0056141517125070095,
-0.02254660613834858,
-0.04961663484573364,
-0.030852582305669785,
-0.014208939857780933,
0.00374239357188344,
0.004218199290335178,
0.018466956913471222,
0.004662042949348688,
0.0086197629570961,
-0.019056810066103935,
0.05785457789897919,
0.021618805825710297,
-0.05966433882713318,
-0.017756551504135132,
-0.02612283080816269,
-0.041528474539518356,
-0.023231925442814827,
-0.034125667065382004,
0.0064860195852816105,
0.00030532502569258213,
0.0011882779654115438,
0.01751979999244213,
0.06380506604909897,
-0.01610974222421646,
0.0023589390330016613,
-0.011706673540174961,
-0.03996165096759796,
0.01983596384525299,
-0.0028671834152191877,
-0.04224776476621628,
0.010930733755230904,
0.045998360961675644,
-0.061401963233947754,
-0.06878195703029633,
-0.041372545063495636,
-0.0406021811068058,
0.01782706193625927,
0.005974510218948126,
-0.00933579821139574,
-0.02491508610546589,
-0.023941248655319214,
0.08022040128707886,
-0.06394723057746887,
-0.05524243041872978,
-0.0003611773136071861,
-0.055365268141031265,
0.0238037109375,
0.025227166712284088,
-0.027547156438231468,
0.020940519869327545,
-0.045924752950668335,
0.060972992330789566,
-0.021507831290364265,
0.03012382797896862,
-0.021815096959471703,
0.008306347765028477,
-0.07879139482975006,
0.026667678728699684,
-0.031126508489251137,
0.04094930365681648,
0.04863683506846428,
-0.043057382106781006,
0.06932048499584198,
0.003157532773911953,
-0.011400755494832993,
0.029243312776088715,
-0.02162076346576214,
-0.00825651828199625,
0.02681826800107956,
-0.04986690729856491,
-0.0008516226662322879,
0.011397456750273705,
0.022813692688941956,
-0.04181026667356491,
-0.03450269252061844,
-0.03348604962229729,
-0.03507911041378975,
-0.013946195133030415,
0.020413944497704506,
0.03165365010499954,
-0.01957901567220688,
0.052423689514398575,
0.012821455486118793,
0.03596852347254753,
0.03826751932501793,
-0.03206075727939606,
0.05450126528739929,
-0.029818357899785042,
-0.023468220606446266,
-0.03766011446714401,
-0.03656269982457161,
-0.021333418786525726,
0.02279455028474331,
0.0021912443917244673,
-0.05122562497854233,
-0.054736290127038956,
0.056069597601890564,
-0.02763563022017479,
-0.042808059602975845,
0.027664143592119217,
-0.029633089900016785,
-0.06385008990764618,
-0.03618304058909416,
0.039098747074604034,
-0.014684127643704414,
0.02150067128241062,
0.014184347353875637,
-0.07801635563373566,
0.02264297567307949,
-0.05901432782411575,
-0.021502645686268806,
-0.015416882000863552,
0.03331959620118141,
-0.0018019841518253088,
0.04030129685997963,
0.016214217990636826,
-0.0754503458738327,
0.010490592569112778,
-0.02104375511407852,
-0.03824923187494278,
0.04160762205719948,
0.015826361253857613,
0.11106947809457779,
-0.037987686693668365,
-0.05693117156624794,
0.024198390543460846,
0.0039588166400790215,
-0.02162472903728485,
-0.006575312931090593,
0.01808060146868229,
-0.023977909237146378,
-0.018336638808250427,
-0.016096895560622215,
0.05681370198726654,
-0.055474456399679184,
0.015493444167077541,
0.05790551006793976,
0.0014962665736675262,
0.025797223672270775,
-0.040861573070287704,
-0.019279122352600098,
-0.0016067370306700468,
0.0011073416098952293,
-0.024230677634477615,
0.0377575159072876,
-0.0053196134977042675,
-0.03683323785662651,
-0.03981177881360054,
-0.03942565619945526,
-0.0033725188113749027,
0.08430662006139755,
0.010928587056696415,
0.00441861292347312,
-0.01974857971072197,
0.00167866051197052,
0.04264061525464058,
0.0055651371367275715,
-0.05010412633419037,
0.0255772415548563,
0.050887588411569595,
0.011460375972092152,
-0.020248565822839737,
0.07943057268857956,
-0.0005510265473276377,
-0.014115428552031517,
-0.029353050515055656,
0.005675343330949545,
0.009205048903822899,
-0.01745619624853134,
0.048597343266010284,
0.039497654885053635,
-0.009223747067153454,
-0.03948388993740082,
-0.024236690253019333,
0.07222146540880203,
0.0009902258170768619,
0.00977298803627491,
0.004250063560903072,
-0.012331237085163593,
-0.05157046392560005,
0.03863030672073364,
-0.01905118301510811,
0.008917761035263538,
-0.0385168083012104,
0.010746343061327934,
0.009492693468928337,
0.03121025301516056,
0.04816773906350136,
0.050689972937107086,
-0.007117994595319033,
0.06455529481172562,
-0.019537514075636864,
0.010424240492284298,
-0.051756300032138824,
-0.045963916927576065,
-0.005261399783194065,
0.03884407505393028,
0.03270452842116356,
0.04525423049926758,
-0.017869340255856514,
-0.044656239449977875,
0.03733375295996666,
0.06124503165483475,
0.04631439968943596,
0.011582198552787304,
-0.033053796738386154,
-0.006987307220697403,
0.03621285781264305,
0.06151159852743149,
-0.07007361948490143,
-0.03479200601577759,
0.03147369995713234,
0.06091269850730896,
-0.026336882263422012,
0.008031101897358894,
-0.00613778131082654,
0.02716495282948017,
-0.03335868939757347,
-0.07454603165388107,
0.048557985574007034,
0.03484251722693443,
0.006035788916051388,
0.026476893573999405,
0.0014816380571573973,
0.005834230687469244,
0.019044093787670135,
0.04215452820062637,
0.00021435324742924422,
-0.03687777370214462,
0.005887685809284449,
0.015134680084884167,
0.06620565056800842,
-0.044985976070165634,
0.025716667994856834,
-0.010370094329118729,
0.02714124135673046,
0.029689686372876167,
-0.022190364077687263,
0.034663595259189606,
0.00826924666762352,
0.009947692044079304,
-0.043009329587221146,
0.04238134250044823,
-0.008001021109521389,
0.017353888601064682,
0.05723700672388077,
-0.012450317852199078,
0.04982101544737816,
-0.002373107708990574,
0.05849608778953552,
0.05531567707657814,
0.030604267492890358,
0.017371920868754387,
0.0043324995785951614,
0.07796706259250641,
0.014203637838363647,
-0.01582939736545086,
0.07285822182893753,
-0.05420779436826706,
0.010822749696671963,
-0.055589865893125534,
0.009685645811259747,
0.003321652999147773,
-0.013994021341204643,
0.02463558502495289,
0.012936119921505451,
0.006128381006419659,
-0.007456286810338497,
-0.018065307289361954,
0.0020459205843508244,
0.03534337505698204,
-0.03043426014482975,
-0.009711645543575287,
-0.023823382332921028,
-0.03240608423948288,
0.006525098811835051,
-0.06541966646909714,
-0.01245967298746109,
-0.01722606271505356,
-0.035583820194005966,
0.001602464821189642,
-0.08201605826616287,
-0.024612970650196075,
-0.048737533390522,
-0.009819023311138153,
0.0190714243799448,
0.013275040313601494,
-0.008449873887002468,
-0.04150783270597458,
0.029367482289671898,
-0.05075541511178017,
-0.024223411455750465,
-0.028549496084451675,
-0.06498418748378754,
-0.03221191093325615,
-0.04131777584552765,
0.048806820064783096,
0.028000928461551666,
0.00010217226372333243,
0.009273465722799301,
0.027446066960692406,
-0.007205757778137922,
-0.041151948273181915,
0.021907612681388855,
0.03852560371160507,
-0.03487270697951317,
-0.06350576877593994,
0.012762368656694889,
-0.002436581067740917,
-0.0017251484096050262,
-0.02290099300444126,
-0.027986742556095123,
0.08874484896659851,
0.08388711512088776,
0.009856187738478184,
0.003231194568797946,
-0.010595873929560184,
-0.06049742177128792,
-0.047081734985113144,
-0.02012033760547638,
-0.04654175415635109,
-0.022720053791999817,
-0.0271432027220726,
-0.030805086717009544,
-0.02681029587984085,
-0.0504552386701107,
0.00284213968552649,
0.0026458001229912043,
0.017588064074516296,
0.04523284733295441,
0.04059985280036926,
0.020464615896344185,
0.05054567754268646,
-0.03897466883063316,
-0.02120920643210411,
0.06987223029136658,
0.008350832387804985,
0.026288755238056183,
-0.06791514158248901,
-0.026668712496757507,
0.05250469595193863,
0.0057633924297988415,
-0.01108938455581665,
-0.020131992176175117,
0.08050810545682907,
-0.0023520230315625668,
-0.009156021289527416,
0.005417191423475742,
-0.002084942301735282,
-0.035877957940101624,
-0.017550388351082802,
0.01006634533405304,
-0.015105567872524261,
-0.052521344274282455,
-0.018444450572133064,
0.0036539766006171703,
0.059273671358823776,
-0.036934103816747665,
-0.05529391020536423,
-0.006958686280995607,
0.05825003609061241,
-0.0011162576265633106,
-0.006376918405294418,
-0.02564823627471924,
0.008651798591017723,
-0.04434362053871155,
-0.03252384439110756,
-0.0014991473872214556,
-0.01263055857270956,
-0.00741571793332696,
0.03831060975790024,
0.013375027105212212,
-0.015102014876902103,
0.01687377318739891,
0.02925887517631054,
0.05607525631785393,
0.007868976332247257,
-0.047464702278375626,
0.03364358842372894,
-0.02039182372391224,
0.01887286826968193,
-0.004088971763849258,
-0.03953826427459717,
-0.051706284284591675,
-0.07671691477298737,
-0.005158429034054279,
0.00127517175860703,
-0.047724951058626175,
-0.027234366163611412,
0.04012099280953407,
-0.030209114775061607,
0.0072070094756782055,
-0.007962828502058983,
0.029746869578957558,
0.015509155578911304,
-0.024515798315405846,
0.07109721004962921,
-0.0030444336589425802,
0.04265116900205612,
-0.0693879947066307,
0.03212425857782364,
-0.041864193975925446,
0.006114237941801548,
0.011018279939889908,
0.06351833790540695,
0.021831216290593147,
0.05169370770454407,
0.07151444256305695,
0.04935385659337044,
-0.03579411655664444,
0.043772295117378235,
0.0562603622674942,
0.006938725709915161,
-0.039212487637996674,
-0.004393978044390678,
-0.018173489719629288,
-0.020642133429646492,
-0.013878871686756611,
-0.006731566973030567,
-0.01962576061487198,
0.02364748902618885,
-0.00593311432749033,
0.002893255092203617,
0.014904957264661789,
-0.03310501202940941,
-0.037730343639850616,
-0.0522836409509182,
-0.039874158799648285,
0.013409137725830078,
-0.0348905548453331,
0.05142216756939888,
0.023104440420866013,
0.02240006998181343,
0.07262364774942398,
0.06917494535446167,
-0.007016216870397329,
-0.031149040907621384,
0.011415083892643452,
0.03418177366256714,
-0.030265744775533676,
-0.0548819974064827,
-0.05936513841152191,
0.050659406930208206,
0.04559627175331116,
0.015301945619285107,
-0.0866192877292633,
-0.0039494154043495655,
0.05669255554676056,
-0.024552932009100914,
0.0492313914000988,
-0.011948351748287678,
0.05685741454362869,
0.047619372606277466,
-0.03646478429436684,
0.028100183233618736,
-0.016469532623887062,
0.017882583662867546,
-0.00859584379941225,
0.0034103761427104473,
-0.01703687570989132,
-0.033372461795806885,
-0.06134277209639549,
0.018469475209712982,
0.030512602999806404,
0.029516808688640594,
0.05816645175218582,
-0.0170423686504364,
-0.03347427770495415,
0.019709529355168343,
0.011833752505481243,
-0.03650990128517151,
0.0021866506431251764,
0.03617812320590019,
0.035573817789554596,
-0.040905486792325974,
0.0026385688688606024,
-0.01737203262746334,
-0.005253121256828308,
0.018175333738327026,
0.01011661160737276,
-0.04943109303712845,
-0.05614174157381058,
0.004257382359355688,
-0.01755397766828537,
-0.018468236550688744,
-0.09156641364097595,
0.03781988099217415,
-0.0249539352953434,
-0.007252014707773924,
0.025537414476275444,
0.01080296840518713,
0.020215706899762154,
0.05026373639702797,
0.010487755760550499,
0.015333191491663456,
-0.03839704394340515,
0.046255894005298615,
-0.007108818273991346,
-0.010839874856173992,
-0.02264886163175106,
-0.049414850771427155,
0.007905087433755398,
-0.012241684831678867,
-0.012106464244425297,
-0.03591969609260559,
-0.012413006275892258,
0.01870294287800789,
-0.010353628545999527,
-0.001813962939195335,
-0.029264990240335464,
0.05291127786040306,
-0.035587675869464874,
-0.03859332948923111,
-0.02390551008284092,
-0.03220842406153679,
-0.07928066700696945,
-0.06316137313842773,
-0.004909100942313671,
0.02443653717637062,
0.01518411934375763,
0.018989069387316704,
0.022472983226180077,
0.012138091959059238,
0.01830771006643772,
-0.0275834109634161,
0.03137343004345894,
-0.005626118276268244,
-0.04910928010940552,
-0.05374164134263992,
-0.015525666065514088,
0.0352821908891201,
0.031801365315914154,
-0.025205440819263458,
0.030408911406993866,
0.03036675974726677,
-0.033524494618177414,
0.009578686207532883,
0.03127800673246384,
0.026391329243779182,
-0.06944353133440018,
-0.04037373885512352,
-0.028024878352880478,
-0.049396812915802,
0.05044355243444443,
-0.012536806985735893,
-0.005520648788660765,
0.027281401678919792,
0.04162324219942093,
0.039642542600631714,
0.002258962718769908,
-0.042414918541908264,
0.022069867700338364,
-0.026650840416550636,
0.016142364591360092,
-0.04292239248752594,
0.045846473425626755,
-0.039976850152015686,
0.012313456274569035,
-0.003982687368988991,
-0.023607883602380753,
-0.022380081936717033,
0.045542798936367035,
-0.02030261419713497,
-0.016507770866155624,
-0.0045478735119104385,
0.016968945041298866,
-0.025754045695066452,
0.04358067363500595,
-0.019007820636034012,
0.03116265870630741,
-0.023812435567378998,
0.05539093539118767,
-0.02996286377310753,
-0.01373379584401846,
-0.03032836690545082,
-0.0012176898308098316,
-0.0347459614276886,
-0.023709801957011223,
-0.017381789162755013,
-0.05427855998277664,
0.024175994098186493,
0.036340054124593735,
0.050434522330760956,
0.04637530446052551,
-0.002372774062678218,
-0.0012070329394191504,
0.01990768127143383,
-0.05036751553416252,
-0.008235466666519642,
-0.010813678614795208,
0.03625570982694626,
0.013921757228672504,
0.07202291488647461,
0.03566502779722214,
-0.04998631030321121,
-0.05891963094472885,
0.03892280533909798,
0.02060506120324135,
0.02475305087864399,
0.016118640080094337,
0.06782100349664688,
0.030311184003949165,
0.044202227145433426,
-0.023157410323619843,
-0.0022154252510517836,
-0.018052171915769577,
-0.035387974232435226,
0.014066707342863083,
0.0074391476809978485,
0.004788739141076803,
0.0033991560339927673,
-0.034234918653964996,
-0.03706900775432587,
0.07808016240596771,
0.03181472048163414,
0.00045623857295140624,
0.015803690999746323,
-0.028789017349481583,
0.027351854369044304,
-0.010517308488488197,
-0.054515041410923004,
-0.005531794391572475,
0.002949625486508012,
-0.03924914076924324,
0.06798188388347626,
-0.007862092927098274,
0.033406272530555725,
0.031646810472011566,
0.01099648792296648,
-0.00575610576197505,
0.05417196452617645,
-0.041015468537807465,
0.030676783993840218,
0.03013487346470356,
-0.04445263370871544,
0.018516715615987778,
-0.03602270781993866,
0.074661023914814,
-0.09505627304315567,
0.05897974595427513,
0.02753153257071972,
0.016545016318559647,
0.007781007327139378,
-0.01021633855998516,
-0.027885181829333305,
0.002831178018823266,
-0.04240347817540169,
0.07155212014913559,
0.01111809816211462,
-0.049510642886161804,
0.03194364532828331,
0.0375945158302784,
-0.06308289617300034,
0.07715638726949692,
0.04670291393995285,
0.06593415141105652,
0.03974844142794609,
0.03339555114507675,
-0.06093544140458107,
0.007424047216773033,
-0.03570914268493652,
0.029801353812217712,
-0.06198037043213844,
-0.002265877090394497,
0.04852072894573212,
-0.043081387877464294,
-0.008332550525665283,
0.030294110998511314,
-0.02443729154765606,
-0.01596594974398613,
0.04034805670380592,
-0.0578162744641304,
-0.058765385299921036,
-0.007553808856755495,
0.024668656289577484,
-0.05616781860589981,
0.002939247526228428,
-0.04552486911416054,
0.004181034862995148,
0.006103876978158951,
-0.018108341842889786,
-0.06778063625097275,
0.008074789308011532,
0.04073048755526543,
-0.0672149658203125,
-0.029643762856721878,
0.0772586241364479,
0.008049340918660164,
-0.022037534043192863,
0.03432886302471161,
-0.019220490008592606,
0.005683659575879574,
0.028896216303110123,
0.0066137961111962795,
0.016299739480018616,
-0.05169643089175224,
-0.026092015206813812,
0.006002458743751049,
-0.01768280193209648,
0.012687603943049908,
-0.016244400292634964,
0.03250337019562721,
0.06645680963993073,
0.03916549310088158,
0.032026566565036774,
-0.04985833168029785,
-0.02316407486796379,
0.04546375572681427,
-0.054650478065013885,
-0.0031946629751473665,
0.0008008339791558683,
-0.04294503107666969,
-0.029966743662953377,
-0.007281951140612364,
-0.029220227152109146,
0.04556909203529358,
-0.048276226967573166,
-0.012795417569577694,
-0.0028579626232385635,
-0.03127780929207802,
-0.03907203674316406,
-0.09736139327287674,
-0.016810212284326553,
-0.04407143592834473,
0.037570204585790634,
0.0037626405246555805,
-0.03474130481481552,
0.028390366584062576,
-0.05027499422430992,
-0.057562779635190964,
0.0339859202504158,
0.026247920468449593,
-0.060515061020851135,
0.0468265675008297,
0.04137619212269783,
-0.03305637091398239,
-0.004188436549156904,
0.04750683531165123,
-0.027386322617530823,
0.004485534504055977,
0.00658654747530818,
0.007619351148605347,
0.02614443190395832,
0.023859210312366486,
-0.017341632395982742,
-0.017608750611543655,
-0.05172637104988098,
-0.05015795677900314,
-0.024702303111553192,
0.001884315861389041,
0.0592263787984848
] |
CAUKiel/JavaBERT-uncased | [
"pytorch",
"safetensors",
"bert",
"fill-mask",
"java",
"code",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 7 | null | ---
language:
- java
- code
license: apache-2.0
widget:
- text: 'public [MASK] isOdd(Integer num){if (num % 2 == 0) {return "even";} else {return "odd";}}'
---
## JavaBERT
A BERT-like model pretrained on Java software code.
### Training Data
The model was trained on 2,998,345 Java files retrieved from open source projects on GitHub. A ```bert-base-uncased``` tokenizer is used by this model.
### Training Objective
A MLM (Masked Language Model) objective was used to train this model.
### Usage
```python
from transformers import pipeline
pipe = pipeline('fill-mask', model='CAUKiel/JavaBERT')
output = pipe(CODE) # Replace with Java code; Use '[MASK]' to mask tokens/words in the code.
``` | [
-0.02122166007757187,
-0.013122249394655228,
-0.007126658223569393,
0.02320871502161026,
0.036328062415122986,
0.027835020795464516,
-0.011797811836004257,
0.022813014686107635,
0.0327417217195034,
0.04822425916790962,
0.007698339875787497,
-0.003107677912339568,
0.006316472310572863,
0.04704124480485916,
-0.044841885566711426,
-0.02718648500740528,
-0.017648782581090927,
-0.019827604293823242,
-0.042019668966531754,
0.004220593720674515,
0.03981319069862366,
-0.005706054158508778,
-0.019036881625652313,
0.004307604860514402,
-0.011382036842405796,
0.004771367646753788,
-0.0026119842659682035,
0.005788927432149649,
0.04731618985533714,
-0.0705491229891777,
-0.04114168509840965,
-0.031987909227609634,
-0.06770692020654678,
-0.010293031111359596,
-0.03105832077562809,
0.02759355492889881,
0.005714135244488716,
0.04674253240227699,
0.022315585985779762,
0.04920337349176407,
-0.012494550086557865,
0.003858314361423254,
0.01475918386131525,
-0.027299558743834496,
0.03226648271083832,
0.008879810571670532,
-0.010825006291270256,
0.006510840728878975,
0.024490389972925186,
0.01410031970590353,
-0.07009739428758621,
-0.06918998807668686,
-0.03928737714886665,
0.01072244718670845,
0.01365087740123272,
0.008553161285817623,
-0.0927497148513794,
-0.008858851157128811,
0.06753140687942505,
-0.05639160796999931,
-0.04175538942217827,
-0.005391326732933521,
-0.07150840759277344,
-0.014001274481415749,
0.02899331972002983,
-0.03930569440126419,
0.016598714515566826,
-0.05187211558222771,
0.005601542070508003,
0.0134025439620018,
0.06314177066087723,
-0.04205421730875969,
0.018507007509469986,
-0.07727476209402084,
0.007964128628373146,
-0.022910529747605324,
0.04725092649459839,
0.04036042094230652,
-0.027450870722532272,
0.05423114821314812,
-0.00015654860180802643,
0.01825418323278427,
0.037771496921777725,
-0.014211856760084629,
-0.008418372832238674,
0.03538552671670914,
-0.013009663671255112,
0.014506576582789421,
0.016440490260720253,
0.021452374756336212,
-0.025497961789369583,
-0.03408198803663254,
-0.025981029495596886,
-0.03546050190925598,
-0.020327197387814522,
0.03079809434711933,
0.03648653253912926,
-0.022400349378585815,
0.058704543858766556,
0.030736979097127914,
0.04755944758653641,
0.06708315014839172,
-0.017353300005197525,
0.05317041277885437,
0.017733260989189148,
0.004212323110550642,
-0.01882815547287464,
-0.024003813043236732,
-0.034436821937561035,
0.02812541089951992,
0.01166069507598877,
-0.05150256305932999,
-0.026829859241843224,
0.020927730947732925,
0.013596918433904648,
-0.02230651117861271,
0.03484117612242699,
-0.031289685517549515,
-0.04127855598926544,
-0.03604143112897873,
0.040215764194726944,
0.007772249635308981,
-0.0109034338966012,
0.02700866386294365,
-0.07459600269794464,
-0.0025365976616740227,
-0.009153383783996105,
0.004485421348363161,
0.0016931199934333563,
0.03477673977613449,
-0.005238626152276993,
0.06799541413784027,
0.041008591651916504,
-0.0423276424407959,
0.033214762806892395,
0.004194723442196846,
-0.06725545972585678,
0.04067336022853851,
0.015598311088979244,
0.09336158633232117,
-0.042128998786211014,
-0.0656999722123146,
0.008659537881612778,
-0.004476027563214302,
-0.04426601901650429,
0.00977376103401184,
-0.01891390234231949,
-0.04014793783426285,
-0.013980033807456493,
-0.02406649850308895,
0.06764984130859375,
-0.058258820325136185,
0.002964808139950037,
0.05063328519463539,
-0.005842847749590874,
0.019367970526218414,
-0.03847935050725937,
-0.020152343437075615,
0.009945327416062355,
-0.01363987848162651,
-0.04171844944357872,
0.027534399181604385,
0.015519779175519943,
-0.02220413275063038,
-0.018599100410938263,
-0.0642678290605545,
0.012370062991976738,
0.10195116698741913,
-0.01118983794003725,
-0.03641811013221741,
-0.07022833079099655,
0.007740935776382685,
0.045185837894678116,
0.03556913882493973,
-0.015232671983540058,
0.0370783805847168,
0.03731410950422287,
0.007826064713299274,
-0.02135869674384594,
0.06426771730184555,
-0.013369166292250156,
-0.018802037462592125,
-0.016467344015836716,
0.012548694387078285,
0.027281751856207848,
-0.0535254068672657,
0.0038829927798360586,
-0.005154272075742483,
0.0004898263141512871,
-0.021889396011829376,
-0.020249318331480026,
0.05001043528318405,
-0.0015282391104847193,
-0.02915450558066368,
0.012912925332784653,
0.021329496055841446,
-0.01770017482340336,
0.004912371281534433,
-0.033360958099365234,
0.015517228282988071,
-0.04196139797568321,
0.005203024949878454,
0.014147110283374786,
0.02489582449197769,
0.02321394346654415,
0.018738267943263054,
0.00021216325694695115,
0.07082369178533554,
-0.03693944215774536,
-0.0012129431124776602,
-0.047662559896707535,
-0.03863348811864853,
-0.0016792438691481948,
0.05344853550195694,
0.034850992262363434,
0.02481077052652836,
-0.018550768494606018,
-0.03056328371167183,
0.001065934426151216,
0.06288208812475204,
0.05629827827215195,
0.015394833870232105,
-0.04419424757361412,
-0.027437489479780197,
0.05212721973657608,
0.06364231556653976,
-0.05199231952428818,
-0.03986469656229019,
0.04470016062259674,
0.04987187683582306,
-0.014652769081294537,
0.03612740710377693,
-0.004096603486686945,
-0.00030848386813886464,
-0.022665375843644142,
-0.057024672627449036,
0.018203672021627426,
0.03397044539451599,
0.03145677596330643,
0.01350699458271265,
-0.04213760048151016,
0.008583424612879753,
0.024581320583820343,
0.005184382665902376,
0.011143282055854797,
-0.05197407677769661,
-0.013605060055851936,
-0.0054928394965827465,
0.07325930893421173,
-0.04304671287536621,
0.051982417702674866,
-0.005891535431146622,
-0.0028759099077433348,
0.04672209918498993,
-0.010265661403536797,
0.028017722070217133,
0.0056705353781580925,
0.0020012990571558475,
-0.024715621024370193,
0.045067090541124344,
0.047385454177856445,
0.03234834969043732,
0.043226227164268494,
-0.013883018866181374,
0.06964748352766037,
0.013991841115057468,
0.07977757602930069,
0.059944670647382736,
0.023161090910434723,
0.02424049749970436,
-0.008167545311152935,
0.06240604445338249,
0.01114274188876152,
-0.017151808366179466,
0.059921227395534515,
-0.06505034118890762,
0.020054275169968605,
-0.0009168393444269896,
0.009637094102799892,
0.02835085615515709,
-0.027620339766144753,
0.03510168939828873,
-0.006521577946841717,
-0.005387171637266874,
-0.019184673205018044,
-0.043602071702480316,
-0.019440604373812675,
0.058496829122304916,
-0.046045299619436264,
0.002834815764799714,
0.009906496852636337,
-0.0017511713085696101,
0.004940951243042946,
-0.0800657719373703,
-0.07354960590600967,
0.015166396275162697,
0.0035058821085840464,
-0.018603866919875145,
-0.08795715123414993,
-0.018716949969530106,
-0.0593833364546299,
-0.02176167629659176,
0.057909537106752396,
0.011074608191847801,
-0.01386546716094017,
-0.017841119319200516,
0.026164932176470757,
-0.04436612129211426,
-0.0003699217631947249,
-0.047710757702589035,
-0.04524746909737587,
-0.016673868522047997,
-0.050153058022260666,
0.013038554228842258,
0.002427726285532117,
0.029656346887350082,
0.003881578566506505,
0.011767225340008736,
-0.04387450963258743,
-0.023070164024829865,
0.02636740729212761,
0.05921464413404465,
-0.03251075744628906,
-0.041117776185274124,
0.04338975250720978,
0.00616561621427536,
0.02600458823144436,
0.020615816116333008,
-0.03720374032855034,
0.09575803577899933,
0.0346018448472023,
0.03647668659687042,
-0.017443111166357994,
-0.013301796279847622,
-0.03397990018129349,
-0.08584441989660263,
-0.02479255385696888,
-0.03408199921250343,
-0.037497155368328094,
-0.008718091063201427,
-0.018433647230267525,
-0.06586150825023651,
-0.060338396579027176,
-0.032566435635089874,
-0.0246131531894207,
0.02097289264202118,
0.025426825508475304,
0.04906689375638962,
0.03383571654558182,
0.009581634774804115,
-0.04825933650135994,
-0.025435952469706535,
0.021975627169013023,
-0.007226142566651106,
-0.012573705054819584,
-0.08049197494983673,
-0.04162788391113281,
0.05181894451379776,
0.02537056803703308,
-0.013669963926076889,
-0.0002850737946573645,
0.05715323984622955,
0.020893389359116554,
-0.016832897439599037,
0.011507225222885609,
-0.02638908289372921,
0.01691403053700924,
-0.016096532344818115,
0.012965680100023746,
-0.03274004906415939,
-0.05382237583398819,
-0.005280868615955114,
-0.0015686788829043508,
0.0556802898645401,
-0.05709117650985718,
-0.04895731061697006,
-0.008573200553655624,
0.02629186399281025,
0.011452467180788517,
0.01241299044340849,
-0.029835408553481102,
0.0044543128460645676,
-0.06489691883325577,
-0.034931447356939316,
0.02106938697397709,
-0.008092159405350685,
0.010529544204473495,
0.040563855320215225,
0.0162236075848341,
-0.041647955775260925,
0.02084174007177353,
0.013492296449840069,
0.011592499911785126,
0.029089702293276787,
-0.04753374680876732,
0.01777953840792179,
-0.011792939156293869,
-0.0082019018009305,
0.01621192693710327,
-0.01628120429813862,
-0.06977351754903793,
-0.09204094856977463,
-0.03233275189995766,
0.0020761960186064243,
-0.03566097840666771,
-0.009435426443815231,
0.0403972752392292,
0.005338228307664394,
-0.0019759756978601217,
-0.022152695804834366,
-0.006898016203194857,
0.041602861136198044,
0.000034934764698846266,
0.03828321769833565,
-0.03696654364466667,
0.05061829835176468,
-0.05061512067914009,
-0.0007802287582308054,
-0.05854972079396248,
-0.024398747831583023,
0.002174602122977376,
0.06197574362158775,
0.012547721154987812,
0.052538614720106125,
0.06497394293546677,
0.04279011860489845,
-0.019484808668494225,
0.05170997977256775,
0.04012872651219368,
-0.03056417778134346,
-0.017187653109431267,
0.003170635551214218,
-0.03591778129339218,
-0.02135048806667328,
0.01980907842516899,
-0.025777345523238182,
0.012839529663324356,
0.03149225562810898,
-0.035929542034864426,
-0.0011097741080448031,
0.02712702564895153,
0.009591598995029926,
-0.037562161684036255,
-0.04483956843614578,
-0.021689781919121742,
0.007628563791513443,
-0.02273562364280224,
0.038867972791194916,
0.03506339713931084,
0.06012852117419243,
0.07062415033578873,
0.030129466205835342,
-0.03208981081843376,
-0.030938737094402313,
0.0005749225383624434,
0.040947820991277695,
-0.013968308456242085,
-0.05617334693670273,
-0.05068390816450119,
0.03586551174521446,
0.0446757934987545,
0.0070192525163292885,
-0.06874983757734299,
0.03137270361185074,
0.018449699506163597,
-0.01917872205376625,
0.06775966286659241,
0.014540411531925201,
0.05417175218462944,
0.07114455848932266,
-0.0005024033598601818,
0.023859024047851562,
-0.0017547685420140624,
0.031603600829839706,
0.015477892011404037,
0.0020894396584481,
-0.03619296848773956,
-0.040732819586992264,
-0.06802134215831757,
0.028036167845129967,
0.029400665313005447,
0.043956976383924484,
0.025546452030539513,
-0.03042762540280819,
-0.03934188559651375,
-0.024853847920894623,
0.03185248747467995,
-0.014561466872692108,
0.014074611477553844,
0.038115546107292175,
0.036993175745010376,
-0.006941318046301603,
-0.025445569306612015,
-0.038772355765104294,
-0.017646370455622673,
0.03586850315332413,
-0.015833746641874313,
-0.03210775926709175,
-0.04559268429875374,
0.02320510894060135,
0.03264680132269859,
-0.04309780150651932,
-0.07679108530282974,
0.04299464076757431,
-0.03256157413125038,
-0.007784262299537659,
0.05274029076099396,
0.011977928690612316,
-0.0031428721267729998,
0.03880633786320686,
-0.0064197322353720665,
0.0211675725877285,
-0.05186782404780388,
0.03271851688623428,
-0.023628244176506996,
-0.03511582687497139,
-0.032708391547203064,
-0.06485825031995773,
-0.042663365602493286,
-0.014046731404960155,
-0.026450254023075104,
-0.052390169352293015,
-0.025646502152085304,
0.0015911239897832274,
-0.031479284167289734,
0.002602753695100546,
-0.004863424226641655,
0.031953539699316025,
-0.004858768545091152,
-0.05497302860021591,
-0.04590696468949318,
-0.021264946088194847,
-0.0749611109495163,
-0.02921498380601406,
0.029350318014621735,
0.020490918308496475,
0.03308895230293274,
0.02142639085650444,
0.01275467686355114,
0.004056211095303297,
0.01654747687280178,
-0.024784596636891365,
-0.0010522912489250302,
0.005185520742088556,
-0.026073435321450233,
-0.016567612066864967,
-0.004688342567533255,
0.012736748903989792,
0.01688658632338047,
-0.02362160012125969,
0.0020097095984965563,
-0.004076673649251461,
-0.013285622000694275,
-0.01750783622264862,
0.035951532423496246,
0.018128417432308197,
-0.08186087757349014,
-0.05773945525288582,
-0.015474271029233932,
-0.038258180022239685,
0.031599536538124084,
-0.047391291707754135,
-0.032892148941755295,
0.04804188385605812,
0.0254083052277565,
0.04831251502037048,
-0.005837177392095327,
-0.02297670766711235,
0.04076126217842102,
-0.020010506734251976,
0.031051738187670708,
-0.04465378075838089,
0.044497888535261154,
-0.05017802119255066,
0.00386106688529253,
-0.007797312922775745,
-0.019757846370339394,
-0.039431266486644745,
0.06039958447217941,
-0.017853345721960068,
-0.019294042140245438,
0.0031536268070340157,
0.04616997763514519,
-0.024104977026581764,
0.060733210295438766,
-0.0002522791037335992,
0.01160405669361353,
-0.03707871958613396,
0.011523361317813396,
-0.06228500232100487,
0.02930385246872902,
-0.012158280238509178,
0.018230844289064407,
-0.020812392234802246,
-0.009088541381061077,
-0.01399252936244011,
-0.05635378509759903,
0.036582428961992264,
0.017447389662265778,
0.04802911728620529,
0.02029520459473133,
-0.011796165257692337,
-0.0069199311546981335,
-0.01121314987540245,
-0.09491562098264694,
-0.0244886577129364,
0.01754259690642357,
0.04166965186595917,
-0.012569216080009937,
0.04130549356341362,
0.04514434188604355,
-0.060132596641778946,
-0.05218495428562164,
0.02376699447631836,
0.03426314517855644,
0.004296636674553156,
0.021556802093982697,
0.009516609832644463,
0.04105447605252266,
0.045288510620594025,
-0.04290101304650307,
-0.00014841098163742572,
-0.012716028839349747,
0.013000047765672207,
0.020369525998830795,
0.004304395988583565,
0.032205574214458466,
0.0145863126963377,
-0.03889273852109909,
-0.04409373179078102,
0.08025733381509781,
0.03189895302057266,
0.03527423366904259,
0.007992561906576157,
-0.04361763224005699,
0.038546569645404816,
0.018803182989358902,
-0.03776770830154419,
-0.009750476107001305,
0.017991509288549423,
-0.056618135422468185,
0.05616851896047592,
-0.012423967942595482,
0.008864305913448334,
0.010124984197318554,
0.010198045521974564,
0.0023687491193413734,
0.06633424758911133,
-0.037176407873630524,
0.013221384026110172,
0.05534181743860245,
-0.028680134564638138,
0.014454985968768597,
-0.03084642067551613,
0.05345693975687027,
-0.07080431282520294,
0.05579366907477379,
0.02340308390557766,
-0.0015979442978277802,
0.0072837769985198975,
-0.0070644523948431015,
-0.047091301530599594,
0.023284608498215675,
-0.034258048981428146,
0.0532822422683239,
-0.042925361543893814,
-0.04824959114193916,
0.09480609744787216,
0.05053235962986946,
-0.08277314156293869,
0.02431817166507244,
0.04500460624694824,
0.0010393098928034306,
0.0242628064006567,
0.03996134549379349,
-0.06580423563718796,
0.012158995494246483,
-0.040157169103622437,
0.024364469572901726,
-0.07748667895793915,
-0.011035851202905178,
0.05557255819439888,
-0.032107144594192505,
-0.020621759817004204,
0.0259400624781847,
-0.01587393507361412,
0.008974762633442879,
0.014242012985050678,
-0.06781169772148132,
-0.07530152052640915,
-0.03135412558913231,
0.03774550184607506,
-0.04430439695715904,
-0.013294776901602745,
-0.01452705916017294,
0.051972053945064545,
-0.004728003405034542,
-0.005529370624572039,
-0.025234121829271317,
0.021271442994475365,
0.038731202483177185,
-0.039987560361623764,
-0.020178554579615593,
0.0471109002828598,
0.03162699565291405,
-0.03442743048071861,
0.014492209069430828,
-0.031263310462236404,
0.008017297834157944,
0.017394527792930603,
-0.012519770301878452,
0.0077265724539756775,
-0.055506911128759384,
-0.03583758696913719,
0.036650750786066055,
0.015810122713446617,
0.03774543106555939,
0.011995694600045681,
0.014598739333450794,
0.016896739602088928,
0.048382800072431564,
-0.010409723967313766,
-0.0372936949133873,
-0.041764020919799805,
0.023210423067212105,
-0.07915950566530228,
0.021870937198400497,
-0.01854868046939373,
-0.04195987060666084,
-0.03718041628599167,
-0.007031907793134451,
-0.02051931992173195,
0.048525307327508926,
-0.06497818976640701,
0.014331094920635223,
0.05631169304251671,
-0.038010939955711365,
-0.020269321277737617,
-0.0753287822008133,
-0.03532266989350319,
-0.048900384455919266,
0.032043080776929855,
0.030244551599025726,
-0.01891893707215786,
0.004348583519458771,
-0.04527754336595535,
-0.0625852644443512,
0.04332224652171135,
0.01820170134305954,
-0.052418287843465805,
0.02217721752822399,
0.043342430144548416,
-0.03594481572508812,
0.017507564276456833,
0.008130687288939953,
-0.053003940731287,
0.03786469250917435,
0.009059971198439598,
0.011126074939966202,
0.020494041964411736,
0.05009595304727554,
-0.012060822919011116,
-0.017523320391774178,
-0.06916476786136627,
-0.029061496257781982,
-0.04382237792015076,
0.018797628581523895,
0.056196607649326324
] |
CAUKiel/JavaBERT | [
"pytorch",
"safetensors",
"bert",
"fill-mask",
"code",
"arxiv:2110.10404",
"arxiv:1910.09700",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 388 | null |
---
language:
- code
license: apache-2.0
widget:
- text: public [MASK] isOdd(Integer num) {if (num % 2 == 0) {return "even";} else
{return "odd";}}
---
# Model Card for JavaBERT
A BERT-like model pretrained on Java software code.
# Model Details
## Model Description
A BERT-like model pretrained on Java software code.
- **Developed by:** Christian-Albrechts-University of Kiel (CAUKiel)
- **Shared by [Optional]:** Hugging Face
- **Model type:** Fill-Mask
- **Language(s) (NLP):** en
- **License:** Apache-2.0
- **Related Models:** A version of this model using an uncased tokenizer is available at [CAUKiel/JavaBERT-uncased](https://huggingface.co/CAUKiel/JavaBERT-uncased).
- **Parent Model:** BERT
- **Resources for more information:**
- [Associated Paper](https://arxiv.org/pdf/2110.10404.pdf)
# Uses
## Direct Use
Fill-Mask
## Downstream Use [Optional]
More information needed.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
{ see paper= word something)
# Training Details
## Training Data
The model was trained on 2,998,345 Java files retrieved from open source projects on GitHub. A ```bert-base-cased``` tokenizer is used by this model.
## Training Procedure
### Training Objective
A MLM (Masked Language Model) objective was used to train this model.
### Preprocessing
More information needed.
### Speeds, Sizes, Times
More information needed.
# Evaluation
## Testing Data, Factors & Metrics
### Testing Data
More information needed.
### Factors
### Metrics
More information needed.
## Results
More information needed.
# Model Examination
More information needed.
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** More information needed.
- **Hours used:** More information needed.
- **Cloud Provider:** More information needed.
- **Compute Region:** More information needed.
- **Carbon Emitted:** More information needed.
# Technical Specifications [optional]
## Model Architecture and Objective
More information needed.
## Compute Infrastructure
More information needed.
### Hardware
More information needed.
### Software
More information needed.
# Citation
**BibTeX:**
More information needed.
**APA:**
More information needed.
# Glossary [optional]
More information needed.
# More Information [optional]
More information needed.
# Model Card Authors [optional]
Christian-Albrechts-University of Kiel (CAUKiel) in collaboration with Ezi Ozoani and the team at Hugging Face
# Model Card Contact
More information needed.
# How to Get Started with the Model
Use the code below to get started with the model.
<details>
<summary> Click to expand </summary>
```python
from transformers import pipeline
pipe = pipeline('fill-mask', model='CAUKiel/JavaBERT')
output = pipe(CODE) # Replace with Java code; Use '[MASK]' to mask tokens/words in the code.
```
</details>
| [
-0.019415996968746185,
0.009503141976892948,
0.0036105194594711065,
0.04185399413108826,
0.030118204653263092,
0.023521481081843376,
-0.014454690739512444,
0.015674253925681114,
0.013965382240712643,
0.04893273860216141,
0.012556025758385658,
-0.021612107753753662,
0.037378277629613876,
0.04278254508972168,
-0.06688196212053299,
-0.013626350089907646,
-0.015716254711151123,
-0.00977487675845623,
-0.048873402178287506,
0.00079373549669981,
0.026778586208820343,
-0.0004689662891905755,
-0.029704304412007332,
0.018406668677926064,
-0.004390079993754625,
0.01298599224537611,
-0.017761502414941788,
0.0076038651168346405,
0.024007752537727356,
-0.08005763590335846,
-0.023937514051795006,
-0.056432489305734634,
-0.06800998002290726,
-0.01706158183515072,
-0.031609270721673965,
0.01660866104066372,
-0.0008248568046838045,
0.016080493107438087,
0.03166104853153229,
0.0573071725666523,
-0.010161045007407665,
0.0008192937821149826,
-0.027911212295293808,
-0.027454368770122528,
0.04864328354597092,
0.007576824631541967,
-0.03360176458954811,
-0.0007236129604279995,
0.030593879520893097,
-0.018532633781433105,
-0.05460681393742561,
-0.06086904555559158,
-0.023981625214219093,
0.004164400976151228,
-0.006314282305538654,
-0.020807508379220963,
-0.07830196619033813,
-0.021036338061094284,
0.06598533689975739,
-0.036806657910346985,
-0.038617461919784546,
-0.007442039903253317,
-0.06913089752197266,
-0.0006989988032728434,
0.044814713299274445,
-0.05220816284418106,
0.007763504516333342,
-0.03415365889668465,
0.0016169099835678935,
-0.013455362059175968,
0.05031561478972435,
-0.018390092998743057,
0.014902671799063683,
-0.08434639871120453,
0.012838277965784073,
-0.014556019566953182,
0.060441672801971436,
0.03280560299754143,
-0.020711418241262436,
0.041994791477918625,
0.010317951440811157,
0.021012019366025925,
0.03413147106766701,
-0.012069175019860268,
-0.006973469164222479,
0.04100783169269562,
-0.027385130524635315,
0.0024352972395718098,
0.020150668919086456,
0.02452167682349682,
-0.019988834857940674,
-0.027607811614871025,
-0.027389410883188248,
-0.041432902216911316,
-0.021196816116571426,
0.017038222402334213,
0.028177322819828987,
-0.02489541657269001,
0.06470655649900436,
0.02726154774427414,
0.04293874278664589,
0.05975138768553734,
-0.02118648961186409,
0.06008341908454895,
-0.014813147485256195,
-0.007808690890669823,
-0.017573801800608635,
-0.016581393778324127,
-0.05364279821515083,
0.03900670260190964,
0.005364205688238144,
-0.036056727170944214,
-0.04333251342177391,
0.01768353581428528,
-0.00898181926459074,
-0.010601207613945007,
0.04571893438696861,
-0.03652775287628174,
-0.04366065561771393,
-0.046930037438869476,
0.020475884899497032,
0.000391201552702114,
-0.0013122988166287541,
0.010769703425467014,
-0.09213075041770935,
0.004792443010956049,
-0.002175762550905347,
-0.005098184570670128,
-0.000763906049542129,
0.021583087742328644,
-0.002985467202961445,
0.06134823337197304,
0.043001092970371246,
-0.06256762146949768,
0.01270355749875307,
0.014876092784106731,
-0.04855666682124138,
0.04135281965136528,
0.007156456355005503,
0.11810003966093063,
-0.04553099721670151,
-0.06306780874729156,
0.016391536220908165,
0.0029544311109930277,
-0.05753140151500702,
-0.0009547894005663693,
0.01597600430250168,
-0.03010236844420433,
-0.015235917642712593,
-0.023725619539618492,
0.04778004065155983,
-0.05932800844311714,
0.0019921709317713976,
0.07253984361886978,
0.004431772045791149,
0.024950915947556496,
-0.07120832800865173,
-0.04142787307500839,
-0.0017536265077069402,
0.0005915103247389197,
-0.017268622294068336,
0.024705801159143448,
0.0074606407433748245,
-0.028207657858729362,
-0.02979099005460739,
-0.06228737533092499,
-0.00019932622672058642,
0.07827629148960114,
-0.03225076571106911,
-0.019350863993167877,
-0.06599309295415878,
0.02544376626610756,
0.04838186502456665,
0.028829270973801613,
-0.020166413858532906,
0.019588300958275795,
0.051973242312669754,
0.030271898955106735,
-0.024939659982919693,
0.056690651923418045,
-0.014298450201749802,
-0.023676002398133278,
-0.028837548568844795,
-0.004671306349337101,
0.03159737586975098,
-0.049788329750299454,
0.020868489518761635,
0.016033435240387917,
0.008982658386230469,
-0.04500008746981621,
-0.020486272871494293,
0.035888370126485825,
-0.01086825504899025,
-0.02105272188782692,
0.015378114767372608,
-0.0032787497621029615,
-0.022209281101822853,
0.011359572410583496,
-0.01944500207901001,
0.011346705257892609,
-0.05782131850719452,
-0.01556249801069498,
0.023295415565371513,
0.021974077448248863,
0.01788112334907055,
0.03521932661533356,
-0.0017946885200217366,
0.055005449801683426,
-0.028819264844059944,
0.009680665098130703,
-0.04765990376472473,
-0.03263445943593979,
-0.013817152939736843,
0.06391900777816772,
0.055070847272872925,
0.03511889651417732,
-0.019290542230010033,
-0.05432381108403206,
0.01239800825715065,
0.08741535991430283,
0.06326533854007721,
0.007988139986991882,
-0.04382285103201866,
-0.025499921292066574,
0.056351229548454285,
0.045376602560281754,
-0.06434426456689835,
-0.037110839039087296,
0.017988096922636032,
0.03894001618027687,
-0.019598377868533134,
0.024256156757473946,
-0.017189202830195427,
0.017719054594635963,
-0.04486566781997681,
-0.0731121152639389,
0.03303010016679764,
0.033686988055706024,
0.01627442054450512,
0.03332725539803505,
-0.04463251680135727,
0.013678807765245438,
0.018197951838374138,
0.019070683047175407,
0.008363631553947926,
-0.0491996668279171,
-0.004793095868080854,
-0.0017675873823463917,
0.07176440954208374,
-0.04190404340624809,
0.06763451546430588,
0.0008258845773525536,
0.011681567877531052,
0.03793835639953613,
-0.02799212373793125,
0.040600430220365524,
0.01159889530390501,
-0.0045252167619764805,
-0.027058012783527374,
0.04050087556242943,
0.04036087542772293,
0.03512156009674072,
0.034518565982580185,
-0.026694482192397118,
0.0674501433968544,
0.00957565288990736,
0.05875798687338829,
0.0728619396686554,
0.03615826368331909,
0.01640048623085022,
-0.003213055431842804,
0.06569590419530869,
0.00974657665938139,
-0.019528495147824287,
0.06832939386367798,
-0.048601362854242325,
0.021212851628661156,
-0.0339818112552166,
0.030088815838098526,
0.026086365804076195,
-0.026392819359898567,
0.04081607237458229,
0.006644370034337044,
-0.014103182591497898,
-0.007444166112691164,
-0.03043360449373722,
-0.009593481197953224,
0.06655311584472656,
-0.02891356684267521,
0.009897364303469658,
-0.006960275117307901,
-0.03336620330810547,
0.008814489468932152,
-0.08552590757608414,
-0.0488087423145771,
0.004623286426067352,
-0.027257705107331276,
-0.01561042945832014,
-0.08329152315855026,
-0.018514269962906837,
-0.05400167033076286,
-0.015384305268526077,
0.05349704995751381,
0.009232082404196262,
-0.0019142070086672902,
-0.030650824308395386,
0.021001895889639854,
-0.05169389396905899,
-0.035126395523548126,
-0.04190471023321152,
-0.05913693085312843,
-0.0315258614718914,
-0.044117942452430725,
0.023925965651869774,
0.02216852642595768,
0.031663648784160614,
-0.009233696386218071,
0.006856837309896946,
-0.024140074849128723,
-0.022108320146799088,
0.018833031877875328,
0.05872544273734093,
-0.04994586855173111,
-0.0529794842004776,
0.02941671386361122,
0.005265695974230766,
0.013262319378554821,
0.006974075920879841,
-0.03974480181932449,
0.08629260957241058,
0.06198251619935036,
0.017360012978315353,
0.00280606746673584,
-0.011966667138040066,
-0.038192443549633026,
-0.05770139396190643,
-0.023965977132320404,
-0.04154299199581146,
-0.028097866103053093,
-0.023460987955331802,
-0.018700867891311646,
-0.042616330087184906,
-0.06189452111721039,
-0.023327726870775223,
-0.01421948429197073,
0.021717095747590065,
0.024327853694558144,
0.024002090096473694,
0.02575766108930111,
0.028123600408434868,
-0.027003852650523186,
-0.031467974185943604,
0.03854117542505264,
-0.016811544075608253,
0.002485309960320592,
-0.09023594111204147,
-0.03192328289151192,
0.04891570657491684,
0.02047255076467991,
-0.0004919998464174569,
-0.01935064233839512,
0.07677377760410309,
0.017621774226427078,
-0.008696313947439194,
0.012322299182415009,
-0.017769845202565193,
-0.014736268669366837,
-0.020651210099458694,
0.0003504070336930454,
-0.013526754453778267,
-0.05215933546423912,
-0.016086284071207047,
-0.011450751684606075,
0.05781710520386696,
-0.055433742702007294,
-0.05587336793541908,
-0.01880311779677868,
0.030632099136710167,
0.039571236819028854,
-0.011460154317319393,
-0.03270328789949417,
-0.004040927160531282,
-0.05237218365073204,
-0.026721050962805748,
0.0048734149895608425,
-0.021932383999228477,
0.01079438254237175,
0.031884290277957916,
0.011778919957578182,
-0.03331850841641426,
0.03334759175777435,
0.03290927782654762,
0.04274497181177139,
0.009031929075717926,
-0.04277850687503815,
0.0025681054685264826,
-0.009784715250134468,
0.014087064191699028,
0.0001923729432746768,
-0.027682896703481674,
-0.058370884507894516,
-0.10542163252830505,
0.006406107917428017,
0.01273063849657774,
-0.01687375269830227,
-0.005166271235793829,
0.044690266251564026,
-0.014325750060379505,
0.0035130486357957125,
-0.007783655542880297,
-0.003948127385228872,
0.034006282687187195,
-0.02674209326505661,
0.04569618031382561,
-0.017270483076572418,
0.03432502597570419,
-0.043981634080410004,
0.038580507040023804,
-0.055074963718652725,
-0.029499776661396027,
-0.007948246784508228,
0.06265176087617874,
0.0232388973236084,
0.041775528341531754,
0.058049414306879044,
0.043396297842264175,
-0.038777370005846024,
0.036877088248729706,
0.04198829457163811,
-0.03830151632428169,
-0.044378992170095444,
0.0033754396717995405,
-0.0426790677011013,
-0.01940889097750187,
-0.00781557522714138,
-0.021577268838882446,
0.032444652169942856,
0.037621643394231796,
-0.01472402736544609,
-0.008855143561959267,
0.03091636672616005,
-0.011202465742826462,
-0.022961696609854698,
-0.044927697628736496,
-0.02672656625509262,
-0.0032967342995107174,
-0.03357027471065521,
0.03988555818796158,
0.025960752740502357,
0.03932902589440346,
0.07168013602495193,
0.023004593327641487,
-0.019348004832863808,
-0.030055923387408257,
0.008579663932323456,
0.022281339392066002,
-0.021884210407733917,
-0.054223593324422836,
-0.05294027179479599,
0.03717457130551338,
0.04659757390618324,
0.010637601837515831,
-0.05556080490350723,
0.020608557388186455,
0.026101889088749886,
-0.031726766377687454,
0.04717310518026352,
-0.008633201941847801,
0.05946449935436249,
0.0658891424536705,
-0.016210371628403664,
0.03154200688004494,
-0.022215554490685463,
0.017351845279335976,
0.02013404108583927,
-0.0030857131350785494,
-0.02994038350880146,
-0.04491109400987625,
-0.0783461257815361,
0.02111934684216976,
0.03816353529691696,
0.05108625441789627,
0.038721274584531784,
-0.03565471991896629,
-0.035991888493299484,
0.0011656270362436771,
0.03467221558094025,
-0.013749420642852783,
0.022792724892497063,
0.041473638266325,
0.05081510171294212,
-0.01595648191869259,
-0.03955361247062683,
-0.0383104644715786,
-0.016837405040860176,
0.026208719238638878,
-0.021732604131102562,
-0.04061032459139824,
-0.03729391470551491,
0.028807930648326874,
-0.005257623735815287,
-0.033444844186306,
-0.06279222667217255,
0.035229384899139404,
-0.03087354451417923,
-0.021308209747076035,
0.028173621743917465,
0.0044737220741808414,
0.023875409737229347,
0.06046880781650543,
-0.00591945368796587,
0.003234966890886426,
-0.06351137906312943,
0.0342935249209404,
-0.035169221460819244,
-0.024986838921904564,
-0.024680120870471,
-0.05726129561662674,
-0.026416253298521042,
-0.017166700214147568,
-0.030497705563902855,
-0.054758768528699875,
-0.01829555816948414,
0.00023503538977820426,
-0.02332376502454281,
0.012630141340196133,
-0.00760024506598711,
0.03412928432226181,
-0.013609725050628185,
-0.032312989234924316,
-0.029593436047434807,
-0.02763354778289795,
-0.07158183306455612,
-0.06031813472509384,
0.0180489644408226,
-0.004204053431749344,
0.02369610220193863,
0.02215002477169037,
0.012572321109473705,
0.02028743177652359,
0.008382130414247513,
-0.014851456508040428,
0.00992103386670351,
-0.011942272074520588,
-0.04419931396842003,
-0.030987899750471115,
0.010395515710115433,
0.0014838546048849821,
0.04212454333901405,
-0.0390804223716259,
0.01962064392864704,
0.013907911255955696,
-0.024330610409379005,
-0.02562727779150009,
0.03250977024435997,
0.039839327335357666,
-0.08532876521348953,
-0.04404038190841675,
-0.009903744794428349,
-0.0365651473402977,
0.02598338946700096,
-0.044068221002817154,
-0.024238228797912598,
0.059185970574617386,
0.02099686861038208,
0.05797489359974861,
-0.0061118085868656635,
-0.025482404977083206,
0.029418958351016045,
-0.006203571800142527,
0.01986376754939556,
-0.04846706986427307,
0.04109684005379677,
-0.06013362482190132,
0.002495100721716881,
-0.009237079881131649,
-0.006145752500742674,
-0.05938299372792244,
0.04088877514004707,
-0.021814264357089996,
-0.030806971713900566,
0.0071874503046274185,
0.01652589999139309,
-0.041871294379234314,
0.04023175686597824,
-0.025653112679719925,
0.00554547319188714,
-0.04775792360305786,
0.048283450305461884,
-0.045539386570453644,
0.01731763407588005,
-0.014389557763934135,
0.02445806749165058,
-0.043151769787073135,
0.01703098975121975,
-0.004582998342812061,
-0.04532367363572121,
0.025590086355805397,
0.019808463752269745,
0.03062935546040535,
0.0353265181183815,
-0.011140129528939724,
0.004801687318831682,
-0.0028702665586024523,
-0.08415774255990982,
-0.0037967651151120663,
0.018512427806854248,
0.04406435787677765,
0.008405531756579876,
0.04158935323357582,
0.03949173167347908,
-0.05830896645784378,
-0.04829101637005806,
0.04724980518221855,
0.021328341215848923,
0.010060997679829597,
0.017725307494401932,
0.015606841072440147,
0.02167109213769436,
0.04657230153679848,
-0.03801119327545166,
-0.0071273609064519405,
0.004446052946150303,
-0.022818757221102715,
0.028046689927577972,
0.0032794594299048185,
0.017120273783802986,
0.016477828845381737,
-0.031310372054576874,
-0.04258985444903374,
0.0937453880906105,
0.027212049812078476,
0.024324476718902588,
0.013123646378517151,
-0.04833070933818817,
0.025828085839748383,
0.0031306915916502476,
-0.05185248702764511,
0.009764193557202816,
0.01571597345173359,
-0.04069869965314865,
0.061229728162288666,
-0.02071242406964302,
0.004978674463927746,
0.03288726881146431,
0.020616184920072556,
-0.008777114562690258,
0.04048284888267517,
-0.02309168316423893,
0.020643683150410652,
0.06646546721458435,
-0.03535904362797737,
0.0005771615542471409,
-0.028064005076885223,
0.06105412170290947,
-0.068783700466156,
0.06269323080778122,
0.030713682994246483,
-0.007055812515318394,
0.015129848383367062,
-0.02146231383085251,
-0.06222720444202423,
0.03975381329655647,
-0.03425692394375801,
0.05602552369236946,
-0.015354928560554981,
-0.0489778071641922,
0.07756444066762924,
0.025321166962385178,
-0.06468944996595383,
0.03510338440537453,
0.049523916095495224,
0.023920264095067978,
0.008147650398314,
0.03255156800150871,
-0.047245707362890244,
0.0029083469416946173,
-0.034724123775959015,
0.03750021755695343,
-0.06133618578314781,
-0.03470069542527199,
0.051019687205553055,
-0.03709468990564346,
-0.025112390518188477,
0.043496325612068176,
-0.013673601672053337,
-0.013231119140982628,
0.039386168122291565,
-0.07789964973926544,
-0.057746436446905136,
-0.021686401218175888,
0.018106600269675255,
-0.03886020928621292,
-0.01581324264407158,
-0.036414191126823425,
0.05057324469089508,
0.014176391996443272,
-0.002756014931946993,
-0.035156745463609695,
0.011738191358745098,
0.03863783925771713,
-0.050622012466192245,
-0.02551182731986046,
0.052885133773088455,
0.02639666572213173,
-0.03597274422645569,
0.027775898575782776,
-0.003001333912834525,
-0.014411683194339275,
0.0042227087542414665,
-0.013877753168344498,
0.0137807447463274,
-0.04559127986431122,
-0.03818066045641899,
0.03210610896348953,
0.008649843744933605,
0.026631031185388565,
0.005108404438942671,
0.030042584985494614,
0.041363127529621124,
0.046551913022994995,
-0.00636798283085227,
-0.044564999639987946,
-0.0444319061934948,
0.036462172865867615,
-0.05475354194641113,
0.01492853183299303,
-0.012633890844881535,
-0.04995374009013176,
-0.035285819321870804,
-0.0001942069793585688,
-0.03164632245898247,
0.04253312572836876,
-0.05289826542139053,
0.011362997815012932,
0.05411333590745926,
-0.03390837833285332,
-0.024697719141840935,
-0.0739608034491539,
-0.03324945271015167,
-0.05526357889175415,
0.032694462686777115,
0.03972528874874115,
-0.034600965678691864,
0.017544610425829887,
-0.048658695071935654,
-0.043719109147787094,
0.03314307704567909,
0.026951070874929428,
-0.049342650920152664,
0.03159589320421219,
0.047770194709300995,
-0.03947103023529053,
0.015570628456771374,
0.0018726236885413527,
-0.04603149741888046,
0.022972287610173225,
0.027412448078393936,
0.015398452058434486,
0.02702382579445839,
0.029228778555989265,
-0.025867043063044548,
-0.017913373187184334,
-0.07383992522954941,
-0.03999035805463791,
-0.05808816850185394,
0.02508850023150444,
0.06746120750904083
] |
CLAck/en-vi | [
"pytorch",
"marian",
"text2text-generation",
"en",
"vi",
"dataset:ALT",
"transformers",
"translation",
"license:apache-2.0",
"autotrain_compatible"
] | translation | {
"architectures": [
"MarianMTModel"
],
"model_type": "marian",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8 | 2022-02-12T17:04:02Z | ---
language:
- en
- vi
tags:
- translation
license: apache-2.0
datasets:
- ALT
metrics:
- sacrebleu
---
This is a finetuning of a MarianMT pretrained on English-Chinese. The target language pair is English-Vietnamese.
The first phase of training (mixed) is performed on a dataset containing both English-Chinese and English-Vietnamese sentences.
The second phase of training (pure) is performed on a dataset containing only English-Vietnamese sentences.
### Example
```
%%capture
!pip install transformers transformers[sentencepiece]
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
# Download the pretrained model for English-Vietnamese available on the hub
model = AutoModelForSeq2SeqLM.from_pretrained("CLAck/en-vi")
tokenizer = AutoTokenizer.from_pretrained("CLAck/en-vi")
# Download a tokenizer that can tokenize English since the model Tokenizer doesn't know anymore how to do it
# We used the one coming from the initial model
# This tokenizer is used to tokenize the input sentence
tokenizer_en = AutoTokenizer.from_pretrained('Helsinki-NLP/opus-mt-en-zh')
# These special tokens are needed to reproduce the original tokenizer
tokenizer_en.add_tokens(["<2zh>", "<2vi>"], special_tokens=True)
sentence = "The cat is on the table"
# This token is needed to identify the target language
input_sentence = "<2vi> " + sentence
translated = model.generate(**tokenizer_en(input_sentence, return_tensors="pt", padding=True))
output_sentence = [tokenizer.decode(t, skip_special_tokens=True) for t in translated]
```
### Training results
MIXED
| Epoch | Bleu |
|:-----:|:-------:|
| 1.0 | 26.2407 |
| 2.0 | 32.6016 |
| 3.0 | 35.4060 |
| 4.0 | 36.6737 |
| 5.0 | 37.3774 |
PURE
| Epoch | Bleu |
|:-----:|:-------:|
| 1.0 | 37.3169 |
| 2.0 | 37.4407 |
| 3.0 | 37.6696 |
| 4.0 | 37.8765 |
| 5.0 | 38.0105 |
| [
-0.023700905963778496,
-0.03136240690946579,
0.005533365998417139,
0.0777873545885086,
0.030935248360037804,
0.020336730405688286,
-0.005202698055654764,
-0.017598599195480347,
-0.050074491649866104,
0.045513443648815155,
0.01194017380475998,
-0.017048289999365807,
-0.0016400101594626904,
0.04091428965330124,
-0.031868189573287964,
-0.021548276767134666,
-0.01774284988641739,
-0.005553788971155882,
-0.040578313171863556,
-0.010532361455261707,
0.004544371739029884,
0.0057715484872460365,
-0.018452376127243042,
0.022031506523489952,
-0.0023962859995663166,
0.005843611434102058,
0.0016471047420054674,
0.029784517362713814,
0.007539447396993637,
-0.07774246484041214,
0.02173970825970173,
-0.023547526448965073,
-0.007279626559466124,
-0.007360414136201143,
-0.0191932525485754,
0.0021790401078760624,
0.004392778966575861,
0.020596196874976158,
0.03482866287231445,
0.05920796096324921,
-0.011299355886876583,
-0.0003288899315521121,
-0.010695382952690125,
-0.018561821430921555,
0.025770872831344604,
0.026725931093096733,
-0.012631558813154697,
0.011612161062657833,
0.02588866464793682,
-0.010539657436311245,
-0.050294212996959686,
-0.05259731411933899,
-0.029441609978675842,
0.03399057313799858,
-0.013446464203298092,
-0.026358652859926224,
-0.07758231461048126,
0.0004032199503853917,
0.04699922725558281,
-0.058360666036605835,
-0.03911082074046135,
0.017183346673846245,
-0.04516797140240669,
0.019928500056266785,
0.023716028779745102,
-0.03214757516980171,
0.0018492796225473285,
-0.0379345677793026,
0.010808413848280907,
0.0022639313247054815,
0.052143506705760956,
-0.023593606427311897,
0.014517574571073055,
-0.11610119044780731,
-0.02662467025220394,
-0.022933896631002426,
0.02126043476164341,
0.03374309837818146,
-0.03533351421356201,
0.05552893504500389,
0.014187011867761612,
0.003934303764253855,
0.03161541000008583,
-0.02890891768038273,
-0.014904328621923923,
0.038231901824474335,
-0.0342697910964489,
0.004102205857634544,
0.004368383903056383,
0.03553717955946922,
-0.04729506000876427,
-0.02148262783885002,
-0.015209571458399296,
-0.026953162625432014,
-0.011346218176186085,
0.02416301891207695,
0.050457876175642014,
0.0023121379781514406,
0.03740847855806351,
0.03254212066531181,
0.0325397364795208,
0.05691608041524887,
0.008529620245099068,
0.045279912650585175,
-0.02742333523929119,
0.010484292171895504,
-0.020155010744929314,
-0.037813086062669754,
-0.057700879871845245,
0.028914231806993484,
0.028881743550300598,
-0.0521056242287159,
-0.02990773133933544,
0.06290935724973679,
0.025206631049513817,
-0.020976057276129723,
0.06238687410950661,
-0.029931940138339996,
-0.04751846566796303,
-0.06621001660823822,
0.04923383891582489,
-0.007723007816821337,
-0.0027523392345756292,
0.005119469482451677,
-0.04675709456205368,
0.02636892721056938,
-0.04971250146627426,
-0.041876744478940964,
0.0032169281039386988,
0.017013194039463997,
-0.024605536833405495,
0.031256962567567825,
-0.011221579276025295,
-0.043294113129377365,
0.010383851826190948,
-0.006196127273142338,
-0.07464314252138138,
0.04562745988368988,
0.05154874920845032,
0.08508110046386719,
-0.040809277445077896,
-0.05304059013724327,
0.016252093017101288,
0.01878540962934494,
-0.015737339854240417,
0.03659861907362938,
0.012142370454967022,
-0.04481184482574463,
-0.011617142707109451,
-0.005178096704185009,
0.0729481503367424,
-0.061223212629556656,
-0.009652132168412209,
0.06010395660996437,
-0.009928934276103973,
0.0333782322704792,
-0.04604487493634224,
0.007185616530478001,
0.0017811300931498408,
-0.0305643193423748,
-0.022373713552951813,
0.03464844822883606,
-0.018802981823682785,
-0.009935948066413403,
-0.03635476529598236,
-0.04981014505028725,
-0.0011187023483216763,
0.08347851037979126,
0.005726502742618322,
-0.022501148283481598,
-0.014312183484435081,
0.016777051612734795,
0.02844313345849514,
0.03718351200222969,
-0.016599435359239578,
0.02079915627837181,
0.07828482240438461,
0.03642285242676735,
-0.04575648531317711,
0.05971420928835869,
0.015417834743857384,
-0.032521095126867294,
-0.03079046681523323,
0.015072752721607685,
0.00666404701769352,
-0.02111470140516758,
0.02528715319931507,
0.04544578120112419,
-0.02917776256799698,
-0.03508288785815239,
0.01018498558551073,
0.049283914268016815,
0.005542933940887451,
0.00944461952894926,
0.008466124534606934,
0.00247136689722538,
-0.012417481280863285,
0.05903943255543709,
-0.018461110070347786,
0.0035597477108240128,
-0.039479054510593414,
-0.024403685703873634,
-0.006058060098439455,
0.018898213282227516,
0.037220027297735214,
0.02685534954071045,
-0.004259276669472456,
0.10237900167703629,
-0.024055128917098045,
0.018582070246338844,
-0.03703686222434044,
-0.030684160068631172,
0.01270761527121067,
0.04751488193869591,
0.01091678161174059,
0.04363487288355827,
0.019923804327845573,
-0.019287455826997757,
0.03435179218649864,
0.05653664097189903,
0.05847746506333351,
0.04193180054426193,
-0.05261939391493797,
0.00046879739966243505,
-0.0031464395578950644,
0.07130534946918488,
-0.06753277778625488,
-0.03815731778740883,
0.0211075097322464,
0.03207344934344292,
-0.010256735607981682,
-0.008864449337124825,
-0.006874517537653446,
0.016052668914198875,
-0.04171302169561386,
-0.0713881403207779,
0.03117583878338337,
0.020405016839504242,
0.02339588664472103,
0.03229043260216713,
0.015750009566545486,
0.004384753759950399,
0.03720012307167053,
0.018147628754377365,
-0.006669796071946621,
-0.04297638311982155,
0.0006474248948507011,
0.024061644449830055,
0.03962539881467819,
-0.03624881058931351,
0.032026078552007675,
-0.0074120573699474335,
0.008951403200626373,
0.04966609925031662,
-0.06593934446573257,
0.0193445086479187,
0.034747254103422165,
0.009241033345460892,
-0.018019888550043106,
-0.00895002018660307,
-0.0006798579124733806,
0.0515190064907074,
0.06335039436817169,
0.005625573452562094,
0.07425737380981445,
0.009354092180728912,
0.053960248827934265,
0.0661834105849266,
0.041857313364744186,
0.03495616093277931,
0.03537853807210922,
0.04967591539025307,
0.00933802779763937,
0.0030685216188430786,
0.05190008133649826,
-0.045859966427087784,
0.021756429225206375,
-0.028806379064917564,
0.043909262865781784,
-0.0008552990038879216,
0.003258225740864873,
0.0292428657412529,
0.018070543184876442,
-0.026067718863487244,
0.02392781525850296,
-0.013719763606786728,
-0.009848536923527718,
0.04195525124669075,
-0.007687361445277929,
-0.003905482590198517,
0.0059127118438482285,
-0.020455842837691307,
-0.009369154460728168,
-0.06906500458717346,
-0.04846029728651047,
0.0027356843929737806,
-0.026072876527905464,
0.005851192865520716,
-0.06441733986139297,
-0.040145084261894226,
-0.06515132635831833,
-0.03218955546617508,
0.024965891614556313,
0.0017368296394124627,
0.013570435345172882,
-0.02418222278356552,
0.023368777707219124,
-0.05277303606271744,
0.007304911036044359,
-0.024615725502371788,
-0.03533859923481941,
-0.03691956400871277,
-0.05666470527648926,
0.05077594146132469,
0.010683421976864338,
0.0184086374938488,
0.010237944312393665,
0.0032444894313812256,
-0.009652335196733475,
-0.014354315586388111,
0.055618997663259506,
0.020720189437270164,
-0.041846148669719696,
-0.048592571169137955,
0.0370415598154068,
-0.022808074951171875,
-0.0058862557634711266,
-0.020315170288085938,
-0.034069404006004333,
0.0843668207526207,
0.06639622151851654,
0.028428049758076668,
0.0017602111911401153,
-0.026118628680706024,
-0.053192365914583206,
-0.07776180654764175,
-0.00822440069168806,
-0.040627371519804,
-0.010518305003643036,
-0.0062159826047718525,
-0.03660385683178902,
-0.015740515664219856,
-0.023706501349806786,
-0.01268703117966652,
-0.008004891686141491,
0.015563406981527805,
0.03876436874270439,
0.05175577849149704,
0.054814718663692474,
0.035786569118499756,
-0.05194761976599693,
-0.037399858236312866,
0.05449025705456734,
0.02124483324587345,
0.0039908611215651035,
-0.06739920377731323,
-0.021095411852002144,
0.04826045408844948,
0.022410910576581955,
-0.005183996632695198,
-0.03366178274154663,
0.09979763627052307,
0.0007158919470384717,
-0.010464824736118317,
0.017598619684576988,
-0.0023854486644268036,
0.000598476326558739,
-0.008558948524296284,
-0.012919069267809391,
-0.02968664839863777,
-0.06978975981473923,
-0.024436866864562035,
-0.02384359762072563,
0.05253089591860771,
-0.0762251541018486,
-0.05102451518177986,
-0.027297670021653175,
0.025583835318684578,
0.003641385119408369,
0.005028721876442432,
-0.025155693292617798,
0.014921668916940689,
-0.03591553121805191,
-0.0342460572719574,
0.010512525215744972,
0.014703740365803242,
0.020358162000775337,
0.050902266055345535,
0.0015528914518654346,
-0.029124602675437927,
0.024090787395834923,
0.03881949186325073,
0.06358665227890015,
0.010075001046061516,
-0.03534853830933571,
0.034349475055933,
-0.011489829048514366,
0.03694292530417442,
0.0063001299276947975,
-0.022372158244252205,
-0.05160177871584892,
-0.08110769093036652,
-0.0013385401107370853,
0.0006412927759811282,
-0.05030283331871033,
-0.023314787074923515,
0.04829221963882446,
-0.03469045087695122,
0.005237726494669914,
0.011057560332119465,
0.026333343237638474,
0.07149860262870789,
-0.07723831385374069,
0.05875599756836891,
-0.0007544278050772846,
0.058088790625333786,
-0.057957787066698074,
0.004281597211956978,
-0.009674744680523872,
-0.016338927671313286,
-0.0102441580966115,
0.07395857572555542,
0.024116722866892815,
0.0537162646651268,
0.07231489568948746,
0.024392591789364815,
-0.05131275951862335,
0.057440806180238724,
0.036490071564912796,
-0.007960867136716843,
-0.05605096369981766,
-0.0014128671027719975,
-0.01647701859474182,
-0.03686461225152016,
0.0008442260441370308,
-0.015268534421920776,
0.007989317178726196,
0.04609344154596329,
-0.02183729037642479,
-0.026116110384464264,
-0.015402303077280521,
-0.02559063583612442,
-0.03875521570444107,
-0.04101422056555748,
-0.010739936493337154,
0.007158071734011173,
-0.021237388253211975,
0.04347570985555649,
0.020062966272234917,
0.026846086606383324,
0.059085264801979065,
0.05648615211248398,
-0.011927755549550056,
-0.013213816098868847,
0.018203482031822205,
0.03440975770354271,
-0.04927021637558937,
-0.06008501350879669,
-0.03321515768766403,
0.01833559200167656,
0.0487024262547493,
-0.010365445166826248,
-0.0783214122056961,
0.027796875685453415,
0.06706587970256805,
-0.0031661889515817165,
0.07761450856924057,
-0.03257518634200096,
0.027892306447029114,
0.0398310162127018,
-0.008648728020489216,
0.00851115770637989,
-0.014748157002031803,
-0.016294201835989952,
-0.015501311980187893,
0.02039858140051365,
-0.04959860444068909,
-0.04443863034248352,
-0.05714947730302811,
0.003344401717185974,
0.01652994193136692,
0.062257081270217896,
0.054875005036592484,
-0.027008874341845512,
-0.06178474426269531,
-0.004498371854424477,
0.016658656299114227,
-0.04964154213666916,
0.004903669934719801,
0.017361294478178024,
0.03595713526010513,
-0.049855221062898636,
-0.038245778530836105,
-0.022296233102679253,
0.013387970626354218,
0.039702530950307846,
0.0007998768123798072,
-0.04274637624621391,
-0.04292687401175499,
0.025243671610951424,
-0.028426147997379303,
-0.027251608669757843,
-0.07918495684862137,
0.018741808831691742,
-0.014476513490080833,
0.0006232750019989908,
0.05052635073661804,
0.03878080099821091,
0.03085353784263134,
0.028581971302628517,
0.010604215785861015,
0.02382902428507805,
-0.026261664927005768,
0.051114924252033234,
-0.026076851412653923,
-0.012299234978854656,
0.010014125145971775,
-0.01591813750565052,
-0.013015818782150745,
-0.032756056636571884,
-0.042395979166030884,
-0.03063608705997467,
-0.027516689151525497,
0.022366542369127274,
-0.020846765488386154,
0.01393415778875351,
-0.012714022770524025,
0.033496178686618805,
-0.0477292463183403,
-0.056004028767347336,
-0.021183351054787636,
-0.02280324697494507,
-0.07920035719871521,
-0.04333256185054779,
0.0144732054322958,
0.03860755264759064,
0.03297637775540352,
0.0019452661508694291,
-0.00345621001906693,
0.032672107219696045,
0.0031862747855484486,
-0.018594682216644287,
0.04481034353375435,
0.012756513431668282,
-0.04164016619324684,
-0.011106607504189014,
0.00362339336425066,
0.009189827367663383,
-0.01421881839632988,
-0.029076537117362022,
0.02923932857811451,
0.0297385361045599,
-0.019450126215815544,
-0.00905888993293047,
0.025266608223319054,
0.018910903483629227,
-0.08650492876768112,
-0.04166721552610397,
0.005807528272271156,
-0.04884646087884903,
0.0317612886428833,
0.007335611619055271,
-0.01671697199344635,
-0.0013849976239725947,
0.040795568376779556,
0.021598119288682938,
-0.015347533859312534,
-0.02876872755587101,
0.006082449574023485,
-0.011703469790518284,
0.0057368092238903046,
-0.06483736634254456,
0.023964233696460724,
-0.03782671317458153,
0.006318673025816679,
-0.002945436630398035,
-0.002742188051342964,
-0.06301120668649673,
0.053437113761901855,
-0.02192571572959423,
0.010764398612082005,
-0.019914409145712852,
0.025053391233086586,
-0.04779495298862457,
0.041024453938007355,
-0.014539412222802639,
0.02808476611971855,
-0.033692367374897,
0.049966730177402496,
-0.05263953283429146,
-0.010400282219052315,
-0.022817835211753845,
0.013871176168322563,
-0.017037352547049522,
-0.02709941938519478,
-0.00871996395289898,
-0.027018237859010696,
0.023568103089928627,
0.03325290605425835,
0.05150420218706131,
0.03526259586215019,
-0.011251811869442463,
0.028278056532144547,
0.016120001673698425,
-0.07133448868989944,
-0.021125443279743195,
-0.0008487515733577311,
0.022175731137394905,
-0.0070529505610466,
0.05238359794020653,
0.04565243050456047,
-0.0633922666311264,
-0.05151789262890816,
0.0469934307038784,
-0.004021401051431894,
-0.0006301206885837018,
-0.009446700103580952,
0.02076851949095726,
0.045799825340509415,
0.032404061406850815,
-0.01882050558924675,
-0.02633901871740818,
-0.04421519488096237,
-0.03186267241835594,
0.02863220125436783,
-0.002200313378125429,
0.0021209940314292908,
0.000914706033654511,
-0.051782336086034775,
-0.020299995318055153,
0.06763454526662827,
0.04095016047358513,
0.026595426723361015,
-0.010942282155156136,
-0.03531162068247795,
0.014325221069157124,
0.009453553706407547,
-0.049257948994636536,
-0.008381874300539494,
-0.010041390545666218,
-0.029282987117767334,
0.08489041030406952,
-0.015300135128200054,
0.023379625752568245,
0.0646558478474617,
0.0015453610103577375,
0.005109123419970274,
0.03455507755279541,
-0.011188875883817673,
0.006387707311660051,
0.05232064053416252,
-0.0745626911520958,
-0.010974613949656487,
-0.03581055998802185,
0.0793914645910263,
-0.07474172115325928,
0.03302294388413429,
0.05384056270122528,
0.03487471491098404,
0.0144095029681921,
-0.03563844785094261,
-0.05427679792046547,
0.032892562448978424,
-0.048501934856176376,
0.07766842097043991,
0.01729750819504261,
-0.05670104920864105,
0.06791257858276367,
0.029922205954790115,
-0.08169124275445938,
0.07934396713972092,
0.03913455456495285,
0.020670704543590546,
0.026837510988116264,
0.030379917472600937,
-0.0741320252418518,
0.009976575151085854,
-0.014351782388985157,
0.011357292532920837,
-0.0775601789355278,
-0.008962783962488174,
-0.0021472640801221132,
-0.041262686252593994,
-0.023335382342338562,
0.020519958809018135,
-0.026497704908251762,
-0.013710281811654568,
0.008199389092624187,
-0.06978107988834381,
-0.042948491871356964,
-0.023403357714414597,
0.02138824574649334,
-0.02771650068461895,
0.019064027816057205,
-0.034305229783058167,
-0.02395697496831417,
0.029514728114008904,
0.022075099870562553,
-0.0443086177110672,
-0.018688298761844635,
0.01607394777238369,
-0.061927951872348785,
-0.046720024198293686,
0.037805479019880295,
0.013026216998696327,
-0.02955947443842888,
0.04592132195830345,
-0.016277778893709183,
0.01929389126598835,
0.01968170516192913,
0.023059332743287086,
0.03081563673913479,
-0.05404451861977577,
0.023684481158852577,
0.01835261844098568,
0.01044472772628069,
0.019320685416460037,
-0.005676921922713518,
0.04115980863571167,
0.021843424066901207,
0.012317403219640255,
0.016527028754353523,
-0.027892356738448143,
-0.02935384400188923,
0.013009696267545223,
-0.034267742186784744,
0.01965518295764923,
0.0038513485342264175,
-0.04499676078557968,
-0.02665773034095764,
-0.016171801835298538,
-0.004999303724616766,
0.05074483901262283,
-0.04258963093161583,
0.002917988458648324,
0.04852684959769249,
-0.04086795449256897,
-0.045448970049619675,
-0.07059288024902344,
-0.02281026914715767,
-0.018475543707609177,
0.010755370371043682,
0.042209286242723465,
-0.06043826788663864,
0.017953645437955856,
-0.041715558618307114,
-0.05771388113498688,
0.052135027945041656,
0.028935963287949562,
-0.029122622683644295,
0.05716928839683533,
0.03971989080309868,
-0.037712033838033676,
0.022054539993405342,
0.05255806818604469,
-0.051460910588502884,
0.03602466732263565,
0.022696055471897125,
0.024029726162552834,
0.04617227986454964,
0.02648162841796875,
-0.011528409086167812,
-0.025879479944705963,
-0.09689418971538544,
-0.026152247563004494,
-0.021780788898468018,
-0.017174478620290756,
0.04563462734222412
] |
CLAck/indo-pure | [
"pytorch",
"marian",
"text2text-generation",
"en",
"id",
"dataset:ALT",
"transformers",
"translation",
"license:apache-2.0",
"autotrain_compatible"
] | translation | {
"architectures": [
"MarianMTModel"
],
"model_type": "marian",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 4 | 2022-02-02T09:13:34Z | ---
language:
- en
- id
tags:
- translation
license: apache-2.0
datasets:
- ALT
metrics:
- sacrebleu
---
Pure fine-tuning version of MarianMT en-zh on Indonesian Language
### Example
```
%%capture
!pip install transformers transformers[sentencepiece]
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
# Download the pretrained model for English-Vietnamese available on the hub
model = AutoModelForSeq2SeqLM.from_pretrained("CLAck/indo-pure")
tokenizer = AutoTokenizer.from_pretrained("CLAck/indo-pure")
# Download a tokenizer that can tokenize English since the model Tokenizer doesn't know anymore how to do it
# We used the one coming from the initial model
# This tokenizer is used to tokenize the input sentence
tokenizer_en = AutoTokenizer.from_pretrained('Helsinki-NLP/opus-mt-en-zh')
# These special tokens are needed to reproduce the original tokenizer
tokenizer_en.add_tokens(["<2zh>", "<2indo>"], special_tokens=True)
sentence = "The cat is on the table"
# This token is needed to identify the target language
input_sentence = "<2indo> " + sentence
translated = model.generate(**tokenizer_en(input_sentence, return_tensors="pt", padding=True))
output_sentence = [tokenizer.decode(t, skip_special_tokens=True) for t in translated]
```
### Training results
| Epoch | Bleu |
|:-----:|:-------:|
| 1.0 | 15.9336 |
| 2.0 | 28.0175 |
| 3.0 | 31.6603 |
| 4.0 | 33.9151 |
| 5.0 | 35.0472 |
| 6.0 | 35.8469 |
| 7.0 | 36.1180 |
| 8.0 | 36.6018 |
| 9.0 | 37.1973 |
| 10.0 | 37.2738 | | [
-0.006493321154266596,
-0.043774526566267014,
-0.01624245196580887,
0.07191282510757446,
0.03539391607046127,
0.022076139226555824,
-0.015967030078172684,
-0.013675299473106861,
-0.04848179221153259,
0.057801391929388046,
0.03167371451854706,
-0.030902760103344917,
-0.0075171636417508125,
0.03889213874936104,
-0.045878779143095016,
-0.008648918941617012,
-0.006629748735576868,
0.0010124966502189636,
-0.04017947241663933,
-0.023574627935886383,
-0.0032973047345876694,
0.018646245822310448,
-0.015609394758939743,
0.029162215068936348,
-0.0017271407414227724,
0.021459469571709633,
-0.009576224721968174,
0.037090543657541275,
0.013708041980862617,
-0.0847545936703682,
0.014143511652946472,
-0.016843747347593307,
-0.01290806569159031,
-0.010041378438472748,
-0.029369419440627098,
-0.0029135853983461857,
0.009280739352107048,
0.026143213734030724,
0.03863128647208214,
0.05625665560364723,
-0.019608084112405777,
0.01223276648670435,
-0.01452784426510334,
-0.023284146562218666,
0.027179338037967682,
0.02984517440199852,
-0.0185532346367836,
0.006124056875705719,
0.03071293793618679,
-0.008168485946953297,
-0.05917252600193024,
-0.06170301511883736,
-0.023896748200058937,
0.03701091185212135,
-0.00753532350063324,
-0.012461956590414047,
-0.08514847606420517,
-0.0066171023063361645,
0.041833214461803436,
-0.05922681838274002,
-0.03336592763662338,
0.02490939013659954,
-0.07013607025146484,
0.023167451843619347,
0.022379029542207718,
-0.03655274584889412,
-0.0016018098685890436,
-0.039655651897192,
0.021847423166036606,
-0.0031173715833574533,
0.046758983284235,
-0.030999718233942986,
0.010598418302834034,
-0.10092002898454666,
-0.031874679028987885,
-0.014093163423240185,
0.032255981117486954,
0.04021477326750755,
-0.03103584609925747,
0.06008573994040489,
0.016824038699269295,
-0.0034878149162977934,
0.023943383246660233,
-0.028831617906689644,
-0.033396895974874496,
0.03360288590192795,
-0.03662296012043953,
-0.00003371277853148058,
0.005705162417143583,
0.03169780969619751,
-0.052808526903390884,
-0.02131945826113224,
-0.00996345654129982,
-0.023780077695846558,
-0.010132783092558384,
0.00820155069231987,
0.04225730523467064,
0.008438345044851303,
0.03267883509397507,
0.03352111205458641,
0.021819720044732094,
0.0603705570101738,
0.001125062583014369,
0.059095051139593124,
-0.012928033247590065,
0.0005009932210668921,
-0.029483161866664886,
-0.03442247956991196,
-0.06008007377386093,
0.026942715048789978,
0.04489428550004959,
-0.0656275525689125,
-0.0421954020857811,
0.05103760212659836,
0.024928735569119453,
-0.01689925789833069,
0.058121759444475174,
-0.01049793977290392,
-0.049075666815042496,
-0.07467877119779587,
0.048537228256464005,
-0.008269851095974445,
-0.010723605751991272,
0.007699495181441307,
-0.036509182304143906,
0.017344573512673378,
-0.05267312377691269,
-0.0373472161591053,
0.0024995985440909863,
0.013377310708165169,
-0.03394560143351555,
0.020488105714321136,
-0.005979570560157299,
-0.03753945231437683,
0.016894010826945305,
-0.010277635417878628,
-0.0693928599357605,
0.0391375906765461,
0.04486590251326561,
0.0945747122168541,
-0.030426032841205597,
-0.04942548647522926,
0.015513647347688675,
0.0050194584764540195,
-0.025999141857028008,
0.027721626684069633,
0.02103690803050995,
-0.03998609632253647,
0.002224625088274479,
-0.006454096175730228,
0.06283421069383621,
-0.06163153052330017,
-0.005631864070892334,
0.05042783543467522,
-0.01700129546225071,
0.03103291057050228,
-0.04140961542725563,
-0.008357283659279346,
0.003195303725078702,
-0.013787650503218174,
-0.01792045868933201,
0.03073347918689251,
-0.0037864679470658302,
-0.005345441866666079,
-0.030155539512634277,
-0.04456816986203194,
-0.012332132086157799,
0.08706855028867722,
0.011042434722185135,
-0.010441182181239128,
-0.005514440592378378,
0.019841991364955902,
0.02884763292968273,
0.03367039933800697,
-0.018471604213118553,
0.024376897141337395,
0.08134979754686356,
0.031829334795475006,
-0.030423259362578392,
0.0593249648809433,
0.014125845395028591,
-0.023062169551849365,
-0.036211047321558,
0.011297615244984627,
0.00636992696672678,
-0.026531342417001724,
0.02079935558140278,
0.04360100254416466,
-0.023582981899380684,
-0.03207128122448921,
-0.008577918633818626,
0.060130272060632706,
0.009550665505230427,
0.0029872276354581118,
0.007845454849302769,
0.00004944753891322762,
-0.01779731549322605,
0.06206853315234184,
-0.012580284848809242,
0.012868231162428856,
-0.051653265953063965,
-0.019726861268281937,
0.0015129484236240387,
0.03519244119524956,
0.039488766342401505,
0.024467218667268753,
-0.01708132028579712,
0.11743548512458801,
-0.03265100345015526,
0.010788138024508953,
-0.03632515296339989,
-0.036008063703775406,
0.02019209787249565,
0.04002320021390915,
0.019794154912233353,
0.040464136749506,
0.02148144505918026,
-0.013954037800431252,
0.03993562236428261,
0.059521567076444626,
0.050332725048065186,
0.04934221878647804,
-0.03359614685177803,
-0.011347216553986073,
0.014513878151774406,
0.07017512619495392,
-0.059473928064107895,
-0.036835357546806335,
0.013646429404616356,
0.030849166214466095,
-0.01948448456823826,
0.00903282593935728,
-0.0053746807388961315,
0.012349868193268776,
-0.028468793258070946,
-0.07089956104755402,
0.02911592647433281,
0.01762433722615242,
0.014698230661451817,
0.027002708986401558,
0.016789251938462257,
-0.0000479545742564369,
0.03534917160868645,
0.017111685127019882,
-0.003606765763834119,
-0.042249612510204315,
0.0024894699454307556,
0.019457127898931503,
0.04719657078385353,
-0.030320588499307632,
0.02659948542714119,
-0.000947598135098815,
0.017114300280809402,
0.054349612444639206,
-0.06044238805770874,
0.01744965650141239,
0.020968496799468994,
0.008754918351769447,
-0.012412608601152897,
0.0065752556547522545,
-0.0030305041000247,
0.047124769538640976,
0.06146318092942238,
-0.001779074314981699,
0.0692509114742279,
0.007317785173654556,
0.05245566740632057,
0.07898879796266556,
0.04344777390360832,
0.024108046665787697,
0.028340302407741547,
0.07098941504955292,
0.008255685679614544,
-0.0074182976968586445,
0.052939027547836304,
-0.03874870389699936,
0.03399037942290306,
-0.034778255969285965,
0.04271915182471275,
0.005359170492738485,
0.000957690121140331,
0.021838992834091187,
0.015696272253990173,
-0.022944724187254906,
0.019258493557572365,
-0.0015189944533631206,
-0.006651108153164387,
0.03468960151076317,
-0.012525748461484909,
0.003454958787187934,
0.008166165091097355,
-0.02246866747736931,
0.002613513497635722,
-0.06836701929569244,
-0.048747655004262924,
0.011486225761473179,
-0.013494671322405338,
0.0058677103370428085,
-0.06036776304244995,
-0.03693518415093422,
-0.06788536161184311,
-0.02495298720896244,
0.038854628801345825,
0.020841799676418304,
0.011608942411839962,
-0.01899396814405918,
0.014282225631177425,
-0.05185053125023842,
-0.0009398345719091594,
-0.029033785685896873,
-0.03436117619276047,
-0.021236862987279892,
-0.062183186411857605,
0.04185989499092102,
0.008482039906084538,
0.013274592347443104,
0.008602944202721119,
0.015021247789263725,
-0.016900211572647095,
-0.008831857703626156,
0.051917482167482376,
0.029153883457183838,
-0.03262234479188919,
-0.05424370616674423,
0.04394758120179176,
-0.028819695115089417,
-0.00816652737557888,
-0.021258894354104996,
-0.03108157031238079,
0.08998262882232666,
0.06700500100851059,
0.01869409903883934,
0.0006013163947500288,
-0.024487577378749847,
-0.05380371958017349,
-0.07313237339258194,
-0.013542966917157173,
-0.034596048295497894,
-0.010310043580830097,
-0.014578144066035748,
-0.03568027541041374,
-0.00809476152062416,
-0.02765432558953762,
-0.024000756442546844,
-0.016246013343334198,
0.024726958945393562,
0.04369925707578659,
0.058444760739803314,
0.04434383660554886,
0.03557963669300079,
-0.046857647597789764,
-0.03267213702201843,
0.06462297588586807,
0.026324717327952385,
0.01046405266970396,
-0.06738387048244476,
-0.02076958492398262,
0.04416677728295326,
0.025392640382051468,
-0.00360174966044724,
-0.03175840899348259,
0.10262584686279297,
0.0064703417010605335,
-0.007963119074702263,
-0.0009066478814929724,
0.0074823638424277306,
-0.013110526837408543,
-0.0117008276283741,
-0.008786415681242943,
-0.03334001451730728,
-0.06116262450814247,
-0.010645175352692604,
-0.013614816591143608,
0.04923851788043976,
-0.07858604937791824,
-0.052150364965200424,
-0.026812754571437836,
0.03669990599155426,
0.002964525716379285,
0.008021640591323376,
-0.02018423192203045,
0.00757167674601078,
-0.05229189246892929,
-0.04089788720011711,
0.011524699628353119,
0.02194218337535858,
0.00006515569111797959,
0.06247159466147423,
0.008234244771301746,
-0.03121771849691868,
0.023292794823646545,
0.03863804414868355,
0.06229060888290405,
0.009167857468128204,
-0.032267533242702484,
0.026649612933397293,
-0.007938138209283352,
0.018659936264157295,
0.0018124317284673452,
-0.029906129464507103,
-0.0489809513092041,
-0.08165033161640167,
0.006441917270421982,
0.005891188979148865,
-0.05194418504834175,
-0.018595313653349876,
0.050935376435518265,
-0.014946961775422096,
0.0016839132877066731,
0.01568460464477539,
0.01734844036400318,
0.07460703700780869,
-0.06609389930963516,
0.061784930527210236,
-0.012650170363485813,
0.04746484383940697,
-0.05033231899142265,
-0.0015177859459072351,
-0.008008156903088093,
-0.0045134639367461205,
-0.0035404227674007416,
0.07122291624546051,
0.027812106534838676,
0.04298228770494461,
0.07397858798503876,
0.02709317021071911,
-0.04659442603588104,
0.05215200036764145,
0.0269837137311697,
-0.014138123020529747,
-0.0633048266172409,
0.00374105223454535,
-0.020482830703258514,
-0.04999186843633652,
0.003554923227056861,
-0.021668054163455963,
0.007913175970315933,
0.0408337339758873,
-0.009072508662939072,
-0.0180331040173769,
-0.0071274107322096825,
-0.01718812994658947,
-0.04002445563673973,
-0.04705546051263809,
-0.0205912496894598,
0.012806553393602371,
-0.02325466461479664,
0.03825020790100098,
0.011877133511006832,
0.02961174212396145,
0.05880467966198921,
0.051054541021585464,
-0.004247161094099283,
-0.026219431310892105,
0.020084083080291748,
0.028446689248085022,
-0.03899509087204933,
-0.06883261352777481,
-0.035259999334812164,
0.01474015973508358,
0.053491514176130295,
0.0020415715407580137,
-0.07810480892658234,
0.02804143913090229,
0.06191728264093399,
0.00164548319298774,
0.08067083358764648,
-0.035672254860401154,
0.030367735773324966,
0.044854577630758286,
-0.012392370961606503,
0.003172458615154028,
-0.03183034062385559,
-0.021033810451626778,
-0.012284367345273495,
0.0321909636259079,
-0.043280936777591705,
-0.04135392606258392,
-0.05584143474698067,
0.00857031624764204,
0.023613495752215385,
0.06840310990810394,
0.050685204565525055,
-0.02169075421988964,
-0.06198033317923546,
-0.005222461186349392,
0.03068738617002964,
-0.0530642606317997,
0.012391806580126286,
0.0022639345843344927,
0.04591674357652664,
-0.047330256551504135,
-0.04722240939736366,
-0.014057261869311333,
0.0016399784944951534,
0.04493815079331398,
0.01649845764040947,
-0.04085761681199074,
-0.050633564591407776,
0.03588062897324562,
-0.022556167095899582,
-0.030243458226323128,
-0.06683269143104553,
0.02494896948337555,
-0.01893508993089199,
-0.014541039243340492,
0.03963032364845276,
0.039243970066308975,
0.02537185326218605,
0.030367188155651093,
0.007641318719834089,
0.028768645599484444,
-0.025057638064026833,
0.04520692676305771,
-0.029965287074446678,
-0.007296450901776552,
0.0056931087747216225,
-0.02109774760901928,
-0.012788276188075542,
-0.03793108090758324,
-0.04767334461212158,
-0.02757638692855835,
-0.028622757643461227,
0.01100117340683937,
-0.018266411498188972,
0.008559465408325195,
-0.005869206041097641,
0.047480225563049316,
-0.039444126188755035,
-0.0553799532353878,
-0.020636456087231636,
-0.02008424699306488,
-0.09151594340801239,
-0.057450320571660995,
-0.00023665458138566464,
0.03544749319553375,
0.03896075114607811,
-0.004929416347295046,
0.001248628250323236,
0.025873355567455292,
0.004085600841790438,
-0.031331319361925125,
0.048809632658958435,
-0.000019657234588521533,
-0.04322497919201851,
-0.02162853255867958,
0.009041315875947475,
0.010860652662813663,
0.011002629064023495,
-0.022890647873282433,
0.029646189883351326,
0.026178661733865738,
-0.02132864110171795,
-0.0006551560945808887,
0.013674477115273476,
0.028857605531811714,
-0.0872870683670044,
-0.04770955815911293,
0.010358165949583054,
-0.04174703359603882,
0.024188654497265816,
0.006179741118103266,
-0.019894953817129135,
0.005444174632430077,
0.028769316151738167,
0.029060015454888344,
0.005569217726588249,
-0.042998455464839935,
0.0056787594221532345,
0.00014578811533283442,
0.006151595618575811,
-0.05942980572581291,
0.04188049957156181,
-0.032464344054460526,
0.003726149210706353,
0.00030838538077659905,
-0.02248711697757244,
-0.05869593471288681,
0.04467812553048134,
-0.011049222201108932,
0.001256319577805698,
-0.012118048034608364,
0.02702687308192253,
-0.04844532161951065,
0.045528583228588104,
-0.01408781111240387,
0.033254049718379974,
-0.032721828669309616,
0.040172282606363297,
-0.050516027957201004,
-0.0025005200877785683,
-0.018107734620571136,
0.02639784850180149,
-0.02028747834265232,
-0.02293541468679905,
-0.011183563619852066,
-0.021280653774738312,
0.01643485762178898,
0.023085201159119606,
0.04688599705696106,
0.028541777282953262,
-0.02187987230718136,
0.015091381035745144,
0.015938937664031982,
-0.0839657187461853,
-0.013489654287695885,
-0.002177056623622775,
0.01570533588528633,
-0.019832557067275047,
0.06153762713074684,
0.04507802054286003,
-0.050903335213661194,
-0.04928592965006828,
0.0398060604929924,
-0.012289389967918396,
-0.00513328704982996,
-0.007939214818179607,
0.020438112318515778,
0.03970438987016678,
0.029382772743701935,
-0.02902752161026001,
-0.02140732668340206,
-0.03049406409263611,
-0.03175251930952072,
0.03405561298131943,
-0.005744307301938534,
0.01002404186874628,
0.000009876240255835,
-0.049177300184965134,
-0.008081275038421154,
0.0735706090927124,
0.03194355219602585,
0.028227483853697777,
-0.016060134395956993,
-0.04495573416352272,
0.0026741456240415573,
0.013111723586916924,
-0.04767240956425667,
-0.00972960889339447,
0.005517861805856228,
-0.034167926758527756,
0.08660681545734406,
-0.015204694122076035,
0.021576128900051117,
0.05929923057556152,
0.002720828866586089,
0.0019064713269472122,
0.03096686117351055,
-0.0075066350400447845,
0.0011034420458599925,
0.051816176623106,
-0.05466492846608162,
0.004576778970658779,
-0.036917202174663544,
0.0706886276602745,
-0.07843105494976044,
0.030634041875600815,
0.05417802184820175,
0.029099825769662857,
0.016637226566672325,
-0.02910744957625866,
-0.049455106258392334,
0.04083791747689247,
-0.04969451203942299,
0.07225705683231354,
0.022964568808674812,
-0.05555900186300278,
0.059855856001377106,
0.019105499610304832,
-0.08803354948759079,
0.08024401217699051,
0.040220871567726135,
0.023185526952147484,
0.034307919442653656,
0.039650749415159225,
-0.08003988116979599,
0.030077870935201645,
-0.018153464421629906,
0.021436527371406555,
-0.08918770402669907,
-0.0032698314171284437,
-0.004346866626292467,
-0.04903595894575119,
-0.025517662987113,
0.01834578812122345,
-0.039110612124204636,
-0.01619301736354828,
-0.002083886181935668,
-0.07058274745941162,
-0.029326442629098892,
-0.004645731300115585,
0.021731313318014145,
-0.03886182978749275,
0.012999309226870537,
-0.041040532290935516,
-0.007141708396375179,
0.025074105709791183,
0.02440696768462658,
-0.03934745863080025,
-0.011491239070892334,
0.025152940303087234,
-0.061684299260377884,
-0.031236734241247177,
0.03434760868549347,
0.012730584479868412,
-0.030859336256980896,
0.05328524112701416,
-0.010177499614655972,
0.022939106449484825,
0.0093022296205163,
0.01691249944269657,
0.025221453979611397,
-0.06159570440649986,
0.012547214515507221,
0.019227154552936554,
0.0028182074893265963,
0.02741621807217598,
-0.000027114625481772237,
0.04314965382218361,
0.027634337544441223,
0.01983216404914856,
-0.0009443319868296385,
-0.03410983458161354,
-0.03493070602416992,
0.020240966230630875,
-0.04186389967799187,
0.020324846729636192,
0.009377242997288704,
-0.04653909057378769,
-0.0316862016916275,
-0.020641209557652473,
-0.019415900111198425,
0.04451848566532135,
-0.05090012773871422,
0.012449018657207489,
0.03922736272215843,
-0.03609390929341316,
-0.04194072633981705,
-0.06263212859630585,
-0.026355313137173653,
-0.026814142242074013,
0.019394658505916595,
0.03828195109963417,
-0.05816487967967987,
0.005345258861780167,
-0.05335191637277603,
-0.058181509375572205,
0.04774867370724678,
0.0259628314524889,
-0.03623199835419655,
0.053048890084028244,
0.04514449089765549,
-0.033935848623514175,
0.017656587064266205,
0.04102534055709839,
-0.042133644223213196,
0.023253168910741806,
0.012767506763339043,
0.01763787493109703,
0.0398406945168972,
0.029001176357269287,
-0.012563173659145832,
-0.034599218517541885,
-0.0868590846657753,
-0.032411281019449234,
-0.02452123910188675,
-0.005767341703176498,
0.04761061072349548
] |
CLAck/vi-en | [
"pytorch",
"marian",
"text2text-generation",
"en",
"vi",
"dataset:ALT",
"transformers",
"translation",
"license:apache-2.0",
"autotrain_compatible"
] | translation | {
"architectures": [
"MarianMTModel"
],
"model_type": "marian",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 6 | 2022-02-12T16:50:15Z | ---
language:
- en
- vi
tags:
- translation
license: apache-2.0
datasets:
- ALT
metrics:
- sacrebleu
---
This is a finetuning of a MarianMT pretrained on Chinese-English. The target language pair is Vietnamese-English.
### Example
```
%%capture
!pip install transformers transformers[sentencepiece]
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
# Download the pretrained model for English-Vietnamese available on the hub
model = AutoModelForSeq2SeqLM.from_pretrained("CLAck/vi-en")
tokenizer = AutoTokenizer.from_pretrained("CLAck/vi-en")
sentence = your_vietnamese_sentence
# This token is needed to identify the source language
input_sentence = "<2vi> " + sentence
translated = model.generate(**tokenizer(input_sentence, return_tensors="pt", padding=True))
output_sentence = [tokenizer.decode(t, skip_special_tokens=True) for t in translated]
```
### Training results
| Epoch | Bleu |
|:-----:|:-------:|
| 1.0 | 21.3180 |
| 2.0 | 26.8012 |
| 3.0 | 29.3578 |
| 4.0 | 31.5178 |
| 5.0 | 32.8740 |
| [
-0.02990742214024067,
-0.03425101190805435,
0.00805922131985426,
0.06482153385877609,
0.030796214938163757,
0.01796233467757702,
-0.0033352423924952745,
-0.009642673656344414,
-0.04771403223276138,
0.037249062210321426,
0.020333101972937584,
-0.01577584445476532,
-0.0007559757214039564,
0.03682631254196167,
-0.021706392988562584,
-0.023966846987605095,
-0.018333613872528076,
-0.0030555096454918385,
-0.046599749475717545,
-0.0010816857684403658,
0.016734588891267776,
0.009223784320056438,
-0.006277510896325111,
0.017949245870113373,
0.014084996655583382,
-0.0001701774017419666,
0.0017700069583952427,
0.014539354480803013,
0.005839157849550247,
-0.07424601912498474,
0.012852968648076057,
-0.03134838864207268,
-0.0032510969322174788,
-0.0064336140640079975,
-0.020589131861925125,
0.007233436219394207,
0.00932005699723959,
0.023593313992023468,
0.03375419229269028,
0.058911629021167755,
-0.0007861643098294735,
0.001997589133679867,
-0.004780591931194067,
-0.021969744935631752,
0.03350289911031723,
0.017866292968392372,
-0.014813642017543316,
-0.0033919403795152903,
0.018320584669709206,
-0.02145041711628437,
-0.053167518228292465,
-0.06469287723302841,
-0.026761909946799278,
0.03132744878530502,
-0.007990687154233456,
-0.018340719863772392,
-0.07407578825950623,
-0.00020636053523048759,
0.03806934505701065,
-0.051426440477371216,
-0.029640357941389084,
0.017162492498755455,
-0.042887523770332336,
0.027651621028780937,
0.031736522912979126,
-0.044275399297475815,
0.009646693244576454,
-0.030821677297353745,
0.01299531664699316,
-0.009990012273192406,
0.05246729403734207,
-0.014893224462866783,
0.010175692848861217,
-0.11576308310031891,
-0.027314072474837303,
-0.020055202767252922,
0.022680828347802162,
0.028089148923754692,
-0.02626524679362774,
0.05090298503637314,
0.011727435514330864,
0.0049200947396457195,
0.026693766936659813,
-0.029367923736572266,
-0.016014227643609047,
0.04360734298825264,
-0.04527949169278145,
0.008862612769007683,
0.00774664431810379,
0.036081526428461075,
-0.04235050454735756,
-0.030166901648044586,
-0.01049487292766571,
-0.03226056322455406,
-0.011702917516231537,
0.033193960785865784,
0.05100894719362259,
-0.005036492832005024,
0.019956469535827637,
0.04311130940914154,
0.030851397663354874,
0.0620744451880455,
0.003740794723853469,
0.047838419675827026,
-0.028931260108947754,
0.012098578736186028,
-0.026339484378695488,
-0.033766135573387146,
-0.053943537175655365,
0.03189250826835632,
0.028060220181941986,
-0.05713605880737305,
-0.01344634871929884,
0.0712205022573471,
0.0406062975525856,
-0.017170095816254616,
0.05132564529776573,
-0.037971023470163345,
-0.06143848970532417,
-0.0626245066523552,
0.05607805773615837,
0.004332510754466057,
-0.007633262313902378,
0.014897260814905167,
-0.04694005846977234,
0.025608371943235397,
-0.0512375608086586,
-0.031503498554229736,
0.0037523810751736164,
0.019038109108805656,
-0.011549278162419796,
0.039897553622722626,
-0.01669064350426197,
-0.0461750365793705,
0.00660523260012269,
-0.004237768240272999,
-0.07745864987373352,
0.034098826348781586,
0.05376293882727623,
0.07114674896001816,
-0.050454843789339066,
-0.03767606243491173,
0.012325878255069256,
0.022203905507922173,
-0.02426914870738983,
0.03869010508060455,
0.006324226502329111,
-0.04625967517495155,
-0.02266770973801613,
-0.020457545295357704,
0.07371453940868378,
-0.06764806061983109,
-0.014642927795648575,
0.06055213883519173,
-0.013313304632902145,
0.022649183869361877,
-0.030123678967356682,
0.017265623435378075,
0.012301470153033733,
-0.02171471156179905,
-0.029081331565976143,
0.03526299074292183,
-0.01684369519352913,
-0.014811611734330654,
-0.038645531982183456,
-0.0393398255109787,
0.0000499920679430943,
0.08504915237426758,
0.009433942846953869,
-0.025891782715916634,
-0.01207209937274456,
0.018514558672904968,
0.03208649158477783,
0.044553242623806,
-0.012206562794744968,
0.02757909521460533,
0.0801745057106018,
0.03703123703598976,
-0.03431374952197075,
0.05514896661043167,
0.016731157898902893,
-0.033614031970500946,
-0.02916666865348816,
0.017366880550980568,
0.00903942622244358,
-0.03182041272521019,
0.018658623099327087,
0.06026960909366608,
-0.02782486006617546,
-0.036745697259902954,
0.01934332400560379,
0.043243106454610825,
-0.0029996337834745646,
0.016948556527495384,
0.011441465467214584,
0.005098474677652121,
-0.01312972977757454,
0.04602843523025513,
-0.032804109156131744,
-0.006892904173582792,
-0.0316971130669117,
-0.016147220507264137,
-0.01999012753367424,
0.025522766634821892,
0.02932206727564335,
0.033672451972961426,
-0.01163740735501051,
0.0942692682147026,
-0.027974072843790054,
0.017035508528351784,
-0.027819717302918434,
-0.031045392155647278,
0.003473604330793023,
0.032779939472675323,
0.007919576950371265,
0.05711716040968895,
0.014440128579735756,
-0.018117813393473625,
0.040966931730508804,
0.06741601973772049,
0.049486398696899414,
0.04663331061601639,
-0.04802890121936798,
-0.006200606469064951,
0.0014502998674288392,
0.0746663510799408,
-0.07033548504114151,
-0.032321348786354065,
0.023948129266500473,
0.022575028240680695,
-0.02570074424147606,
0.006276567466557026,
-0.016498014330863953,
0.0314614363014698,
-0.04382554814219475,
-0.07863414287567139,
0.03178020939230919,
0.013048574328422546,
0.022069176658988,
0.025760671123862267,
0.019421303644776344,
-0.007871928624808788,
0.032439082860946655,
0.011811459437012672,
-0.0076801530085504055,
-0.03537796437740326,
-0.002971355803310871,
0.01904389075934887,
0.04643644765019417,
-0.028253015130758286,
0.02918817102909088,
-0.005130356177687645,
0.013347676023840904,
0.05038807541131973,
-0.063111312687397,
0.016324711963534355,
0.04849909991025925,
0.007818600162863731,
-0.002706905361264944,
-0.02127656526863575,
-0.010197393596172333,
0.04417426511645317,
0.057818442583084106,
0.008103935979306698,
0.07244396954774857,
0.023387504741549492,
0.05776495113968849,
0.06038089096546173,
0.03372820466756821,
0.03616330772638321,
0.04158700257539749,
0.05047870799899101,
0.008404710330069065,
0.005241674836724997,
0.052268628031015396,
-0.04247137904167175,
0.02744370698928833,
-0.03232008218765259,
0.044648997485637665,
-0.008898335509002209,
-0.0014508849708363414,
0.03090863674879074,
0.0037413183599710464,
-0.012703493237495422,
0.024288339540362358,
-0.01939774490892887,
-0.001959944376721978,
0.03465461730957031,
-0.005502236541360617,
-0.011243430897593498,
0.012725379317998886,
-0.01815769262611866,
-0.0026891427114605904,
-0.05763116106390953,
-0.03651949018239975,
0.015361105091869831,
-0.03855166211724281,
0.016279326751828194,
-0.06082986667752266,
-0.05197209492325783,
-0.06934403628110886,
-0.03376179561018944,
0.039519377052783966,
0.013315314427018166,
0.015777699649333954,
-0.033165521919727325,
0.010219017043709755,
-0.04325529932975769,
-0.004006197210401297,
-0.025773825123906136,
-0.0412726067006588,
-0.030504070222377777,
-0.06254348158836365,
0.05747425928711891,
0.012582116760313511,
0.023162465542554855,
0.0041260430589318275,
-0.0033042561262845993,
-0.015287162736058235,
-0.014244277961552143,
0.06843309104442596,
0.015059958212077618,
-0.03200875595211983,
-0.03321683779358864,
0.035308610647916794,
-0.01570858620107174,
-0.008715513162314892,
-0.019961807876825333,
-0.032341282814741135,
0.08768890053033829,
0.06874494254589081,
0.018494753167033195,
-0.011488731019198895,
-0.01745009608566761,
-0.050934500992298126,
-0.08092932403087616,
0.008346552029252052,
-0.04806319996714592,
-0.02919592894613743,
0.0001333765685558319,
-0.03817274048924446,
-0.013660211116075516,
-0.03246733546257019,
-0.026690063998103142,
0.006536686792969704,
0.010393275879323483,
0.03200700506567955,
0.055302269756793976,
0.05635977163910866,
0.04183530434966087,
-0.05138668790459633,
-0.027836192399263382,
0.05479128658771515,
0.027029845863580704,
-0.01167873665690422,
-0.0690075159072876,
-0.025948183611035347,
0.05514204129576683,
0.02392555959522724,
-0.010088312439620495,
-0.034827325493097305,
0.08273716270923615,
0.0020264089107513428,
-0.007413920946419239,
0.0174733716994524,
-0.015035846270620823,
-0.0045530726201832294,
-0.019574308767914772,
-0.009911506436765194,
-0.03305654227733612,
-0.07291052490472794,
-0.01068539172410965,
-0.018934739753603935,
0.059268735349178314,
-0.0776544064283371,
-0.04928357154130936,
-0.015638675540685654,
0.02596227638423443,
0.014703040011227131,
-0.006541313603520393,
-0.01829441450536251,
0.01925022155046463,
-0.04318203404545784,
-0.0397527776658535,
0.019555961713194847,
0.010087206959724426,
0.013666434213519096,
0.05945597216486931,
0.006931007839739323,
-0.03705238923430443,
0.02392013557255268,
0.034362830221652985,
0.0716467797756195,
0.013538419269025326,
-0.02836303785443306,
0.03016744554042816,
-0.014882475137710571,
0.029995765537023544,
0.018163632601499557,
-0.022901715710759163,
-0.043987005949020386,
-0.07816451787948608,
-0.002736736088991165,
-0.010361400432884693,
-0.03318750858306885,
-0.023770522326231003,
0.04667586088180542,
-0.0388059988617897,
0.0011518422979861498,
0.024377621710300446,
0.02704324759542942,
0.060947392135858536,
-0.06819002330303192,
0.06347784399986267,
-0.00804284680634737,
0.07043851912021637,
-0.0627099946141243,
-0.001133412471972406,
-0.0011444620322436094,
-0.02270941250026226,
-0.013247838243842125,
0.0671558603644371,
0.02140711434185505,
0.05899737402796745,
0.07472824305295944,
0.02193627506494522,
-0.05207144096493721,
0.05952754616737366,
0.028770005330443382,
-0.01230664737522602,
-0.0640297383069992,
0.0024672402068972588,
-0.017494959756731987,
-0.030842654407024384,
0.012743362225592136,
-0.019961144775152206,
0.00423826277256012,
0.03320593759417534,
-0.03514545410871506,
-0.01798897050321102,
-0.014651945792138577,
-0.027582621201872826,
-0.03298264369368553,
-0.0395149327814579,
-0.019702540710568428,
-0.0021225728560239077,
-0.02732887677848339,
0.03657791391015053,
0.025682875886559486,
0.013354973867535591,
0.06663645058870316,
0.04598791152238846,
-0.0191915575414896,
-0.01588529534637928,
0.014893900603055954,
0.03949499875307083,
-0.05194438248872757,
-0.06257922947406769,
-0.038591139018535614,
0.016909794881939888,
0.04062945395708084,
-0.011579546146094799,
-0.06909079849720001,
0.038259632885456085,
0.058372002094984055,
0.0026856856420636177,
0.0636163204908371,
-0.020210392773151398,
0.03707486763596535,
0.047699932008981705,
-0.013147381134331226,
0.004247641656547785,
-0.011393562890589237,
-0.00866906251758337,
-0.022472402080893517,
0.013827410526573658,
-0.05472470447421074,
-0.03904327377676964,
-0.04432890936732292,
0.006462316028773785,
0.024701986461877823,
0.05191656947135925,
0.04505177214741707,
-0.020524870604276657,
-0.06329920142889023,
-0.003248329972848296,
0.01227352675050497,
-0.049626171588897705,
0.015226615592837334,
0.01787630282342434,
0.04358987137675285,
-0.055702582001686096,
-0.02571951411664486,
-0.012490258552134037,
0.015196815133094788,
0.05820026993751526,
-0.0009772994089871645,
-0.04841451719403267,
-0.04562980681657791,
0.02451576665043831,
-0.022085485979914665,
-0.027390265837311745,
-0.0800996869802475,
0.010523191653192043,
-0.021556003019213676,
0.0028685478027909994,
0.05146753415465355,
0.03128605708479881,
0.0333310104906559,
0.01596006006002426,
0.01375517901033163,
0.031244544312357903,
-0.01981627568602562,
0.04829644784331322,
-0.04001558572053909,
-0.017839431762695312,
0.02057529240846634,
-0.02029956877231598,
-0.022813444957137108,
-0.03343358263373375,
-0.03541978821158409,
-0.027562128379940987,
-0.023959456011652946,
0.024429308250546455,
-0.025344431400299072,
0.02467948943376541,
0.009325899183750153,
0.027696974575519562,
-0.04505234956741333,
-0.043521035462617874,
-0.02611798606812954,
-0.024758851155638695,
-0.08491634577512741,
-0.0390729159116745,
0.004108527675271034,
0.02782028540968895,
0.02868223376572132,
-0.005469540599733591,
-0.010669759474694729,
0.02925688773393631,
0.007016799878329039,
-0.020330049097537994,
0.049505893141031265,
0.01336196530610323,
-0.04978127405047417,
-0.019188757985830307,
0.00026891360175795853,
0.007091067731380463,
-0.00948989950120449,
-0.03601830080151558,
0.01752491295337677,
0.025644954293966293,
-0.01644832268357277,
-0.016967909410595894,
0.012875298038125038,
0.020162474364042282,
-0.08544758707284927,
-0.05248214304447174,
-0.006590971723198891,
-0.043101608753204346,
0.0467744916677475,
0.006462674122303724,
-0.02716086246073246,
0.012406019493937492,
0.05105965957045555,
0.02223171852529049,
-0.012255804613232613,
-0.03374900296330452,
0.0067573594860732555,
-0.005049609579145908,
-0.015536054968833923,
-0.07901526242494583,
0.0158781036734581,
-0.04408492147922516,
0.007320826407521963,
-0.011436213739216328,
0.0026450003497302532,
-0.04873485490679741,
0.05912013351917267,
-0.022144945338368416,
0.018528178334236145,
-0.03687354922294617,
0.0319826565682888,
-0.046403322368860245,
0.039580438286066055,
-0.013410868123173714,
0.0261872299015522,
-0.03521770238876343,
0.036561161279678345,
-0.04697138071060181,
-0.014172524213790894,
-0.022832419723272324,
0.025264635682106018,
-0.019083350896835327,
-0.03395044431090355,
-0.014051144011318684,
-0.024106042459607124,
0.02586040087044239,
0.020490385591983795,
0.031151246279478073,
0.01854146458208561,
-0.01752343773841858,
0.026210738345980644,
0.020940110087394714,
-0.0817859023809433,
-0.01024151686578989,
-0.004661905113607645,
0.021259082481265068,
0.0022970293648540974,
0.04317165166139603,
0.052826203405857086,
-0.060474053025245667,
-0.0401797890663147,
0.046269796788692474,
-0.017285600304603577,
-0.005021213088184595,
0.006813880987465382,
0.026306843385100365,
0.058630190789699554,
0.044391777366399765,
-0.015879787504673004,
-0.01475003082305193,
-0.03873801231384277,
-0.0264752134680748,
0.016171783208847046,
0.0006246137199923396,
0.006368258967995644,
0.009133361279964447,
-0.05512116476893425,
-0.020877717062830925,
0.07313214242458344,
0.044154517352581024,
0.020598873496055603,
-0.007417887449264526,
-0.03120865672826767,
0.022147102281451225,
0.018768031150102615,
-0.05096687003970146,
-0.0016742688603699207,
-0.005348415579646826,
-0.017999207600951195,
0.09458210319280624,
-0.01661599427461624,
0.01893344148993492,
0.06056972220540047,
0.010485728271305561,
0.0057246810756623745,
0.034616995602846146,
-0.014308572746813297,
0.0063574607484042645,
0.0568087100982666,
-0.0724652111530304,
-0.01246650516986847,
-0.02497265301644802,
0.068236343562603,
-0.06161089614033699,
0.026715001091361046,
0.047218307852745056,
0.0322922021150589,
0.006849109660834074,
-0.04505075141787529,
-0.04583017900586128,
0.04116394370794296,
-0.054610103368759155,
0.08969193696975708,
0.016050811856985092,
-0.05341232195496559,
0.06521174311637878,
0.02806515246629715,
-0.07739263027906418,
0.07304392009973526,
0.04506736248731613,
0.018839921802282333,
0.01846412755548954,
0.026152539998292923,
-0.06524114310741425,
0.01566164940595627,
-0.01882658340036869,
0.024549558758735657,
-0.08932781219482422,
-0.006394259165972471,
-0.007062762510031462,
-0.0332915373146534,
-0.025536753237247467,
0.022460144013166428,
-0.022911326959729195,
-0.018856458365917206,
0.005821072030812502,
-0.07268425077199936,
-0.05150189623236656,
-0.03646257147192955,
0.019455572590231895,
-0.022038321942090988,
0.02024710364639759,
-0.03037729114294052,
-0.019887210801243782,
0.019046280533075333,
0.016466736793518066,
-0.04218806326389313,
-0.02370889112353325,
0.008017724379897118,
-0.07296609878540039,
-0.05421369895339012,
0.034644465893507004,
0.006456941366195679,
-0.023764241486787796,
0.03107212297618389,
-0.02287507988512516,
0.0074789817444980145,
0.02816949598491192,
0.01501440815627575,
0.026454603299498558,
-0.04943988099694252,
0.01953074336051941,
0.03149912506341934,
0.0025430042296648026,
0.007798497565090656,
-0.00099800038151443,
0.038982369005680084,
0.020607788115739822,
0.014016692526638508,
0.01528922002762556,
-0.025961801409721375,
-0.0339890792965889,
0.01222620066255331,
-0.029158879071474075,
0.02979981154203415,
0.005775571800768375,
-0.050376612693071365,
-0.03448593243956566,
-0.0052038803696632385,
-0.0021565728820860386,
0.058339692652225494,
-0.026219405233860016,
0.009156577289104462,
0.04947012662887573,
-0.03341716527938843,
-0.036797747015953064,
-0.0783279612660408,
-0.030869171023368835,
-0.01301942951977253,
0.018003851175308228,
0.047422245144844055,
-0.07001800835132599,
0.015774086117744446,
-0.042328983545303345,
-0.05558018013834953,
0.051785409450531006,
0.018283197656273842,
-0.026223769411444664,
0.0465727373957634,
0.038708895444869995,
-0.025942161679267883,
0.028065329417586327,
0.046582695096731186,
-0.03759093955159187,
0.0484212264418602,
0.030851267278194427,
0.025915758684277534,
0.04324024170637131,
0.032524220645427704,
-0.017725419253110886,
-0.027180414646863937,
-0.10235752910375595,
-0.028312724083662033,
-0.018644938245415688,
-0.028033999726176262,
0.05217369645833969
] |
CLTL/gm-ner-xlmrbase | [
"pytorch",
"tf",
"xlm-roberta",
"token-classification",
"nl",
"transformers",
"dighum",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"XLMRobertaForTokenClassification"
],
"model_type": "xlm-roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 2 | 2021-10-27T11:16:42Z | ---
language: nl
license: apache-2.0
tags:
- dighum
pipeline_tag: token-classification
---
# Early-modern Dutch NER (General Letters)
## Description
This is a fine-tuned NER model for early-modern Dutch United East India Company (VOC) letters based on XLM-R_base [(Conneau et al., 2020)](https://aclanthology.org/2020.acl-main.747/). The model identifies *locations*, *persons*, *organisations*, but also *ships* as well as derived forms of locations and religions.
## Intended uses and limitations
This model was fine-tuned (trained, validated and tested) on a single source of data, the General Letters (Generale Missiven). These letters span a large variety of Dutch, as they cover the largest part of the 17th and 18th centuries, and have been extended with editorial notes between 1960 and 2017. As the model was only fine-tuned on this data however, it may perform less well on other texts from the same period.
## How to use
The model can run on raw text through the *token-classification* pipeline:
```
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("CLTL/gm-ner-xlmrbase")
model = AutoModelForTokenClassification.from_pretrained("CLTL/gm-ner-xlmrbase")
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
example = "Batavia heeft om advies gevraagd."
ner_results = nlp(example)
print(ner_results)
```
This outputs a list of entities with their character offsets in the input text:
```
[{'entity': 'B-LOC', 'score': 0.99739265, 'index': 1, 'word': '▁Bata', 'start': 0, 'end': 4}, {'entity': 'I-LOC', 'score': 0.5373179, 'index': 2, 'word': 'via', 'start': 4, 'end': 7}]
```
## Training data and tagset
The model was fine-tuned on the General Letters [GM-NER](https://github.com/cltl/voc-missives/tree/master/data/ner/datasplit_all_standard) dataset, with the following tagset:
| tag | description | notes |
| --- | ----------- | ----- |
| LOC | locations | |
| LOCderiv | derived forms of locations | by derivation, e.g. *Bandanezen*, or composition, e.g. *Javakoffie* |
| ORG | organisations | includes forms derived by composition, e.g. *Compagnieszaken*
| PER | persons |
| RELderiv | forms related to religion | merges religion names (*Christendom*), derived forms (*christenen*) and composed forms (*Christen-orangkay*) |
| SHP | ships |
The base text for this dataset is OCR text that has been partially corrected. The text is clean overall but errors remain.
## Training procedure
The model was fine-tuned with [xlm-roberta-base](https://huggingface.co/xlm-roberta-base), using [this script](https://github.com/huggingface/transformers/blob/master/examples/legacy/token-classification/run_ner.py).
Non-default training parameters are:
* training batch size: 16
* max sequence length: 256
* number of epochs: 4 -- loading the best checkpoint model by loss at the end, with checkpoints every 200 steps
* (seed: 1)
## Evaluation
### Metric
* entity-level F1
### Results
| overall | 92.7 |
| --- | ----------- |
| LOC | 95.8 |
| LOCderiv | 92.7 |
| ORG | 92.5 |
| PER | 86.2 |
| RELderiv | 90.7 |
| SHP | 81.6 |
## Reference
The model and fine-tuning data presented here were developed as part of:
```bibtex
@inproceedings{arnoult-etal-2021-batavia,
title = "Batavia asked for advice. Pretrained language models for Named Entity Recognition in historical texts.",
author = "Arnoult, Sophie I. and
Petram, Lodewijk and
Vossen, Piek",
booktitle = "Proceedings of the 5th Joint SIGHUM Workshop on Computational Linguistics for Cultural Heritage, Social Sciences, Humanities and Literature",
month = nov,
year = "2021",
address = "Punta Cana, Dominican Republic (online)",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2021.latechclfl-1.3",
pages = "21--30"
}
```
| [
-0.016121523454785347,
-0.013837399892508984,
0.00479188933968544,
0.01768859103322029,
0.06612788140773773,
0.030196523293852806,
-0.010111075825989246,
-0.007958577945828438,
-0.04092145711183548,
0.043555848300457,
0.028603510931134224,
-0.01717279478907585,
-0.01851719617843628,
0.040811195969581604,
-0.04405682533979416,
-0.022335993126034737,
-0.004265446215867996,
-0.011050560511648655,
-0.0732327550649643,
-0.006867554038763046,
-0.001269644359126687,
0.0002714841684792191,
-0.007738921325653791,
0.006798413582146168,
-0.005605549085885286,
0.024465331807732582,
0.008960900828242302,
0.05270181968808174,
0.06770829111337662,
-0.06490187346935272,
0.002631835639476776,
-0.06599145382642746,
-0.02320156618952751,
-0.028264304623007774,
-0.04013333097100258,
-0.01605457253754139,
0.02346789836883545,
0.002509899204596877,
0.036231402307748795,
0.08004098385572433,
-0.019131021574139595,
0.010560602881014347,
-0.006221426650881767,
-0.04942511022090912,
0.04786813259124756,
0.017964065074920654,
-0.052367545664310455,
-0.03473462164402008,
0.030555330216884613,
-0.07063204795122147,
-0.043409314006567,
-0.07275477796792984,
-0.02947811223566532,
0.01662234216928482,
-0.02565450593829155,
-0.008191742934286594,
-0.06501976400613785,
-0.008494947105646133,
0.06799419969320297,
-0.046568725258111954,
-0.04083295539021492,
0.01064294669777155,
-0.06705931574106216,
0.010977590456604958,
0.006325158290565014,
-0.03147604689002037,
-0.026434939354658127,
-0.04717608541250229,
0.02951936051249504,
0.00911654718220234,
0.03828465938568115,
-0.009650139138102531,
-0.0033727914560586214,
-0.04918050393462181,
-0.017884593456983566,
-0.007436427287757397,
0.04106893762946129,
0.02993950806558132,
-0.037106312811374664,
0.050679679960012436,
0.03448781371116638,
-0.004746465478092432,
0.031151624396443367,
-0.02862061746418476,
0.0025412586983293295,
0.05942334234714508,
-0.033707890659570694,
0.006559946574270725,
0.024271884933114052,
0.041949618607759476,
-0.033430665731430054,
-0.03769576922059059,
-0.005762177519500256,
-0.020818550139665604,
-0.01973811350762844,
0.02021271176636219,
0.007804516237229109,
0.003652573563158512,
0.01416197419166565,
0.039396848529577255,
0.0262138694524765,
0.046349719166755676,
-0.04691247269511223,
0.03783046454191208,
-0.02255939692258835,
-0.003896533278748393,
-0.027273021638393402,
-0.0366470031440258,
-0.020757270976901054,
0.012692412361502647,
-0.01844012178480625,
-0.07728268951177597,
-0.046815067529678345,
0.04073819890618324,
0.028683004900813103,
-0.03055989183485508,
0.039403196424245834,
-0.0515621080994606,
-0.05052182078361511,
-0.05942976847290993,
0.014708109200000763,
0.008378706872463226,
-0.017545221373438835,
-0.014514736831188202,
-0.03800143301486969,
0.010367697104811668,
-0.0577654205262661,
-0.03732726350426674,
-0.019166050478816032,
-0.000701858545653522,
-0.015972217544913292,
0.04823431372642517,
-0.010487537831068039,
-0.06274399161338806,
0.015183821320533752,
0.00580744631588459,
-0.07033517211675644,
0.07229665666818619,
0.025251569226384163,
0.08737047016620636,
-0.0467829629778862,
-0.04950598627328873,
0.012848036363720894,
0.011674509383738041,
-0.027501149103045464,
-0.00551448343321681,
-0.0077236108481884,
-0.022390732541680336,
-0.011954490095376968,
-0.010058825835585594,
0.03370746225118637,
-0.05402000620961189,
0.009878486394882202,
0.049110423773527145,
0.0020573786459863186,
0.034873828291893005,
-0.05225134640932083,
0.00803674478083849,
-0.017964838072657585,
-0.018479149788618088,
-0.032202426344156265,
0.048118844628334045,
-0.00944653432816267,
-0.02701508440077305,
-0.035112351179122925,
-0.07073330134153366,
-0.029592240229249,
0.070025235414505,
-0.0026791368145495653,
-0.013377911411225796,
-0.04536771401762962,
0.01717768795788288,
0.0502377524971962,
0.05484350025653839,
-0.031062889844179153,
0.015152688138186932,
0.022773269563913345,
0.019641853868961334,
-0.038200538605451584,
0.07245314866304398,
0.0041314042173326015,
-0.022170204669237137,
-0.03574462607502937,
0.009875413030385971,
0.008374995552003384,
-0.021243102848529816,
0.017951559275388718,
0.03471549227833748,
0.019212307408452034,
-0.02393150143325329,
-0.025528185069561005,
0.0378495417535305,
-0.007329307962208986,
0.005021778866648674,
0.012731105089187622,
0.004443095065653324,
-0.007834740914404392,
0.039081674069166183,
-0.011193005368113518,
0.004670982714742422,
-0.022876061499118805,
-0.024253234267234802,
-0.0021185462828725576,
0.031069397926330566,
0.0484732948243618,
0.05574127286672592,
-0.013576899655163288,
0.0720529705286026,
-0.05783125385642052,
-0.0006810708437114954,
-0.03730016574263573,
-0.04755229130387306,
-0.002704784506931901,
0.038869887590408325,
0.012653209269046783,
0.049559127539396286,
-0.010495263151824474,
-0.0383843295276165,
0.02538069151341915,
0.046006735414266586,
0.015148760750889778,
0.030959544703364372,
-0.04527619108557701,
0.011179863475263119,
0.034218691289424896,
0.04359147325158119,
-0.06189583241939545,
-0.048600681126117706,
0.006942057050764561,
0.0625390037894249,
-0.036080919206142426,
0.026260720565915108,
-0.030372310429811478,
0.014979168772697449,
-0.06397983431816101,
-0.08149679005146027,
0.03297858685255051,
0.001849017571657896,
0.009143051691353321,
-0.013453404419124126,
-0.02882748655974865,
0.0031271278858184814,
0.030706938356161118,
0.026474643498659134,
0.01246238499879837,
-0.04592917487025261,
0.01071191020309925,
0.013295462355017662,
0.04186861589550972,
-0.05436336249113083,
0.05461835861206055,
-0.010156291536986828,
0.01370417419821024,
0.052654929459095,
-0.03282192349433899,
0.020624184980988503,
0.04373599588871002,
0.0056749205105006695,
-0.06469033658504486,
0.03819041699171066,
0.01103307493031025,
0.026494434103369713,
0.06052761897444725,
0.01749688945710659,
0.07419556379318237,
-0.0003287117287982255,
0.047556567937135696,
0.07362155616283417,
0.02365589141845703,
-0.013488122262060642,
0.04935315623879433,
0.03622409701347351,
0.012367751449346542,
-0.02816629409790039,
0.07065882533788681,
-0.024309223517775536,
0.007155546918511391,
-0.060617588460445404,
0.017508994787931442,
0.002781136427074671,
-0.006026442162692547,
0.0425252839922905,
0.03273521736264229,
-0.020190607756376266,
0.021332109346985817,
-0.021172797307372093,
-0.023869333788752556,
0.023497844114899635,
0.013709436170756817,
0.0008300772169604897,
0.005184757988899946,
-0.043380316346883774,
0.030477818101644516,
-0.07202242314815521,
-0.03887627646327019,
0.0023908817674964666,
-0.03388530761003494,
-0.01893608272075653,
-0.10475467890501022,
-0.04151894152164459,
-0.06453147530555725,
-0.017338575795292854,
0.054339293390512466,
0.022777795791625977,
-0.018807144835591316,
-0.04501335695385933,
0.007562799379229546,
-0.025839440524578094,
-0.033355820924043655,
-0.04318869486451149,
-0.0471966490149498,
-0.01922077313065529,
-0.07195033133029938,
0.053334012627601624,
0.03539754077792168,
0.028240296989679337,
0.0059182061813771725,
-0.002829889999702573,
-0.01681692898273468,
-0.01082773320376873,
0.03136357292532921,
0.0478893406689167,
-0.039222076535224915,
-0.034720104187726974,
0.022591305896639824,
-0.024643996730446815,
0.03568308427929878,
-0.0006501014577224851,
-0.04292770475149155,
0.04884468764066696,
0.060521069914102554,
0.018522629514336586,
-0.0017002568347379565,
0.005670817103236914,
-0.04300391301512718,
-0.05455765873193741,
-0.005219798535108566,
-0.02158244326710701,
-0.024894196540117264,
-0.030047602951526642,
-0.034371595829725266,
-0.02149958163499832,
-0.021359099075198174,
-0.0038413982838392258,
-0.011626088060438633,
-0.001991445431485772,
0.018075142055749893,
0.040572211146354675,
0.029234232380986214,
0.013504885137081146,
-0.034061890095472336,
-0.03846317157149315,
0.06288115680217743,
0.007778357248753309,
0.015979455783963203,
-0.08393017202615738,
-0.06046334281563759,
0.030310381203889847,
0.0354093462228775,
0.008103683590888977,
0.0066396999172866344,
0.07218514382839203,
0.029342234134674072,
0.006781886797398329,
-0.000990573433227837,
-0.023661088198423386,
-0.04661967605352402,
0.0032087250147014856,
-0.012699929997324944,
-0.03795044124126434,
-0.03614860028028488,
-0.005591912195086479,
0.0014969311887398362,
0.06001586839556694,
-0.04335755109786987,
-0.0419168695807457,
-0.010347023606300354,
0.03850565478205681,
0.06064366176724434,
-0.0005240485188551247,
-0.05279933288693428,
0.010654797777533531,
-0.030536232516169548,
-0.026468081399798393,
0.004962105304002762,
0.02809339575469494,
0.04801027849316597,
0.05375535786151886,
0.03185739368200302,
-0.02912835404276848,
0.02036537230014801,
0.06334169209003448,
0.0627918466925621,
0.02164430543780327,
-0.037242136895656586,
0.02096238173544407,
-0.02340073324739933,
0.01284047495573759,
0.0010802942560985684,
-0.029979724436998367,
-0.044855136424303055,
-0.060087233781814575,
-0.012391377240419388,
0.011717216111719608,
0.010099679231643677,
0.007580297999083996,
0.034015074372291565,
-0.008988036774098873,
-0.011707433499395847,
-0.008840590715408325,
0.015013800002634525,
0.047101691365242004,
-0.06420240551233292,
0.05390346050262451,
0.009082837961614132,
0.03849863260984421,
-0.05794420465826988,
0.004628668073564768,
-0.049572937190532684,
-0.009662200696766376,
0.013896115124225616,
0.0791272222995758,
0.005323642864823341,
0.011737005785107613,
0.06311333179473877,
0.013558998703956604,
-0.030710846185684204,
0.04950854927301407,
0.04468120262026787,
-0.012752994894981384,
-0.049079690128564835,
-0.003193197539076209,
0.002335878321900964,
-0.04004111513495445,
-0.0012699157232418656,
-0.04580215364694595,
0.02081298641860485,
0.02592206560075283,
0.0025355620309710503,
-0.008971162140369415,
0.0064005255699157715,
0.0013071006396785378,
-0.018086006864905357,
-0.06265758723020554,
-0.040317777544260025,
-0.002327773254364729,
-0.0409986637532711,
0.026829702779650688,
0.04534329101443291,
-0.0047837719321250916,
0.08164007216691971,
0.05409369245171547,
-0.03492655232548714,
-0.03569609299302101,
0.02343381755053997,
0.036279238760471344,
-0.04733754321932793,
-0.04872184991836548,
-0.04070166498422623,
0.06968053430318832,
0.05414526164531708,
-0.008274800144135952,
-0.10399916768074036,
-0.0033482874277979136,
0.06506368517875671,
-0.042907726019620895,
0.07722217589616776,
-0.014065926894545555,
0.040924426168203354,
0.06789403408765793,
-0.03243983909487724,
0.027350259944796562,
-0.050847385078668594,
0.004018926061689854,
-0.002989317988976836,
0.022315075621008873,
-0.06346087157726288,
-0.055503975600004196,
-0.017568716779351234,
0.04309920221567154,
0.04520042985677719,
0.05131002888083458,
0.027207637205719948,
-0.021588508039712906,
-0.04795076325535774,
0.0007006651139818132,
0.023721903562545776,
-0.050289127975702286,
0.0102815767750144,
0.01434845570474863,
0.04397626221179962,
-0.05248034745454788,
-0.037020083516836166,
-0.01393688004463911,
0.003522023791447282,
0.024880794808268547,
-0.027888847514986992,
-0.056867778301239014,
-0.06587597727775574,
0.025805724784731865,
-0.024936987087130547,
-0.011417434550821781,
-0.0997893363237381,
0.0376657135784626,
-0.019648345187306404,
-0.0026211896911263466,
0.05709728226065636,
0.04355387017130852,
0.017071902751922607,
0.04189971461892128,
-0.016690481454133987,
0.014942105859518051,
-0.015554685145616531,
0.01906443201005459,
-0.017577651888132095,
-0.011512829922139645,
-0.021143047139048576,
-0.05392526462674141,
-0.010529506020247936,
-0.03572317212820053,
-0.05653662607073784,
-0.046291280537843704,
-0.01317566353827715,
0.0017583552980795503,
-0.003536434378474951,
-0.001703114015981555,
-0.022271472960710526,
0.028009427711367607,
-0.032685644924640656,
-0.045307040214538574,
-0.05641528591513634,
-0.017745941877365112,
-0.06412530690431595,
-0.029304787516593933,
0.02918224409222603,
0.0027164944913238287,
0.02452000044286251,
-0.0021422309800982475,
-0.021397797390818596,
-0.0027201527263969183,
0.002063943073153496,
-0.033293306827545166,
0.03284863010048866,
0.0066162277944386005,
-0.04164700582623482,
-0.03576461970806122,
0.015323862433433533,
0.014681942760944366,
0.03184860944747925,
-0.010745006613433361,
0.03400414064526558,
0.023010579869151115,
-0.027799783274531364,
-0.004327948670834303,
0.03310597315430641,
0.056994494050741196,
-0.07758020609617233,
-0.02880200929939747,
-0.027673769742250443,
-0.02060800790786743,
0.028919273987412453,
-0.02509470097720623,
-0.023638907819986343,
0.010766199789941311,
0.021650681272149086,
0.027211183682084084,
-0.0021769520826637745,
-0.0313650518655777,
0.02508436143398285,
-0.028543837368488312,
0.02728620171546936,
-0.053018033504486084,
0.049626775085926056,
-0.025351623073220253,
0.032136254012584686,
-0.010317744687199593,
-0.031760502606630325,
-0.03958272561430931,
0.0413128063082695,
-0.011443953029811382,
-0.0022148180287331343,
-0.013384407386183739,
0.023155443370342255,
-0.031480081379413605,
0.0003292584733571857,
0.0016735298559069633,
0.031937066465616226,
0.009597060270607471,
0.05035609006881714,
-0.06562007963657379,
-0.012627379037439823,
-0.03216709569096565,
0.006506436504423618,
-0.03141748905181885,
-0.0304577499628067,
0.012457579374313354,
-0.021464312449097633,
0.04048950970172882,
0.058427609503269196,
0.0028338360134512186,
0.0007681325078010559,
-0.007104723714292049,
-0.0065491474233567715,
0.04831407964229584,
-0.05896705761551857,
0.004833998624235392,
0.012737912125885487,
-0.004096131306141615,
-0.02870548516511917,
0.043827082961797714,
0.0407736636698246,
-0.06158288195729256,
-0.05557212233543396,
0.0803835317492485,
0.027499757707118988,
-0.0052507538348436356,
-0.033241938799619675,
0.027617257088422775,
0.00787285715341568,
0.042919933795928955,
-0.044976700097322464,
-0.006326449569314718,
0.010642684996128082,
-0.025770889595150948,
0.011131446808576584,
-0.02269764244556427,
0.0439421609044075,
0.021499507129192352,
-0.04290352389216423,
-0.026655450463294983,
0.06510911881923676,
-0.008218681439757347,
-0.0011199289001524448,
-0.019210200756788254,
-0.028922084718942642,
0.03771933168172836,
-0.013693002052605152,
-0.05969540774822235,
0.0035625554155558348,
0.010871141217648983,
-0.04523545131087303,
0.09235291182994843,
0.011583147570490837,
0.004397206008434296,
0.039365410804748535,
0.014928809367120266,
0.004444711375981569,
0.024617059156298637,
-0.036150116473436356,
0.010014120489358902,
0.035325828939676285,
-0.07044678926467896,
0.007310622837394476,
-0.023144464939832687,
0.06615651398897171,
-0.0709194540977478,
0.04389606788754463,
0.023154688999056816,
0.0020840743090957403,
0.021819865331053734,
-0.04581061378121376,
0.006327303592115641,
0.028013868257403374,
-0.0330287404358387,
0.05852741748094559,
0.009298858232796192,
-0.0832904726266861,
0.05840138718485832,
0.0347144640982151,
-0.04784750938415527,
0.04139489307999611,
0.029633251950144768,
0.024484047666192055,
0.010023579001426697,
0.03520286828279495,
-0.04942706972360611,
-0.009947970509529114,
-0.04658117517828941,
0.02625783160328865,
-0.06677497178316116,
0.004566643852740526,
0.019175508990883827,
-0.0003961451002396643,
-0.02073570154607296,
0.05925963073968887,
-0.03253977373242378,
-0.010650638490915298,
0.014027697965502739,
-0.027114104479551315,
-0.02857130393385887,
0.003624508623033762,
0.02462223544716835,
-0.04240535572171211,
0.027006536722183228,
-0.06007954850792885,
-0.015251794829964638,
0.0003204881213605404,
-0.03046848438680172,
-0.03480219468474388,
0.011166860349476337,
0.040624890476465225,
-0.03910716250538826,
-0.023803172633051872,
0.048543717712163925,
-0.005546350497752428,
-0.042038220912218094,
0.027613746002316475,
0.004134996794164181,
0.030367786064743996,
0.027335649356245995,
0.0010572632309049368,
0.015216384083032608,
-0.054265838116407394,
0.004839828237891197,
0.009954170323908329,
0.022363463416695595,
0.03060992993414402,
-0.018806762993335724,
0.062465786933898926,
0.032670944929122925,
0.01907460205256939,
0.004083541687577963,
-0.047275952994823456,
-0.03555723652243614,
0.03469157591462135,
-0.05025855824351311,
-0.0011148267658427358,
-0.008302543312311172,
-0.03788554295897484,
-0.022852977737784386,
-0.016621241346001625,
-0.018811997026205063,
0.05117882415652275,
-0.05850405618548393,
-0.025547204539179802,
0.040876731276512146,
0.0033191449474543333,
-0.044919729232788086,
-0.05849229916930199,
-0.009620425291359425,
-0.012108461000025272,
-0.006862323265522718,
0.02642732299864292,
-0.023574352264404297,
0.03459303453564644,
-0.04058157652616501,
-0.06829171627759933,
0.02999839372932911,
0.026184726506471634,
-0.03953513875603676,
0.0493268258869648,
0.040010277181863785,
-0.05677051842212677,
-0.004210807848721743,
0.019272534176707268,
-0.04366104677319527,
0.03534472733736038,
-0.014311724342405796,
0.017626028507947922,
0.02354774996638298,
0.03227367252111435,
-0.0174559373408556,
-0.04734770208597183,
-0.08502510190010071,
-0.048983436077833176,
-0.024310078471899033,
-0.002043323591351509,
0.0500800646841526
] |
CLTL/icf-domains | [
"pytorch",
"roberta",
"nl",
"transformers",
"license:mit",
"text-classification"
] | text-classification | {
"architectures": [
"RobertaForMultiLabelSequenceClassification"
],
"model_type": "roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 35 | null | ---
language: nl
license: mit
pipeline_tag: text-classification
inference: false
---
# A-PROOF ICF-domains Classification
## Description
A fine-tuned multi-label classification model that detects 9 [WHO-ICF](https://www.who.int/standards/classifications/international-classification-of-functioning-disability-and-health) domains in clinical text in Dutch. The model is based on a pre-trained Dutch medical language model ([link to be added]()), a RoBERTa model, trained from scratch on clinical notes of the Amsterdam UMC.
## ICF domains
The model can detect 9 domains, which were chosen due to their relevance to recovery from COVID-19:
ICF code | Domain | name in repo
---|---|---
b440 | Respiration functions | ADM
b140 | Attention functions | ATT
d840-d859 | Work and employment | BER
b1300 | Energy level | ENR
d550 | Eating | ETN
d450 | Walking | FAC
b455 | Exercise tolerance functions | INS
b530 | Weight maintenance functions | MBW
b152 | Emotional functions | STM
## Intended uses and limitations
- The model was fine-tuned (trained, validated and tested) on medical records from the Amsterdam UMC (the two academic medical centers of Amsterdam). It might perform differently on text from a different hospital or text from non-hospital sources (e.g. GP records).
- The model was fine-tuned with the [Simple Transformers](https://simpletransformers.ai/) library. This library is based on Transformers but the model cannot be used directly with Transformers `pipeline` and classes; doing so would generate incorrect outputs. For this reason, the API on this page is disabled.
## How to use
To generate predictions with the model, use the [Simple Transformers](https://simpletransformers.ai/) library:
```
from simpletransformers.classification import MultiLabelClassificationModel
model = MultiLabelClassificationModel(
'roberta',
'CLTL/icf-domains',
use_cuda=False,
)
example = 'Nu sinds 5-6 dagen progressieve benauwdheidsklachten (bij korte stukken lopen al kortademig), terwijl dit eerder niet zo was.'
predictions, raw_outputs = model.predict([example])
```
The predictions look like this:
```
[[1, 0, 0, 0, 0, 1, 1, 0, 0]]
```
The indices of the multi-label stand for:
```
[ADM, ATT, BER, ENR, ETN, FAC, INS, MBW, STM]
```
In other words, the above prediction corresponds to assigning the labels ADM, FAC and INS to the example sentence.
The raw outputs look like this:
```
[[0.51907885 0.00268032 0.0030862 0.03066113 0.00616694 0.64720929
0.67348498 0.0118863 0.0046311 ]]
```
For this model, the threshold at which the prediction for a label flips from 0 to 1 is **0.5**.
## Training data
- The training data consists of clinical notes from medical records (in Dutch) of the Amsterdam UMC. Due to privacy constraints, the data cannot be released.
- The annotation guidelines used for the project can be found [here](https://github.com/cltl/a-proof-zonmw/tree/main/resources/annotation_guidelines).
## Training procedure
The default training parameters of Simple Transformers were used, including:
- Optimizer: AdamW
- Learning rate: 4e-5
- Num train epochs: 1
- Train batch size: 8
- Threshold: 0.5
## Evaluation results
The evaluation is done on a sentence-level (the classification unit) and on a note-level (the aggregated unit which is meaningful for the healthcare professionals).
### Sentence-level
| | ADM | ATT | BER | ENR | ETN | FAC | INS | MBW | STM
|---|---|---|---|---|---|---|---|---|---
precision | 0.98 | 0.98 | 0.56 | 0.96 | 0.92 | 0.84 | 0.89 | 0.79 | 0.70
recall | 0.49 | 0.41 | 0.29 | 0.57 | 0.49 | 0.71 | 0.26 | 0.62 | 0.75
F1-score | 0.66 | 0.58 | 0.35 | 0.72 | 0.63 | 0.76 | 0.41 | 0.70 | 0.72
support | 775 | 39 | 54 | 160 | 382 | 253 | 287 | 125 | 181
### Note-level
| | ADM | ATT | BER | ENR | ETN | FAC | INS | MBW | STM
|---|---|---|---|---|---|---|---|---|---
precision | 1.0 | 1.0 | 0.66 | 0.96 | 0.95 | 0.84 | 0.95 | 0.87 | 0.80
recall | 0.89 | 0.56 | 0.44 | 0.70 | 0.72 | 0.89 | 0.46 | 0.87 | 0.87
F1-score | 0.94 | 0.71 | 0.50 | 0.81 | 0.82 | 0.86 | 0.61 | 0.87 | 0.84
support | 231 | 27 | 34 | 92 | 165 | 95 | 116 | 64 | 94
## Authors and references
### Authors
Jenia Kim, Piek Vossen
### References
TBD | [
-0.0037310069892555475,
-0.027774110436439514,
0.004925144836306572,
0.01688317582011223,
0.03398381546139717,
0.015751942992210388,
-0.027803441509604454,
-0.03828912600874901,
-0.013316848315298557,
0.04441850632429123,
0.03478599712252617,
-0.0035534482449293137,
0.004449593834578991,
0.04800885170698166,
-0.03344279155135155,
-0.013177955523133278,
-0.005719822831451893,
-0.01713813655078411,
-0.04932164400815964,
0.006140800192952156,
0.012400730513036251,
-0.0052706352435052395,
-0.003636857494711876,
0.01832025870680809,
0.0007571003516204655,
0.014048649929463863,
-0.016673821955919266,
0.03918890655040741,
0.06314582377672195,
-0.03843820095062256,
-0.011905761435627937,
-0.02794232964515686,
-0.04874340444803238,
-0.016233084723353386,
-0.02630196511745453,
-0.001665729214437306,
0.033126674592494965,
0.015497208572924137,
0.030497493222355843,
0.034546662122011185,
0.010160749778151512,
0.03621036186814308,
-0.005181804299354553,
-0.035840850323438644,
0.023143185302615166,
-0.002345595508813858,
-0.04126176983118057,
-0.0235410425812006,
0.041198596358299255,
-0.04861244559288025,
-0.0564555786550045,
-0.0967065766453743,
-0.03421284630894661,
0.05698484927415848,
-0.004418633412569761,
-0.013867328874766827,
-0.07103125005960464,
-0.008414595387876034,
0.034171268343925476,
-0.02471548691391945,
-0.016869569197297096,
0.03143814951181412,
-0.08911865204572678,
-0.0011532882926985621,
0.032961003482341766,
-0.03698559105396271,
-0.010682755149900913,
-0.0437656044960022,
0.03595736250281334,
-0.0354369692504406,
0.055220041424036026,
-0.008397876285016537,
0.013619856908917427,
-0.07121629267930984,
-0.021596547216176987,
-0.005870440974831581,
0.04423457756638527,
0.04059026390314102,
-0.040124960243701935,
0.045729849487543106,
0.040415506809949875,
0.004896460101008415,
0.03268548473715782,
-0.010213159024715424,
-0.010284402407705784,
0.05302773416042328,
-0.028483174741268158,
0.012995457276701927,
-0.0009240741492249072,
0.04689484089612961,
-0.03551977500319481,
-0.015862546861171722,
0.004444959573447704,
-0.02551383711397648,
-0.015367085114121437,
0.024940336123108864,
0.044841375201940536,
-0.04299328848719597,
0.0192696675658226,
0.03767703101038933,
0.04582086578011513,
0.036452118307352066,
-0.021792804822325706,
0.051173292100429535,
-0.017268460243940353,
0.005455878097563982,
-0.019544202834367752,
-0.045977260917425156,
-0.030077854171395302,
0.026359915733337402,
0.03491327166557312,
-0.03413189947605133,
-0.01093781366944313,
0.03803734481334686,
-0.004182830452919006,
-0.014238575473427773,
0.06426417082548141,
-0.04057582840323448,
-0.04816266521811485,
-0.06653531640768051,
-0.0026546630542725325,
0.02832210808992386,
0.0018124739872291684,
0.00803438387811184,
-0.030683603137731552,
0.003104408038780093,
-0.05747629702091217,
-0.0028483932837843895,
0.008799939416348934,
0.023643778637051582,
-0.006395682226866484,
0.054785244166851044,
0.013697807677090168,
-0.06259270757436752,
-0.018500277772545815,
0.019415851682424545,
-0.0701226219534874,
0.029199330136179924,
0.03443927690386772,
0.1215815320611,
-0.0631895363330841,
-0.02749883197247982,
0.02357516810297966,
-0.005773823242634535,
-0.006819399073719978,
0.013566050678491592,
0.03909529745578766,
-0.06644975394010544,
0.005446501076221466,
-0.026427607983350754,
0.046262528747320175,
-0.06323359906673431,
-0.0002605432237032801,
0.047458045184612274,
-0.005574850831180811,
0.05376557260751724,
-0.01036234200000763,
0.0029806699603796005,
-0.013998572714626789,
-0.000271969533059746,
-0.025085901841521263,
0.06445203721523285,
-0.00956757739186287,
-0.00389241729862988,
-0.020996812731027603,
-0.061858002096414566,
-0.008159086108207703,
0.07411433011293411,
0.002158799907192588,
-0.017701424658298492,
-0.05445193499326706,
0.011853973381221294,
0.03698462247848511,
0.03380218893289566,
-0.04052220657467842,
0.026805683970451355,
0.03584708273410797,
0.02239060029387474,
0.017559852451086044,
0.07874713093042374,
-0.025278329849243164,
-0.034657131880521774,
-0.04593285918235779,
0.013564909808337688,
-0.004809248726814985,
-0.015545873902738094,
-0.006663573440164328,
0.03836820647120476,
-0.004382000770419836,
-0.025317799299955368,
-0.010064968839287758,
0.05395738035440445,
-0.007834568619728088,
-0.018741225823760033,
0.011076290160417557,
-0.008573519065976143,
-0.034496646374464035,
0.011787012219429016,
-0.014733324758708477,
0.0046126870438456535,
-0.01764884777367115,
-0.01304127462208271,
0.028403960168361664,
0.014223918318748474,
0.04659479111433029,
0.054522931575775146,
-0.028970396146178246,
0.07966181635856628,
-0.04110388085246086,
0.009745829738676548,
-0.046375200152397156,
-0.04502340778708458,
0.017457235604524612,
0.03609495237469673,
0.0451846569776535,
0.06620047986507416,
-0.0472831055521965,
-0.05772426724433899,
0.025274204090237617,
0.06094926595687866,
0.06028500199317932,
0.048863526433706284,
-0.03332594409584999,
-0.008616764098405838,
0.018412930890917778,
0.03727958723902702,
-0.04078786075115204,
-0.026463041082024574,
0.031410202383995056,
0.0266994871199131,
-0.027926400303840637,
0.03230685740709305,
-0.017727594822645187,
0.02441367320716381,
-0.06947490572929382,
-0.08687224984169006,
0.04626786708831787,
0.009768853895366192,
0.024208515882492065,
0.007829542271792889,
-0.010635767132043839,
0.0004473919398151338,
0.021004879847168922,
0.007249473128467798,
0.008405097760260105,
-0.04425346851348877,
0.029535818845033646,
0.019659366458654404,
0.03117149882018566,
-0.04373568668961525,
0.03172018751502037,
-0.013360046781599522,
0.006964877713471651,
0.03261357545852661,
-0.03719087690114975,
0.030301900580525398,
0.035193540155887604,
0.01995539292693138,
-0.046172451227903366,
0.019553732126951218,
0.0052559636533260345,
0.009633222594857216,
0.06452441960573196,
0.01278876792639494,
0.07400038093328476,
-0.00651727756485343,
0.022611023858189583,
0.08558925241231918,
0.006413531024008989,
0.007084609474986792,
0.056480031460523605,
0.07976886630058289,
-0.03944128006696701,
-0.018603043630719185,
0.07535462081432343,
-0.039163146167993546,
0.02498108707368374,
-0.06493088603019714,
0.008800451643764973,
0.001819297787733376,
-0.004620372783392668,
0.048625025898218155,
0.008364818058907986,
-0.04973117262125015,
0.051644302904605865,
-0.023416832089424133,
-0.010874118655920029,
0.029267622157931328,
-0.007693871855735779,
-0.0041917311027646065,
0.017859820276498795,
-0.021953588351607323,
0.02978409454226494,
-0.04900870472192764,
-0.015089143998920918,
-0.02148602344095707,
-0.042414482682943344,
-0.005887791980057955,
-0.09034301340579987,
-0.015744419768452644,
-0.08806908875703812,
-0.02639390341937542,
0.035146646201610565,
0.031112097203731537,
-0.0007501725340262055,
-0.036833684891462326,
0.011652442626655102,
-0.025896992534399033,
-0.04834674298763275,
-0.05282141640782356,
-0.03285963833332062,
-0.05429844185709953,
-0.07866036146879196,
0.04992754012346268,
0.020680416375398636,
0.00897735171020031,
0.00986890122294426,
-0.006162934936583042,
0.0010222395649179816,
-0.02396291308104992,
0.05552934110164642,
0.036862730979919434,
-0.044812049716711044,
-0.04758991673588753,
0.008644894696772099,
-0.03133196383714676,
0.006928949151188135,
-0.01922321319580078,
-0.019409991800785065,
0.053182218223810196,
0.06391505151987076,
0.01298165787011385,
-0.007355588022619486,
0.0066171432845294476,
-0.05445922538638115,
-0.07924972474575043,
-0.003086499636992812,
-0.00031073539867065847,
-0.007302834186702967,
-0.0392686203122139,
-0.030832434073090553,
-0.03389207646250725,
-0.054222483187913895,
-0.0017754948930814862,
-0.010988169349730015,
-0.0009561328333802521,
0.01668211631476879,
0.03257608413696289,
0.018593790009617805,
0.024523742496967316,
-0.029606780037283897,
-0.052944839000701904,
0.06947774440050125,
0.012838039547204971,
0.0022414883133023977,
-0.05982483923435211,
-0.04327643662691116,
0.025502530857920647,
0.019797593355178833,
-0.000587201036978513,
-0.017679531127214432,
0.08041715621948242,
0.038590822368860245,
0.001854569185525179,
-0.018927549943327904,
-0.015076179057359695,
0.0020315663423389196,
-0.0012951878597959876,
-0.006148968823254108,
-0.030285503715276718,
-0.044213175773620605,
-0.025488974526524544,
0.0016577541828155518,
0.05816257745027542,
-0.05411946028470993,
-0.043055836111307144,
-0.00008165431063389406,
0.030624467879533768,
0.018069984391331673,
0.015783701092004776,
-0.044621024280786514,
-0.002532412065193057,
-0.05963963642716408,
-0.030845826491713524,
0.00922380294650793,
0.012156318873167038,
0.006634905003011227,
0.06860513985157013,
0.028730837628245354,
-0.03558482229709625,
0.04937861114740372,
0.04105071723461151,
0.033642079681158066,
0.029882660135626793,
-0.04933353513479233,
0.00951913371682167,
-0.01603071205317974,
0.025750860571861267,
0.0016341815935447812,
-0.018886743113398552,
-0.0633007362484932,
-0.07912679016590118,
-0.03336678817868233,
0.015142780728638172,
0.011540321633219719,
0.0034834265243262053,
0.03284502401947975,
-0.017732547596096992,
-0.009049447253346443,
-0.02529064379632473,
0.024270758032798767,
0.024465620517730713,
-0.05733880028128624,
0.04002014175057411,
0.019672954455018044,
0.029357492923736572,
-0.030384570360183716,
-0.007331719156354666,
-0.0482148677110672,
-0.01995338685810566,
-0.0017707021906971931,
0.07976677268743515,
0.0056007979437708855,
0.033543262630701065,
0.06114525347948074,
-0.007052434608340263,
-0.03681569546461105,
0.04054712504148483,
0.04051775857806206,
-0.009950186125934124,
-0.03443220630288124,
0.01842084340751171,
-0.02012552134692669,
-0.039305008947849274,
0.011491063982248306,
-0.027206558734178543,
0.033117007464170456,
0.025262078270316124,
0.012169490568339825,
-0.009897196665406227,
-0.013759917579591274,
-0.03236789628863335,
-0.028546594083309174,
-0.062019169330596924,
-0.012315395288169384,
-0.0019401723984628916,
-0.019945314154028893,
0.019911283627152443,
0.026351381093263626,
0.010333225131034851,
0.06013872101902962,
0.030844606459140778,
-0.0405811108648777,
-0.043434109538793564,
0.027866940945386887,
0.025615759193897247,
-0.051857300102710724,
-0.0596684068441391,
-0.02797855995595455,
0.039712533354759216,
0.028324227780103683,
-0.034607481211423874,
-0.07896361500024796,
-0.0005614904803223908,
0.08159611374139786,
-0.043650493025779724,
0.08591406792402267,
-0.0031502004712820053,
0.02842349372804165,
0.0560377836227417,
-0.028635142371058464,
0.036142028868198395,
-0.03503425791859627,
0.008592438884079456,
0.0014707299415022135,
0.0641639307141304,
-0.06650231033563614,
-0.04932970926165581,
-0.0278557687997818,
0.06804383546113968,
0.025678640231490135,
0.05037510395050049,
0.021680526435375214,
-0.027228500694036484,
-0.03820495679974556,
-0.012384796515107155,
0.0353921614587307,
-0.01515590213239193,
0.025028077885508537,
0.04542429372668266,
0.05482914298772812,
-0.05748721957206726,
-0.05167270451784134,
-0.03466532751917839,
-0.019427720457315445,
-0.00031762500293552876,
-0.025665411725640297,
-0.04380731284618378,
-0.046453095972537994,
0.006583055946975946,
-0.011632364243268967,
-0.0218459814786911,
-0.08972469717264175,
0.015612076967954636,
-0.017449334263801575,
-0.03606034070253372,
0.053349122405052185,
0.044033899903297424,
0.03820586949586868,
0.05048820748925209,
0.0037177635822445154,
0.012981685809791088,
-0.014419176615774632,
0.04025239124894142,
-0.022299068048596382,
-0.017410997301340103,
-0.025223514065146446,
-0.032504644244909286,
-0.014791199006140232,
-0.0365847609937191,
-0.04761926084756851,
-0.026880593970417976,
-0.021929875016212463,
-0.012965233065187931,
-0.003138642990961671,
0.02054903283715248,
-0.012873438186943531,
0.01829073764383793,
-0.011879323050379753,
-0.011969411745667458,
-0.03788211941719055,
-0.04084938392043114,
-0.07804350554943085,
-0.0467938557267189,
0.03999213129281998,
0.04269663989543915,
0.011644558981060982,
0.006381313316524029,
0.005027506034821272,
0.01802457496523857,
-0.01499630231410265,
-0.042250972241163254,
0.04832760617136955,
0.009558681398630142,
-0.038963861763477325,
-0.018428325653076172,
0.016745934262871742,
0.02598005160689354,
0.021053621545433998,
-0.004000816494226456,
0.00037904028431512415,
0.036164432764053345,
-0.042622268199920654,
-0.023943906649947166,
0.038523927330970764,
0.0067394026555120945,
-0.06860439479351044,
-0.03570171073079109,
-0.03779111057519913,
-0.034306906163692474,
0.05104578286409378,
-0.01613800600171089,
-0.028836019337177277,
0.0029300807509571314,
0.02516348473727703,
0.040298596024513245,
-0.006802390795201063,
-0.03616822138428688,
-0.012840363197028637,
-0.0317370668053627,
0.025685220956802368,
-0.05725622922182083,
0.02763429656624794,
-0.06043458729982376,
0.0014019882073625922,
-0.023684177547693253,
0.020828932523727417,
-0.05469570681452751,
0.054713938385248184,
-0.04900246113538742,
-0.027599109336733818,
-0.02060891129076481,
0.0029346344526857138,
-0.02219586819410324,
0.02233360894024372,
-0.012295758351683617,
0.0034318133257329464,
0.009771324694156647,
0.07350743561983109,
-0.03182683512568474,
-0.007953684777021408,
-0.04195686802268028,
-0.031027933582663536,
-0.008370445109903812,
-0.028703877702355385,
-0.015154141932725906,
-0.010304704308509827,
0.04765360802412033,
0.05787113681435585,
0.035826344043016434,
0.04579624533653259,
-0.021385811269283295,
0.015340383164584637,
0.029032472521066666,
-0.08975381404161453,
-0.0317118838429451,
-0.006782985292375088,
0.009171653538942337,
-0.006663746200501919,
0.021886827424168587,
0.02582361549139023,
-0.01609705202281475,
-0.05677490308880806,
0.03900230675935745,
0.05234159156680107,
0.011264276690781116,
0.012130135670304298,
0.024086415767669678,
0.028722595423460007,
0.05186203122138977,
-0.03453731909394264,
-0.038794659078121185,
0.02126178704202175,
-0.03820091113448143,
0.016535360366106033,
0.010929497890174389,
0.042865630239248276,
0.010998795740306377,
-0.0403733067214489,
0.011995048262178898,
0.03875204920768738,
0.015878789126873016,
0.031920287758111954,
-0.008049167692661285,
-0.04642745107412338,
0.022998303174972534,
0.0051722656935453415,
-0.06980685889720917,
0.007091797888278961,
0.02176087163388729,
-0.03403276577591896,
0.07313385605812073,
0.005847782827913761,
0.014540789648890495,
0.06036121025681496,
0.03154495358467102,
0.0018150227842852473,
0.03348786011338234,
-0.030134038999676704,
-0.008867626078426838,
0.022302407771348953,
-0.06522222608327866,
-0.013808082789182663,
-0.010845941491425037,
0.06642156094312668,
-0.07744253426790237,
0.04304629564285278,
0.018962278962135315,
-0.002416818169876933,
0.014969776384532452,
-0.054748013615608215,
-0.03601048141717911,
0.027570998296141624,
-0.02480088733136654,
0.07587596774101257,
-0.0022384258918464184,
-0.06820745766162872,
0.083701491355896,
0.030958550050854683,
-0.09682901203632355,
0.036684341728687286,
0.027771152555942535,
0.01290365681052208,
0.03118489310145378,
0.04131774976849556,
-0.0385509729385376,
0.01283793244510889,
-0.037091463804244995,
0.022876115515828133,
-0.050601374357938766,
-0.008277746848762035,
0.026714790612459183,
-0.04600270837545395,
-0.019533734768629074,
0.03981531783938408,
-0.00354867079295218,
0.010109414346516132,
0.01932128332555294,
-0.020761292427778244,
-0.03210277855396271,
0.018684949725866318,
0.001280065393075347,
-0.022339386865496635,
-0.005584621336311102,
-0.052513204514980316,
0.023995382711291313,
0.02825252152979374,
-0.019496658816933632,
-0.04045799747109413,
0.009117167443037033,
0.03430952504277229,
-0.0718851312994957,
-0.03726170212030411,
0.023710263893008232,
0.001709102070890367,
-0.02988077700138092,
0.040445104241371155,
-0.00026588080800138414,
0.018229160457849503,
0.023550843819975853,
0.013719238340854645,
0.021088043227791786,
-0.05035827308893204,
0.0007887724204920232,
-0.010689499787986279,
0.014506843872368336,
0.018083110451698303,
-0.025861885398626328,
0.040474578738212585,
0.03239445388317108,
0.04091336205601692,
0.016036633402109146,
-0.009476687759160995,
-0.013819018378853798,
0.0284527949988842,
-0.04333183541893959,
0.007043670862913132,
0.006822742987424135,
-0.03763199597597122,
-0.030458224937319756,
-0.02422449365258217,
-0.005960370879620314,
0.046102628111839294,
-0.04502776265144348,
-0.015109079889953136,
0.034738801419734955,
-0.00763743044808507,
-0.03567738085985184,
-0.08790222555398941,
-0.02036355249583721,
-0.008690898306667805,
0.03729287162423134,
0.03625044971704483,
-0.02816564030945301,
0.01256450917571783,
-0.05356881394982338,
-0.0692448765039444,
-0.006003696005791426,
0.011900017969310284,
-0.022025909274816513,
0.06978991627693176,
0.04719036817550659,
-0.03996773809194565,
0.04293222725391388,
0.02859998121857643,
-0.05140961334109306,
0.051218558102846146,
0.01615777239203453,
0.004379144869744778,
0.022820906713604927,
0.023342501372098923,
-0.003066206583753228,
-0.02740802988409996,
-0.06779744476079941,
-0.02613135240972042,
-0.04055819660425186,
-0.0025425401981920004,
0.04995796084403992
] |
CLTL/icf-levels-att | [
"pytorch",
"roberta",
"text-classification",
"nl",
"transformers",
"license:mit"
] | text-classification | {
"architectures": [
"RobertaForSequenceClassification"
],
"model_type": "roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 32 | null | ---
language: nl
license: mit
pipeline_tag: text-classification
inference: false
---
# Regression Model for Attention Functioning Levels (ICF b140)
## Description
A fine-tuned regression model that assigns a functioning level to Dutch sentences describing attention functions. The model is based on a pre-trained Dutch medical language model ([link to be added]()): a RoBERTa model, trained from scratch on clinical notes of the Amsterdam UMC. To detect sentences about attention functions in clinical text in Dutch, use the [icf-domains](https://huggingface.co/CLTL/icf-domains) classification model.
## Functioning levels
Level | Meaning
---|---
4 | No problem with concentrating / directing / holding / dividing attention.
3 | Slight problem with concentrating / directing / holding / dividing attention for a longer period of time or for complex tasks.
2 | Can concentrate / direct / hold / divide attention only for a short time.
1 | Can barely concentrate / direct / hold / divide attention.
0 | Unable to concentrate / direct / hold / divide attention.
The predictions generated by the model might sometimes be outside of the scale (e.g. 4.2); this is normal in a regression model.
## Intended uses and limitations
- The model was fine-tuned (trained, validated and tested) on medical records from the Amsterdam UMC (the two academic medical centers of Amsterdam). It might perform differently on text from a different hospital or text from non-hospital sources (e.g. GP records).
- The model was fine-tuned with the [Simple Transformers](https://simpletransformers.ai/) library. This library is based on Transformers but the model cannot be used directly with Transformers `pipeline` and classes; doing so would generate incorrect outputs. For this reason, the API on this page is disabled.
## How to use
To generate predictions with the model, use the [Simple Transformers](https://simpletransformers.ai/) library:
```
from simpletransformers.classification import ClassificationModel
model = ClassificationModel(
'roberta',
'CLTL/icf-levels-att',
use_cuda=False,
)
example = 'Snel afgeleid, moeite aandacht te behouden.'
_, raw_outputs = model.predict([example])
predictions = np.squeeze(raw_outputs)
```
The prediction on the example is:
```
2.89
```
The raw outputs look like this:
```
[[2.89226103]]
```
## Training data
- The training data consists of clinical notes from medical records (in Dutch) of the Amsterdam UMC. Due to privacy constraints, the data cannot be released.
- The annotation guidelines used for the project can be found [here](https://github.com/cltl/a-proof-zonmw/tree/main/resources/annotation_guidelines).
## Training procedure
The default training parameters of Simple Transformers were used, including:
- Optimizer: AdamW
- Learning rate: 4e-5
- Num train epochs: 1
- Train batch size: 8
## Evaluation results
The evaluation is done on a sentence-level (the classification unit) and on a note-level (the aggregated unit which is meaningful for the healthcare professionals).
| | Sentence-level | Note-level
|---|---|---
mean absolute error | 0.99 | 1.03
mean squared error | 1.35 | 1.47
root mean squared error | 1.16 | 1.21
## Authors and references
### Authors
Jenia Kim, Piek Vossen
### References
TBD
| [
-0.008971210569143295,
-0.030294597148895264,
0.004534819629043341,
0.02956857904791832,
0.02391914092004299,
0.029162654653191566,
-0.022694053128361702,
-0.05666177347302437,
-0.03575383126735687,
0.05811865255236626,
0.04824332892894745,
-0.03304507955908775,
0.029385901987552643,
0.04398230463266373,
-0.05205667391419411,
-0.003879958065226674,
-0.012817070819437504,
0.014034340158104897,
-0.027036411687731743,
-0.007291416637599468,
0.037652648985385895,
-0.003259795717895031,
0.016753874719142914,
0.030948005616664886,
0.006150382105261087,
0.01492622122168541,
-0.022397775202989578,
0.039883941411972046,
0.04113849252462387,
-0.06388057768344879,
-0.006056586746126413,
-0.049070436507463455,
-0.05147043988108635,
-0.01726512610912323,
-0.030857184901833534,
-0.0038022506050765514,
0.0231575146317482,
0.02326548844575882,
0.03216603770852089,
0.04767299070954323,
0.00382743077352643,
0.029547305777668953,
-0.0057553634978830814,
-0.029120702296495438,
0.027011746540665627,
0.00434246938675642,
-0.04975228011608124,
-0.02240370772778988,
0.03321332857012749,
-0.027927886694669724,
-0.0556713342666626,
-0.09105466306209564,
-0.018008297309279442,
0.045165177434682846,
0.004992115311324596,
-0.015763623639941216,
-0.08504843711853027,
-0.010024248622357845,
0.05665965750813484,
-0.04013747721910477,
-0.024710753932595253,
0.022891387343406677,
-0.06180065870285034,
-0.011018801480531693,
0.016678517684340477,
-0.02996845170855522,
-0.02708214893937111,
-0.03452417626976967,
0.05469909682869911,
-0.028429372236132622,
0.04789992794394493,
-0.023884229362010956,
0.02133948914706707,
-0.07049800455570221,
-0.01971586048603058,
0.000008583693670516368,
0.04499582201242447,
0.04550616070628166,
-0.05843929573893547,
0.03930697217583656,
0.038096554577350616,
-0.002150069922208786,
0.0366712361574173,
-0.014342304319143295,
-0.014076653867959976,
0.04554622992873192,
-0.039547815918922424,
0.0007697235560044646,
0.008852069266140461,
0.049813222140073776,
-0.03409288078546524,
-0.03275986760854721,
-0.0017476958455517888,
-0.029811903834342957,
-0.01579684019088745,
0.026771491393446922,
0.03904835507273674,
-0.04519521817564964,
0.03416847437620163,
0.038000915199518204,
0.04123193025588989,
0.054110314697027206,
-0.029494570568203926,
0.06709874421358109,
-0.014387187547981739,
-0.024789100512862206,
-0.018513714894652367,
-0.03926580771803856,
-0.04906873032450676,
0.012811984866857529,
0.011909659951925278,
-0.05167454481124878,
-0.01622280664741993,
0.038134098052978516,
0.028520360589027405,
-0.027029357850551605,
0.04498600959777832,
-0.016621354967355728,
-0.056508682668209076,
-0.08506117016077042,
0.032956358045339584,
0.025690695270895958,
0.02684507705271244,
0.017596768215298653,
-0.05286848172545433,
0.01455769408494234,
-0.0417635552585125,
-0.014286435209214687,
-0.0076752156019210815,
0.016195522621273994,
-0.01482075359672308,
0.05076916515827179,
0.028246304020285606,
-0.06492051482200623,
-0.0027975700795650482,
-0.00018548940715845674,
-0.07406610995531082,
0.02919994294643402,
0.046241648495197296,
0.10875246673822403,
-0.0426613911986351,
-0.0360354520380497,
0.03396742790937424,
0.0048953634686768055,
0.00329986703582108,
0.011265043169260025,
0.028325693681836128,
-0.05971720069646835,
0.007879955694079399,
-0.029414134100079536,
0.05362200736999512,
-0.07177603244781494,
0.001758176600560546,
0.041768211871385574,
0.016004731878638268,
0.043498456478118896,
-0.02524196170270443,
-0.012920636683702469,
-0.006705576088279486,
0.01133788377046585,
-0.042773421853780746,
0.059447746723890305,
-0.011258610524237156,
-0.02442207932472229,
-0.016826603561639786,
-0.05892545357346535,
-0.006659951992332935,
0.07930152118206024,
-0.007891787216067314,
-0.01287781074643135,
-0.06019413843750954,
0.01574237458407879,
0.04031829163432121,
0.0186366755515337,
-0.012541709467768669,
0.020665176212787628,
0.02629590965807438,
0.03006843291223049,
-0.017120549455285072,
0.057120565325021744,
-0.015036203898489475,
-0.022098645567893982,
-0.051507990807294846,
0.01649371348321438,
-0.0018201268976554275,
-0.025674080476164818,
0.015861282125115395,
0.010721848346292973,
0.0023306377697736025,
-0.03268355503678322,
-0.029934711754322052,
0.05275559797883034,
0.0015178347239270806,
-0.02236446551978588,
0.006166565231978893,
-0.027913914993405342,
-0.01632840372622013,
-0.00830224622040987,
-0.014926590025424957,
0.017093073576688766,
-0.029668794944882393,
-0.022496866062283516,
0.02732289396226406,
-0.0022157300263643265,
0.0440148301422596,
0.04932253435254097,
-0.008732170797884464,
0.08138569444417953,
-0.05309059098362923,
0.022008925676345825,
-0.06629493087530136,
-0.05060428008437157,
0.011482288129627705,
0.025546738877892494,
0.045342981815338135,
0.05812817066907883,
-0.03288466855883598,
-0.04235051944851875,
0.016675757244229317,
0.06559023261070251,
0.043282896280288696,
0.053838007152080536,
-0.0356435626745224,
-0.0039254408329725266,
0.026803193613886833,
0.04446056857705116,
-0.04735977575182915,
-0.030522437766194344,
0.02701365202665329,
0.017335375770926476,
-0.028167838230729103,
0.03469647467136383,
-0.026515059173107147,
0.02290153130888939,
-0.061509713530540466,
-0.07447807490825653,
0.04842211306095123,
0.015444583259522915,
0.015572110190987587,
0.003996706567704678,
0.002853001933544874,
0.004731572698801756,
0.009453567676246166,
0.02252923883497715,
0.01753934659063816,
-0.04830942675471306,
0.021880902349948883,
0.011208928190171719,
0.05887836962938309,
-0.04063718765974045,
0.031361233443021774,
-0.016282105818390846,
0.003990153782069683,
0.02901478298008442,
-0.02696741558611393,
0.026547739282250404,
0.04267096891999245,
0.015429049730300903,
-0.06086650863289833,
0.01988382637500763,
0.007561229635030031,
0.026549436151981354,
0.047761645168066025,
0.01557138655334711,
0.07711821794509888,
0.003401262918487191,
0.04520478844642639,
0.07559378445148468,
0.024313343688845634,
-0.0006454522372223437,
0.059872034937143326,
0.06975103169679642,
-0.032404422760009766,
-0.020620042458176613,
0.07017900794744492,
-0.04441950470209122,
0.025605713948607445,
-0.05064702779054642,
0.04443571716547012,
0.014481299556791782,
-0.015762239694595337,
0.016024326905608177,
0.011529291048645973,
-0.038462456315755844,
0.028461473062634468,
0.00034457436413504183,
-0.020673831924796104,
0.025261547416448593,
0.0044256774708628654,
-0.0010541939409449697,
-0.011525403708219528,
-0.03221450373530388,
0.0012089078081771731,
-0.07497034966945648,
-0.016796233132481575,
-0.027148384600877762,
-0.04140453785657883,
-0.012225992977619171,
-0.0890805795788765,
-0.03822936490178108,
-0.07243411242961884,
-0.016041995957493782,
0.03812137618660927,
0.03409743681550026,
-0.0005006014253012836,
-0.015004990622401237,
0.0010638562962412834,
-0.04400251433253288,
-0.031148135662078857,
-0.04082051292061806,
-0.01489489059895277,
-0.03978695347905159,
-0.06916946917772293,
0.05158744007349014,
0.020427247509360313,
0.026675298810005188,
0.0052801030687987804,
-0.004369452595710754,
0.0026504197157919407,
-0.01747445948421955,
0.046447742730379105,
0.041258182376623154,
-0.034266967326402664,
-0.03799240291118622,
0.008676703087985516,
-0.018445106223225594,
0.007484217174351215,
-0.009368550032377243,
-0.014719603583216667,
0.06557988375425339,
0.0726027861237526,
0.01818116009235382,
-0.00857285875827074,
-0.0034350715577602386,
-0.03850656375288963,
-0.08550872653722763,
-0.00978276040405035,
-0.01556303258985281,
-0.011289593763649464,
-0.027854837477207184,
-0.053779762238264084,
-0.02918926812708378,
-0.06584607809782028,
0.017183581367135048,
-0.01317501999437809,
0.02216503396630287,
0.004101496189832687,
0.022862069308757782,
0.02179962396621704,
0.019844762980937958,
-0.02260942943394184,
-0.04213496670126915,
0.08966895937919617,
0.018224723637104034,
0.03370000794529915,
-0.09174264967441559,
-0.03280545398592949,
0.02000444009900093,
0.030068818479776382,
-0.010114322416484356,
-0.011129053309559822,
0.07452970743179321,
0.026731958612799644,
0.008311506360769272,
0.012611466459929943,
-0.003821831662207842,
0.006195558235049248,
0.001575640169903636,
-0.021625909954309464,
-0.02548483945429325,
-0.04797985032200813,
-0.028732530772686005,
-0.0008676080033183098,
0.06381054222583771,
-0.05819942057132721,
-0.050061147660017014,
-0.012330022640526295,
0.041079871356487274,
0.03295626491308212,
0.002488852245733142,
-0.03673332929611206,
-0.008933233097195625,
-0.02917383797466755,
-0.018973547965288162,
0.018075989559292793,
0.008409272879362106,
0.021453458815813065,
0.06038708984851837,
0.029148459434509277,
-0.03989320248365402,
0.04824438318610191,
0.024316830560564995,
0.03587362542748451,
0.005857106763869524,
-0.05292116478085518,
0.013478176668286324,
-0.027495848014950752,
0.02787407673895359,
-0.00391752552241087,
-0.03911399841308594,
-0.06303052604198456,
-0.06518559157848358,
-0.03474947810173035,
0.02165801264345646,
-0.014983243308961391,
0.022362321615219116,
0.03407852724194527,
-0.026985133066773415,
-0.009798076003789902,
0.0037957208696752787,
0.01914975419640541,
0.01780231110751629,
-0.0564686618745327,
0.04037431254982948,
0.008380749262869358,
0.02929488942027092,
-0.04607938975095749,
-0.015339375473558903,
-0.03968147188425064,
-0.02075028046965599,
0.009576540440320969,
0.08765983581542969,
0.0037755570374429226,
0.03564373031258583,
0.06661682575941086,
0.01915855146944523,
-0.022374147549271584,
0.02547842264175415,
0.040203724056482315,
-0.0004602083354257047,
-0.04654427617788315,
0.022954044863581657,
0.0029392011929303408,
-0.0351511687040329,
0.006858185399323702,
-0.026196898892521858,
0.03992399573326111,
0.011849941685795784,
0.024141397327184677,
0.00335557758808136,
-0.01576811634004116,
-0.021567832678556442,
-0.03890128806233406,
-0.06500981003046036,
-0.015353201888501644,
0.02388738840818405,
-0.006520588416606188,
0.03459496796131134,
0.01963314227759838,
0.00824743788689375,
0.050460852682590485,
0.05480387434363365,
-0.026322126388549805,
-0.018899738788604736,
0.038864050060510635,
0.025579329580068588,
-0.05470455810427666,
-0.05000478774309158,
-0.016942661255598068,
0.035183411091566086,
0.05289197340607643,
-0.030064431950449944,
-0.07397753745317459,
0.0094137666746974,
0.09000536799430847,
-0.04447728022933006,
0.06608756631612778,
-0.012862059287726879,
0.029550869017839432,
0.043678175657987595,
0.010374723933637142,
0.04001276195049286,
-0.019406812265515327,
0.018915746361017227,
-0.003396590007469058,
0.05795099213719368,
-0.05239371582865715,
-0.05158039182424545,
-0.05386035516858101,
0.05088770017027855,
0.031184623017907143,
0.047346290200948715,
0.03458347171545029,
-0.022403594106435776,
-0.05139922723174095,
-0.00491234939545393,
0.031139634549617767,
-0.0309100653976202,
0.01887299306690693,
0.04563821107149124,
0.04631098359823227,
-0.052573058754205704,
-0.023782003670930862,
-0.011979504488408566,
0.0001842867786763236,
0.007152220234274864,
-0.005885148420929909,
-0.04134763032197952,
-0.0531175397336483,
0.016795564442873,
-0.009246242232620716,
-0.008267153054475784,
-0.09965509176254272,
0.01776757836341858,
-0.031158536672592163,
-0.0218492578715086,
0.057285621762275696,
0.046965524554252625,
0.05178443342447281,
0.04631709307432175,
-0.00028630494489334524,
0.0019495405722409487,
-0.03344663605093956,
0.04481274634599686,
-0.038613636046648026,
-0.006425864994525909,
-0.01588171161711216,
-0.04472611844539642,
-0.020391220226883888,
-0.051688555628061295,
-0.05380754917860031,
-0.04590745270252228,
-0.03758027032017708,
-0.017151109874248505,
-0.003413459053263068,
0.010858661495149136,
-0.01053312886506319,
0.04087624326348305,
-0.006640787236392498,
-0.018714984878897667,
-0.027595223858952522,
-0.040109843015670776,
-0.06414508074522018,
-0.04575663432478905,
0.026083149015903473,
0.029766881838440895,
-0.002838113810867071,
0.020100412890315056,
-0.011497070081532001,
0.007948223501443863,
-0.010159124620258808,
-0.03307519480586052,
0.05287313833832741,
-0.0012091549579054117,
-0.06078769266605377,
-0.02727195993065834,
0.016087230294942856,
0.018938420340418816,
0.017221398651599884,
-0.03156173601746559,
0.025375429540872574,
0.036232005804777145,
-0.058547522872686386,
-0.01989845372736454,
0.029146632179617882,
0.02706359513103962,
-0.05851906165480614,
-0.04318641126155853,
-0.019537484273314476,
-0.02688194252550602,
0.04302322864532471,
-0.008492031134665012,
-0.017671238631010056,
0.025776175782084465,
0.02308093197643757,
0.03994302824139595,
0.002392468275502324,
-0.04337458312511444,
0.009340980090200901,
-0.005923727992922068,
0.01493802573531866,
-0.05554474517703056,
0.03872336447238922,
-0.06367836892604828,
0.0012888265773653984,
-0.01603611372411251,
-0.005148859694600105,
-0.027310451492667198,
0.041587021201848984,
-0.04758840426802635,
-0.006887630559504032,
-0.003917363006621599,
-0.02811974100768566,
-0.024248946458101273,
0.04660337418317795,
-0.01844288408756256,
-0.004560116212815046,
0.00914920587092638,
0.07277859002351761,
-0.038031984120607376,
-0.01838880591094494,
-0.027814755216240883,
-0.029138371348381042,
-0.02134689688682556,
-0.01586548052728176,
-0.013377182185649872,
-0.01036724355071783,
0.03817097842693329,
0.04320749640464783,
0.04346161708235741,
0.043088607490062714,
-0.023270808160305023,
-0.005480627994984388,
0.014813641086220741,
-0.04716724529862404,
-0.037799105048179626,
-0.002121757483109832,
0.01253516785800457,
-0.01488692406564951,
0.04693897068500519,
0.0497141033411026,
-0.04174405708909035,
-0.037443581968545914,
0.040631555020809174,
0.01769755780696869,
0.019634293392300606,
-0.003210340393707156,
0.025249039754271507,
0.03545605391263962,
0.05696895718574524,
-0.04822365194559097,
-0.007484781090170145,
0.003609107807278633,
-0.02313157357275486,
0.006111491471529007,
0.00026993759092874825,
0.017169712111353874,
-0.009596598334610462,
-0.04059872776269913,
0.004174413159489632,
0.06284749507904053,
0.012375188060104847,
0.03208773210644722,
-0.0014510044129565358,
-0.03964921832084656,
0.023483766242861748,
0.0338558703660965,
-0.07765962183475494,
-0.0064199939370155334,
0.014495869167149067,
-0.017067305743694305,
0.06726518273353577,
0.01643401011824608,
0.028838403522968292,
0.05871732532978058,
0.033736541867256165,
0.0005945967277511954,
0.03325798735022545,
0.004814800340682268,
-0.011392243206501007,
0.03312723711133003,
-0.05694335699081421,
-0.022587960585951805,
-0.022230254486203194,
0.06458273530006409,
-0.07463384419679642,
0.03669275715947151,
0.026241298764944077,
0.020177403464913368,
0.008222928270697594,
-0.04133427143096924,
-0.05866018310189247,
0.039540957659482956,
-0.019156144931912422,
0.07996276021003723,
0.0034825035836547613,
-0.053402673453092575,
0.08322590589523315,
0.014683742076158524,
-0.07711678743362427,
0.033047277480363846,
0.02768651582300663,
0.02434411831200123,
0.03240417689085007,
0.06329905241727829,
-0.0441344678401947,
0.009577462449669838,
-0.034289874136447906,
0.012171436101198196,
-0.038725268095731735,
-0.001485118642449379,
0.03112504445016384,
-0.04343615472316742,
-0.016518589109182358,
0.03125607222318649,
-0.02234421856701374,
-0.0022177849896252155,
0.02076386660337448,
-0.031853675842285156,
-0.02409292384982109,
0.017503611743450165,
-0.0014765255618840456,
-0.024372192099690437,
-0.008423667401075363,
-0.04559827595949173,
0.05253169313073158,
0.03220289573073387,
-0.007324099540710449,
-0.052091360092163086,
0.011245882138609886,
0.030698245391249657,
-0.06162396818399429,
-0.03752228245139122,
0.013915691524744034,
0.0043694451451301575,
-0.030003922060132027,
0.04612397402524948,
0.011916420422494411,
0.011533504351973534,
0.016521332785487175,
0.020379040390253067,
0.03137916326522827,
-0.07193947583436966,
0.015119532123208046,
-0.0016182409599423409,
0.025576278567314148,
0.01969127543270588,
-0.03449922055006027,
0.039330609142780304,
0.023414356634020805,
0.02109619602560997,
0.02648664079606533,
-0.039805635809898376,
-0.008339508436620235,
0.02264164201915264,
-0.06137498468160629,
0.015353894792497158,
-0.006995738949626684,
-0.04985189810395241,
-0.03264068812131882,
-0.0580812506377697,
-0.026061799377202988,
0.024294888600707054,
-0.02991556003689766,
-0.011265958659350872,
0.04102284088730812,
-0.023105837404727936,
-0.038842108100652695,
-0.08876317739486694,
-0.02490529790520668,
-0.0017850552685558796,
0.043340858072042465,
0.027007946744561195,
-0.02457306906580925,
-0.0018796965014189482,
-0.05788014829158783,
-0.04657316207885742,
-0.007791712414473295,
0.012497272342443466,
-0.025540776550769806,
0.07155723869800568,
0.03024824894964695,
-0.039601508527994156,
0.020750131458044052,
0.031332533806562424,
-0.03398646414279938,
0.05106164887547493,
0.02072327956557274,
0.006733110174536705,
0.034916043281555176,
0.01811292953789234,
-0.005115242209285498,
-0.03024064004421234,
-0.05127212405204773,
-0.030505571514368057,
-0.042332764714956284,
0.0033587117213755846,
0.05500517785549164
] |
CLTL/icf-levels-ber | [
"pytorch",
"roberta",
"text-classification",
"nl",
"transformers",
"license:mit"
] | text-classification | {
"architectures": [
"RobertaForSequenceClassification"
],
"model_type": "roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 33 | 2021-10-06T12:23:03Z | ---
language: nl
license: mit
pipeline_tag: text-classification
inference: false
---
# Regression Model for Work and Employment Functioning Levels (ICF d840-d859)
## Description
A fine-tuned regression model that assigns a functioning level to Dutch sentences describing work and employment functions. The model is based on a pre-trained Dutch medical language model ([link to be added]()): a RoBERTa model, trained from scratch on clinical notes of the Amsterdam UMC. To detect sentences about work and employment functions in clinical text in Dutch, use the [icf-domains](https://huggingface.co/CLTL/icf-domains) classification model.
## Functioning levels
Level | Meaning
---|---
4 | Can work/study fully (like when healthy).
3 | Can work/study almost fully.
2 | Can work/study only for about 50\%, or can only work at home and cannot go to school / office.
1 | Work/study is severely limited.
0 | Cannot work/study.
The predictions generated by the model might sometimes be outside of the scale (e.g. 4.2); this is normal in a regression model.
## Intended uses and limitations
- The model was fine-tuned (trained, validated and tested) on medical records from the Amsterdam UMC (the two academic medical centers of Amsterdam). It might perform differently on text from a different hospital or text from non-hospital sources (e.g. GP records).
- The model was fine-tuned with the [Simple Transformers](https://simpletransformers.ai/) library. This library is based on Transformers but the model cannot be used directly with Transformers `pipeline` and classes; doing so would generate incorrect outputs. For this reason, the API on this page is disabled.
## How to use
To generate predictions with the model, use the [Simple Transformers](https://simpletransformers.ai/) library:
```
from simpletransformers.classification import ClassificationModel
model = ClassificationModel(
'roberta',
'CLTL/icf-levels-ber',
use_cuda=False,
)
example = 'Fysiek zwaar werk is niet mogelijk, maar administrative taken zou zij wel aan moeten kunnen.'
_, raw_outputs = model.predict([example])
predictions = np.squeeze(raw_outputs)
```
The prediction on the example is:
```
2.41
```
The raw outputs look like this:
```
[[2.40793037]]
```
## Training data
- The training data consists of clinical notes from medical records (in Dutch) of the Amsterdam UMC. Due to privacy constraints, the data cannot be released.
- The annotation guidelines used for the project can be found [here](https://github.com/cltl/a-proof-zonmw/tree/main/resources/annotation_guidelines).
## Training procedure
The default training parameters of Simple Transformers were used, including:
- Optimizer: AdamW
- Learning rate: 4e-5
- Num train epochs: 1
- Train batch size: 8
## Evaluation results
The evaluation is done on a sentence-level (the classification unit) and on a note-level (the aggregated unit which is meaningful for the healthcare professionals).
| | Sentence-level | Note-level
|---|---|---
mean absolute error | 1.56 | 1.49
mean squared error | 3.06 | 2.85
root mean squared error | 1.75 | 1.69
## Authors and references
### Authors
Jenia Kim, Piek Vossen
### References
TBD
| [
0.0065977973863482475,
-0.01855347491800785,
0.02333107963204384,
0.02664967067539692,
0.0403112955391407,
0.02809843234717846,
-0.0244836937636137,
-0.02845124527812004,
-0.03695293143391609,
0.06850310415029526,
0.03373625501990318,
-0.023647023364901543,
0.01931792125105858,
0.03353840112686157,
-0.039648789912462234,
-0.0018983354093506932,
-0.007116508670151234,
-0.016484402120113373,
-0.03985873982310295,
-0.010079395957291126,
0.0035383873619139194,
0.007606875617057085,
0.009694174863398075,
0.019289936870336533,
0.003984489943832159,
0.0017831228906288743,
-0.02154367044568062,
0.04320159927010536,
0.04979831352829933,
-0.033278338611125946,
-0.03126579523086548,
-0.03318366780877113,
-0.06427337229251862,
-0.020013684406876564,
-0.03023306094110012,
-0.00558527372777462,
0.028390048071742058,
0.02441434934735298,
0.02870858460664749,
0.04761688411235809,
0.005024669226258993,
0.02971559949219227,
-0.007077587302774191,
-0.030285878106951714,
0.021775376051664352,
0.01729818619787693,
-0.04813708737492561,
-0.009640658274292946,
0.05143862962722778,
-0.03665492683649063,
-0.05877959355711937,
-0.11001239717006683,
0.005471166223287582,
0.04572893679141998,
-0.009414784610271454,
-0.008149590343236923,
-0.07237458229064941,
-0.008775049820542336,
0.04926019534468651,
-0.03303409740328789,
-0.03420339152216911,
0.019190728664398193,
-0.07674799114465714,
-0.00038874964229762554,
0.02012638747692108,
-0.03686298429965973,
-0.018288010731339455,
-0.05006206035614014,
0.048752620816230774,
-0.03228262439370155,
0.06413181126117706,
-0.009447441436350346,
0.03279699757695198,
-0.06776273250579834,
-0.02376130409538746,
-0.003108261153101921,
0.04852323234081268,
0.04577399790287018,
-0.05168260633945465,
0.04389991611242294,
0.03587346524000168,
-0.0024988907389342785,
0.025692323222756386,
-0.01887807995080948,
-0.022378364577889442,
0.040133897215127945,
-0.03200707957148552,
-0.0021622220519930124,
0.005739810410887003,
0.047598905861377716,
-0.03843384608626366,
-0.024546083062887192,
0.0026064664125442505,
-0.04893942177295685,
-0.016442708671092987,
0.024357032030820847,
0.04322046786546707,
-0.04418320581316948,
0.029290786013007164,
0.030141117051243782,
0.021199392154812813,
0.03860130161046982,
-0.03251700475811958,
0.05095513164997101,
-0.009121769107878208,
-0.01937377266585827,
-0.006088206544518471,
-0.02745392732322216,
-0.04467073455452919,
0.019535448402166367,
0.01220779586583376,
-0.02646501362323761,
-0.016988737508654594,
0.05325379595160484,
0.012456465512514114,
-0.010954588651657104,
0.05896230414509773,
-0.02423212118446827,
-0.04003479331731796,
-0.09329327195882797,
0.03888498991727829,
0.02205158770084381,
0.006386175751686096,
0.008638164959847927,
-0.04508712515234947,
0.00845079030841589,
-0.055573444813489914,
-0.01660980097949505,
0.010848239995539188,
0.006749334279447794,
-0.02561594545841217,
0.0592222660779953,
0.011370928026735783,
-0.07064581662416458,
0.01581578515470028,
0.011732677929103374,
-0.07639031857252121,
0.02768351137638092,
0.029546208679676056,
0.11968168616294861,
-0.06239679455757141,
-0.026843611150979996,
0.03533225506544113,
0.005450919736176729,
0.004913158714771271,
0.015500850044190884,
0.047739818692207336,
-0.06862802803516388,
-0.0029727544169873,
-0.015098935924470425,
0.045286644250154495,
-0.059199005365371704,
-0.005688610952347517,
0.055795084685087204,
0.012460180558264256,
0.04054618999361992,
-0.014090219512581825,
0.003937816247344017,
-0.0020415964536368847,
-0.010110747069120407,
-0.030194800347089767,
0.06690400093793869,
-0.018449777737259865,
-0.032720521092414856,
-0.0207139253616333,
-0.057775866240262985,
0.0018561583710834384,
0.07098827511072159,
-0.015086371451616287,
-0.014113481156527996,
-0.05364971235394478,
-0.0017581564607098699,
0.04498809576034546,
0.015902623534202576,
-0.02590329386293888,
0.012478897348046303,
0.03779196739196777,
0.0301702618598938,
-0.01592191308736801,
0.0712064653635025,
-0.019681591540575027,
-0.02095952071249485,
-0.04907110333442688,
0.04071424901485443,
0.005564339924603701,
-0.04024524241685867,
0.00969675276428461,
0.03616490215063095,
-0.00470473850145936,
-0.03156018257141113,
-0.02880789339542389,
0.05420827493071556,
0.009756057523190975,
-0.01136029977351427,
0.011078559793531895,
-0.003319583600386977,
-0.02542683482170105,
0.004546263720840216,
-0.009325319901108742,
-0.007192626129835844,
-0.01751793920993805,
-0.026656031608581543,
0.016677333042025566,
0.014332270249724388,
0.04085632413625717,
0.04519294202327728,
-0.03200792521238327,
0.08012944459915161,
-0.0501784086227417,
0.017124969512224197,
-0.06145676597952843,
-0.05189292132854462,
-0.0007009987602941692,
0.032284241169691086,
0.03754354268312454,
0.05133836716413498,
-0.04372134804725647,
-0.06303060054779053,
0.01610632799565792,
0.04904582351446152,
0.06789615750312805,
0.05946536734700203,
-0.04820038750767708,
-0.009579939767718315,
0.022961808368563652,
0.030304638668894768,
-0.04642300307750702,
-0.042712077498435974,
0.021252311766147614,
0.048616331070661545,
-0.02305305376648903,
0.02938518486917019,
-0.019026175141334534,
0.01642857864499092,
-0.07020240277051926,
-0.06852008402347565,
0.043062593787908554,
0.006120809353888035,
0.006228308659046888,
0.022099247202277184,
0.006748443003743887,
0.011657409369945526,
0.014024799689650536,
0.006844785530120134,
0.018612917512655258,
-0.04787319526076317,
0.015950366854667664,
0.023769110441207886,
0.0697987899184227,
-0.0610368438065052,
0.02332872897386551,
-0.00580704677850008,
0.010131347924470901,
0.04484083876013756,
-0.04817355051636696,
0.03140578791499138,
0.03865136578679085,
0.006776146590709686,
-0.05291880667209625,
0.032727841287851334,
0.01341951359063387,
0.00032372449641115963,
0.045181166380643845,
0.007004723418504,
0.0825742557644844,
0.006884984206408262,
0.03675559163093567,
0.06717955321073532,
0.02185952104628086,
0.002200853079557419,
0.0558016374707222,
0.06471623480319977,
-0.020326124504208565,
-0.020649908110499382,
0.06704500317573547,
-0.03661269322037697,
0.024589955806732178,
-0.0529404953122139,
0.023992041125893593,
0.01438960526138544,
-0.03025820106267929,
0.048430219292640686,
0.018236614763736725,
-0.05631004646420479,
0.029355378821492195,
-0.014001750387251377,
-0.03839772194623947,
0.025554172694683075,
-0.013225522823631763,
0.006715096533298492,
-0.009206250309944153,
-0.033272635191679,
0.021571673452854156,
-0.06431605666875839,
-0.010689557529985905,
-0.027635794132947922,
-0.04800237715244293,
-0.0002975648094434291,
-0.08883251249790192,
-0.024195803329348564,
-0.07121697813272476,
-0.027485528960824013,
0.03646286204457283,
0.025697316974401474,
-0.0041578952223062515,
-0.0134241608902812,
0.0027103868778795004,
-0.03119521774351597,
-0.03493586555123329,
-0.037982020527124405,
-0.03725550323724747,
-0.043564531952142715,
-0.07051241397857666,
0.04024071618914604,
0.02212756872177124,
0.01645895466208458,
0.012743115425109863,
0.004423508420586586,
0.00947867427021265,
-0.024482697248458862,
0.03492144122719765,
0.04269300773739815,
-0.03956848382949829,
-0.027516527101397514,
0.022670352831482887,
-0.026873724535107613,
0.019642390310764313,
-0.012986249290406704,
-0.01814565621316433,
0.05634387210011482,
0.06745942682027817,
0.016739534214138985,
0.009802534244954586,
-0.009303559549152851,
-0.033098895102739334,
-0.07355015724897385,
0.0032909936271607876,
-0.003971203230321407,
-0.009575065225362778,
-0.01859588548541069,
-0.04135797545313835,
-0.03367482125759125,
-0.04394201189279556,
-0.010244041681289673,
-0.014718156307935715,
0.0027937968261539936,
0.013199378736317158,
0.03276556730270386,
0.026615645736455917,
0.0196177177131176,
-0.0354357473552227,
-0.03945302963256836,
0.07663200795650482,
0.019091162830591202,
0.016619721427559853,
-0.07993651181459427,
-0.03948559984564781,
0.030405811965465546,
0.03144324570894241,
-0.0008737199823372066,
-0.006740882992744446,
0.06551431119441986,
0.029117846861481667,
0.01693803258240223,
0.00826666597276926,
-0.004800531547516584,
-0.007362475618720055,
-0.01528033334761858,
-0.014259419403970242,
-0.029112031683325768,
-0.03547554090619087,
-0.03510189801454544,
-0.007058438844978809,
0.03611886128783226,
-0.0527830496430397,
-0.04123501852154732,
-0.0009187600226141512,
0.05098506808280945,
0.03587578609585762,
0.006092962808907032,
-0.023946711793541908,
0.00712199043482542,
-0.04742902144789696,
-0.03677673265337944,
0.02411246858537197,
0.00526636466383934,
0.01174156740307808,
0.0711088478565216,
0.02276933193206787,
-0.04870656132698059,
0.054596852511167526,
0.026317982003092766,
0.0321880578994751,
0.010181034915149212,
-0.056193266063928604,
0.01243649609386921,
-0.03636851906776428,
0.016142770648002625,
-0.02675669454038143,
-0.027363458648324013,
-0.07097627967596054,
-0.07669445872306824,
-0.02137051708996296,
0.012353177182376385,
-0.011020496487617493,
0.014074397273361683,
0.04403998330235481,
-0.02405998483300209,
-0.014671361073851585,
-0.012366739101707935,
0.020455608144402504,
0.016174238175153732,
-0.06609328836202621,
0.043910183012485504,
-0.011735661886632442,
0.022759681567549706,
-0.05277211219072342,
0.00330822984687984,
-0.035737499594688416,
-0.02028149925172329,
-0.000750526727642864,
0.0817316398024559,
0.018154188990592957,
0.025081990286707878,
0.07647804915904999,
0.007181041873991489,
-0.033160410821437836,
0.041964877396821976,
0.05219222977757454,
-0.020760519430041313,
-0.03501782566308975,
0.02737170085310936,
0.0014645194169133902,
-0.02944207563996315,
0.0034516220912337303,
-0.03479747846722603,
0.0342184379696846,
0.008575940504670143,
0.009729686193168163,
-0.00919298455119133,
-0.0007703985320404172,
-0.03641854226589203,
-0.028414687141776085,
-0.030364990234375,
-0.017358480021357536,
0.005623269826173782,
-0.01095806434750557,
0.022601677104830742,
0.04385324567556381,
0.0000317762496706564,
0.05069078132510185,
0.032994113862514496,
-0.029459267854690552,
-0.014811799861490726,
0.025361767038702965,
0.043401338160037994,
-0.041663896292448044,
-0.042150989174842834,
-0.02739102393388748,
0.04559316858649254,
0.05797368288040161,
-0.04129461199045181,
-0.07303067296743393,
0.014086061157286167,
0.0874098390340805,
-0.058943167328834534,
0.07367631047964096,
-0.003882769728079438,
0.04283132776618004,
0.02676868624985218,
-0.027491342276334763,
0.03168928623199463,
-0.030421188101172447,
0.00952577032148838,
-0.0037454485427588224,
0.04901609197258949,
-0.06487131118774414,
-0.05348287522792816,
-0.05514272674918175,
0.05900319665670395,
0.021199684590101242,
0.0543401837348938,
0.03790799155831337,
-0.025877108797430992,
-0.052872367203235626,
-0.004808708559721708,
0.02259926311671734,
-0.024779420346021652,
0.0376134030520916,
0.05755618214607239,
0.04217948019504547,
-0.035946354269981384,
-0.045138292014598846,
-0.005117123946547508,
-0.02511206455528736,
0.01590125262737274,
-0.01024644635617733,
-0.05601539462804794,
-0.0455605611205101,
0.016590191051363945,
-0.00511538190767169,
-0.02125248685479164,
-0.08102117478847504,
0.008793103508651257,
-0.010269202291965485,
-0.01671452820301056,
0.03401424363255501,
0.03424421325325966,
0.02385743521153927,
0.061710868030786514,
-0.0008827399578876793,
0.023907100781798363,
-0.03478138521313667,
0.03202996775507927,
-0.03741753101348877,
-0.012500276789069176,
-0.023761248216032982,
-0.04592302441596985,
-0.014992672018706799,
-0.047485433518886566,
-0.040386002510786057,
-0.04692360386252403,
-0.037104036659002304,
-0.005445441231131554,
-0.00641710264608264,
0.00001241288373421412,
-0.029761429876089096,
0.030686309561133385,
0.00753451231867075,
-0.00965273380279541,
-0.04689435660839081,
-0.053323276340961456,
-0.06966827809810638,
-0.04915421083569527,
0.028460359200835228,
0.05170658603310585,
0.00506143132224679,
0.02585119940340519,
-0.0083087719976902,
0.00791340321302414,
-0.0015448807971552014,
-0.049108002334833145,
0.06382199376821518,
-0.014756862074136734,
-0.041951581835746765,
-0.0317440889775753,
0.01586197316646576,
0.01817498728632927,
0.018564758822321892,
-0.032791413366794586,
0.01439050491899252,
0.03642648085951805,
-0.04826639965176582,
-0.015485668554902077,
0.041197508573532104,
0.02644689567387104,
-0.06275624781847,
-0.03734689950942993,
-0.0180736742913723,
-0.03324952349066734,
0.03920894116163254,
-0.012443427927792072,
-0.014999779872596264,
0.007478971965610981,
0.019686058163642883,
0.022247131913900375,
0.004884407855570316,
-0.03195405751466751,
0.0024726418778300285,
-0.014901927672326565,
0.014492969959974289,
-0.08268576115369797,
0.060061078518629074,
-0.040912821888923645,
-0.005378709174692631,
-0.0007930031861178577,
-0.011327594518661499,
-0.04560721293091774,
0.03844346106052399,
-0.03665915131568909,
-0.01651017740368843,
-0.027011794969439507,
0.004015928599983454,
-0.0244468841701746,
0.03312201052904129,
-0.01786702871322632,
0.006068108137696981,
0.012119856663048267,
0.0766599252820015,
-0.02848990261554718,
-0.011636232025921345,
-0.020557548850774765,
-0.049847763031721115,
0.000870361749548465,
-0.004773569293320179,
-0.01997232995927334,
-0.041554439812898636,
0.04595780372619629,
0.025730397552251816,
0.031929340213537216,
0.036223217844963074,
-0.010617725551128387,
0.0050854492001235485,
0.009024403057992458,
-0.0458051897585392,
-0.02987796999514103,
0.007094278931617737,
0.0015711432788521051,
-0.013134198263287544,
0.037781570106744766,
0.025814874097704887,
-0.040000397711992264,
-0.03993947431445122,
0.031685423105955124,
0.044500064104795456,
0.01719951070845127,
0.012714599259197712,
0.020128201693296432,
0.034399669617414474,
0.045902449637651443,
-0.04005682095885277,
-0.02090354636311531,
0.0030322258826345205,
-0.0299513079226017,
0.019675789400935173,
0.007246424909681082,
0.037606075406074524,
0.007174280937761068,
-0.04134934023022652,
-0.006033837329596281,
0.07082745432853699,
0.009693571366369724,
0.02540779300034046,
0.00736674340441823,
-0.03973304480314255,
0.016078613698482513,
0.01683006063103676,
-0.067625030875206,
-0.01985875703394413,
0.023355748504400253,
-0.02382543310523033,
0.0669936016201973,
0.00712313037365675,
0.012099084444344044,
0.06586423516273499,
0.021552477031946182,
0.002241371665149927,
0.026787104085087776,
-0.008949881419539452,
-0.0005359079223126173,
0.042745139449834824,
-0.07426322251558304,
0.007528593763709068,
-0.011148250661790371,
0.06923361122608185,
-0.07486732304096222,
0.045633576810359955,
0.0136881023645401,
0.011993425898253918,
0.015163784846663475,
-0.039308808743953705,
-0.04344172030687332,
0.03304142877459526,
-0.04082160443067551,
0.06693331897258759,
0.01845007948577404,
-0.06352531164884567,
0.08101031184196472,
0.028558790683746338,
-0.09381086379289627,
0.035434115678071976,
0.014919823966920376,
0.01733168587088585,
0.023285098373889923,
0.0597837008535862,
-0.043651334941387177,
0.011968516744673252,
-0.03854415938258171,
0.024538246914744377,
-0.042633965611457825,
-0.0039184256456792355,
0.03115524724125862,
-0.05031048506498337,
-0.02857954241335392,
0.034097202122211456,
0.0033569769002497196,
-0.002516811015084386,
0.03013836033642292,
-0.02391904778778553,
-0.03770671412348747,
0.00875395629554987,
0.008204085752367973,
-0.04241866245865822,
-0.0026115155778825283,
-0.04889813810586929,
0.03237873688340187,
0.013293054886162281,
-0.010173418559134007,
-0.05515953525900841,
-0.003479511011391878,
0.047661881893873215,
-0.05277359113097191,
-0.04280919209122658,
0.017899874597787857,
0.010424437001347542,
-0.02407812513411045,
0.057273443788290024,
-0.003580327145755291,
0.015252881683409214,
0.019819917157292366,
0.007752318400889635,
0.02993151545524597,
-0.05803592503070831,
-0.0025817297864705324,
-0.00239303195849061,
0.006730932742357254,
0.014852785505354404,
-0.020182887092232704,
0.029253793880343437,
0.03388677537441254,
0.030492106452584267,
0.016440773382782936,
-0.01800249144434929,
-0.020958149805665016,
0.028896672651171684,
-0.03559820353984833,
0.012070825323462486,
0.0012700733495876193,
-0.05590977892279625,
-0.02546016126871109,
-0.04228225722908974,
-0.03271962329745293,
0.03895667567849159,
-0.04362817481160164,
-0.000993403373286128,
0.04389668628573418,
-0.020750563591718674,
-0.029622137546539307,
-0.0790305882692337,
-0.0215203445404768,
-0.01799623668193817,
0.04071960970759392,
0.02798759937286377,
-0.020708881318569183,
0.0037843489553779364,
-0.049638669937849045,
-0.05241188034415245,
0.005411877762526274,
0.022080175578594208,
-0.037178218364715576,
0.08323494344949722,
0.0429157130420208,
-0.02915453352034092,
0.027654940262436867,
0.03780486807227135,
-0.03828158974647522,
0.0534169003367424,
0.021269353106617928,
0.016939418390393257,
0.03439163789153099,
0.012287909165024757,
-0.011801506392657757,
-0.04449794068932533,
-0.05311115086078644,
-0.03290758654475212,
-0.046699050813913345,
0.008873479440808296,
0.04992188885807991
] |
CLTL/icf-levels-fac | [
"pytorch",
"roberta",
"text-classification",
"nl",
"transformers",
"license:mit"
] | text-classification | {
"architectures": [
"RobertaForSequenceClassification"
],
"model_type": "roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 32 | 2021-10-06T12:23:36Z | ---
language: nl
license: mit
pipeline_tag: text-classification
inference: false
---
# Regression Model for Walking Functioning Levels (ICF d550)
## Description
A fine-tuned regression model that assigns a functioning level to Dutch sentences describing walking functions. The model is based on a pre-trained Dutch medical language model ([link to be added]()): a RoBERTa model, trained from scratch on clinical notes of the Amsterdam UMC. To detect sentences about walking functions in clinical text in Dutch, use the [icf-domains](https://huggingface.co/CLTL/icf-domains) classification model.
## Functioning levels
Level | Meaning
---|---
5 | Patient can walk independently anywhere: level surface, uneven surface, slopes, stairs.
4 | Patient can walk independently on level surface but requires help on stairs, inclines, uneven surface; or, patient can walk independently, but the walking is not fully normal.
3 | Patient requires verbal supervision for walking, without physical contact.
2 | Patient needs continuous or intermittent support of one person to help with balance and coordination.
1 | Patient needs firm continuous support from one person who helps carrying weight and with balance.
0 | Patient cannot walk or needs help from two or more people; or, patient walks on a treadmill.
The predictions generated by the model might sometimes be outside of the scale (e.g. 5.2); this is normal in a regression model.
## Intended uses and limitations
- The model was fine-tuned (trained, validated and tested) on medical records from the Amsterdam UMC (the two academic medical centers of Amsterdam). It might perform differently on text from a different hospital or text from non-hospital sources (e.g. GP records).
- The model was fine-tuned with the [Simple Transformers](https://simpletransformers.ai/) library. This library is based on Transformers but the model cannot be used directly with Transformers `pipeline` and classes; doing so would generate incorrect outputs. For this reason, the API on this page is disabled.
## How to use
To generate predictions with the model, use the [Simple Transformers](https://simpletransformers.ai/) library:
```
from simpletransformers.classification import ClassificationModel
model = ClassificationModel(
'roberta',
'CLTL/icf-levels-fac',
use_cuda=False,
)
example = 'kan nog goed traplopen, maar flink ingeleverd aan conditie na Corona'
_, raw_outputs = model.predict([example])
predictions = np.squeeze(raw_outputs)
```
The prediction on the example is:
```
4.2
```
The raw outputs look like this:
```
[[4.20903111]]
```
## Training data
- The training data consists of clinical notes from medical records (in Dutch) of the Amsterdam UMC. Due to privacy constraints, the data cannot be released.
- The annotation guidelines used for the project can be found [here](https://github.com/cltl/a-proof-zonmw/tree/main/resources/annotation_guidelines).
## Training procedure
The default training parameters of Simple Transformers were used, including:
- Optimizer: AdamW
- Learning rate: 4e-5
- Num train epochs: 1
- Train batch size: 8
## Evaluation results
The evaluation is done on a sentence-level (the classification unit) and on a note-level (the aggregated unit which is meaningful for the healthcare professionals).
| | Sentence-level | Note-level
|---|---|---
mean absolute error | 0.70 | 0.66
mean squared error | 0.91 | 0.93
root mean squared error | 0.95 | 0.96
## Authors and references
### Authors
Jenia Kim, Piek Vossen
### References
TBD
| [
-0.016461964696645737,
-0.004870751406997442,
0.00617749011144042,
0.026118500158190727,
0.02916470728814602,
0.01729460060596466,
-0.012280605733394623,
-0.0392412468791008,
-0.03961201012134552,
0.061416883021593094,
0.03303796052932739,
-0.03624700382351875,
0.010856116190552711,
0.04565249755978584,
-0.03768850862979889,
-0.0058894953690469265,
-0.01854630932211876,
0.0018896750407293439,
-0.026908600702881813,
0.0019882728811353445,
0.01168817188590765,
0.0033873715437948704,
-0.004723152611404657,
0.0255608968436718,
-0.003612791420891881,
0.01997065544128418,
-0.01816563308238983,
0.04548601806163788,
0.037160273641347885,
-0.04260151460766792,
-0.027705445885658264,
-0.048309870064258575,
-0.052844107151031494,
-0.014462718740105629,
-0.02679363638162613,
-0.010008212178945541,
0.011813762597739697,
0.01837560161948204,
0.037191908806562424,
0.05735597014427185,
-0.0037352016661316156,
0.03216914087533951,
0.0036710884887725115,
-0.03758816421031952,
0.024606812745332718,
0.0049691032618284225,
-0.049122828990221024,
-0.01535688154399395,
0.03545422852039337,
-0.028249595314264297,
-0.057542748749256134,
-0.08845969289541245,
-0.0065688760951161385,
0.06514067202806473,
-0.01266386080533266,
-0.026891369372606277,
-0.07648832350969315,
-0.017322251573204994,
0.046222131699323654,
-0.028054341673851013,
-0.02298005111515522,
0.035566654056310654,
-0.06809955090284348,
0.003508949186652899,
0.02987832948565483,
-0.02767128497362137,
-0.01736433058977127,
-0.04994364082813263,
0.035268623381853104,
-0.036035116761922836,
0.05956491827964783,
-0.00517258420586586,
0.018876230344176292,
-0.07425545901060104,
-0.027297580614686012,
-0.004572448320686817,
0.038730185478925705,
0.04582726210355759,
-0.05329393595457077,
0.04598537087440491,
0.04158034920692444,
-0.003388894721865654,
0.01877790130674839,
-0.025028901174664497,
-0.013009326532483101,
0.060259658843278885,
-0.03520503267645836,
0.00886465422809124,
-0.0055509028024971485,
0.03460671752691269,
-0.03305059298872948,
-0.025492481887340546,
-0.006622413173317909,
-0.04548557102680206,
-0.015252183191478252,
0.030206039547920227,
0.03883674740791321,
-0.03893885016441345,
0.029229486361145973,
0.032984353601932526,
0.04884545877575874,
0.03617022559046745,
-0.011152398772537708,
0.04923999309539795,
-0.0038272824604064226,
-0.0147195253521204,
-0.019543444737792015,
-0.03214322030544281,
-0.03245723992586136,
0.009354273788630962,
0.029143642634153366,
-0.03955688700079918,
-0.02481590211391449,
0.04762548580765724,
0.0067967819049954414,
-0.011987186968326569,
0.06605050712823868,
-0.032652731984853745,
-0.05312885716557503,
-0.08082079887390137,
0.038108278065919876,
0.025468816980719566,
0.008826257660984993,
-0.0014495307113975286,
-0.05374668166041374,
0.01574895717203617,
-0.0500170923769474,
-0.031623415648937225,
0.0013752435334026814,
0.02737877517938614,
-0.01283843070268631,
0.05642039328813553,
-0.0012958013685420156,
-0.05747304484248161,
-0.009280899539589882,
0.008410091511905193,
-0.07042496651411057,
0.023746086284518242,
0.03217511624097824,
0.1297261267900467,
-0.04827142879366875,
-0.03540195897221565,
0.03876904398202896,
-0.0011221137829124928,
0.0014522944111377,
0.009378520771861076,
0.045740824192762375,
-0.05310569703578949,
-0.006930643692612648,
-0.027011962607502937,
0.050605565309524536,
-0.05218959599733353,
-0.019869349896907806,
0.047393329441547394,
0.0050597889348864555,
0.03104262985289097,
-0.019192978739738464,
0.003464415902271867,
-0.014206372201442719,
-0.008614509366452694,
-0.03235780820250511,
0.06566265970468521,
-0.021509217098355293,
-0.03428909182548523,
-0.025269484147429466,
-0.05552076920866966,
0.006188335362821817,
0.07022711634635925,
-0.016718588769435883,
-0.02077634073793888,
-0.05057946592569351,
0.017584178596735,
0.04397093132138252,
0.017830222845077515,
-0.027916649356484413,
0.029884742572903633,
0.030785532668232918,
0.026660725474357605,
-0.006997419521212578,
0.06046512350440025,
-0.018283260986208916,
-0.02060224488377571,
-0.05109230428934097,
0.02064422145485878,
-0.006531581748276949,
-0.02092316932976246,
0.008138072676956654,
0.03536282852292061,
-0.00507675064727664,
-0.03317534178495407,
-0.0024153292179107666,
0.058209870010614395,
0.004192705266177654,
-0.022484490647912025,
-0.0006764493882656097,
-0.00868577416986227,
-0.01941990666091442,
0.013340870849788189,
-0.010358168743550777,
-0.005983335897326469,
-0.011569702997803688,
-0.01546153612434864,
0.025679906830191612,
0.019168293103575706,
0.032805148512125015,
0.03754248470067978,
-0.027190322056412697,
0.0861675888299942,
-0.05454430356621742,
0.02237311564385891,
-0.04293055087327957,
-0.047447532415390015,
0.01088317483663559,
0.037268877029418945,
0.03676953166723251,
0.05792829394340515,
-0.045751962810754776,
-0.06151622161269188,
0.006148302461951971,
0.06354333460330963,
0.05569468438625336,
0.04704204201698303,
-0.0193021260201931,
0.0018084386829286814,
0.021870236843824387,
0.03686649724841118,
-0.047872476279735565,
-0.02365916781127453,
0.028239719569683075,
0.04659464210271835,
-0.017013119533658028,
0.024210968986153603,
-0.021573185920715332,
0.012555667199194431,
-0.05778470262885094,
-0.07271331548690796,
0.04834042116999626,
0.008247753605246544,
0.017710136249661446,
0.02357376739382744,
0.00715238181874156,
0.007523833308368921,
0.016179995611310005,
0.012422379106283188,
0.002704569837078452,
-0.06061386689543724,
0.025795361027121544,
0.02003728412091732,
0.06879935413599014,
-0.048019420355558395,
0.035899512469768524,
-0.017757631838321686,
0.02629992738366127,
0.032777030020952225,
-0.027948813512921333,
0.03031589277088642,
0.05081542581319809,
0.02404741197824478,
-0.0513116754591465,
0.04279498755931854,
0.015362009406089783,
0.01022136677056551,
0.05071453005075455,
0.0007929503917694092,
0.0770038589835167,
0.01830017752945423,
0.035390209406614304,
0.07228082418441772,
0.021728182211518288,
-0.008698337711393833,
0.060013867914676666,
0.08253799378871918,
-0.041999977082014084,
-0.01256541721522808,
0.052556995302438736,
-0.03854857012629509,
0.031442463397979736,
-0.04742436483502388,
0.031948309391736984,
0.01855737343430519,
-0.02378697693347931,
0.040147751569747925,
0.003912994172424078,
-0.049119509756565094,
0.037681225687265396,
-0.02102866768836975,
-0.010638055391609669,
0.032705873250961304,
0.0009423549054190516,
0.020673613995313644,
0.005591470282524824,
-0.04419741779565811,
0.028881948441267014,
-0.06205722689628601,
-0.014104563742876053,
-0.0256093367934227,
-0.04214930161833763,
0.017467444762587547,
-0.08542807400226593,
-0.016914140433073044,
-0.08840582519769669,
-0.015754079446196556,
0.01815119758248329,
0.020657405257225037,
-0.0008283747010864317,
-0.009330244734883308,
-0.0015146611258387566,
-0.03418637067079544,
-0.025987127795815468,
-0.03961728885769844,
-0.0341055728495121,
-0.05437658354640007,
-0.05207816883921623,
0.04818334802985191,
0.014043055474758148,
0.03099939227104187,
0.023118196055293083,
-0.0014108235482126474,
-0.02063128910958767,
-0.028694767504930496,
0.04314542934298515,
0.023729080334305763,
-0.046944089233875275,
-0.04020123928785324,
0.009232547134160995,
-0.025925960391759872,
-0.006734090857207775,
-0.02046857587993145,
-0.0024496037513017654,
0.05667390674352646,
0.08391468226909637,
0.017738334834575653,
0.006569490768015385,
-0.0046267202123999596,
-0.043040256947278976,
-0.07658941298723221,
0.0016000489704310894,
-0.01834452897310257,
-0.011820003390312195,
-0.03227484971284866,
-0.04663136973977089,
-0.04051479324698448,
-0.06995090842247009,
-0.013396626338362694,
-0.013349347747862339,
0.002845481038093567,
0.007736660540103912,
0.035405609756708145,
0.01861920766532421,
0.03494386002421379,
-0.032937802374362946,
-0.043100129812955856,
0.0752057209610939,
0.018707839772105217,
0.021043360233306885,
-0.06617309153079987,
-0.02946225367486477,
0.016815954819321632,
0.02878040447831154,
-0.015358846634626389,
-0.011049035005271435,
0.06777967512607574,
0.02860787883400917,
0.022243557497859,
-0.001377601409330964,
-0.01661188155412674,
-0.029253695160150528,
-0.0028644264675676823,
-0.01287695113569498,
-0.027073347941040993,
-0.03299864009022713,
-0.022277269512414932,
0.013892015442252159,
0.05135123059153557,
-0.06579519808292389,
-0.03690009564161301,
-0.006493118591606617,
0.03654834255576134,
0.025471124798059464,
0.012238655239343643,
-0.043117113411426544,
0.006256483029574156,
-0.02966134250164032,
-0.02651163376867771,
0.012696628458797932,
-0.0041289846412837505,
0.014539532363414764,
0.07219680398702621,
0.010998355224728584,
-0.015553181990981102,
0.06682515144348145,
0.025206418707966805,
0.033742111176252365,
0.03299647942185402,
-0.03341677784919739,
0.018197938799858093,
-0.02658316306769848,
0.03991933539509773,
-0.0006883268360979855,
-0.037660349160432816,
-0.06306885182857513,
-0.09279453009366989,
-0.042023755609989166,
0.020133692771196365,
-0.021030383184552193,
0.024160850793123245,
0.02198905311524868,
-0.002003430388867855,
-0.010539313778281212,
-0.004790466278791428,
0.01599964313209057,
0.014330334961414337,
-0.050067879259586334,
0.03544451296329498,
0.0009537665755487978,
0.026195740327239037,
-0.04617363587021828,
-0.0010959627106785774,
-0.04063194990158081,
-0.022439464926719666,
-0.0007059228955768049,
0.08329997211694717,
-0.002056795870885253,
0.05529114603996277,
0.07138048112392426,
0.005094921216368675,
-0.048804961144924164,
0.03669275715947151,
0.048568710684776306,
-0.023937858641147614,
-0.040397245436906815,
0.02103506401181221,
-0.005620182026177645,
-0.032160691916942596,
-0.005141788627952337,
-0.04019774869084358,
0.017312530428171158,
0.0194767527282238,
0.0025123166851699352,
-0.0059981499798595905,
0.0013842241605743766,
-0.02645818330347538,
-0.007459986489266157,
-0.04563196375966072,
-0.013231196440756321,
-0.0008784213569015265,
-0.007712834049016237,
0.03525190427899361,
0.03138801455497742,
0.012881550006568432,
0.06409024447202682,
0.039797183126211166,
-0.03835965692996979,
-0.031654857099056244,
0.0321640707552433,
0.038787830621004105,
-0.044710755348205566,
-0.0512470006942749,
-0.022220132872462273,
0.014707089401781559,
0.043488360941410065,
-0.024423837661743164,
-0.0827801525592804,
0.006198459304869175,
0.09211425483226776,
-0.041278839111328125,
0.06985338777303696,
-0.008650720119476318,
0.03853826969861984,
0.04325251653790474,
-0.004145643673837185,
0.03563299402594566,
-0.031207330524921417,
0.03050314635038376,
0.00018248474225401878,
0.059640444815158844,
-0.0555972084403038,
-0.054258789867162704,
-0.054731857031583786,
0.06900539249181747,
0.02460731752216816,
0.035772815346717834,
0.04238354414701462,
-0.03463350608944893,
-0.043639179319143295,
-0.005712900776416063,
0.015719501301646233,
-0.02849850431084633,
0.04923577234148979,
0.048218172043561935,
0.03831822797656059,
-0.04829486086964607,
-0.04980752617120743,
-0.013502420857548714,
-0.007727531716227531,
0.014547808095812798,
-0.02299027517437935,
-0.03657056391239166,
-0.04307195171713829,
0.029812978580594063,
-0.001497225253842771,
-0.021682845428586006,
-0.09245505183935165,
-0.0004417216987349093,
-0.01671433262526989,
-0.027671851217746735,
0.04622820019721985,
0.04895535483956337,
0.03850763291120529,
0.057521820068359375,
0.003975274506956339,
0.033115364611148834,
-0.03801422193646431,
0.044088538736104965,
-0.03276660665869713,
-0.025949319824576378,
-0.025749802589416504,
-0.04745626077055931,
-0.01693776436150074,
-0.05296492949128151,
-0.05103425681591034,
-0.04377890005707741,
-0.02403389662504196,
0.0057504428550601006,
-0.016617799177765846,
0.009585794061422348,
-0.003636101493611932,
0.030310269445180893,
-0.0074745062738657,
-0.015926172956824303,
-0.03157155588269234,
-0.04792570322751999,
-0.08074896037578583,
-0.03675639256834984,
0.029109761118888855,
0.045184891670942307,
0.002022090367972851,
0.016048820689320564,
-0.016805564984679222,
0.008454179391264915,
0.0007322420133277774,
-0.04176429286599159,
0.04972517490386963,
0.0068172262981534,
-0.03351180627942085,
-0.011859509162604809,
0.028396055102348328,
0.02097105234861374,
0.01196784246712923,
-0.02374926581978798,
0.016015447676181793,
0.041942715644836426,
-0.04563067480921745,
-0.016238318756222725,
0.03706413507461548,
0.004216551780700684,
-0.05510781332850456,
-0.04256116598844528,
-0.020559115335345268,
-0.025006970390677452,
0.03795799985527992,
0.002466878853738308,
-0.032858707010746,
0.002331572351977229,
0.03209984675049782,
0.029908135533332825,
-0.0013162874383851886,
-0.03262903168797493,
-0.007439765613526106,
-0.007807060144841671,
0.019533108919858932,
-0.06284491717815399,
0.030892716720700264,
-0.05218522623181343,
0.018260544165968895,
-0.01931118220090866,
-0.0028365207836031914,
-0.03492959588766098,
0.051131293177604675,
-0.047461070120334625,
-0.014660649001598358,
-0.020923085510730743,
-0.0037789458874613047,
-0.015301239676773548,
0.034013211727142334,
-0.024548586457967758,
0.00948923546820879,
-0.007846985943615437,
0.08996621519327164,
-0.02626410499215126,
-0.029059674590826035,
-0.03918486833572388,
-0.022875474765896797,
-0.003990300465375185,
0.00039941436261869967,
0.003176532220095396,
-0.021669471636414528,
0.0469738133251667,
0.05207798629999161,
0.02316325530409813,
0.040291715413331985,
-0.017172008752822876,
-0.006869593635201454,
-0.005490883253514767,
-0.05338422954082489,
-0.03414959833025932,
0.004530632868409157,
0.01812271773815155,
-0.011823493055999279,
0.03773544356226921,
0.023821858689188957,
-0.0313279815018177,
-0.04476376622915268,
0.03614406660199165,
0.037464965134859085,
0.01745118387043476,
0.017108598724007607,
0.01632501371204853,
0.028421062976121902,
0.07212559878826141,
-0.05256301909685135,
-0.011641879566013813,
0.015955284237861633,
-0.0354485847055912,
0.032159484922885895,
0.011459225788712502,
0.019762014970183372,
0.008951161056756973,
-0.036187466233968735,
-0.012759924866259098,
0.05116778984665871,
0.01592421345412731,
0.022293785586953163,
-0.001237479387782514,
-0.0493677482008934,
0.028329605236649513,
0.017723005264997482,
-0.05615273118019104,
0.01193888671696186,
0.0001858762261690572,
-0.026416493579745293,
0.07375927269458771,
-0.0045949541963636875,
0.017462387681007385,
0.08561252802610397,
0.03151395544409752,
-0.013115709647536278,
0.03941504657268524,
0.0007819547899998724,
-0.006663005333393812,
0.04676173999905586,
-0.07939448952674866,
-0.005425037816166878,
-0.018870914354920387,
0.07998109608888626,
-0.06961556524038315,
0.043216511607170105,
0.01834167167544365,
0.009293228387832642,
0.010147499851882458,
-0.026747656986117363,
-0.04535866528749466,
0.02282501757144928,
-0.0313146747648716,
0.08153814822435379,
-0.0030093928799033165,
-0.05835863947868347,
0.07497373223304749,
0.0363587811589241,
-0.07302599400281906,
0.040929995477199554,
0.02735290676355362,
0.015330768190324306,
0.02699960581958294,
0.04958433657884598,
-0.03923848643898964,
0.016321280971169472,
-0.039264876395463943,
0.021877674385905266,
-0.04530300945043564,
0.004011287819594145,
0.015044267289340496,
-0.05052494630217552,
-0.03810941055417061,
0.04256708547472954,
-0.016615290194749832,
-0.0020411661826074123,
0.024046743288636208,
-0.02515788935124874,
-0.03757302090525627,
0.003442177316173911,
-0.002355082891881466,
-0.034517526626586914,
0.0004596305079758167,
-0.04430055618286133,
0.036344777792692184,
0.02462935261428356,
0.006132053676992655,
-0.05553267523646355,
0.013729507103562355,
0.04248667508363724,
-0.06343664973974228,
-0.04242274537682533,
0.02777559868991375,
0.007472751662135124,
-0.015173051506280899,
0.0454413965344429,
0.0015669713029637933,
0.02107859030365944,
0.033954646438360214,
0.023086346685886383,
0.040276963263750076,
-0.0611516498029232,
0.02068542316555977,
-0.016177218407392502,
0.015288135968148708,
0.013619454577565193,
-0.03460558503866196,
0.019214577972888947,
0.032226841896772385,
0.01915174350142479,
0.027433594688773155,
-0.021812399849295616,
-0.010815050452947617,
0.0393618606030941,
-0.0384383462369442,
0.019569745287299156,
-0.0025806536432355642,
-0.04643654450774193,
-0.024232491850852966,
-0.042519211769104004,
-0.002621498191729188,
0.03674154356122017,
-0.05443994700908661,
-0.00889781303703785,
0.04442984238266945,
0.00015412266657222062,
-0.041608188301324844,
-0.0878356397151947,
-0.0345037579536438,
-0.016975337639451027,
0.038451578468084335,
0.027954572811722755,
-0.030855698511004448,
0.011407798156142235,
-0.04975798726081848,
-0.04560084640979767,
0.0036985804326832294,
0.02914024144411087,
-0.01851658523082733,
0.08038695901632309,
0.03595556691288948,
-0.023082870990037918,
0.02539176493883133,
0.04234357923269272,
-0.034484729170799255,
0.04890129715204239,
0.010964702814817429,
0.019712701439857483,
0.026550037786364555,
0.03060729429125786,
0.0034005469642579556,
-0.0460885725915432,
-0.053900156170129776,
-0.03542860597372055,
-0.044508516788482666,
0.0024093009997159243,
0.04921978712081909
] |
CLTL/icf-levels-mbw | [
"pytorch",
"roberta",
"text-classification",
"nl",
"transformers",
"license:mit"
] | text-classification | {
"architectures": [
"RobertaForSequenceClassification"
],
"model_type": "roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 30 | null | ---
language: nl
license: mit
pipeline_tag: text-classification
inference: false
---
# Regression Model for Weight Maintenance Functioning Levels (ICF b530)
## Description
A fine-tuned regression model that assigns a functioning level to Dutch sentences describing weight maintenance functions. The model is based on a pre-trained Dutch medical language model ([link to be added]()): a RoBERTa model, trained from scratch on clinical notes of the Amsterdam UMC. To detect sentences about weight maintenance functions in clinical text in Dutch, use the [icf-domains](https://huggingface.co/CLTL/icf-domains) classification model.
## Functioning levels
Level | Meaning
---|---
4 | Healthy weight, no unintentional weight loss or gain, SNAQ 0 or 1.
3 | Some unintentional weight loss or gain, or lost a lot of weight but gained some of it back afterwards.
2 | Moderate unintentional weight loss or gain (more than 3 kg in the last month), SNAQ 2.
1 | Severe unintentional weight loss or gain (more than 6 kg in the last 6 months), SNAQ ≥ 3.
0 | Severe unintentional weight loss or gain (more than 6 kg in the last 6 months) and admitted to ICU.
The predictions generated by the model might sometimes be outside of the scale (e.g. 4.2); this is normal in a regression model.
## Intended uses and limitations
- The model was fine-tuned (trained, validated and tested) on medical records from the Amsterdam UMC (the two academic medical centers of Amsterdam). It might perform differently on text from a different hospital or text from non-hospital sources (e.g. GP records).
- The model was fine-tuned with the [Simple Transformers](https://simpletransformers.ai/) library. This library is based on Transformers but the model cannot be used directly with Transformers `pipeline` and classes; doing so would generate incorrect outputs. For this reason, the API on this page is disabled.
## How to use
To generate predictions with the model, use the [Simple Transformers](https://simpletransformers.ai/) library:
```
from simpletransformers.classification import ClassificationModel
model = ClassificationModel(
'roberta',
'CLTL/icf-levels-mbw',
use_cuda=False,
)
example = 'Tijdens opname >10 kg afgevallen.'
_, raw_outputs = model.predict([example])
predictions = np.squeeze(raw_outputs)
```
The prediction on the example is:
```
1.95
```
The raw outputs look like this:
```
[[1.95429301]]
```
## Training data
- The training data consists of clinical notes from medical records (in Dutch) of the Amsterdam UMC. Due to privacy constraints, the data cannot be released.
- The annotation guidelines used for the project can be found [here](https://github.com/cltl/a-proof-zonmw/tree/main/resources/annotation_guidelines).
## Training procedure
The default training parameters of Simple Transformers were used, including:
- Optimizer: AdamW
- Learning rate: 4e-5
- Num train epochs: 1
- Train batch size: 8
## Evaluation results
The evaluation is done on a sentence-level (the classification unit) and on a note-level (the aggregated unit which is meaningful for the healthcare professionals).
| | Sentence-level | Note-level
|---|---|---
mean absolute error | 0.81 | 0.60
mean squared error | 0.83 | 0.56
root mean squared error | 0.91 | 0.75
## Authors and references
### Authors
Jenia Kim, Piek Vossen
### References
TBD
| [
-0.017584217712283134,
-0.01708076149225235,
0.0282081738114357,
0.04009624198079109,
0.011239498853683472,
0.013074972666800022,
-0.02029728889465332,
-0.026279864832758904,
-0.023586591705679893,
0.06122342497110367,
0.02721291594207287,
-0.016742754727602005,
0.032810356467962265,
0.05554866045713425,
-0.038199532777071,
-0.02078835479915142,
-0.018525943160057068,
-0.01733621582388878,
-0.010569442063570023,
0.01449059322476387,
0.001624183845706284,
-0.018550200387835503,
0.008033094927668571,
0.022542079910635948,
0.015067500062286854,
0.01879843696951866,
-0.014788499101996422,
0.04620014876127243,
0.05351031571626663,
-0.030127882957458496,
-0.00447417888790369,
-0.057311128824949265,
-0.03967113047838211,
-0.026999572291970253,
-0.023774677887558937,
0.0002348609414184466,
0.024097569286823273,
0.010803960263729095,
0.04192550480365753,
0.06095213070511818,
0.004523996263742447,
0.03556313365697861,
-0.012226879596710205,
-0.03899845480918884,
0.013383506797254086,
0.000248321593971923,
-0.06006745621562004,
-0.02059366926550865,
0.040134064853191376,
-0.028248291462659836,
-0.06257877498865128,
-0.09696131199598312,
-0.008438657969236374,
0.06403759866952896,
0.0016618345398455858,
-0.021152347326278687,
-0.07373344898223877,
0.010634015314280987,
0.03441297635436058,
-0.03687126934528351,
-0.04263082519173622,
0.03747444972395897,
-0.07456568628549576,
0.01399310678243637,
0.016967816278338432,
-0.03240172564983368,
-0.020946282893419266,
-0.047296468168497086,
0.0437682680785656,
-0.033486396074295044,
0.042385272681713104,
-0.004684212151914835,
0.01745520532131195,
-0.058533910661935806,
-0.027988802641630173,
0.0012087100185453892,
0.05051400512456894,
0.05347820371389389,
-0.04024496674537659,
0.05577341094613075,
0.04845374822616577,
-0.006650629453361034,
0.023833587765693665,
-0.01829218864440918,
-0.0022500513587146997,
0.04766927659511566,
-0.01613347977399826,
0.0031777529511600733,
0.012480839155614376,
0.04565240442752838,
-0.05887385085225105,
-0.035520851612091064,
-0.0054139504209160805,
-0.050927549600601196,
-0.018440036103129387,
0.021418919786810875,
0.01910618133842945,
-0.04114857316017151,
0.03312675654888153,
0.035306110978126526,
0.01878558285534382,
0.04546568542718887,
-0.014677461236715317,
0.05883541330695152,
-0.02425934560596943,
-0.014966519549489021,
-0.010851227678358555,
-0.034804943948984146,
-0.020344572141766548,
0.02075168304145336,
0.03713420405983925,
-0.04775300249457359,
-0.01869122125208378,
0.02700359933078289,
0.011120454408228397,
-0.02029581181704998,
0.03950593248009682,
-0.027454230934381485,
-0.05277969315648079,
-0.07968597114086151,
0.015831757336854935,
0.02392547018826008,
0.041959844529628754,
-0.01683664321899414,
-0.04145244508981705,
-0.0025716230738908052,
-0.0508442223072052,
-0.022971294820308685,
0.014107244089245796,
0.03980506584048271,
-0.009950757026672363,
0.06029327213764191,
0.016255583614110947,
-0.0733455941081047,
-0.02217128686606884,
0.011319139041006565,
-0.06413131207227707,
0.01901884563267231,
0.044806260615587234,
0.12651972472667694,
-0.05897378921508789,
-0.039080940186977386,
0.020910361781716347,
-0.022531047463417053,
-0.0012716647470369935,
0.02753903903067112,
0.03553915396332741,
-0.06011496111750603,
0.004047447349876165,
-0.037442561239004135,
0.05387227237224579,
-0.06424058228731155,
-0.009142831899225712,
0.04113222658634186,
-0.0002601558226160705,
0.051572877913713455,
-0.03250054642558098,
0.004405605141073465,
-0.009686962701380253,
0.00043996519525535405,
-0.029617896303534508,
0.051534105092287064,
-0.010891024023294449,
-0.023550739511847496,
-0.029648134484887123,
-0.04586821049451828,
-0.009278152137994766,
0.07766319066286087,
-0.002328032860532403,
-0.02696765400469303,
-0.05442886799573898,
0.015779225155711174,
0.043199241161346436,
0.03546642139554024,
-0.03532802686095238,
0.01921294629573822,
0.027272308245301247,
0.023153552785515785,
-0.019572611898183823,
0.05363718047738075,
-0.019089896231889725,
0.002212786814197898,
-0.030144520103931427,
0.021755065768957138,
-0.006658643949776888,
-0.015756914392113686,
0.01950688660144806,
0.04613913223147392,
-0.004928390961140394,
-0.04624269902706146,
-0.016799787059426308,
0.05159929767251015,
-0.00305180880241096,
-0.02561621181666851,
0.0215242151170969,
-0.005775087978690863,
-0.030318671837449074,
0.0036189972888678312,
-0.015811778604984283,
0.011227020993828773,
-0.01636437140405178,
-0.005052012857049704,
0.029822731390595436,
0.00828513503074646,
0.033852651715278625,
0.048687953501939774,
-0.019386712461709976,
0.07526891678571701,
-0.05032411217689514,
0.021377062425017357,
-0.04674799367785454,
-0.056354325264692307,
0.0018827116582542658,
0.03310719132423401,
0.052134428173303604,
0.06679913401603699,
-0.05724182724952698,
-0.06705298274755478,
0.0029911973979324102,
0.07236488163471222,
0.05491739138960838,
0.051062412559986115,
-0.024464430287480354,
0.0011262885527685285,
0.015118862502276897,
0.028901681303977966,
-0.04089748486876488,
-0.03782489523291588,
0.023191558197140694,
0.042996518313884735,
-0.010383371263742447,
0.014383018016815186,
-0.014123798348009586,
0.016554566100239754,
-0.039939235895872116,
-0.06715657562017441,
0.052544005215168,
0.028066759929060936,
0.0042381673119962215,
0.03847191482782364,
-0.017406178638339043,
-0.0010540453949943185,
0.015365912578999996,
0.0013080581557005644,
0.007615354377776384,
-0.053258877247571945,
0.018121706321835518,
0.009173539467155933,
0.05137446150183678,
-0.027884146198630333,
0.01837329752743244,
-0.018663635477423668,
0.004232502076774836,
0.03431721031665802,
-0.04496223106980324,
0.018743464723229408,
0.04116034135222435,
0.01439631637185812,
-0.036872223019599915,
0.025830350816249847,
0.01854565553367138,
-0.0019654857460409403,
0.04882362112402916,
0.008824124000966549,
0.08448902517557144,
0.00952483806759119,
0.031844500452280045,
0.08930937200784683,
0.030114317312836647,
0.012350144796073437,
0.05328567698597908,
0.0782039687037468,
-0.03171777352690697,
-0.01644974574446678,
0.06327458471059799,
-0.03522668033838272,
0.04388217628002167,
-0.05388526991009712,
0.026133980602025986,
0.00043452990939840674,
-0.016288073733448982,
0.046582285314798355,
0.022523872554302216,
-0.050396982580423355,
0.03367823362350464,
-0.014694481156766415,
-0.026168959215283394,
0.00976094976067543,
-0.010661485604941845,
0.010526791214942932,
0.019179660826921463,
-0.03072189725935459,
0.037575673311948776,
-0.07113838195800781,
-0.005482513457536697,
-0.0031415505800396204,
-0.04155689850449562,
-0.002905876375734806,
-0.0788867399096489,
-0.026766011491417885,
-0.06719643622636795,
-0.022219661623239517,
0.023745756596326828,
0.028163069859147072,
0.007623923011124134,
-0.0015811566263437271,
0.008814574219286442,
-0.026482755318284035,
-0.03857651725411415,
-0.03603589907288551,
-0.00996873527765274,
-0.05263286083936691,
-0.06601662188768387,
0.05478748306632042,
0.02584671601653099,
0.01719130389392376,
-0.0031164763495326042,
0.0006049767835065722,
-0.001964324852451682,
-0.010233309119939804,
0.05578082799911499,
0.008939907886087894,
-0.04273177683353424,
-0.033606596291065216,
0.02227427437901497,
-0.028201060369610786,
0.0034726120065897703,
-0.02608099766075611,
-0.007771971635520458,
0.05385624244809151,
0.0720183327794075,
0.016633519902825356,
0.006239497102797031,
-0.014698144048452377,
-0.05194412171840668,
-0.080827996134758,
-0.009517155587673187,
0.0016854091081768274,
0.0034642918035387993,
-0.010431160219013691,
-0.03388307988643646,
-0.03974786028265953,
-0.05399475246667862,
-0.019906330853700638,
-0.01882687769830227,
0.009098414331674576,
0.018628783524036407,
0.02708599902689457,
0.03195647895336151,
0.04105139896273613,
-0.0193511713296175,
-0.03509559482336044,
0.08489228039979935,
0.03210737928748131,
0.026991695165634155,
-0.08040661364793777,
-0.03762926906347275,
0.019240161404013634,
0.033014848828315735,
-0.005357473157346249,
-0.011357923038303852,
0.0736500546336174,
0.040044501423835754,
0.01149256806820631,
0.01016918569803238,
-0.020395519211888313,
-0.010186835192143917,
0.014411957934498787,
-0.019149931147694588,
-0.012660148553550243,
-0.039669930934906006,
-0.01136802788823843,
0.0002938738907687366,
0.0461919829249382,
-0.043209489434957504,
-0.044195156544446945,
0.002347344532608986,
0.0514189749956131,
0.01317567378282547,
0.016915518790483475,
-0.043912243098020554,
-0.00655484851449728,
-0.052066873759031296,
-0.017298217862844467,
0.019518470391631126,
0.006218025926500559,
0.010235769674181938,
0.0738028958439827,
0.038693737238645554,
-0.04220906272530556,
0.03517117723822594,
0.016875645145773888,
0.024899287149310112,
0.02320745401084423,
-0.044672731310129166,
0.020789608359336853,
-0.019362935796380043,
0.019987275823950768,
0.004662021063268185,
-0.03623131662607193,
-0.07074582576751709,
-0.07459818571805954,
-0.009070423431694508,
0.011553322896361351,
-0.011542365886271,
0.011935609392821789,
0.03140879049897194,
-0.014227407984435558,
-0.01831844076514244,
-0.016873881220817566,
0.0242405217140913,
0.01209067553281784,
-0.05059199407696724,
0.04625880345702171,
-0.01004838477820158,
0.02105315774679184,
-0.04494558274745941,
-0.005651294719427824,
-0.03403924033045769,
-0.012850720435380936,
0.018535973504185677,
0.07761106640100479,
0.001330297440290451,
0.028309596702456474,
0.07547810673713684,
-0.00606189901009202,
-0.04285110905766487,
0.04213542491197586,
0.04173965007066727,
-0.0007880845223553479,
-0.04773641750216484,
0.024665260687470436,
-0.012379995547235012,
-0.03191091865301132,
0.0005604203906841576,
-0.031815603375434875,
0.015302570536732674,
0.029042236506938934,
0.0003439414722379297,
-0.00842671561986208,
0.005322366952896118,
-0.017558833584189415,
-0.04011083394289017,
-0.05981528013944626,
-0.011586321517825127,
-0.008806358091533184,
-0.00769259175285697,
0.04574598744511604,
0.04104609414935112,
0.001148613286204636,
0.06513173133134842,
0.04116351529955864,
-0.02849510870873928,
-0.029015757143497467,
0.05191527307033539,
0.034131359308958054,
-0.047697558999061584,
-0.04451991245150566,
-0.018226290121674538,
0.034557707607746124,
0.06140750274062157,
-0.020335160195827484,
-0.0759114995598793,
-0.004453208297491074,
0.09245270490646362,
-0.03473643213510513,
0.06982754170894623,
0.002080900827422738,
0.0480826273560524,
0.03316773846745491,
-0.004459698218852282,
0.02224557101726532,
-0.017981214448809624,
0.0010108359856531024,
-0.01661103405058384,
0.06271789968013763,
-0.04933876544237137,
-0.03699145093560219,
-0.05042973533272743,
0.047481268644332886,
0.028546147048473358,
0.04409553483128548,
0.03936227783560753,
-0.020654482766985893,
-0.05363502353429794,
-0.0066015999764204025,
0.03301287814974785,
-0.007339437957853079,
0.034260865300893784,
0.061232034116983414,
0.04452978074550629,
-0.043829936534166336,
-0.05109594389796257,
-0.021642299368977547,
-0.02488701604306698,
0.0239921435713768,
-0.020346270874142647,
-0.05429336056113243,
-0.04443421587347984,
0.0194622203707695,
0.003035222878679633,
-0.014707035385072231,
-0.08678923547267914,
0.02386445924639702,
-0.023239880800247192,
-0.04297220706939697,
0.03687499463558197,
0.049110297113657,
0.04263912886381149,
0.05787253379821777,
-0.007890346460044384,
0.028586765751242638,
-0.007781845051795244,
0.03380691260099411,
-0.03748769313097,
-0.015920937061309814,
-0.03172767162322998,
-0.04444476589560509,
-0.032180484384298325,
-0.04568886756896973,
-0.046100255101919174,
-0.0518769845366478,
-0.031469397246837616,
0.01205442938953638,
-0.015318991616368294,
0.020493464544415474,
-0.025212394073605537,
0.028898240998387337,
-0.0009113898850046098,
-0.00771801033988595,
-0.028999218717217445,
-0.0434282012283802,
-0.07246935367584229,
-0.04505495727062225,
0.03669474273920059,
0.03850392624735832,
0.013939399272203445,
0.027700969949364662,
-0.024531561881303787,
-0.006572927813977003,
-0.014564312063157558,
-0.03826551139354706,
0.05124353989958763,
-0.021271852776408195,
-0.031380098313093185,
-0.04992176592350006,
0.014436226338148117,
0.026454245671629906,
0.029003404080867767,
-0.03552477806806564,
-0.003480122657492757,
0.030432123690843582,
-0.03841659799218178,
-0.014916854910552502,
0.03416484221816063,
0.01791844703257084,
-0.06338127702474594,
-0.0466691218316555,
-0.023156635463237762,
-0.032035719603300095,
0.025918276980519295,
-0.017125852406024933,
0.001878598122857511,
0.0060875327326357365,
0.015832236036658287,
0.03393349051475525,
0.008950109593570232,
-0.04750543087720871,
0.0016712002689018846,
-0.014451145194470882,
0.012772610411047935,
-0.06727199256420135,
0.04890991002321243,
-0.05230884253978729,
0.008721083402633667,
-0.015904182568192482,
0.0024562468752264977,
-0.04761545732617378,
0.04491192847490311,
-0.04334680736064911,
-0.00270088785327971,
-0.012780717574059963,
0.014653150923550129,
-0.02155561000108719,
0.03278527781367302,
-0.03464905172586441,
0.0008546111057512462,
0.017807062715291977,
0.08233310282230377,
-0.03923552483320236,
-0.009446477517485619,
-0.02826770395040512,
-0.026643885299563408,
0.0009195064776577055,
-0.019219813868403435,
-0.015873359516263008,
-0.039792969822883606,
0.040370579808950424,
0.05680248141288757,
0.02294645458459854,
0.03637789934873581,
-0.013882908970117569,
0.01235005259513855,
0.013437391258776188,
-0.058636583387851715,
-0.030993223190307617,
0.014860366471111774,
0.009707557037472725,
-0.0027827401645481586,
0.032958127558231354,
0.022320767864584923,
-0.036748841404914856,
-0.041040487587451935,
0.026126809418201447,
0.042800918221473694,
0.008460239507257938,
0.013944596983492374,
0.03567768260836601,
0.029211562126874924,
0.05126439779996872,
-0.02057007886469364,
-0.004891363438218832,
0.014354025013744831,
-0.03483656793832779,
0.022809144109487534,
0.020471133291721344,
0.03621609881520271,
0.009532971307635307,
-0.025891095399856567,
-0.0032960816752165556,
0.049655381590127945,
0.01868669129908085,
0.031444650143384933,
0.0038463068194687366,
-0.04590864107012749,
0.01787704788148403,
0.03260504826903343,
-0.06561144441366196,
-0.000796210253611207,
0.017301132902503014,
-0.0168745219707489,
0.07060108333826065,
0.0047768158838152885,
0.013804075308144093,
0.09945721924304962,
0.02119232341647148,
0.0051435427740216255,
0.022601822391152382,
0.004693618044257164,
0.013759593479335308,
0.04115208238363266,
-0.05933542922139168,
-0.007303925231099129,
-0.014047659002244473,
0.06954572349786758,
-0.06940533220767975,
0.02889038436114788,
0.032860592007637024,
-0.004995742812752724,
0.015984922647476196,
-0.033372025936841965,
-0.04276104271411896,
0.012760212644934654,
-0.012846425175666809,
0.07805798947811127,
-0.007206331938505173,
-0.05051832273602486,
0.06953458487987518,
0.0296569112688303,
-0.08968187123537064,
0.04110289365053177,
0.013899718411266804,
0.017128830775618553,
0.034329500049352646,
0.054356757551431656,
-0.030041653662919998,
0.0015928199281916022,
-0.04362235590815544,
0.05359221622347832,
-0.051735326647758484,
-0.019320499151945114,
0.021627886220812798,
-0.05640042945742607,
-0.03208918496966362,
0.031172500923275948,
0.0016891751438379288,
0.003574158763512969,
0.03733764961361885,
-0.020821556448936462,
-0.04602875933051109,
0.0005167631315998733,
0.0033757491037249565,
-0.050199173390865326,
-0.013498335145413876,
-0.05403034761548042,
0.03278953954577446,
0.019683601334691048,
-0.018106015399098396,
-0.039437435567379,
0.0037617534399032593,
0.02279038354754448,
-0.07206905633211136,
-0.03461438789963722,
0.0186628308147192,
-0.005234959535300732,
-0.029487816616892815,
0.04083460569381714,
-0.0006644283421337605,
0.02561771497130394,
0.022084522992372513,
0.0034558791667222977,
0.049721162766218185,
-0.045176416635513306,
-0.006432599853724241,
-0.012775355018675327,
0.018364712595939636,
-0.00009565655636833981,
-0.023991798982024193,
0.025258420035243034,
0.02286101132631302,
0.04858165979385376,
0.020269179716706276,
-0.027612248435616493,
-0.028954261913895607,
0.028173621743917465,
-0.035506896674633026,
0.01686347834765911,
-0.006451331544667482,
-0.04893120005726814,
-0.03796270117163658,
-0.03654549643397331,
-0.021997084841132164,
0.04554782807826996,
-0.03714252635836601,
-0.006637224927544594,
0.03696828708052635,
-0.014624209143221378,
-0.0516853854060173,
-0.08758843690156937,
-0.023258619010448456,
-0.021323995664715767,
0.048033349215984344,
0.013091351836919785,
-0.046802062541246414,
0.006497862283140421,
-0.05051536113023758,
-0.05775671824812889,
-0.0023190537467598915,
0.015364646911621094,
-0.016071867197752,
0.07967658340930939,
0.0443054661154747,
-0.028965497389435768,
0.022708160802721977,
0.04482899606227875,
-0.022138627246022224,
0.05049603059887886,
0.03742522746324539,
0.019214963540434837,
0.04066590964794159,
0.0277452003210783,
-0.01302314456552267,
-0.041392259299755096,
-0.059732042253017426,
-0.04088906943798065,
-0.052010584622621536,
0.007276249583810568,
0.04802187532186508
] |
Canadiancaleb/DialoGPT-small-jesse | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 9 | null | ---
tags:
- conversational
---
# Jesse (Breaking Bad) DialoGPT Model | [
-0.049689728766679764,
0.01885126531124115,
0.010859142057597637,
0.014497768133878708,
0.005788560025393963,
0.0283823125064373,
0.003706514835357666,
0.040397223085165024,
0.021135171875357628,
0.018213318660855293,
0.031182166188955307,
-0.03171728178858757,
0.016309602186083794,
0.038658495992422104,
-0.04071984440088272,
0.0019768034107983112,
-0.02952912449836731,
0.0028285274747759104,
-0.015325239859521389,
-0.013473187573254108,
0.024112824350595474,
0.012731987051665783,
-0.006001850124448538,
0.040140748023986816,
0.017626099288463593,
0.027323300018906593,
-0.0020564445294439793,
0.008153758011758327,
0.03018958307802677,
-0.01052695419639349,
0.014459534548223019,
-0.05739593505859375,
-0.032553091645240784,
-0.025046732276678085,
-0.03911392763257027,
-0.04601622000336647,
0.017827482894062996,
-0.03743615373969078,
0.006665600463747978,
0.02292557619512081,
-0.020713618025183678,
-0.014130832627415657,
0.01539105735719204,
-0.03765957057476044,
0.06188754737377167,
-0.004007858224213123,
-0.05001351237297058,
-0.034286707639694214,
0.020688394084572792,
-0.030501822009682655,
-0.04038190469145775,
-0.0752558708190918,
-0.05320858582854271,
-0.037818118929862976,
0.01970214582979679,
-0.04376063123345375,
-0.08064168691635132,
0.006603233981877565,
0.09443910419940948,
-0.022452430799603462,
-0.03237820044159889,
-0.005572339985519648,
-0.0868510976433754,
-0.0014736874727532268,
0.020783595740795135,
-0.08420509099960327,
0.01780390553176403,
-0.029876651242375374,
0.003583714598789811,
-0.041966166347265244,
0.05706147849559784,
-0.027942445129156113,
0.014303072355687618,
-0.07591839134693146,
-0.020786738023161888,
0.0016700532287359238,
0.06102299317717552,
0.07583490014076233,
-0.04455415904521942,
0.05984187498688698,
0.05536503717303276,
-0.0004972363822162151,
0.06631594896316528,
-0.017325904220342636,
-0.03885743394494057,
0.04508468508720398,
-0.06340661644935608,
0.004165985621511936,
0.007816911675035954,
0.03426094353199005,
-0.023030439391732216,
-0.035799406468868256,
-0.02955036796629429,
-0.00859549455344677,
0.001276412047445774,
0.05815849453210831,
0.02938690222799778,
-0.012802806682884693,
0.02519390545785427,
0.042448610067367554,
0.023569699376821518,
0.05080372840166092,
-0.015753937885165215,
0.054950036108493805,
-0.013775008730590343,
0.021235056221485138,
0.02909122407436371,
-0.012941058725118637,
-0.03737768903374672,
0.010951269418001175,
0.005477679893374443,
-0.018496308475732803,
-0.005966795142740011,
0.03416023775935173,
0.00863673072308302,
0.009739494882524014,
0.0472988598048687,
-0.020233022049069405,
-0.03815537691116333,
-0.04304390773177147,
0.03500862047076225,
-0.013285071589052677,
0.0012823574943467975,
-0.003815782256424427,
-0.052796412259340286,
-0.004166171886026859,
-0.03319274261593819,
-0.020898893475532532,
-0.00990667100995779,
-0.005563168320804834,
0.01415951456874609,
0.03221317008137703,
-0.028639886528253555,
-0.058597858995199203,
-0.0017943596467375755,
0.04629664123058319,
-0.07308091968297958,
-0.010221710428595543,
0.023625832051038742,
0.1070130467414856,
-0.08813867717981339,
-0.03635571151971817,
0.005176440346986055,
0.022431468591094017,
-0.015217791311442852,
-0.0049419398419559,
-0.0017319906037300825,
-0.008536201901733875,
-0.04497269541025162,
-0.02237849496304989,
0.034051112830638885,
-0.04836711287498474,
0.0032130687031894922,
0.040884435176849365,
0.011373435147106647,
0.014128509908914566,
-0.026422565802931786,
-0.00045625664643011987,
-0.008453300222754478,
-0.02865440398454666,
-0.05880735069513321,
0.052958857268095016,
-0.024396713823080063,
-0.03602400794625282,
-0.044064365327358246,
-0.022196011617779732,
0.024628229439258575,
0.0641811415553093,
0.004150801338255405,
-0.007098820526152849,
-0.014374621212482452,
0.03399387374520302,
0.06149118021130562,
0.04976961389183998,
-0.02468639239668846,
0.03585213050246239,
0.056522246450185776,
0.03884156420826912,
-0.0403820276260376,
0.045354485511779785,
0.018904203549027443,
-0.03589257970452309,
-0.04664873704314232,
-0.0301535464823246,
0.03884846717119217,
-0.0239787008613348,
0.0022334244567900896,
0.049645062536001205,
-0.02562142163515091,
-0.044067513197660446,
-0.0012225350365042686,
0.047216471284627914,
-0.037840332835912704,
0.010018411092460155,
-0.03371429815888405,
-0.045179832726716995,
-0.04429006576538086,
0.01801203191280365,
-0.030123792588710785,
-0.014363939873874187,
-0.03671581298112869,
-0.012034658342599869,
0.04791976511478424,
0.0008144339080899954,
0.010435223579406738,
0.06389942765235901,
-0.012846660800278187,
0.05635737255215645,
-0.0448634997010231,
0.021607469767332077,
-0.0467834435403347,
-0.013988184742629528,
-0.04131816327571869,
0.03353763744235039,
0.023444144055247307,
0.04973316565155983,
-0.0492904931306839,
-0.05710456520318985,
0.01682024635374546,
0.052247244864702225,
0.039063114672899246,
0.013097498565912247,
-0.03675645962357521,
-0.00010365507478127256,
0.046026334166526794,
0.027042752131819725,
-0.036020878702402115,
0.009700166061520576,
0.025251479819417,
0.01463084015995264,
-0.009308924898505211,
-0.029043296352028847,
-0.04781743511557579,
0.015256965532898903,
-0.04884309321641922,
-0.06787866353988647,
0.029893772676587105,
0.02183278650045395,
-0.001408874522894621,
0.045369621366262436,
-0.0068214694038033485,
-0.010343683883547783,
0.03749855235219002,
-0.007371037267148495,
-0.00945640541613102,
-0.06979438662528992,
0.0004372327821329236,
0.009052801877260208,
0.07691094279289246,
-0.04573294520378113,
0.02759127877652645,
0.009447638876736164,
0.019068501889705658,
0.0077763148583471775,
-0.005663727410137653,
0.05027057230472565,
0.05525236576795578,
0.03049006313085556,
-0.014140726067125797,
0.023439371958374977,
0.016116918995976448,
0.03455446660518646,
0.047427356243133545,
-0.026282774284482002,
0.07436496764421463,
-0.028209315612912178,
0.03372913971543312,
0.06790973991155624,
0.034350376576185226,
-0.023798612877726555,
0.03990347683429718,
0.057417720556259155,
-0.019098112359642982,
0.027728641405701637,
0.049976687878370285,
-0.005529658868908882,
-0.0029560213442891836,
-0.05360496789216995,
-0.012971583753824234,
0.00919820461422205,
-0.0148687195032835,
0.06661960482597351,
0.002584581496194005,
-0.02188350260257721,
0.003396438667550683,
0.009099969640374184,
-0.006398279219865799,
0.0563456155359745,
-0.006156105548143387,
-0.02143530361354351,
0.002736018504947424,
-0.0323304645717144,
0.035537417978048325,
-0.042130425572395325,
-0.04307333379983902,
-0.01793772354722023,
-0.04651505872607231,
-0.005352261010557413,
-0.10423091053962708,
-0.026798704639077187,
-0.06739599257707596,
-0.035854194313287735,
0.050387732684612274,
0.014584964141249657,
0.0164963211864233,
0.007024499122053385,
0.016593249514698982,
-0.028057459741830826,
-0.0505048967897892,
-0.04876868054270744,
-0.014587929472327232,
-0.02804851531982422,
-0.052858658134937286,
0.022749347612261772,
0.03261031582951546,
0.03477269411087036,
0.010010716505348682,
-0.018440542742609978,
-0.027568891644477844,
-0.039666999131441116,
0.05015214905142784,
0.021002907305955887,
-0.04201021417975426,
-0.018389826640486717,
0.016612237319350243,
-0.014082011766731739,
-0.003358929418027401,
-0.011587684042751789,
-0.03156539052724838,
0.05584455281496048,
0.041121117770671844,
0.002108163433149457,
0.009634933434426785,
-0.024910762906074524,
-0.01574617810547352,
-0.03169544041156769,
-0.06564456969499588,
-0.04206820949912071,
-0.04034547507762909,
-0.019234057515859604,
-0.058768149465322495,
-0.026078922674059868,
-0.061590954661369324,
-0.011124680750072002,
0.009567665867507458,
0.009212720207870007,
0.02449808269739151,
0.011095116846263409,
0.02941323071718216,
0.012059580534696579,
-0.013822863809764385,
-0.019659219309687614,
0.04539480432868004,
-0.0023875993210822344,
-0.01661534234881401,
-0.09280683845281601,
-0.05440806597471237,
0.034524720162153244,
0.024760102853178978,
0.005272054113447666,
-0.012028384953737259,
0.043380267918109894,
0.024312790483236313,
-0.013928445987403393,
0.041128043085336685,
-0.06742116808891296,
-0.005628932733088732,
-0.017946122214198112,
-0.015241502784192562,
-0.028108693659305573,
-0.04039209336042404,
-0.0130406953394413,
0.0010757199488580227,
0.042833972722291946,
-0.08079154789447784,
-0.015273361466825008,
-0.026152802631258965,
0.016845697537064552,
0.04472972825169563,
0.006972805131226778,
-0.059660349041223526,
-0.012548399157822132,
-0.03387876972556114,
-0.005184065084904432,
-0.012161881662905216,
-0.02772948518395424,
0.0004978287615813315,
0.016544057056307793,
-0.001629534992389381,
-0.033512286841869354,
0.05037686601281166,
0.023949967697262764,
0.05768527090549469,
0.04434726759791374,
-0.027397872880101204,
0.030378930270671844,
-0.027129879221320152,
0.034715309739112854,
-0.0075015779584646225,
-0.014808721840381622,
-0.04422450438141823,
-0.09664572030305862,
-0.049295056611299515,
0.0226447656750679,
-0.008714827708899975,
0.009200013242661953,
0.035477276891469955,
-0.04299933835864067,
0.00847210455685854,
-0.005190263502299786,
0.03912264108657837,
0.04145900160074234,
-0.00836456473916769,
0.06117034703493118,
-0.010547755286097527,
0.02245141752064228,
-0.04699965566396713,
-0.010696078650653362,
-0.05579189956188202,
-0.00499976659193635,
-0.02496740221977234,
0.06173008307814598,
0.029180685058236122,
0.07916995882987976,
0.06130919232964516,
0.052698757499456406,
-0.04742366075515747,
0.03852749243378639,
0.06643875688314438,
-0.05193035304546356,
-0.045721158385276794,
-0.004653743468225002,
-0.001077293767593801,
-0.01747879572212696,
0.009387961588799953,
-0.04508386179804802,
0.03541278466582298,
0.0336722694337368,
-0.007609574124217033,
0.008541498333215714,
0.0072762747295200825,
-0.025721045210957527,
-0.019621912389993668,
-0.07616346329450607,
-0.0146906403824687,
0.011848796159029007,
-0.019160723313689232,
0.060413751751184464,
0.04532640799880028,
0.01482455525547266,
0.09087853133678436,
-0.006432217080146074,
-0.01955948770046234,
-0.03558249771595001,
0.023008791729807854,
0.005391716491430998,
-0.04563479870557785,
-0.06261297315359116,
-0.06039218604564667,
0.017556583508849144,
0.05390869826078415,
-0.019502850249409676,
-0.08747782558202744,
0.03953314945101738,
0.04564256593585014,
-0.026015041396021843,
0.052613306790590286,
0.012957862578332424,
0.03570949658751488,
0.0336550697684288,
0.011333905160427094,
0.03424891456961632,
-0.0633469820022583,
0.012860812246799469,
-0.02170288749039173,
0.03878195211291313,
-0.059790756553411484,
-0.0510319359600544,
-0.0642741397023201,
0.02995740994811058,
0.036428485065698624,
0.014750075526535511,
0.02048059180378914,
-0.05502163618803024,
-0.04231005162000656,
-0.032129064202308655,
0.03308531641960144,
-0.014691898599267006,
0.019050169736146927,
0.04793708771467209,
0.041693512350320816,
-0.05112508311867714,
-0.005077742505818605,
0.0010542243253439665,
0.023503299802541733,
0.01251440029591322,
-0.009279855526983738,
-0.041175488382577896,
-0.004932808224111795,
0.017130913212895393,
-0.028944792225956917,
-0.026486506685614586,
-0.08408696204423904,
0.030777577310800552,
-0.03562707453966141,
-0.03882608562707901,
0.06746919453144073,
0.0611945278942585,
0.0636347308754921,
0.06049966439604759,
-0.0073211099952459335,
0.02288930118083954,
-0.028397779911756516,
0.01901458017528057,
-0.021672796458005905,
-0.03408432379364967,
0.013564924709498882,
-0.0662742555141449,
-0.03786851838231087,
-0.04790337011218071,
-0.046140577644109726,
-0.0325937420129776,
0.002513008425012231,
0.029081325978040695,
-0.01206232514232397,
-0.015162649564445019,
0.013441593386232853,
-0.0008854945190250874,
0.001388545031659305,
-0.037853412330150604,
-0.015590599738061428,
-0.014967422932386398,
-0.07349879294633865,
-0.06370888650417328,
0.017217105254530907,
-0.02980543114244938,
-0.002889225259423256,
0.010093972086906433,
0.029068468138575554,
0.0383877195417881,
-0.015163324773311615,
-0.029134104028344154,
0.015173206105828285,
0.025674644857645035,
-0.046271126717329025,
0.0016540406504645944,
0.01990692876279354,
0.016830265522003174,
0.012388682924211025,
-0.039024654775857925,
0.02810901217162609,
0.00620755460113287,
-0.03308619186282158,
-0.03089093044400215,
0.02494126558303833,
0.01595371402800083,
-0.06206461787223816,
0.0008996910764835775,
-0.029071804136037827,
-0.02473747916519642,
0.004278788808733225,
-0.05550750344991684,
-0.03616314381361008,
-0.01092470996081829,
0.04891457036137581,
0.04224957525730133,
-0.005298033822327852,
-0.01066084485501051,
0.004007918294519186,
-0.01287249568849802,
0.0009709959849715233,
-0.07770578563213348,
0.01904306933283806,
-0.032540030777454376,
0.009813054464757442,
-0.002112126909196377,
0.018847636878490448,
-0.03754954785108566,
0.047873884439468384,
-0.011606559157371521,
-0.014166107401251793,
-0.012242292985320091,
-0.013645581901073456,
-0.0003230944857932627,
0.039396267384290695,
0.0135877700522542,
0.009441457688808441,
-0.03327992185950279,
0.0653248280286789,
-0.03997308760881424,
0.022702690213918686,
0.01023273915052414,
-0.042330093681812286,
-0.026991672813892365,
-0.016045082360506058,
-0.00411318801343441,
-0.0719648227095604,
0.03472815826535225,
0.04321913793683052,
0.021345214918255806,
0.03965283930301666,
-0.0049759214743971825,
0.007965543307363987,
0.013102103024721146,
-0.04966729134321213,
-0.05212833359837532,
0.003420104505494237,
0.011681553907692432,
0.0434754453599453,
0.05028200149536133,
0.022425144910812378,
-0.03729137405753136,
-0.021524429321289062,
0.033702265471220016,
0.03702651709318161,
0.02145579643547535,
0.00039133158861659467,
0.02311289682984352,
0.05169076472520828,
0.05530769005417824,
-0.012956980615854263,
0.00275831064209342,
0.02562847174704075,
-0.01796434074640274,
-0.004974560346454382,
-0.0038315546698868275,
-0.0004898398765362799,
-0.012757015414536,
-0.027944186702370644,
-0.03226381540298462,
0.07944115996360779,
0.0023675875272601843,
0.00384537479840219,
-0.01702745445072651,
-0.05244859680533409,
0.08363913744688034,
-0.007035247981548309,
-0.030321726575493813,
0.013378733769059181,
0.03980519622564316,
-0.018314749002456665,
0.02656453475356102,
-0.024887843057513237,
-0.0011638500727713108,
0.05785581097006798,
0.0332120880484581,
-0.013915563002228737,
0.009622716344892979,
-0.02453785017132759,
0.0050188759341835976,
0.017375588417053223,
-0.05643035098910332,
-0.003875507740303874,
-0.0366377979516983,
0.059446483850479126,
-0.05149947851896286,
0.04384491220116615,
0.03448502719402313,
0.04150955751538277,
0.01521186251193285,
-0.045259278267621994,
-0.031062347814440727,
-0.024409646168351173,
-0.018871266394853592,
0.06710846722126007,
-0.009457671083509922,
-0.041895050555467606,
0.0605691634118557,
0.01650773361325264,
-0.08250484615564346,
0.01461243350058794,
0.0270557664334774,
0.040146127343177795,
0.016645489260554314,
0.05442807450890541,
-0.05456477776169777,
0.02666548267006874,
-0.019241878762841225,
0.005872462410479784,
-0.03617362678050995,
-0.01680177077651024,
-0.005563907325267792,
-0.04058043286204338,
-0.00023117380624171346,
0.03009974956512451,
-0.031247366219758987,
0.03070598468184471,
0.015312663279473782,
-0.017630822956562042,
-0.059280332177877426,
0.00198481441475451,
0.01919933594763279,
-0.0194077268242836,
-0.003077788045629859,
-0.011311047710478306,
0.02160457894206047,
0.04232880845665932,
-0.010057276114821434,
-0.05190356448292732,
0.020021313801407814,
-0.02137601561844349,
-0.0779656395316124,
-0.05863984301686287,
0.0708969309926033,
0.02096337452530861,
0.0015454008243978024,
0.0011597020784392953,
0.04461843520402908,
0.004704112187027931,
0.0219907034188509,
-0.014603015035390854,
-0.006901291199028492,
-0.07521654665470123,
0.0067583429627120495,
0.026093093678355217,
0.024416539818048477,
0.01558601949363947,
-0.020741425454616547,
0.025863850489258766,
0.06585358828306198,
0.044259604066610336,
0.0032593177165836096,
-0.044252894818782806,
-0.013363778591156006,
-0.01443677768111229,
-0.026845715939998627,
0.03964650630950928,
0.004464948084205389,
-0.04427662864327431,
-0.03116541914641857,
-0.02131459303200245,
0.011121345683932304,
0.026136765256524086,
-0.03667765483260155,
0.024288857355713844,
0.039655428379774094,
0.004313838202506304,
-0.04412255808711052,
-0.08365795761346817,
-0.056223418563604355,
-0.027154140174388885,
0.014485129155218601,
0.023753901943564415,
-0.059877797961235046,
0.006705211475491524,
-0.040657270699739456,
-0.01817307062447071,
0.04759477451443672,
-0.017184307798743248,
-0.017917973920702934,
0.06799057126045227,
0.059282008558511734,
-0.04827244207262993,
0.05217169225215912,
0.031096866354346275,
-0.051277827471494675,
0.03977359086275101,
0.01935606263577938,
0.02535269409418106,
0.02443351410329342,
0.030295412987470627,
-0.010873855091631413,
-0.00810437835752964,
-0.019965171813964844,
-0.04973209276795387,
0.000947402382735163,
-0.0015269808936864138,
0.04606020450592041
] |
Captain-1337/CrudeBERT | [
"pytorch",
"bert",
"text-classification",
"arxiv:1908.10063",
"transformers"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 28 | null | # Master Thesis
## Predictive Value of Sentiment Analysis from Headlines for Crude Oil Prices
### Understanding and Exploiting Deep Learning-based Sentiment Analysis from News Headlines for Predicting Price Movements of WTI Crude Oil
The focus of this thesis deals with the task of research and development of state-of-the-art sentiment analysis methods, which can potentially provide helpful quantification of news that can be used to assess the future price movements of crude oil.
CrudeBERT is a pre-trained NLP model to analyze sentiment of news headlines relevant to crude oil.
It was developed by fine tuning [FinBERT: Financial Sentiment Analysis with Pre-trained Language Models](https://arxiv.org/pdf/1908.10063.pdf).

Performing sentiment analysis on the news regarding a specific asset requires domain adaptation.
Domain adaptation requires training data made up of examples with text and its associated polarity of sentiment.
The experiments show that pre-trained deep learning-based sentiment analysis can be further fine-tuned, and the conclusions of these experiments are as follows:
* Deep learning-based sentiment analysis models from the general financial world such as FinBERT are of little or hardly any significance concerning the price development of crude oil. The reason behind this is a lack of domain adaptation of the sentiment. Moreover, the polarity of sentiment cannot be generalized and is highly dependent on the properties of its target.
* The properties of crude oil prices are, according to the literature, determined by changes in supply and demand.
News can convey information about these direction changes and can broadly be identified through query searches and serve as a foundation for creating a training dataset to perform domain adaptation. For this purpose, news headlines tend to be rich enough in content to provide insights into supply and demand changes.
Even when significantly reducing the number of headlines to more reputable sources.
* Domain adaptation can be achieved to some extend by analyzing the properties of the target through literature review and creating a corresponding training dataset to fine-tune the model. For example, considering supply and demand changes regarding crude oil seems to be a suitable component for a domain adaptation.
In order to advance sentiment analysis applications in the domain of crude oil, this paper presents CrudeBERT.
In general, sentiment analysis of headlines from crude oil through CrudeBERT could be a viable source of insight for the price behaviour of WTI crude oil.
However, further research is required to see if CrudeBERT can serve as beneficial for predicting oil prices.
For this matter, the codes and the thesis is made publicly available on [GitHub] (https://github.com/Captain-1337/Master-Thesis). | [
-0.02167413756251335,
-0.002386244712397456,
-0.024073557928204536,
0.06475639343261719,
0.07998538017272949,
0.034942787140607834,
0.0068418108858168125,
-0.024670524522662163,
-0.016934635117650032,
0.05633559450507164,
0.04173451289534569,
-0.0018067697528749704,
0.02814973145723343,
0.043848223984241486,
-0.014815671369433403,
-0.022729983553290367,
-0.021251237019896507,
0.003184914356097579,
-0.02237660624086857,
-0.02999018132686615,
-0.0065047419629991055,
-0.009980203583836555,
0.009051539935171604,
-0.009436882100999355,
-0.017404181882739067,
0.03911622613668442,
-0.015115856193006039,
0.04392059147357941,
0.02215493656694889,
-0.05832503363490105,
0.017371583729982376,
-0.04519233852624893,
-0.02492249757051468,
-0.008376401849091053,
0.0075586698949337006,
0.03799772635102272,
0.00800869520753622,
0.008418937213718891,
-0.0053041293285787106,
0.026085179299116135,
-0.00046499742893502116,
-0.004821320530027151,
0.0041245329193770885,
-0.04704289510846138,
0.0018676677718758583,
0.0067835599184036255,
-0.02874128334224224,
0.003569235559552908,
0.009382880292832851,
-0.043371256440877914,
-0.06585995852947235,
-0.07948366552591324,
-0.026298144832253456,
0.034532349556684494,
-0.0019536151085048914,
-0.03239692002534866,
-0.025751305744051933,
0.028135892003774643,
0.06901177763938904,
-0.05242374166846275,
-0.051650434732437134,
0.02297065034508705,
-0.02997594140470028,
0.009863968007266521,
0.026983365416526794,
-0.03943319991230965,
0.0012946496717631817,
-0.03973207622766495,
0.030196500942111015,
-0.05060553178191185,
0.04461861401796341,
-0.04305553808808327,
0.01883399300277233,
-0.0666351243853569,
-0.0007438014727085829,
-0.012992472387850285,
0.02595190890133381,
0.04126866161823273,
-0.02320455014705658,
0.04040652886033058,
0.024154720827937126,
0.03020712547004223,
0.03549190238118172,
-0.0378938764333725,
-0.0002115614915965125,
0.028627904132008553,
-0.02778627909719944,
0.01352616399526596,
-0.007370237726718187,
0.047145143151283264,
0.0032884269021451473,
-0.03421943262219429,
-0.02465902455151081,
-0.02605053223669529,
-0.017905598506331444,
0.02716176211833954,
0.015727093443274498,
0.025825135409832,
0.04043903946876526,
0.020298050716519356,
0.049071088433265686,
0.07729115337133408,
-0.009536637924611568,
0.06671953201293945,
-0.0008950664778240025,
-0.051956433802843094,
-0.01488342136144638,
-0.018123434856534004,
-0.054755132645368576,
0.037720274180173874,
-0.0070787821896374226,
-0.050454944372177124,
-0.04261532798409462,
-0.00003914954868378118,
0.036320727318525314,
-0.03843257576227188,
0.018416300415992737,
-0.03821845352649689,
-0.040330927819013596,
-0.028849996626377106,
0.03307613357901573,
-0.0016047725221142173,
0.013042200356721878,
-0.031573664397001266,
-0.06274092942476273,
0.033893778920173645,
-0.04783448949456215,
0.0044313641265034676,
-0.02302282117307186,
0.02340925671160221,
0.01607680693268776,
0.02719634771347046,
0.023109236732125282,
-0.073361337184906,
-0.014945613220334053,
0.0419556125998497,
-0.07644033432006836,
0.026335787028074265,
0.05955446511507034,
0.1082380935549736,
-0.0924564003944397,
-0.05491054803133011,
0.031235409900546074,
0.015059646219015121,
-0.06322121620178223,
0.011108985170722008,
0.01088035199791193,
-0.03795069456100464,
-0.036038272082805634,
-0.01311483234167099,
0.06369561702013016,
-0.06968371570110321,
-0.009825232438743114,
0.03127715736627579,
0.006608162075281143,
0.03511996939778328,
-0.02655685879290104,
-0.019461946561932564,
0.006393547169864178,
0.011879093013703823,
-0.033503495156764984,
0.06973571330308914,
-0.019494647160172462,
-0.010288579389452934,
-0.03391152247786522,
-0.02194947563111782,
-0.007558098528534174,
0.09171054512262344,
0.0038345339708030224,
-0.04918423295021057,
-0.06268054246902466,
0.021964343264698982,
0.025752581655979156,
0.008145151659846306,
-0.03546692430973053,
0.014481875114142895,
0.07168812304735184,
0.027337968349456787,
-0.025993356481194496,
0.06323186308145523,
0.007624449674040079,
-0.026446091011166573,
-0.010850411839783192,
0.0022033951245248318,
-0.0013455342268571258,
-0.03882823884487152,
0.03145555779337883,
0.03707407787442207,
0.002506822347640991,
-0.007131201680749655,
-0.01893344148993492,
0.038872841745615005,
-0.006208605598658323,
0.010406413115561008,
-0.006714613642543554,
0.0034652368631213903,
-0.028943629935383797,
0.027234992012381554,
-0.009671683423221111,
0.010044320486485958,
0.0035979561507701874,
-0.051423586905002594,
0.0055034882389009,
-0.0022997732739895582,
0.013628658838570118,
0.04536055028438568,
-0.0023706487845629454,
0.0814218670129776,
-0.033995069563388824,
0.008488832041621208,
-0.05318451300263405,
-0.038198333233594894,
-0.004745240788906813,
0.028873112052679062,
0.04107118025422096,
0.05301230773329735,
0.0038051807787269354,
-0.02140410803258419,
0.012914455495774746,
0.051887430250644684,
0.03034772165119648,
0.015396170318126678,
-0.014338431879878044,
0.013694235123693943,
0.009634915739297867,
0.020702319219708443,
-0.04516451060771942,
-0.05103223770856857,
0.018541237339377403,
0.03656384348869324,
-0.019885770976543427,
-0.01653221808373928,
-0.02328219823539257,
0.01442522183060646,
-0.01377116609364748,
-0.08883388340473175,
0.061074305325746536,
0.05780695006251335,
0.00040740094846114516,
0.00618938310071826,
-0.012817004695534706,
-0.007036985829472542,
0.026590760797262192,
0.015682153403759003,
0.002277037827298045,
-0.054411545395851135,
0.005453253164887428,
0.014474218711256981,
0.04687127843499184,
-0.014484009705483913,
0.03315391018986702,
0.011560831218957901,
0.00842310767620802,
0.03604896739125252,
-0.026348046958446503,
0.03295821696519852,
0.040125906467437744,
0.030069760978221893,
-0.0051058633252978325,
0.014994154684245586,
0.006356272846460342,
0.019603919237852097,
0.04944276437163353,
-0.015882549807429314,
0.056021787226200104,
0.0031600426882505417,
0.06332985311746597,
0.09112588316202164,
0.03575066104531288,
0.03252585232257843,
0.024714259430766106,
0.04765601456165314,
-0.001138995517976582,
-0.04263679310679436,
0.037841517478227615,
-0.07672673463821411,
0.025727344676852226,
-0.0263252854347229,
0.018817931413650513,
-0.042191535234451294,
-0.028489703312516212,
0.03741352632641792,
0.03888111189007759,
-0.03450426459312439,
-0.006847555283457041,
0.004829494748264551,
0.007454948034137487,
0.027617868036031723,
0.010298099368810654,
0.03988579288125038,
-0.033160384744405746,
-0.050705719739198685,
0.013779851607978344,
-0.04166410490870476,
-0.020620223134756088,
-0.0066146645694971085,
-0.03444885089993477,
-0.01191022340208292,
-0.09348247200250626,
-0.061226531863212585,
-0.07549949735403061,
0.021154960617423058,
0.05603231117129326,
0.04501115530729294,
0.02440022863447666,
-0.032595373690128326,
0.024297961965203285,
-0.02514551393687725,
-0.03768467530608177,
-0.04129986837506294,
-0.0395696684718132,
-0.025458043441176414,
-0.07674579322338104,
0.05751318484544754,
0.020752880722284317,
0.040675923228263855,
-0.027728335931897163,
0.024148454889655113,
-0.04061814025044441,
-0.012236012145876884,
0.07472739368677139,
0.04745727777481079,
-0.019332043826580048,
-0.046546079218387604,
0.01356516033411026,
-0.004336138721555471,
-0.02076825499534607,
-0.004092024173587561,
-0.02766617387533188,
0.06792746484279633,
0.08620927482843399,
0.051792796701192856,
-0.004925527609884739,
-0.034891653805971146,
-0.04857447370886803,
-0.06958293169736862,
-0.03138599917292595,
-0.02861541323363781,
-0.03640511631965637,
-0.03592481464147568,
-0.05324564874172211,
-0.00881537888199091,
-0.0029762559570372105,
-0.018042435869574547,
0.004838570486754179,
0.006443099584430456,
0.018624095246195793,
0.0411713570356369,
0.04559345170855522,
0.01698172464966774,
-0.04308979585766792,
-0.008642351254820824,
0.07868364453315735,
0.011067599058151245,
0.04428531229496002,
-0.048271629959344864,
-0.034347258508205414,
0.0340975746512413,
0.018679199740290642,
0.015240549109876156,
0.0039016883820295334,
0.06786300987005234,
0.0162655059248209,
0.006544994190335274,
0.0026072438340634108,
0.02376752905547619,
-0.04180028289556503,
-0.03872658312320709,
-0.016483187675476074,
-0.023938048630952835,
-0.031556837260723114,
-0.023502415046095848,
-0.0417751669883728,
0.022419938817620277,
-0.028781112283468246,
-0.057154230773448944,
-0.005901833064854145,
0.023012038320302963,
0.038570381700992584,
-0.004315813537687063,
-0.020492136478424072,
0.005498083774000406,
-0.07117783278226852,
-0.015292198397219181,
0.019490862265229225,
-0.017050547525286674,
0.029283666983246803,
0.03546605631709099,
0.028258472681045532,
0.001107431948184967,
0.02609890140593052,
0.029845701530575752,
0.03629598766565323,
-0.0021284616086632013,
-0.0548977293074131,
0.02879621833562851,
-0.05088987201452255,
0.02498958259820938,
0.011898424476385117,
-0.008890396915376186,
-0.053396206349134445,
-0.06397359818220139,
-0.010741102509200573,
-0.018993226811289787,
-0.012521300464868546,
-0.014698983170092106,
0.011346355080604553,
0.006404472514986992,
-0.008582592010498047,
0.0332302562892437,
0.019953042268753052,
0.022815801203250885,
-0.01409689150750637,
0.041672222316265106,
-0.030778642743825912,
-0.0002815202751662582,
-0.04936385154724121,
0.005584231112152338,
-0.03301604837179184,
-0.023148171603679657,
-0.013439803384244442,
0.06291978806257248,
0.051960255950689316,
0.0065576015040278435,
0.05699717998504639,
0.021190468221902847,
-0.02902350015938282,
0.040775101631879807,
0.04242069646716118,
-0.03103826753795147,
-0.08094512671232224,
-0.01169870886951685,
-0.01557089202105999,
-0.022776851430535316,
-0.007264565676450729,
-0.02167966030538082,
-0.0022195770870894194,
0.0036317675840109587,
0.015499761328101158,
-0.035964012145996094,
-0.008677029050886631,
-0.024513179436326027,
-0.05003273859620094,
-0.06329289078712463,
-0.018108036369085312,
0.009351479820907116,
-0.037854887545108795,
0.013074839487671852,
0.03155645728111267,
0.0338318757712841,
0.06761916726827621,
0.025151805952191353,
-0.01678365282714367,
-0.020205721259117126,
0.029264500364661217,
0.05370789393782616,
-0.02101501077413559,
-0.08173337578773499,
-0.05693744122982025,
0.0142724784091115,
0.059769634157419205,
-0.018046556040644646,
-0.0484076589345932,
-0.0034093845169991255,
0.06686040759086609,
-0.047678250819444656,
0.059506066143512726,
-0.013802245259284973,
0.05275016278028488,
0.060687292367219925,
0.006122240796685219,
0.041094452142715454,
-0.034480754286050797,
-0.02173664979636669,
-0.003951420076191425,
0.03825955092906952,
-0.05228416621685028,
-0.002603624016046524,
-0.054132916033267975,
0.03558848053216934,
0.013198364526033401,
0.029661059379577637,
0.05550006777048111,
-0.04133755341172218,
-0.02584240585565567,
0.0007549236179329455,
0.021256115287542343,
-0.03978212922811508,
-0.016043590381741524,
0.03801685944199562,
0.04556524381041527,
-0.041681163012981415,
-0.013845900073647499,
-0.01807432249188423,
0.004393066745251417,
0.057134225964546204,
-0.01712551899254322,
-0.03986111655831337,
-0.04614720493555069,
0.03448139503598213,
-0.007558093871921301,
-0.03927653282880783,
-0.0921005830168724,
0.03878691792488098,
-0.015983473509550095,
-0.0012981104664504528,
0.02351897582411766,
0.03759955242276192,
0.04485056549310684,
0.06524187326431274,
-0.022264530882239342,
0.022265037521719933,
-0.03050590120255947,
0.018929114565253258,
-0.023139361292123795,
-0.025455117225646973,
0.004520541988313198,
-0.03252667933702469,
-0.031308844685554504,
-0.019829390570521355,
-0.043823763728141785,
-0.07096291333436966,
-0.04169643297791481,
-0.005583211313933134,
0.0028380013536661863,
0.01522191520780325,
0.0023158255498856306,
0.028219010680913925,
-0.0003706915013026446,
-0.033180125057697296,
-0.017628079280257225,
-0.05058809369802475,
-0.0518486462533474,
-0.045972105115652084,
0.0032894581090658903,
0.017487868666648865,
-0.007852415554225445,
-0.0045265438966453075,
0.013933341950178146,
0.0174257755279541,
0.03472873941063881,
-0.05073381960391998,
0.03212006390094757,
0.006334424950182438,
-0.04938965663313866,
-0.02591666392982006,
0.023571614176034927,
0.01979997754096985,
0.03231339901685715,
-0.03764417767524719,
0.04344448074698448,
0.028517412021756172,
-0.04099254310131073,
-0.04640289396047592,
0.03243488445878029,
0.046933937817811966,
-0.07090269774198532,
-0.04119462892413139,
-0.01622345857322216,
-0.01587371528148651,
0.054476864635944366,
-0.029747914522886276,
-0.029848212376236916,
-0.02164851501584053,
0.05513114854693413,
0.030589083209633827,
-0.004512660205364227,
-0.06141887605190277,
-0.0006063869805075228,
-0.0030410741455852985,
0.04593222588300705,
-0.03936762735247612,
0.04061504825949669,
-0.03041134588420391,
0.013137448579072952,
-0.011416617780923843,
-0.013346764259040356,
-0.05367596447467804,
0.07263810187578201,
0.017051663249731064,
0.003118704305961728,
-0.04890194535255432,
-0.023968352004885674,
-0.03148776665329933,
0.012342621572315693,
-0.03619766980409622,
0.04121113196015358,
-0.03425240144133568,
0.06038326397538185,
-0.04139937087893486,
-0.007515696808695793,
0.005727769341319799,
0.025663411244750023,
-0.04836312681436539,
-0.00031056764419190586,
-0.013420901261270046,
-0.0395309142768383,
0.04227575659751892,
0.04096921160817146,
0.03425244241952896,
0.02891719900071621,
0.020611604675650597,
-0.019565049558877945,
0.0191685501486063,
-0.06233436241745949,
-0.04235868528485298,
0.004818255081772804,
0.026467563584446907,
-0.009276960045099258,
0.04235772415995598,
0.03257113695144653,
-0.07032372057437897,
-0.04865952581167221,
0.021798713132739067,
0.037494923919439316,
0.013068498112261295,
-0.03278863802552223,
0.02839278243482113,
0.00705147348344326,
0.014564165845513344,
-0.03203140199184418,
-0.02795388735830784,
-0.005836402531713247,
-0.027398932725191116,
0.02861376479268074,
-0.0015297415666282177,
0.007769904565066099,
-0.0024390227627009153,
-0.0629679262638092,
0.019393326714634895,
0.05459728464484215,
0.018372271209955215,
0.014917622320353985,
0.004627124406397343,
-0.06136590614914894,
0.04350496456027031,
0.022185666486620903,
-0.047754500061273575,
-0.0032595566008239985,
-0.010937558487057686,
-0.01972295716404915,
0.08551433682441711,
-0.03725543990731239,
0.019553057849407196,
0.06503403931856155,
0.010367749258875847,
-0.020998043939471245,
0.0493658073246479,
-0.030923249199986458,
0.025193026289343834,
0.039720792323350906,
-0.046853989362716675,
-0.02937009558081627,
-0.04713195189833641,
0.039580438286066055,
-0.08590542525053024,
0.04042040556669235,
0.04022454097867012,
-0.01187905017286539,
0.009732370264828205,
-0.015424530953168869,
-0.05267111957073212,
0.029086574912071228,
-0.04091361165046692,
0.08666469156742096,
-0.01853441447019577,
-0.05546053126454353,
0.052399151027202606,
0.001599281094968319,
-0.07488611340522766,
0.0303967222571373,
0.03422515094280243,
0.023711087182164192,
0.02297438122332096,
0.03956123813986778,
-0.028902128338813782,
-0.02210409566760063,
-0.05206654593348503,
0.022775987163186073,
-0.017543429508805275,
-0.01934165693819523,
0.032489851117134094,
-0.02202846109867096,
-0.019624054431915283,
0.05604188144207001,
-0.0196450836956501,
-0.011473259888589382,
0.027280766516923904,
-0.05924044921994209,
-0.02681448869407177,
0.01592741720378399,
0.016214577481150627,
-0.016655845567584038,
0.0038500046357512474,
-0.03503149375319481,
-0.005126205272972584,
0.025451689958572388,
-0.006598048377782106,
-0.02369178831577301,
-0.009922404773533344,
0.014729845337569714,
-0.0705971047282219,
-0.0073082526214420795,
0.05789031460881233,
0.05258753523230553,
-0.02730044163763523,
0.058507319539785385,
-0.00031349321943707764,
0.00898442231118679,
0.030662136152386665,
0.002276188926771283,
0.020445676520466805,
-0.031868644058704376,
-0.04300709441304207,
0.022662222385406494,
-0.02204686589539051,
0.04251319542527199,
-0.012077245861291885,
0.038685500621795654,
0.04371195659041405,
0.018371978774666786,
-0.005525198765099049,
-0.02005099318921566,
-0.037627462297677994,
0.0037933916319161654,
-0.038218382745981216,
-0.011239076033234596,
0.005158219486474991,
-0.028081156313419342,
-0.04719099402427673,
-0.0022981856018304825,
-0.03917422890663147,
0.018762456253170967,
0.002299732528626919,
-0.01985233463346958,
0.04604693874716759,
0.003135576844215393,
-0.05824832245707512,
-0.06056113541126251,
-0.032094087451696396,
-0.045645635575056076,
0.022621985524892807,
0.028248384594917297,
-0.0369974784553051,
0.0009284639963880181,
-0.05082840472459793,
-0.045122332870960236,
0.03703636676073074,
0.03475235030055046,
-0.07164300978183746,
0.057533081620931625,
0.05853184312582016,
-0.009215380996465683,
-0.00462521193549037,
0.03266099840402603,
-0.03669855371117592,
0.02853066474199295,
0.005785130430012941,
0.01588093489408493,
0.029220357537269592,
0.00876863207668066,
-0.061279360204935074,
-0.041450612246990204,
-0.05218520015478134,
-0.0525633729994297,
-0.04546213522553444,
-0.011296553537249565,
0.08272118121385574
] |
CarlosPR/mt5-spanish-memmories-analysis | [
"pytorch",
"mt5",
"text2text-generation",
"transformers",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"MT5ForConditionalGeneration"
],
"model_type": "mt5",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 7 | null | **mt5-spanish-memmories-analysis**
**// ES**
Este es un trabajo en proceso.
Este modelo aún es solo un punto de control inicial que mejoraré en los próximos meses.
El objetivo es proporcionar un modelo capaz de, utilizando una combinación de tareas del modelo mT5, comprender los recuerdos y proporcionar una interacción útil para las personas con alzeimer o personas como mi propio abuelo que escribió sus recuerdos, pero ahora es solo un libro en la estantería. por lo que este modelo puede hacer que esos recuerdos parezcan "vivos".
Pronto (si aún no está cargado) cargaré un cuaderno de **Google Colaboratory con una aplicación visual** que al usar este modelo proporcionará toda la interacción necesaria y deseada con una interfaz fácil de usar.
**LINK APLICACIÓN (sobre él se actualizará la versión):** https://drive.google.com/drive/folders/1ewGcxxCYHHwhHhWtGlLiryZfV8wEAaBa?usp=sharing
-> Debe descargarse la carpeta "memorium" del enlace y subirse a Google Drive sin incluir en ninguna otra carpeta (directamente en "Mi unidad").
-> A continuación se podrá abrir la app, encontrada dentro de dicha carpeta "memorium" con nombre "APP-Memorium" (el nombre puede incluir además un indicador de versión).
-> Si haciendo doble click en el archivo de la app no permite abrirla, debe hacerse pulsando el botón derecho sobre el archivo y seleccionar "Abrir con", "Conectar más aplicaciones", y a continuación escoger Colaboratory (se pedirá instalar). Completada la instalación (tiempo aproximado: 2 minutos) se podrá cerrar la ventana de instalación para volver a visualizar la carpeta donde se encuentra el fichero de la app, que de ahora en adelante se podrá abrir haciendo doble click.
-> Se podrán añadir memorias en la carpeta "perfiles" como se indica en la aplicación en el apartado "crear perfil".
**// EN**
This is a work in process.
This model is just an initial checkpoint yet that I will be improving the following months.
**APP LINK (it will contain the latest version):** https://drive.google.com/drive/folders/1ewGcxxCYHHwhHhWtGlLiryZfV8wEAaBa?usp=sharing
-> The folder "memorium" must be downloaded and then uploaded to Google Drive at "My Drive", NOT inside any other folder.
The aim is to provide a model able to, using a mixture of mT5 model's tasks, understand memories and provide an interaction useful for people with alzeimer or people like my own grandfather who wrote his memories but it is now just a book in the shelf, so this model can make those memories seem 'alive'.
I will soon (if it is´t uploaded by now) upload a **Google Colaboratory notebook with a visual App** that using this model will provide all the needed and wanted interaction with an easy-to-use Interface.
| [
-0.019413825124502182,
-0.015482249669730663,
-0.00020917422079946846,
0.04524308443069458,
0.011053836904466152,
0.031827718019485474,
-0.017687832936644554,
-0.027303356677293777,
-0.02124471217393875,
0.026474472135305405,
0.052648838609457016,
-0.05242919921875,
-0.005888491868972778,
0.04784032702445984,
-0.06434854865074158,
0.0024968329817056656,
-0.009094249457120895,
0.041258618235588074,
-0.05085436999797821,
-0.02820012904703617,
0.029669422656297684,
-0.0040076663717627525,
-0.0019862016197293997,
0.051501646637916565,
-0.005900603719055653,
0.01457932312041521,
0.012163391336798668,
0.021508945152163506,
-0.029009966179728508,
-0.053495850414037704,
-0.009893452748656273,
-0.055718131363391876,
-0.0409637875854969,
-0.023281818255782127,
-0.04106216877698898,
0.02679910697042942,
-0.001003813580609858,
0.017800454050302505,
0.014463587664067745,
0.028590399771928787,
-0.009448233060538769,
0.02375696785748005,
-0.020767971873283386,
-0.055189792066812515,
0.030246466398239136,
-0.004159688949584961,
-0.02476944960653782,
-0.054774172604084015,
0.05282027646899223,
-0.016830889508128166,
-0.04501890763640404,
-0.07374951243400574,
-0.026565857231616974,
0.00821736454963684,
-0.017756983637809753,
-0.051374394446611404,
-0.09378420561552048,
-0.004632048774510622,
0.07230093330144882,
-0.03845830634236336,
-0.022320227697491646,
0.007310263346880674,
-0.08515102416276932,
-0.02494632452726364,
0.03725825250148773,
-0.03656396642327309,
0.010474643670022488,
-0.027339154854416847,
0.045200981199741364,
-0.01924261823296547,
0.0060211108066141605,
-0.04250843822956085,
0.013762801885604858,
-0.07430517673492432,
-0.011313415132462978,
-0.02587289549410343,
0.020254353061318398,
0.05263591930270195,
-0.06976455450057983,
0.04389532282948494,
0.03214488923549652,
0.0015602910425513983,
0.06139948591589928,
-0.020978854969143867,
-0.011773991398513317,
0.0326007679104805,
-0.016445305198431015,
-0.03524487093091011,
0.0029753437265753746,
0.03408091515302658,
-0.01649988442659378,
-0.02647491917014122,
-0.013662603683769703,
-0.01109562162309885,
0.011924074031412601,
0.029260126873850822,
0.04922875016927719,
-0.04122534394264221,
0.04464512690901756,
0.012395053170621395,
0.0675627589225769,
0.05483591556549072,
-0.011727576144039631,
0.0722990557551384,
-0.02720939926803112,
-0.011130712926387787,
0.0029108035378158092,
-0.049817923456430435,
-0.008126286789774895,
0.004868355579674244,
0.027333546429872513,
-0.0375586599111557,
-0.007772678975015879,
0.04269848391413689,
0.0029509763699024916,
-0.031177246943116188,
0.04795440286397934,
0.005115962587296963,
-0.045497048646211624,
-0.05658360570669174,
0.04873794689774513,
0.03402170538902283,
0.020586038008332253,
0.015486344695091248,
-0.07187134772539139,
0.022225363180041313,
-0.03859047219157219,
-0.0028828007634729147,
0.003779821563512087,
0.025669492781162262,
-0.010396787896752357,
0.01823507435619831,
0.03048412688076496,
-0.07552218437194824,
0.03176015615463257,
-0.023197229951620102,
-0.05758512392640114,
0.02303260937333107,
0.03212866559624672,
0.07735814154148102,
-0.03959383815526962,
-0.06024712324142456,
0.026506563648581505,
0.003443729830905795,
-0.021737204864621162,
-0.010223782621324062,
0.037662994116544724,
-0.037740953266620636,
-0.038927555084228516,
-0.006532678380608559,
0.04352812096476555,
-0.08391396701335907,
-0.007123637478798628,
0.023034483194351196,
-0.01539979875087738,
0.022335989400744438,
-0.029834311455488205,
-0.027975158765912056,
0.006622605957090855,
-0.0018659209599718451,
-0.022034509107470512,
0.01751350611448288,
-0.013371064327657223,
-0.045316215604543686,
-0.058188363909721375,
-0.04013607278466225,
0.021170292049646378,
0.0791044607758522,
-0.02211257815361023,
-0.026404565200209618,
-0.03553827852010727,
0.004323963541537523,
0.034997519105672836,
0.009914697147905827,
0.004373234696686268,
0.03879542648792267,
0.053775567561388016,
0.029609758406877518,
-0.025004366412758827,
0.05494465306401253,
-0.006767324171960354,
-0.033767323940992355,
-0.05000201240181923,
0.01860337145626545,
0.00799810141324997,
-0.043135274201631546,
0.013897418975830078,
0.025197800248861313,
0.00979527272284031,
-0.007444825489073992,
0.010122811421751976,
0.06373172253370285,
-0.0372101254761219,
0.0050446451641619205,
-0.02410218119621277,
0.0013927097897976637,
-0.05013948678970337,
0.03744739294052124,
-0.02509126625955105,
-0.010070674121379852,
-0.01348806917667389,
-0.02915828302502632,
-0.006069370545446873,
0.019884254783391953,
0.017422104254364967,
0.03486507013440132,
0.002944300416857004,
0.07160277664661407,
-0.03974940627813339,
-0.004981886129826307,
-0.04263065382838249,
-0.03744722530245781,
-0.007862820290029049,
0.06616254895925522,
0.018231045454740524,
0.03505031019449234,
-0.04749886319041252,
-0.05018411949276924,
0.03356136009097099,
0.058993928134441376,
0.0006613312289118767,
-0.007783039472997189,
-0.026415303349494934,
-0.022704845294356346,
0.056682147085666656,
0.07598236948251724,
-0.08044929802417755,
-0.04357336461544037,
0.013243417255580425,
0.013594158925116062,
-0.04023151472210884,
0.007769524585455656,
-0.04882223904132843,
0.0322011336684227,
-0.057272784411907196,
-0.07073661684989929,
0.030639028176665306,
0.004567828495055437,
0.01777971349656582,
0.019823482260107994,
0.014095627702772617,
0.012718288227915764,
0.03406669571995735,
-0.004864848684519529,
0.030113879591226578,
-0.0484439842402935,
0.026142973452806473,
-0.006158978678286076,
0.03396914526820183,
-0.03470965102314949,
0.027177708223462105,
-0.0007023331709206104,
0.013128426857292652,
0.03861454874277115,
-0.06361142545938492,
0.0013514122692868114,
0.03631405532360077,
-0.005431912373751402,
-0.04548293352127075,
0.021909357979893684,
-0.0009613145957700908,
0.023749135434627533,
0.060244765132665634,
-0.026913825422525406,
0.07342346757650375,
0.011749230325222015,
0.012082485482096672,
0.05419342592358589,
0.03310082107782364,
0.000009938727998815011,
0.03518284857273102,
0.08796080201864243,
0.005035847425460815,
0.0027426083106547594,
0.08479972928762436,
-0.03924579173326492,
-0.025678779929876328,
-0.01857615076005459,
0.020598499104380608,
0.010360642336308956,
0.005425494629889727,
0.041057173162698746,
-0.00019524488016031682,
-0.03434549272060394,
0.008732804097235203,
0.01130705140531063,
-0.005798317492008209,
0.015560354106128216,
0.00031915781437419355,
-0.01401304081082344,
-0.00205740868113935,
-0.001954626524820924,
-0.0037636221386492252,
-0.05842113867402077,
-0.020330185070633888,
-0.013660546392202377,
-0.016538500785827637,
0.006318426225334406,
-0.051171258091926575,
-0.0308774895966053,
-0.0646105483174324,
-0.02929435670375824,
0.028182853013277054,
0.027498632669448853,
-0.0020419294014573097,
-0.006844211369752884,
0.009655259549617767,
-0.029045844450592995,
-0.0269844401627779,
-0.04392546787858009,
-0.020182104781270027,
-0.028911100700497627,
-0.07783453166484833,
0.025030309334397316,
0.04301879554986954,
0.04785522073507309,
0.014133560471236706,
-0.010751623660326004,
-0.018401453271508217,
-0.050403617322444916,
0.05092554911971092,
0.043669454753398895,
-0.0050822594203054905,
-0.05977766960859299,
0.02133030630648136,
0.007538603153079748,
0.03861047327518463,
-0.008999268524348736,
-0.04652208089828491,
0.06253672391176224,
0.06694576889276505,
0.03209706023335457,
0.010255073197185993,
0.04045354947447777,
-0.0058138989843428135,
-0.06127265468239784,
-0.04337786138057709,
-0.04230041056871414,
-0.014024658128619194,
-0.0351969338953495,
-0.029643965885043144,
-0.014150268398225307,
-0.05997723713517189,
0.0021869600750505924,
-0.01218867115676403,
0.0039234342984855175,
0.06338579207658768,
0.03137485682964325,
0.03285760059952736,
0.04971430450677872,
-0.053584035485982895,
-0.004781241528689861,
0.05638762563467026,
0.02318536303937435,
-0.015126862563192844,
-0.07066674530506134,
-0.0438154861330986,
0.04381570219993591,
-0.005219452083110809,
-0.00784381665289402,
-0.0043174223974347115,
0.06659369170665741,
0.009867792949080467,
-0.00893274787813425,
0.01576431468129158,
-0.02600848115980625,
-0.028914177790284157,
0.01206846535205841,
0.015673154965043068,
-0.02083267644047737,
-0.05494522303342819,
-0.027037685737013817,
0.019095798954367638,
0.05825863778591156,
-0.07716826349496841,
-0.04850788414478302,
0.003059654263779521,
0.03611182048916817,
0.0227648988366127,
-0.0035366173833608627,
-0.053329113870859146,
-0.01526439655572176,
-0.04894435778260231,
-0.054465483874082565,
0.04469296336174011,
-0.012641343288123608,
0.00951045285910368,
0.05267569050192833,
0.02061973325908184,
-0.044442318379879,
0.04117874056100845,
0.035588134080171585,
0.034498997032642365,
0.014629999175667763,
-0.043209247291088104,
0.01846359297633171,
-0.017738061025738716,
-0.0008035199716687202,
0.040116339921951294,
-0.02588728442788124,
-0.06358736008405685,
-0.0732402503490448,
0.00937608815729618,
0.029520263895392418,
-0.01113943662494421,
-0.0003894836991094053,
0.04128522053360939,
-0.005674096290022135,
0.02330499142408371,
-0.02493867091834545,
0.004742024466395378,
0.007569532375782728,
-0.06913116574287415,
0.053697071969509125,
0.007566006854176521,
0.024276649579405785,
-0.050290148705244064,
0.001133967423811555,
-0.02415727823972702,
-0.030915066599845886,
-0.004853466525673866,
0.042530544102191925,
0.006444448605179787,
0.06337462365627289,
0.07394834607839584,
-0.009393076412379742,
-0.041779059916734695,
0.052958566695451736,
0.0446598194539547,
-0.00862718652933836,
-0.05586015433073044,
-0.006345333531498909,
-0.021449226886034012,
-0.04832912236452103,
0.0004600532411132008,
0.002534960862249136,
0.017782803624868393,
0.027844706550240517,
-0.03138880431652069,
-0.013781866990029812,
-0.010815959423780441,
-0.02026207372546196,
-0.04451046884059906,
-0.059956829994916916,
-0.026377782225608826,
0.0063095781952142715,
-0.01303567923605442,
0.027286559343338013,
0.015802310779690742,
0.006632962264120579,
0.028410939499735832,
0.05199291557073593,
-0.028470158576965332,
-0.03202539309859276,
0.02809169888496399,
-0.014141740277409554,
-0.05317181348800659,
-0.05648273602128029,
-0.036342158913612366,
0.05239950120449066,
0.04665009304881096,
0.008030151948332787,
-0.09280171990394592,
-0.010763966478407383,
0.0614498145878315,
-0.02384445257484913,
0.035119324922561646,
-0.03962625935673714,
0.031019531190395355,
0.020982317626476288,
-0.009611888788640499,
0.026846591383218765,
-0.015181832015514374,
0.021163206547498703,
-0.015933776274323463,
0.05047864466905594,
-0.022485287860035896,
-0.03826332464814186,
-0.06082525476813316,
0.04227469861507416,
0.010428374633193016,
0.029637467116117477,
0.027087973430752754,
-0.01221566554158926,
-0.06453929096460342,
-0.008631528355181217,
0.028279976919293404,
-0.06738743931055069,
0.011935003101825714,
0.05760708078742027,
0.027241230010986328,
-0.0518549382686615,
-0.01922839879989624,
-0.0053174737840890884,
0.025281941518187523,
0.010459060780704021,
0.015735944733023643,
-0.05579753592610359,
-0.05075717717409134,
0.0022679767571389675,
-0.014896214008331299,
-0.005466065835207701,
-0.05678733438253403,
0.0196936447173357,
-0.03159496560692787,
-0.03399599343538284,
0.04957938566803932,
0.021109163761138916,
0.045654527842998505,
0.059402745217084885,
0.021802790462970734,
0.0002443310513626784,
-0.033677272498607635,
0.05687782168388367,
-0.018290642648935318,
0.0045497845858335495,
-0.03495807945728302,
-0.06346682459115982,
-0.0056435782462358475,
-0.04482930898666382,
-0.04163853079080582,
-0.03471257910132408,
-0.0313626229763031,
0.050122395157814026,
-0.0048111919313669205,
-0.010089491493999958,
-0.018842212855815887,
0.045627161860466,
-0.03386836126446724,
-0.021890530362725258,
-0.007966282777488232,
-0.042080577462911606,
-0.06055307388305664,
-0.05315309390425682,
0.04847753793001175,
-0.01436834316700697,
0.03701786324381828,
0.01423572190105915,
0.013384383171796799,
0.013989227823913097,
-0.00014716695295646787,
-0.023937629535794258,
0.018618490546941757,
-0.0019954487215727568,
-0.03199468180537224,
-0.0491812564432621,
-0.01652129925787449,
0.017217066138982773,
0.04544365406036377,
-0.037981148809194565,
0.034758228808641434,
0.03667953982949257,
-0.03352002426981926,
-0.009667914360761642,
-0.007060762960463762,
0.006448864471167326,
-0.05470382422208786,
-0.014749587513506413,
-0.030551346018910408,
-0.05430195480585098,
0.026427622884511948,
-0.012600123882293701,
-0.031007718294858932,
0.013751042075455189,
0.0126038184389472,
0.03415968269109726,
0.0045626903884112835,
-0.03385361284017563,
-0.00580831803381443,
0.017658449709415436,
0.025213027372956276,
-0.041944608092308044,
0.05493409186601639,
-0.04453793168067932,
0.008174809627234936,
-0.03365086764097214,
-0.029410095885396004,
-0.03800057992339134,
0.03182506188750267,
-0.049928631633520126,
-0.02582540176808834,
-0.011196296662092209,
0.027193423360586166,
-0.014549622312188148,
0.06594139337539673,
-0.021380161866545677,
0.019232267513871193,
-0.022161955013871193,
0.11311506479978561,
-0.01816946640610695,
-0.019601251929998398,
-0.010722131468355656,
-0.0037791577633470297,
-0.02599918097257614,
-0.027298076078295708,
-0.009509066119790077,
-0.03580811992287636,
0.03331732749938965,
0.05479871854186058,
0.03931986168026924,
0.037040144205093384,
-0.03707633167505264,
-0.013293188065290451,
0.02146553248167038,
-0.040930550545454025,
-0.02294611744582653,
0.013257465325295925,
0.026355909183621407,
0.008130011148750782,
0.04830958694219589,
0.05583136901259422,
-0.06305312365293503,
0.0006410132627934217,
0.04007560759782791,
0.013793792575597763,
-0.007265238557010889,
-0.012146580033004284,
0.03307802230119705,
0.029580064117908478,
0.04877040535211563,
-0.037004709243774414,
0.013506552204489708,
-0.011248160153627396,
-0.0000030049252472963417,
0.027812615036964417,
0.005985821597278118,
-0.00467609753832221,
0.012403572909533978,
-0.04347528889775276,
-0.011610731482505798,
0.06821311265230179,
0.06105547025799751,
0.047530267387628555,
-0.005954919848591089,
-0.04396350681781769,
0.02774360403418541,
-0.011153926141560078,
-0.05849088728427887,
0.029763929545879364,
0.015718497335910797,
-0.022087566554546356,
0.06971342116594315,
-0.02210271544754505,
0.01686128042638302,
0.07288908213376999,
0.0440838597714901,
-0.021683281287550926,
0.018678532913327217,
-0.018300948664546013,
0.013967030681669712,
0.03197629749774933,
-0.05361266806721687,
-0.0035776798613369465,
-0.02916259504854679,
0.06671132892370224,
-0.061985865235328674,
0.048239849507808685,
0.04457467794418335,
0.0066633629612624645,
-0.021879855543375015,
-0.023047108203172684,
-0.06643928587436676,
0.00046820961870253086,
-0.04329973831772804,
0.07934786379337311,
-0.0012797105591744184,
-0.03898836672306061,
0.09932751953601837,
0.052557557821273804,
-0.09757617861032486,
0.0368962436914444,
0.05366944149136543,
0.027934294193983078,
0.04120536521077156,
0.060757990926504135,
-0.049595337361097336,
0.05052032694220543,
-0.02336745150387287,
0.020511582493782043,
-0.04682043194770813,
-0.019008077681064606,
0.0294352974742651,
-0.03371144458651543,
-0.029829692095518112,
0.0027143247425556183,
-0.0459919348359108,
-0.0003945956996176392,
0.03754160553216934,
-0.05060447379946709,
-0.0495108924806118,
-0.0032680679578334093,
0.0060495417565107346,
-0.022749634459614754,
-0.000507647346239537,
-0.045211322605609894,
0.03280504047870636,
0.03252376616001129,
-0.0038707496132701635,
-0.02982630394399166,
0.026230856776237488,
0.022103916853666306,
-0.06911437958478928,
-0.06268799304962158,
0.029842041432857513,
0.007989594712853432,
-0.016869843006134033,
0.046068817377090454,
0.0001019538176478818,
-0.006122404243797064,
0.01994759775698185,
0.009641552343964577,
0.02544710598886013,
-0.07821382582187653,
-0.0015504679176956415,
0.014331742189824581,
0.009593985974788666,
0.009151386097073555,
-0.04116544499993324,
0.017263544723391533,
-0.0024196442682296038,
0.004150724504143,
-0.00878380611538887,
-0.02030879259109497,
0.019935242831707,
0.04738682880997658,
-0.049544189125299454,
0.019420702010393143,
0.008387998677790165,
-0.05161988362669945,
-0.0029421329963952303,
-0.023150760680437088,
-0.034043654799461365,
0.023922191932797432,
-0.05774466693401337,
0.01754564605653286,
0.01638857088983059,
-0.012065322138369083,
-0.03668816387653351,
-0.07320007681846619,
-0.021565774455666542,
-0.01685331016778946,
0.0010461435886099935,
0.031231043860316277,
-0.041851647198200226,
0.030374346300959587,
-0.015338769182562828,
-0.06024293228983879,
0.01919015683233738,
0.011195916682481766,
-0.019628750160336494,
0.045590903609991074,
0.05029342696070671,
-0.041931647807359695,
0.010242525488138199,
0.057838596403598785,
-0.047449931502342224,
0.016282642260193825,
0.009153012186288834,
0.01637706160545349,
0.021987760439515114,
-0.0011610736837610602,
-0.013161643408238888,
-0.028704702854156494,
-0.052590511739254,
-0.029628261923789978,
-0.023746944963932037,
0.0029092158656567335,
0.06715076416730881
] |
CennetOguz/distilbert-base-uncased-finetuned-recipe | [
"pytorch",
"tensorboard",
"distilbert",
"fill-mask",
"transformers",
"generated_from_trainer",
"license:apache-2.0",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"DistilBertForMaskedLM"
],
"model_type": "distilbert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 2 | null | ---
license: apache-2.0
tags:
- generated_from_trainer
model-index:
- name: distilbert-base-uncased-finetuned-recipe
results: []
---
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# distilbert-base-uncased-finetuned-recipe
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
It achieves the following results on the evaluation set:
- Loss: 2.9488
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 256
- eval_batch_size: 256
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3.0
- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:----:|:---------------:|
| No log | 1.0 | 3 | 3.2689 |
| No log | 2.0 | 6 | 3.0913 |
| No log | 3.0 | 9 | 3.0641 |
### Framework versions
- Transformers 4.16.2
- Pytorch 1.10.2+cu102
- Datasets 1.18.3
- Tokenizers 0.11.0
| [
-0.02275007963180542,
0.011952940374612808,
-0.030024833977222443,
0.03985702246427536,
0.04588326811790466,
0.01952047273516655,
-0.0058160689659416676,
-0.018970631062984467,
-0.04346434399485588,
0.06168216094374657,
0.04136667773127556,
-0.020424045622348785,
0.006842548027634621,
0.038489773869514465,
-0.013311857357621193,
-0.0433955192565918,
-0.008448752574622631,
-0.008496264927089214,
-0.043252378702163696,
-0.004415377043187618,
0.0014485875144600868,
-0.020330794155597687,
0.013565401546657085,
0.0004187666345387697,
-0.0031356432009488344,
0.01661863550543785,
-0.000034455893910489976,
0.014462421648204327,
0.0379275381565094,
-0.06920693069696426,
-0.0058539933525025845,
-0.0316278450191021,
-0.028428971767425537,
-0.01370134949684143,
-0.016156267374753952,
-0.012644657865166664,
0.01724659465253353,
0.027923762798309326,
0.027458565309643745,
0.023963522166013718,
0.0052513000555336475,
0.020441656932234764,
0.010171933099627495,
-0.030298128724098206,
0.056593768298625946,
0.014941171742975712,
-0.04024944826960564,
-0.010121863335371017,
0.05065673217177391,
-0.028343863785266876,
-0.07716631889343262,
-0.05818323418498039,
-0.02993650548160076,
0.035620998591184616,
-0.018200693652033806,
0.0045970589853823185,
-0.06295117735862732,
0.0151686305180192,
0.05742562189698219,
-0.05425741896033287,
-0.014870615676045418,
0.004857407882809639,
-0.07037723064422607,
0.018686974421143532,
0.017973875626921654,
-0.012438284233212471,
0.007538424339145422,
-0.0589292086660862,
0.04183328151702881,
-0.018401440232992172,
0.060556560754776,
-0.017585739493370056,
0.021529249846935272,
-0.060772769153118134,
-0.014250983484089375,
-0.011312725953757763,
0.04390955716371536,
0.05685514211654663,
-0.027428889647126198,
0.04103999212384224,
0.031047740951180458,
-0.006803474389016628,
0.03360600769519806,
-0.03347193822264671,
0.0022991334553807974,
0.03429875895380974,
-0.03370044380426407,
0.0010943450033664703,
0.02333228476345539,
0.01809852011501789,
-0.045472003519535065,
-0.04444596543908119,
-0.04068455845117569,
-0.03397076949477196,
0.006970931775867939,
0.026689276099205017,
0.024401485919952393,
0.022726986557245255,
0.03443501889705658,
0.01865592785179615,
0.03410569578409195,
0.04931548982858658,
-0.026572545990347862,
0.06105680391192436,
0.0036465320736169815,
-0.008973175659775734,
-0.0019287285394966602,
-0.03385955095291138,
-0.04480859264731407,
0.02155897580087185,
0.030146587640047073,
-0.017205240204930305,
-0.020328648388385773,
0.03405686467885971,
-0.000056007254897849634,
-0.011722958646714687,
0.07158990204334259,
-0.028525693342089653,
-0.02264387719333172,
-0.025481469929218292,
0.024256426841020584,
0.015612386167049408,
-0.003982785623520613,
0.014407779090106487,
-0.029873764142394066,
-0.021557049825787544,
-0.0489950068295002,
-0.039120715111494064,
-0.029731953516602516,
0.033695124089717865,
0.00903300940990448,
0.06530683487653732,
0.02375473454594612,
-0.07299737632274628,
0.009357508271932602,
0.015542890876531601,
-0.05257418751716614,
0.05997943505644798,
0.016498997807502747,
0.11678119003772736,
-0.06793496012687683,
-0.05729680135846138,
0.0068602715618908405,
-0.006463133729994297,
-0.03160037100315094,
0.012965789996087551,
0.008852681145071983,
-0.05020056292414665,
0.0033440669067204,
0.018092120066285133,
0.05678464099764824,
-0.03717910125851631,
-0.022902583703398705,
0.059580255299806595,
-0.0038471962325274944,
0.03547216206789017,
-0.0558401495218277,
-0.03607190027832985,
0.008504558354616165,
-0.022199906408786774,
-0.05586443468928337,
0.06020467355847359,
-0.007100137881934643,
-0.015607575885951519,
-0.020917896181344986,
-0.030909033492207527,
0.014235716313123703,
0.07763390243053436,
-0.010216676630079746,
-0.020357461646199226,
-0.003136893268674612,
0.03487472981214523,
0.03610464930534363,
0.05629044398665428,
-0.02535315603017807,
0.03707774356007576,
0.059306006878614426,
0.0317583903670311,
-0.023728976026177406,
0.03293762728571892,
0.008978142403066158,
-0.02661743201315403,
-0.0212129857391119,
0.014521756209433079,
-0.0038831643760204315,
-0.06020490452647209,
0.05252344161272049,
0.005732317455112934,
-0.008373883552849293,
-0.0744057297706604,
-0.03874550014734268,
0.03834882006049156,
-0.002795647596940398,
-0.0016800595913082361,
0.013789298012852669,
0.018402600660920143,
-0.012435486540198326,
0.05756571888923645,
-0.014398358762264252,
0.005583113059401512,
-0.019283916801214218,
-0.014810524880886078,
0.009109758771955967,
-0.03913072124123573,
0.03841313347220421,
0.050316110253334045,
-0.005822659004479647,
0.09042935073375702,
-0.042299430817365646,
0.014005576260387897,
-0.051770515739917755,
-0.03713873028755188,
0.03710143268108368,
0.05771968513727188,
0.0477043054997921,
0.05023720860481262,
0.0028482095804065466,
-0.03336689993739128,
0.04499944671988487,
0.06124609336256981,
0.04788798838853836,
0.007654071319848299,
-0.025228384882211685,
-0.01449748408049345,
0.054699093103408813,
0.052141882479190826,
-0.051789507269859314,
-0.009955335408449173,
0.0004262535076122731,
0.027798442170023918,
0.01783123053610325,
0.010046914219856262,
-0.02247760072350502,
0.04305858537554741,
-0.04839351028203964,
-0.04832293838262558,
0.0555797815322876,
0.029267534613609314,
-0.007672675885260105,
0.020538359880447388,
0.03129984438419342,
0.008141603320837021,
0.0183731559664011,
0.017640402540564537,
0.00592660391703248,
-0.05415382981300354,
0.01185945700854063,
-0.00035015534376725554,
0.05558619275689125,
-0.06169775128364563,
0.02968778647482395,
-0.01726076751947403,
0.013459666632115841,
0.03912241384387016,
-0.04919014126062393,
0.015319508500397205,
0.04543931782245636,
0.030321987345814705,
-0.03214859962463379,
0.014760500751435757,
0.004476502072066069,
0.05601523816585541,
0.042567383497953415,
0.012503275647759438,
0.06706763803958893,
0.01707731932401657,
0.04122941568493843,
0.06417989730834961,
0.02724420838057995,
0.025568358600139618,
0.02672520838677883,
0.05252175033092499,
0.023546671494841576,
-0.014986869879066944,
0.041476719081401825,
-0.06026741862297058,
0.030394388362765312,
-0.04784772917628288,
-0.004121509846299887,
-0.025672536343336105,
-0.01204738300293684,
0.05819186568260193,
0.029701709747314453,
-0.024370407685637474,
-0.018044939264655113,
0.011101599782705307,
-0.009175541810691357,
0.0257609561085701,
0.0056563313119113445,
0.00125345797277987,
-0.010125808417797089,
-0.014280875213444233,
-0.029499460011720657,
-0.07354410737752914,
-0.05883213132619858,
-0.02063111774623394,
-0.014349286444485188,
-0.02702806144952774,
-0.08931197971105576,
-0.024986039847135544,
-0.07717657834291458,
-0.02177475579082966,
0.029916103929281235,
0.020913545042276382,
-0.013631608337163925,
-0.03182608261704445,
0.020314637571573257,
-0.06140908598899841,
-0.03535335510969162,
-0.05319547653198242,
-0.05299681797623634,
-0.040967248380184174,
-0.0747908428311348,
0.03861245885491371,
0.009760391898453236,
0.008150497451424599,
0.005081768613308668,
0.030458832159638405,
-0.0017222067108377814,
-0.020911989733576775,
0.04659981280565262,
0.05593426153063774,
-0.031018409878015518,
-0.05202925577759743,
0.031032312661409378,
-0.0020042485557496548,
0.0020858023781329393,
0.029895029962062836,
-0.028515897691249847,
0.0940585508942604,
0.0586511492729187,
0.014391445554792881,
0.03613676875829697,
-0.0032728032674640417,
-0.06540107727050781,
-0.06080975756049156,
-0.013005861081182957,
-0.04901726916432381,
-0.012033444829285145,
-0.03317331150174141,
-0.029879841953516006,
-0.025293098762631416,
-0.03096984140574932,
-0.00015983417688403279,
-0.015596783719956875,
0.027441730722784996,
0.01850944384932518,
0.04142307490110397,
0.02690776064991951,
0.029786378145217896,
-0.03364647179841995,
-0.03512877970933914,
0.045319102704524994,
0.003874249290674925,
-0.004121131729334593,
-0.0791875571012497,
-0.006883190479129553,
0.027230197563767433,
0.021536696702241898,
0.009524771943688393,
0.003902222728356719,
0.07700300216674805,
-0.0033888251055032015,
0.005043922923505306,
0.016491269692778587,
-0.021358011290431023,
0.001022504409775138,
0.005433542188256979,
-0.010040068067610264,
0.015719128772616386,
-0.02959449589252472,
-0.03979459032416344,
-0.006239272188395262,
0.036864180117845535,
-0.058876849710941315,
-0.054133206605911255,
-0.01046372577548027,
0.024298574775457382,
0.045850761234760284,
0.009596602991223335,
-0.06378718465566635,
-0.00946586113423109,
-0.08280117064714432,
-0.0027145224157720804,
0.025615742430090904,
0.02488139271736145,
0.008685915730893612,
0.046117816120386124,
0.021468039602041245,
-0.02006087638437748,
0.0024315500631928444,
0.05793548375368118,
0.07767117023468018,
0.01467097643762827,
-0.06964815407991409,
-0.0064323716796934605,
-0.02824254147708416,
0.02511812560260296,
0.0007621195400133729,
-0.021587710827589035,
-0.01655478961765766,
-0.07827296853065491,
-0.038144301623106,
0.0011940259719267488,
0.007582953665405512,
-0.021673722192645073,
0.025923503562808037,
0.013475991785526276,
-0.02553834579885006,
0.011222317814826965,
0.014069921337068081,
0.05368494242429733,
-0.022413307800889015,
0.06427071988582611,
-0.019288282841444016,
0.011681387200951576,
-0.04841041937470436,
0.008451958186924458,
-0.04106797277927399,
-0.03270072117447853,
0.011343806982040405,
0.05460017919540405,
-0.02915292978286743,
0.05337292701005936,
0.07152514159679413,
0.03185269236564636,
-0.05019879713654518,
0.04483160376548767,
0.07602278888225555,
-0.04077930748462677,
-0.0438220240175724,
0.0018405489390715957,
0.0004279958666302264,
-0.02718784660100937,
0.003887247061356902,
-0.014667193405330181,
0.04549276828765869,
0.032839998602867126,
-0.005086238496005535,
0.01201716996729374,
-0.014477606862783432,
-0.002312429714947939,
-0.0399378165602684,
-0.05976009741425514,
-0.028177570551633835,
0.015423576347529888,
-0.03591916710138321,
0.016545593738555908,
0.03658602014183998,
0.02251783199608326,
0.08231059461832047,
0.034439750015735626,
-0.018418088555336,
-0.007830416783690453,
0.020313875749707222,
0.005069265607744455,
-0.025041576474905014,
-0.07328803837299347,
-0.05815485119819641,
0.02381880395114422,
0.06942591816186905,
-0.010286075994372368,
-0.07139868289232254,
0.007973335683345795,
0.03948943316936493,
-0.03430427610874176,
0.07057434320449829,
-0.0117302555590868,
0.05333128198981285,
0.054252784699201584,
-0.004600199870765209,
0.02460251934826374,
-0.02519185282289982,
-0.008110595867037773,
0.013715112581849098,
0.040384553372859955,
-0.022679632529616356,
-0.03463376313447952,
-0.04248639941215515,
0.02110179141163826,
0.05351452901959419,
0.030518963932991028,
0.03962910547852516,
-0.027354247868061066,
-0.049356501549482346,
0.008024564012885094,
0.03215743973851204,
-0.0408453643321991,
-0.0046994322910904884,
0.03284797817468643,
0.029227711260318756,
-0.044435255229473114,
-0.030708560720086098,
-0.03555819019675255,
-0.022403184324502945,
0.030290458351373672,
0.010555370710790157,
-0.030492953956127167,
-0.03779543936252594,
0.02980523183941841,
-0.010344235226511955,
-0.03540518507361412,
-0.07959288358688354,
0.04908483102917671,
0.002241863403469324,
-0.020589500665664673,
0.06478530168533325,
0.04121108725667,
0.03654489293694496,
0.05870872363448143,
0.038450937718153,
0.013087284751236439,
-0.025046486407518387,
0.0342719703912735,
-0.02725006453692913,
-0.02543051540851593,
0.01534879021346569,
-0.044737473130226135,
-0.03723110258579254,
-0.008135723881423473,
-0.07242417335510254,
-0.04557449370622635,
-0.02310892753303051,
0.006815043278038502,
0.007009981200098991,
-0.00791543535888195,
0.001823684899136424,
0.035956159234046936,
-0.007868366315960884,
-0.02505629137158394,
-0.050460245460271835,
-0.022512460127472878,
-0.056584909558296204,
-0.05589345097541809,
-0.010630746372044086,
0.008468878455460072,
0.04305947944521904,
0.02687293104827404,
0.024657797068357468,
0.01428030151873827,
0.021941345185041428,
-0.04567476734519005,
0.004311175085604191,
0.024585824459791183,
-0.031655073165893555,
-0.02654806338250637,
0.04267367720603943,
0.02377786859869957,
0.028073741123080254,
-0.02995259128510952,
0.04077707976102829,
-0.0034705991856753826,
0.01369678694754839,
-0.01686662808060646,
0.01953880675137043,
0.016312124207615852,
-0.060597606003284454,
-0.03170749917626381,
-0.01224256120622158,
-0.0298862736672163,
0.030716141685843468,
-0.02978513017296791,
-0.021811092272400856,
0.016643716022372246,
0.006767173297703266,
0.03222201019525528,
-0.02465720847249031,
-0.0029048484284430742,
0.027399230748414993,
0.0015911493683233857,
0.026475150138139725,
-0.05745027959346771,
0.07256139814853668,
-0.05520159378647804,
0.030381396412849426,
-0.0198258925229311,
-0.0023812351282685995,
-0.032994430512189865,
0.03617365285754204,
-0.00413087010383606,
-0.013331620953977108,
-0.01291669998317957,
0.06187107041478157,
-0.023019013926386833,
0.02164447121322155,
-0.03360268101096153,
0.036054909229278564,
-0.0164775550365448,
0.06276793032884598,
-0.04775911569595337,
0.01783907413482666,
-0.04141165316104889,
0.0348236970603466,
-0.028385212644934654,
-0.008253294974565506,
0.005416596308350563,
-0.009336104616522789,
0.03822288289666176,
0.05926501378417015,
0.017147187143564224,
0.026690153405070305,
-0.00414901040494442,
-0.007049019448459148,
0.022953014820814133,
-0.06014605611562729,
-0.014192808419466019,
-0.016654005274176598,
0.006249362137168646,
-0.010630999691784382,
0.06379212439060211,
0.024785108864307404,
-0.044486865401268005,
-0.06933170557022095,
0.03235187754034996,
0.024433471262454987,
0.019152510911226273,
0.009699057787656784,
0.04412728548049927,
0.018357975408434868,
0.031866829842329025,
-0.019296646118164062,
-0.00849318876862526,
-0.006658356636762619,
-0.047948312014341354,
0.008786587975919247,
-0.004380994476377964,
0.03535386174917221,
0.005643292795866728,
-0.032338131219148636,
-0.014008251018822193,
0.05246374383568764,
0.031467121094465256,
0.030396949499845505,
-0.006361173000186682,
-0.05445675551891327,
0.03512107953429222,
0.01251871045678854,
-0.030656853690743446,
0.020793583244085312,
0.01722886599600315,
-0.04145079851150513,
0.05326096713542938,
0.0019710229244083166,
0.007023265119642019,
0.04829162359237671,
0.02424837462604046,
-0.015871981158852577,
0.06938893347978592,
-0.04454006999731064,
0.016326256096363068,
0.027386760339140892,
-0.08338209241628647,
-0.003139328211545944,
-0.05101441219449043,
0.05811659246683121,
-0.056169845163822174,
0.014784679748117924,
0.05894957855343819,
-0.0012318864464759827,
0.02271471917629242,
-0.0533311665058136,
-0.06929274648427963,
0.02181876450777054,
-0.039627671241760254,
0.0591852180659771,
0.007144904229789972,
-0.06146419048309326,
0.047452662140131,
0.004981932230293751,
-0.05141337588429451,
0.04118459299206734,
0.03471161797642708,
0.07069256901741028,
0.04084368422627449,
0.05232815071940422,
-0.045325737446546555,
-0.009308061562478542,
-0.0450088307261467,
0.01721927523612976,
-0.06096190959215164,
-0.002221730537712574,
0.027864892035722733,
-0.04629846289753914,
-0.019328448921442032,
0.04314389452338219,
-0.014569144695997238,
0.002825237577781081,
0.036762166768312454,
-0.040770139545202255,
-0.04228135943412781,
0.0036813875194638968,
0.00891124177724123,
-0.04105386510491371,
-0.013228201307356358,
-0.035025082528591156,
0.012488361448049545,
0.007027681451290846,
-0.0018025884637609124,
-0.010063501074910164,
-0.019124343991279602,
0.022842032834887505,
-0.026757115498185158,
-0.029917560517787933,
0.025654196739196777,
0.0049298349767923355,
-0.025009125471115112,
0.0325390063226223,
0.020628053694963455,
0.011047936975955963,
0.031210007146000862,
-0.005675770808011293,
0.026042213663458824,
-0.04356858506798744,
-0.011260492727160454,
0.02205376699566841,
-0.01292392611503601,
0.03122703731060028,
0.006780269555747509,
0.04119357839226723,
0.0434008352458477,
0.029911968857049942,
-0.003720231354236603,
-0.034426964819431305,
-0.027422001585364342,
0.012318831868469715,
-0.037658266723155975,
0.010862825438380241,
0.006679703015834093,
-0.03439778462052345,
-0.0325416661798954,
0.01651174947619438,
-0.044906534254550934,
0.03180139139294624,
-0.07836411893367767,
0.023804398253560066,
0.05148662254214287,
-0.010790238156914711,
-0.059311386197805405,
-0.08984164148569107,
-0.015758931636810303,
-0.049010902643203735,
-0.0044676195830106735,
0.03733561933040619,
-0.03759821876883507,
0.03975287452340126,
-0.03562689572572708,
-0.036458805203437805,
0.04032887890934944,
0.045852966606616974,
-0.056647319346666336,
0.08144695311784744,
0.03191891685128212,
-0.043772317469120026,
0.006072079297155142,
0.018647056072950363,
-0.05178564041852951,
0.0011675952700898051,
0.01577826216816902,
0.002336355624720454,
0.02976236678659916,
-0.0016143674729391932,
-0.06750491261482239,
-0.030983909964561462,
-0.08096896857023239,
-0.037837158888578415,
-0.04053103178739548,
-0.0063984589651227,
0.052517518401145935
] |
Chae/botman | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 5 | null | ---
tags:
- conversational
---
# Lego Batman DialoGPT Model | [
-0.046730898320674896,
0.010513209737837315,
0.015299762599170208,
0.006541083566844463,
0.016584796831011772,
0.015701664611697197,
0.011404139921069145,
0.026894912123680115,
0.007684930227696896,
0.014071892946958542,
0.036275286227464676,
-0.02832055650651455,
0.012439653277397156,
0.026079602539539337,
-0.042589347809553146,
-0.002157190814614296,
-0.01970541849732399,
0.01047866977751255,
-0.009746803902089596,
-0.02514093741774559,
0.02012484520673752,
-0.0029582383576780558,
-0.012601184658706188,
0.04835197329521179,
0.016183001920580864,
0.02648010104894638,
-0.0034567362163215876,
0.01311290729790926,
0.03135131672024727,
-0.03843254595994949,
0.014785662293434143,
-0.0472833476960659,
-0.00775768281891942,
-0.040596697479486465,
-0.023980796337127686,
-0.051474232226610184,
0.026136858388781548,
-0.009506788104772568,
0.0016165244160220027,
0.04023359343409538,
-0.023994263261556625,
-0.010364576242864132,
0.0027392480988055468,
-0.052664514631032944,
0.07914794981479645,
-0.015939952805638313,
-0.04177362099289894,
-0.008141395635902882,
0.029627695679664612,
-0.03278083726763725,
-0.03557197377085686,
-0.06583867967128754,
-0.06730525195598602,
-0.025038516148924828,
0.02400716207921505,
-0.03734256699681282,
-0.07119940221309662,
0.0030418436508625746,
0.1012127697467804,
-0.0007565394043922424,
-0.016696715727448463,
0.019821129739284515,
-0.05423654615879059,
0.020339014008641243,
0.016957761719822884,
-0.06128978729248047,
0.011482246220111847,
-0.044421594589948654,
0.04101858660578728,
-0.03109736554324627,
0.04803093150258064,
-0.06085769832134247,
0.008528037928044796,
-0.07712942361831665,
-0.005163147579878569,
-0.019096843898296356,
0.057890281081199646,
0.06085864081978798,
-0.04875817894935608,
0.05413179472088814,
0.046011876314878464,
-0.0054307980462908745,
0.050036150962114334,
-0.0048933010548353195,
-0.0284010898321867,
0.03112163580954075,
-0.06373953074216843,
0.02210072986781597,
0.004937195684760809,
0.026273850351572037,
-0.02588280476629734,
-0.047264400869607925,
-0.026352547109127045,
-0.008567806333303452,
-0.013281863182783127,
0.04238611087203026,
0.016231611371040344,
-0.006457877811044455,
0.025467829778790474,
0.050602469593286514,
0.02166575752198696,
0.05675730109214783,
-0.03313641622662544,
0.04387548938393593,
-0.004952743649482727,
0.026147669181227684,
0.018538013100624084,
-0.021836359053850174,
-0.05541486293077469,
0.023423416540026665,
0.01392387319356203,
-0.04552829638123512,
-0.03925664350390434,
0.014693745411932468,
0.016474945470690727,
-0.0034401880111545324,
0.0705646201968193,
-0.02791563794016838,
-0.032113369554281235,
-0.04483872652053833,
0.0712229311466217,
-0.03141941502690315,
-0.02964789979159832,
0.00013421225594356656,
-0.048649415373802185,
0.005253785755485296,
-0.04417727515101433,
-0.03234481066465378,
-0.012619663029909134,
0.0023600340355187654,
0.022087205201387405,
0.036864638328552246,
-0.04672455042600632,
-0.05650293827056885,
0.01162211038172245,
0.03670322895050049,
-0.05425262451171875,
0.014320008456707,
0.021763937547802925,
0.10069900006055832,
-0.10000501573085785,
-0.024156659841537476,
0.001509031979367137,
0.014934071339666843,
-0.020504994317889214,
-0.018331391736865044,
-0.0010769731597974896,
-0.00041200322448275983,
-0.05339988321065903,
-0.013067945837974548,
0.01115256454795599,
-0.05285169184207916,
-0.0001302459859289229,
0.036677371710538864,
-0.004149470943957567,
0.014319716021418571,
-0.03064895235002041,
0.026905672624707222,
-0.020534632727503777,
-0.03962734714150429,
-0.07554525136947632,
0.057898133993148804,
-0.017938904464244843,
-0.04214605689048767,
-0.04843574017286301,
-0.03872844949364662,
0.008238338865339756,
0.0676916167140007,
0.005508542060852051,
0.011805001646280289,
-0.020131926983594894,
0.04119545966386795,
0.05918966606259346,
0.026362234726548195,
-0.0264044888317585,
0.008385385386645794,
0.04746675118803978,
0.005547727923840284,
-0.03232260420918465,
0.05393863096833229,
0.01127718761563301,
-0.026891915127635002,
-0.04637937620282173,
-0.01737772673368454,
0.04095960408449173,
-0.030679810792207718,
0.021690435707569122,
0.02055281586945057,
-0.02306019701063633,
-0.03690214827656746,
0.00336447567678988,
0.050262123346328735,
-0.03076109103858471,
-0.003255034564062953,
-0.028150876984000206,
-0.01978684403002262,
-0.043400101363658905,
0.01632867194712162,
-0.023980706930160522,
0.0015327762812376022,
-0.02848784066736698,
0.002300622407346964,
0.03718267008662224,
0.009498692117631435,
0.010806623846292496,
0.039474740624427795,
-0.011421261355280876,
0.043360501527786255,
-0.03881913051009178,
0.0180295929312706,
-0.02834179252386093,
-0.02791331708431244,
-0.020324883982539177,
0.031487930566072464,
0.037530165165662766,
0.041843872517347336,
-0.022997425869107246,
-0.06151493638753891,
0.03129948675632477,
0.06149499863386154,
0.03424611687660217,
0.019271882250905037,
-0.024077385663986206,
0.0011656960705295205,
0.029290713369846344,
0.03380809724330902,
-0.042172905057668686,
0.020464805886149406,
0.022377537563443184,
0.049395784735679626,
-0.0018398526590317488,
-0.014182101003825665,
-0.04751598834991455,
-0.005411061458289623,
-0.047502703964710236,
-0.0578334778547287,
0.04571607708930969,
0.019491542130708694,
0.0046722423285245895,
0.034724604338407516,
-0.010570868849754333,
0.010773403570055962,
0.03743055462837219,
0.02069181017577648,
0.003649441758170724,
-0.0800686627626419,
0.022440660744905472,
0.03925395384430885,
0.07900553941726685,
-0.04169132187962532,
0.02087339758872986,
0.026852767914533615,
0.030387336388230324,
0.022738736122846603,
-0.015108831226825714,
0.05262169614434242,
0.0693989023566246,
0.04073740914463997,
-0.017799323424696922,
0.0464441254734993,
0.0028562017250806093,
0.048028573393821716,
0.049278389662504196,
0.000013997498172102496,
0.07077567279338837,
-0.012999608181416988,
0.016179950907826424,
0.06430534273386002,
0.015901215374469757,
0.0013099940260872245,
0.03410985320806503,
0.061469368636608124,
-0.016506709158420563,
0.03215467184782028,
0.03662123158574104,
0.012549503706395626,
-0.012279853224754333,
-0.038813650608062744,
-0.008193588815629482,
-0.00042052342905662954,
-0.018296541646122932,
0.057222332805395126,
-0.006572124548256397,
-0.013053152710199356,
-0.016342364251613617,
-0.017838794738054276,
0.001272853696718812,
0.05597183480858803,
0.0047203898429870605,
-0.008107040077447891,
0.0057928431779146194,
-0.03132784366607666,
0.035143669694662094,
-0.05589688569307327,
-0.0545993372797966,
-0.019206464290618896,
-0.04386713728308678,
-0.0036849568132311106,
-0.10755603760480881,
-0.04702777788043022,
-0.08016277849674225,
-0.029008284211158752,
0.05256753787398338,
0.011075531132519245,
0.009835081174969673,
0.0013114535249769688,
0.016158198937773705,
-0.021912656724452972,
-0.04336174204945564,
-0.0550500713288784,
-0.030671892687678337,
-0.012922236695885658,
-0.05896037817001343,
0.009732721373438835,
0.03495199233293533,
0.018665513023734093,
-0.001809454057365656,
-0.013374971225857735,
-0.05789394676685333,
-0.014908701181411743,
0.01760864071547985,
0.027760252356529236,
-0.06140432134270668,
-0.04572399705648422,
0.011852741241455078,
0.00504379253834486,
-0.0007664731820113957,
-0.03626042976975441,
-0.024142779409885406,
0.0711522102355957,
0.049042485654354095,
-0.002522980561479926,
0.01044189278036356,
-0.022797461599111557,
-0.045990485697984695,
-0.0286397784948349,
-0.043281085789203644,
-0.03563574701547623,
-0.0023887776769697666,
-0.011728504672646523,
-0.05670890957117081,
-0.023590654134750366,
-0.038272250443696976,
0.009143185801804066,
-0.010294432751834393,
0.014072442427277565,
0.037057358771562576,
0.02636501006782055,
0.03318164125084877,
0.006835117004811764,
-0.05274114012718201,
-0.030741466209292412,
0.033890753984451294,
0.0034729449544101954,
-0.024151694029569626,
-0.07447061687707901,
-0.04016554728150368,
0.021919509395956993,
0.013441266492009163,
-0.0034797154366970062,
0.007083355449140072,
0.05414452776312828,
0.03542345389723778,
-0.002525930991396308,
0.025232788175344467,
-0.052450694143772125,
0.017780818045139313,
-0.028918959200382233,
-0.011749493889510632,
-0.057318996638059616,
-0.029773801565170288,
0.0007231735507957637,
-0.03233347833156586,
0.059171587228775024,
-0.07070625573396683,
-0.035482656210660934,
-0.030037833377718925,
0.020762497559189796,
0.03514634817838669,
0.0011949696345254779,
-0.06584175676107407,
-0.02470824494957924,
-0.047270189970731735,
-0.01332076545804739,
-0.013934552669525146,
-0.00988779403269291,
-0.010798613540828228,
0.028967764228582382,
0.028772518038749695,
-0.009802055545151234,
0.05384509265422821,
0.028761379420757294,
0.05524926260113716,
0.05679457262158394,
-0.03269835561513901,
0.04425869137048721,
-0.029690932482481003,
0.044831305742263794,
-0.0004466010141186416,
-0.035252369940280914,
-0.03738047555088997,
-0.11119949817657471,
-0.04804867506027222,
0.016262009739875793,
-0.05424096807837486,
0.016102245077490807,
0.04175204411149025,
-0.03743114322423935,
-0.010996678844094276,
-0.004423646256327629,
0.0431332029402256,
0.04960303008556366,
-0.005973637104034424,
0.0702672228217125,
-0.0053565320558846,
0.027559911832213402,
-0.044112470000982285,
0.005247222259640694,
-0.03873259574174881,
-0.010007093660533428,
-0.009031429886817932,
0.05808977037668228,
0.018398096784949303,
0.05364362150430679,
0.06483179330825806,
0.0503029003739357,
-0.027113687247037888,
0.04416615143418312,
0.06520456820726395,
-0.043010443449020386,
-0.01341758668422699,
0.02225320227444172,
-0.005063338205218315,
-0.017797201871871948,
0.0028265605214983225,
-0.025136595591902733,
0.03738800063729286,
0.039818644523620605,
-0.007401257287710905,
-0.00010502987424843013,
0.008027528412640095,
-0.014027466997504234,
-0.03491915762424469,
-0.08199511468410492,
0.0026362910866737366,
-0.014549733139574528,
-0.016221895813941956,
0.06865125149488449,
0.04045555740594864,
0.032881442457437515,
0.06639625132083893,
0.007680293172597885,
-0.02050832472741604,
-0.05376778542995453,
0.04564177244901657,
0.01655569300055504,
-0.028401535004377365,
-0.05123181268572807,
-0.043837789446115494,
0.02598513476550579,
0.03901101276278496,
-0.02674754709005356,
-0.07645365595817566,
0.02258448675274849,
0.029761718586087227,
-0.0270391795784235,
0.03503844887018204,
-0.010049394331872463,
0.0532500259578228,
0.031054478138685226,
0.02253997139632702,
0.040893491357564926,
-0.0688110888004303,
0.015621516853570938,
-0.0006525021162815392,
0.022843407467007637,
-0.06549433618783951,
-0.05280293524265289,
-0.04297792911529541,
0.027991032227873802,
0.03257796913385391,
0.02185905911028385,
0.014623644761741161,
-0.06246523931622505,
-0.042010076344013214,
-0.019574018195271492,
0.03837471455335617,
-0.0188481193035841,
0.024204252287745476,
0.0211749617010355,
0.04354039952158928,
-0.05373304337263107,
0.005013172514736652,
0.025624368339776993,
0.021976720541715622,
0.022259296849370003,
-0.020995238795876503,
-0.042961280792951584,
-0.02936963550746441,
0.021548504009842873,
-0.04395464435219765,
-0.026689736172556877,
-0.07373052090406418,
0.023332783952355385,
-0.029662372544407845,
-0.024863285943865776,
0.06710923463106155,
0.057696159929037094,
0.054927729070186615,
0.07626157999038696,
-0.019545603543519974,
0.05410008504986763,
-0.029105443507432938,
0.025056932121515274,
-0.03704499825835228,
-0.035363808274269104,
0.00961277261376381,
-0.07723641395568848,
-0.025250691920518875,
-0.03277847170829773,
-0.027836043387651443,
-0.04111942648887634,
0.007681436371058226,
0.0003271038003731519,
-0.01208286639302969,
-0.01055299211293459,
-0.005322260782122612,
0.02622050978243351,
-0.032607950270175934,
-0.024641936644911766,
-0.004374528303742409,
-0.00917470920830965,
-0.0638052299618721,
-0.049835264682769775,
0.004005140624940395,
-0.026034247130155563,
0.00023357248574029654,
0.008244323544204235,
0.006835625972598791,
0.052643537521362305,
0.0009125623037107289,
-0.03588252514600754,
0.023964574560523033,
0.03739685192704201,
-0.01867186836898327,
-0.0004963849205523729,
0.006725492887198925,
0.01976548694074154,
0.00571006303653121,
-0.03229733183979988,
0.045186545699834824,
0.003344935830682516,
-0.04233210161328316,
-0.02147885411977768,
0.033423248678445816,
0.0022134496830403805,
-0.06480662524700165,
-0.003863314399495721,
-0.045566633343696594,
-0.025350134819746017,
0.016176516190171242,
-0.04283370077610016,
-0.034724265336990356,
-0.02164498344063759,
0.029786501079797745,
0.04714050889015198,
0.005931351333856583,
-0.009740105830132961,
-0.018012428656220436,
0.00035026692785322666,
0.010835799388587475,
-0.06422968953847885,
0.019643085077404976,
-0.030651992186903954,
0.03456803411245346,
-0.024529382586479187,
-0.0010211629560217261,
-0.044192273169755936,
0.05343622714281082,
-0.021911824122071266,
0.0005168173229321837,
0.001911956467665732,
-0.01878214254975319,
-0.0099116126075387,
0.0326693169772625,
0.02173740230500698,
0.003925862722098827,
-0.04005612060427666,
0.05776213854551315,
-0.03979025036096573,
0.027201078832149506,
0.0020502160768955946,
-0.015005224384367466,
-0.025057906284928322,
0.007889172062277794,
0.023904811590909958,
-0.039636220782995224,
0.019295059144496918,
0.036892104893922806,
0.017708608880639076,
0.032688841223716736,
-0.0008353912853635848,
0.006305991671979427,
0.03613535314798355,
-0.06539731472730637,
-0.03638969361782074,
0.0202901903539896,
-0.009667857550084591,
0.021710077300667763,
0.047149427235126495,
0.003468254115432501,
-0.036051638424396515,
-0.03565772995352745,
0.01737082190811634,
0.028861524537205696,
0.0066469754092395306,
-0.003074553795158863,
0.030892573297023773,
0.047882530838251114,
0.05591071769595146,
-0.010085301473736763,
0.0027511785738170147,
0.040980663150548935,
-0.024770528078079224,
-0.017206700518727303,
-0.01554807834327221,
0.007629672065377235,
0.0063932365737855434,
-0.009830917231738567,
-0.03556379675865173,
0.07880261540412903,
-0.005171872675418854,
0.013718361966311932,
0.005835110787302256,
-0.05052819103002548,
0.04791589453816414,
-0.007559663616120815,
-0.04391518235206604,
-0.0008341615903191268,
0.010016795247793198,
-0.029136838391423225,
0.038699228316545486,
-0.002392455004155636,
0.0022941746283322573,
0.049843017011880875,
0.029590273275971413,
0.013383984565734863,
0.012858818285167217,
-0.005699413828551769,
-0.016699258238077164,
0.027052568271756172,
-0.042983293533325195,
-0.010625611990690231,
-0.03177201375365257,
0.07031624764204025,
-0.06040135771036148,
0.06903427094221115,
0.02431659772992134,
0.03851352632045746,
0.017269840463995934,
-0.05148803070187569,
-0.039744000881910324,
-0.04185008630156517,
-0.0469188392162323,
0.07191730290651321,
-0.010268277488648891,
-0.04411642625927925,
0.05759023502469063,
0.04165524244308472,
-0.08928989619016647,
0.03795938938856125,
0.04164688289165497,
0.06217881664633751,
0.021332982927560806,
0.046305086463689804,
-0.05485924705862999,
0.005950661841779947,
-0.01825348287820816,
-0.00211357488296926,
-0.02669360674917698,
-0.008451743982732296,
-0.009076271206140518,
-0.05558694526553154,
-0.0067052473314106464,
0.02802729420363903,
-0.020549308508634567,
0.012853403575718403,
0.00876689050346613,
-0.023207250982522964,
-0.05498707666993141,
0.0027623246423900127,
0.012804164551198483,
-0.015713468194007874,
0.015392245724797249,
-0.01419275626540184,
0.0221914891153574,
0.04339907318353653,
-0.004941640887409449,
-0.06625667959451675,
0.02304672636091709,
0.011257773265242577,
-0.06545499712228775,
-0.047171276062726974,
0.06315667182207108,
-0.0015710516599938273,
-0.011171813122928143,
-0.010341732762753963,
0.028544139117002487,
0.031257513910532,
0.02992367558181286,
-0.014169399626553059,
-0.009466701187193394,
-0.08550714701414108,
-0.0022147204726934433,
0.02556854486465454,
0.02995637245476246,
0.00568527914583683,
-0.0073981392197310925,
0.03225139155983925,
0.0732744038105011,
0.025930223986506462,
-0.008113503456115723,
-0.04134494811296463,
-0.019290782511234283,
-0.003008883213624358,
-0.03343675658106804,
0.05815671756863594,
0.006863943766802549,
-0.062244731932878494,
-0.033938560634851456,
-0.031353339552879333,
-0.0008836789056658745,
0.02956691011786461,
-0.06726650148630142,
0.025025583803653717,
0.03615560010075569,
-0.010049311444163322,
-0.03921270743012428,
-0.11703336238861084,
-0.04935828223824501,
-0.0036294327583163977,
0.010927341878414154,
0.026011377573013306,
-0.04916192591190338,
0.0070296707563102245,
-0.037155501544475555,
-0.015961380675435066,
0.051269497722387314,
-0.0022140322253108025,
-0.029910983517766,
0.0714230090379715,
0.05618347227573395,
-0.046330422163009644,
0.04544542357325554,
0.017990346997976303,
-0.03756566345691681,
0.06516417115926743,
0.022702356800436974,
0.02740384265780449,
0.010407148860394955,
0.020064134150743484,
-0.011410845443606377,
-0.002733113244175911,
-0.02583388239145279,
-0.04586508870124817,
-0.012461836449801922,
-0.0016032165149226785,
0.04641008377075195
] |
Chakita/KannadaBERT | [
"pytorch",
"roberta",
"fill-mask",
"transformers",
"masked-lm",
"fill-in-the-blanks",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"RobertaForMaskedLM"
],
"model_type": "roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 5 | null | ---
tags:
- masked-lm
- fill-in-the-blanks
---
RoBERTa model trained on OSCAR Kannada corpus. | [
-0.007778102066367865,
-0.00315209967084229,
0.026705283671617508,
0.013451693579554558,
0.047745008021593094,
0.02748909220099449,
-0.029180429875850677,
0.007483970373868942,
-0.02371302805840969,
0.06630358844995499,
0.02227751538157463,
-0.02268928661942482,
0.02228577435016632,
0.052489571273326874,
-0.02125362493097782,
-0.015991223976016045,
-0.018846420571208,
-0.02892942540347576,
-0.05764380469918251,
-0.0038353477139025927,
0.030372874811291695,
-0.009046422317624092,
-0.014652975834906101,
0.03533386066555977,
0.01950051262974739,
0.009062671102583408,
-0.0007046698010526597,
0.02111010253429413,
0.04883899539709091,
-0.053488314151763916,
-0.002718969015404582,
-0.01053569931536913,
-0.019572624936699867,
-0.02404125966131687,
-0.03761373832821846,
-0.022546838968992233,
0.02817748859524727,
-0.007116397377103567,
0.03327597677707672,
0.06412789970636368,
-0.010714475996792316,
0.011834116652607918,
-0.009928575716912746,
-0.05051760375499725,
0.026815112680196762,
-0.018171390518546104,
-0.05264171212911606,
-0.017082512378692627,
0.03654202073812485,
-0.020143305882811546,
-0.03489183261990547,
-0.07471580058336258,
-0.03570389747619629,
-0.017679767683148384,
-0.0028983349911868572,
-0.0263447817414999,
-0.018323494121432304,
0.004419927019625902,
0.06803779304027557,
-0.051995549350976944,
-0.05168537795543671,
-0.02224069833755493,
-0.07184216380119324,
0.02930210530757904,
0.037787023931741714,
-0.045277632772922516,
0.023230882361531258,
-0.06285329908132553,
0.02244712971150875,
-0.03396254777908325,
0.06604800373315811,
-0.0493658110499382,
-0.011783973313868046,
-0.06927257031202316,
-0.029089121147990227,
-0.02023392915725708,
0.04677863419055939,
0.05367303639650345,
-0.028821932151913643,
0.07166201621294022,
0.03851887583732605,
-0.006526247598230839,
0.023585408926010132,
-0.03316196799278259,
0.029635481536388397,
0.029770992696285248,
-0.022057529538869858,
0.006653015501797199,
0.0013875383883714676,
0.024121597409248352,
-0.008594426326453686,
-0.01151150930672884,
-0.029003910720348358,
-0.00784806814044714,
-0.02998899295926094,
0.018066607415676117,
0.052759379148483276,
-0.0208757147192955,
0.014021690003573895,
0.010365119203925133,
0.023233434185385704,
0.043170470744371414,
-0.008885092101991177,
0.07492201030254364,
-0.010496714152395725,
-0.006033564452081919,
-0.0076090265065431595,
-0.01652822457253933,
-0.03536902740597725,
0.030220819637179375,
0.021697236225008965,
-0.057598330080509186,
-0.03040263243019581,
0.03687208890914917,
-0.0009215129539370537,
-0.01604125276207924,
0.06620731204748154,
-0.040927235037088394,
-0.04840174689888954,
-0.05535857379436493,
0.06359513103961945,
-0.02110448107123375,
-0.010457667522132397,
-0.004122973419725895,
-0.02884547971189022,
0.0009556799777783453,
-0.045194514095783234,
-0.006007271818816662,
0.007981415838003159,
0.038877785205841064,
0.013977721333503723,
0.02705656923353672,
0.007862637750804424,
-0.060479193925857544,
0.015296399593353271,
0.04498210549354553,
-0.06652913242578506,
0.019003408029675484,
0.007264520041644573,
0.1282930225133896,
-0.044579003006219864,
-0.0704503133893013,
-0.007269734051078558,
0.01660497486591339,
-0.021025292575359344,
-0.006568490527570248,
-0.018844012171030045,
-0.025007640942931175,
-0.031682088971138,
-0.021182840690016747,
0.048743218183517456,
-0.06223849207162857,
-0.0015567621449008584,
0.071376271545887,
0.02077646180987358,
0.03253844380378723,
-0.027979519218206406,
0.017265764996409416,
-0.005872742738574743,
-0.026962388306856155,
-0.029533131048083305,
0.03013021871447563,
-0.006631992757320404,
-0.009706282988190651,
-0.023099947720766068,
-0.054177675396203995,
-0.009612754918634892,
0.06955786049365997,
0.027212444692850113,
-0.008204028010368347,
-0.023652847856283188,
0.020703459158539772,
0.050633061677217484,
0.014092967845499516,
-0.033155642449855804,
0.027672838419675827,
0.04798417165875435,
0.015427961014211178,
-0.03426414728164673,
0.029793094843626022,
0.014650696888566017,
-0.036146651953458786,
-0.02980351261794567,
0.01634269393980503,
0.027288848534226418,
-0.04241970181465149,
0.016669290140271187,
0.04852084815502167,
-0.0026759491302073,
-0.019280606880784035,
-0.0029751237016171217,
0.03247596323490143,
-0.020554719492793083,
-0.0065016476437449455,
0.0015987050719559193,
-0.01202479749917984,
-0.027236457914114,
0.035453252494335175,
-0.02985616959631443,
-0.011844725348055363,
-0.02664635144174099,
-0.003541886107996106,
0.05622788518667221,
0.021107902750372887,
0.02740858495235443,
0.03465769439935684,
-0.022295676171779633,
0.07288572192192078,
-0.04106321185827255,
0.01338198222219944,
-0.042602892965078354,
-0.0552205927670002,
-0.017569225281476974,
0.05253138393163681,
0.032003991305828094,
0.021583374589681625,
-0.006457626819610596,
-0.07925684750080109,
0.025642305612564087,
0.05712520703673363,
0.087393619120121,
0.00336999143473804,
-0.038886263966560364,
-0.020698657259345055,
-0.01041057612746954,
0.026126032695174217,
-0.06414517760276794,
-0.033535104244947433,
0.038597654551267624,
0.07642442733049393,
-0.01728293113410473,
0.003951325546950102,
-0.03000573255121708,
0.004028203431516886,
-0.04216671362519264,
-0.052100781351327896,
0.020650405436754227,
0.0366448275744915,
-0.01887843944132328,
0.054732002317905426,
-0.03175748884677887,
-0.000035194963857065886,
0.041782356798648834,
0.008185231126844883,
0.011588589288294315,
-0.018151847645640373,
-0.0023855313193053007,
0.020114203914999962,
0.10723129659891129,
-0.04172281175851822,
0.04222198203206062,
0.002052509691566229,
-0.013918178156018257,
0.026741264387965202,
-0.03313154727220535,
0.01724257692694664,
0.053051646798849106,
0.02243344485759735,
-0.015925999730825424,
0.029253769665956497,
0.009286971762776375,
0.042946770787239075,
0.0645282045006752,
0.012933132238686085,
0.06272782385349274,
-0.01827652007341385,
0.04542044550180435,
0.08598533272743225,
-0.013534806668758392,
0.008541214279830456,
0.022145980969071388,
0.08584573119878769,
0.031337667256593704,
-0.011615337803959846,
0.05901538208127022,
-0.012332232668995857,
-0.00715816393494606,
-0.03643764555454254,
0.0034708634484559298,
-0.03766495734453201,
-0.02703423611819744,
0.05726798251271248,
0.012575463391840458,
-0.002974114613607526,
-0.004343959037214518,
0.011245675384998322,
-0.0007416585576720536,
0.1095675528049469,
-0.01987556926906109,
0.00914796069264412,
-0.03533334657549858,
-0.00749380886554718,
0.01985195279121399,
-0.06753738969564438,
-0.06501833349466324,
0.025987105444073677,
-0.039990343153476715,
-0.0028129247948527336,
-0.0974295362830162,
-0.03408416733145714,
-0.0462762787938118,
-0.04390020668506622,
0.04392490163445473,
0.04233064502477646,
-0.004181080497801304,
-0.035342153161764145,
0.0029747383669018745,
-0.026986639946699142,
-0.04363313317298889,
-0.051354777067899704,
-0.04855144023895264,
-0.04064016044139862,
-0.08496619015932083,
0.025206852704286575,
0.0250011645257473,
0.036822862923145294,
0.008232356980443,
-0.017348960041999817,
-0.03579800948500633,
-0.022344840690493584,
0.03906913474202156,
0.051109325140714645,
-0.025597844272851944,
-0.04786233976483345,
0.006800374947488308,
-0.0038800814654678106,
-0.006097722798585892,
-0.02303246408700943,
-0.03078276850283146,
0.11207101494073868,
0.04985962063074112,
0.062467511743307114,
-0.008019349537789822,
0.002970034023746848,
-0.05429908260703087,
-0.027773456647992134,
-0.043959904462099075,
-0.03575092926621437,
-0.020430995151400566,
-0.031094884499907494,
-0.04144718870520592,
0.0019604642875492573,
-0.017962908372282982,
-0.002539673587307334,
-0.039775945246219635,
0.021981151774525642,
0.025414342060685158,
0.055984362959861755,
0.054567161947488785,
0.026304762810468674,
-0.016599463298916817,
-0.02452039159834385,
0.0514039620757103,
-0.001675438485108316,
-0.0017534525832161307,
-0.04031043127179146,
-0.024661630392074585,
0.05612534284591675,
0.015088530257344246,
0.016572685912251472,
0.006503189913928509,
0.05443587154150009,
0.0034607320558279753,
-0.008828442543745041,
0.008639052510261536,
-0.022038806229829788,
0.01087583601474762,
0.004242633003741503,
-0.023895904421806335,
-0.030296294018626213,
-0.044592928141355515,
-0.015735261142253876,
0.0037664819974452257,
0.03893301635980606,
-0.05745100602507591,
-0.021585050970315933,
-0.005114036612212658,
0.008022825233638287,
0.043334584683179855,
0.007322997320443392,
-0.05577757582068443,
0.0034148353151977062,
-0.02909211814403534,
-0.01680913195014,
0.01893708109855652,
-0.007346258964389563,
0.018307983875274658,
0.02468970976769924,
0.04427194222807884,
-0.038728609681129456,
0.04131382331252098,
0.021983889862895012,
0.04099676012992859,
0.024332547560334206,
-0.06601858139038086,
0.026545902714133263,
0.007529536262154579,
0.031485795974731445,
0.0034550465643405914,
-0.019257402047514915,
-0.07157877832651138,
-0.09185642004013062,
-0.0036811616737395525,
0.010664077475667,
-0.005400957074016333,
-0.005714894738048315,
0.049174509942531586,
-0.03018891252577305,
-0.0016513627488166094,
-0.012781304307281971,
0.01225459948182106,
0.048595331609249115,
-0.039200060069561005,
0.05930003523826599,
-0.009717529639601707,
0.012545146048069,
-0.023982416838407516,
0.005280987359583378,
-0.07117804139852524,
-0.029690448194742203,
0.01559614110738039,
0.0552532859146595,
0.019613415002822876,
0.04701562225818634,
0.047238267958164215,
0.011103523895144463,
-0.0653957724571228,
0.0442805178463459,
0.07479757070541382,
-0.0032337855082005262,
-0.03312953561544418,
-0.003073787782341242,
-0.008176792412996292,
-0.025575054809451103,
-0.053270235657691956,
-0.02138439565896988,
0.03865894675254822,
0.03432600945234299,
-0.008708144538104534,
-0.005497321020811796,
0.024562498554587364,
-0.024933943524956703,
-0.042639363557100296,
-0.06095389649271965,
-0.0151833426207304,
0.0012721670791506767,
-0.0469154417514801,
0.0317220613360405,
0.042914438992738724,
0.012073825113475323,
0.054785680025815964,
0.028214910998940468,
-0.037354785948991776,
-0.045195817947387695,
0.020732278004288673,
0.006885626818984747,
-0.04923892766237259,
-0.05679583549499512,
-0.04572417587041855,
0.03605072200298309,
0.04156748205423355,
-0.018951162695884705,
-0.08887451142072678,
0.0035380420740693808,
0.008231345564126968,
-0.07130738347768784,
0.04857100546360016,
0.007759904023259878,
0.052307602018117905,
0.029960347339510918,
-0.03219103813171387,
0.032178230583667755,
-0.02475227229297161,
0.00887005403637886,
0.0012872708030045033,
0.043858665972948074,
-0.029591094702482224,
-0.03817710280418396,
-0.06136166304349899,
0.0007148512522689998,
0.004731280263513327,
0.05853016674518585,
0.04683424532413483,
-0.06418175250291824,
-0.05541875958442688,
0.007625718135386705,
0.05336824432015419,
-0.052166543900966644,
0.02157042920589447,
0.03690268099308014,
0.0299840047955513,
-0.056295379996299744,
-0.0396607406437397,
-0.02222004532814026,
-0.01567431166768074,
0.009118838235735893,
-0.012672492302954197,
-0.048300888389348984,
-0.05241136625409126,
0.01691039465367794,
0.0006149327382445335,
-0.02481718361377716,
-0.0868028849363327,
0.0206611305475235,
0.007332333363592625,
-0.025004832074046135,
0.03279309347271919,
0.021366359665989876,
0.051636338233947754,
0.04689347371459007,
0.018554475158452988,
0.027793539687991142,
-0.02959509566426277,
0.03283056989312172,
-0.014974910765886307,
-0.007066421676427126,
0.004084412008523941,
-0.06744498014450073,
-0.033816784620285034,
-0.006323440931737423,
-0.023924294859170914,
-0.0524379163980484,
0.015647251158952713,
0.008112570270895958,
-0.015037808567285538,
0.008521328680217266,
-0.014685023576021194,
0.03273630514740944,
-0.01172134093940258,
-0.014049838297069073,
-0.003390455385670066,
-0.01329171285033226,
-0.08678187429904938,
-0.04807253181934357,
0.03523451089859009,
-0.009278266690671444,
0.016741564497351646,
0.018696309998631477,
-0.0013210909673944116,
0.03198585659265518,
-0.01251851674169302,
-0.027117721736431122,
0.00798836164176464,
0.023442188277840614,
-0.036322854459285736,
-0.009811051189899445,
0.020869415253400803,
0.01753917522728443,
0.017401115968823433,
-0.02618163451552391,
0.02206830307841301,
0.010364978574216366,
-0.03225255012512207,
-0.01174244750291109,
0.02169557847082615,
0.009624152444303036,
-0.04603169113397598,
-0.02359461784362793,
-0.023471107706427574,
-0.03094804845750332,
0.03141244873404503,
-0.0367874912917614,
-0.02431454136967659,
0.02848481573164463,
0.026595180854201317,
0.03725602477788925,
-0.018319832161068916,
-0.022466342896223068,
0.012183329090476036,
-0.0396072193980217,
0.004424477927386761,
-0.060122501105070114,
0.026057055220007896,
-0.03249029070138931,
0.033391326665878296,
-0.009556569159030914,
-0.029359150677919388,
-0.06314164400100708,
0.029630176723003387,
-0.009858719073235989,
-0.020427973940968513,
-0.01631544716656208,
0.009347434155642986,
-0.028401628136634827,
0.04587353765964508,
-0.01763320527970791,
0.001184327295050025,
-0.02993876300752163,
0.06133964657783508,
-0.04039717838168144,
0.00616059172898531,
0.004640556406229734,
0.011171570979058743,
-0.034919366240501404,
-0.004178727511316538,
-0.014486816711723804,
-0.06871481984853745,
0.02497214637696743,
0.034527797251939774,
0.048337794840335846,
0.03621693700551987,
0.001127667841501534,
0.035275254398584366,
0.028411738574504852,
-0.06779100000858307,
-0.011975604109466076,
-0.0013959044590592384,
0.0007176569779403508,
0.007872411049902439,
0.06563994288444519,
0.04252494499087334,
-0.0407586544752121,
-0.06618208438158035,
0.06840785592794418,
0.05274511128664017,
0.0007829947862774134,
-0.0038412127178162336,
0.03315364569425583,
0.04895555227994919,
0.04863327369093895,
-0.02159976027905941,
-0.028497474268078804,
0.003946639597415924,
-0.01040969230234623,
0.03293520212173462,
-0.010930748656392097,
0.024990158155560493,
-0.012853422202169895,
-0.04913925379514694,
-0.05298769474029541,
0.08179228007793427,
0.02496309205889702,
0.037738993763923645,
-0.01198746357113123,
-0.029330046847462654,
0.035547833889722824,
0.003055296139791608,
-0.0413847491145134,
0.0033594274427741766,
0.01383405365049839,
-0.039185088127851486,
0.03099738620221615,
-0.0030367267318069935,
0.042223893105983734,
0.0455755852162838,
0.03515796363353729,
-0.025702213868498802,
0.03936363011598587,
-0.022253045812249184,
0.025085793808102608,
0.03399527072906494,
-0.030234798789024353,
-0.020231090486049652,
-0.009680257178843021,
0.04322636500000954,
-0.07619935274124146,
0.050384119153022766,
0.0204638559371233,
0.005082146730273962,
0.02747788466513157,
-0.028917813673615456,
-0.011145633645355701,
-0.015335764735937119,
-0.03269535303115845,
0.055194273591041565,
-0.005299275275319815,
-0.07248479872941971,
0.05373791977763176,
0.031123103573918343,
-0.09807215631008148,
0.028660787269473076,
0.016730424016714096,
0.011924092657864094,
-0.007019584067165852,
0.03318009153008461,
-0.04201517626643181,
0.03917672857642174,
-0.06323817372322083,
0.02499176748096943,
-0.06932806223630905,
-0.011481521651148796,
0.03211382031440735,
-0.019068395718932152,
-0.015784308314323425,
0.016399769112467766,
-0.03487896919250488,
0.027640249580144882,
0.011223787441849709,
-0.04186425730586052,
-0.052127595990896225,
0.0038155922666192055,
0.013868254609405994,
0.005407536402344704,
-0.0009906647028401494,
-0.021280711516737938,
0.007048221305012703,
0.014999521896243095,
-0.009234712459146976,
-0.07261775434017181,
-0.014969290234148502,
0.018074234947562218,
-0.053254056721925735,
-0.045337576419115067,
0.04825234040617943,
0.03184708207845688,
-0.043852489441633224,
0.009176814928650856,
-0.0004785869095940143,
0.02085999585688114,
0.02196524478495121,
-0.013341395184397697,
0.024995094165205956,
-0.07606679201126099,
-0.006245526950806379,
0.03681141883134842,
0.0051673767156898975,
0.04489365220069885,
-0.009180126711726189,
0.03820210322737694,
0.0727032795548439,
0.04845406487584114,
0.007637890055775642,
-0.04086900129914284,
-0.028919650241732597,
0.05081075802445412,
-0.03613824397325516,
0.04277777671813965,
-0.025407280772924423,
-0.02854011580348015,
-0.02994314581155777,
0.000807454576715827,
-0.016569336876273155,
0.0477445125579834,
-0.03139788284897804,
0.009922986850142479,
0.04000384733080864,
-0.01817351020872593,
-0.032748669385910034,
-0.08434779942035675,
-0.025806942954659462,
-0.009807896800339222,
-0.00374493096023798,
0.01880212314426899,
-0.03494591265916824,
-0.0017514689825475216,
-0.03540661558508873,
-0.03429754078388214,
0.05598851665854454,
0.00403596693649888,
-0.024275708943605423,
0.0606408454477787,
0.05040719732642174,
-0.017767280340194702,
0.0037588791456073523,
0.02378392033278942,
-0.0453658364713192,
0.026691151782870293,
-0.008390825241804123,
0.02285555936396122,
0.010327848605811596,
0.028283974155783653,
0.002210766077041626,
-0.017723448574543,
-0.05508239567279816,
-0.026836495846509933,
-0.026872949674725533,
0.0013352837413549423,
0.05962598696351051
] |
ChristianOrr/madnet_keras | [
"tensorboard",
"dataset:flyingthings-3d",
"dataset:kitti",
"arxiv:1810.05424",
"vision",
"deep-stereo",
"depth-estimation",
"Tensorflow2",
"Keras",
"license:apache-2.0"
] | depth-estimation | {
"architectures": null,
"model_type": null,
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 0 | null | ---
license: apache-2.0
tags:
- vision
- deep-stereo
- depth-estimation
- Tensorflow2
- Keras
datasets:
- flyingthings-3d
- kitti
---
# MADNet Keras
MADNet is a deep stereo depth estimation model. Its key defining features are:
1. It has a light-weight architecture which means it has low latency.
2. It supports self-supervised training, so it can be conveniently adapted in the field with no training data.
3. It's a stereo depth model, which means it's capable of high accuracy.
The MADNet weights in this repository were trained using a Tensorflow 2 / Keras implementation of the original code. The model was created using the Keras Functional API, which enables the following features:
1. Good optimization.
2. High level Keras methods (.fit, .predict and .evaluate).
3. Little boilerplate code.
4. Decent support from external packages (like Weights and Biases).
5. Callbacks.
The weights provided were either trained on the 2012 / 2015 kitti stereo dataset or flyingthings-3d dataset. The weights of the pretrained models from the original paper (tf1_conversion_kitti.h5 and tf1_conversion_synthetic.h5) are provided in tensorflow 2 format. The TF1 weights help speed up fine-tuning, but its recommended to use either synthetic.h5 (trained on flyingthings-3d) or kitti.h5 (trained on 2012 and 2015 kitti stereo datasets).
**Abstract**:
Deep convolutional neural networks trained end-to-end are the undisputed state-of-the-art methods to regress dense disparity maps directly from stereo pairs. However, such methods suffer from notable accuracy drops when exposed to scenarios significantly different from those seen in the training phase (e.g.real vs synthetic images, indoor vs outdoor, etc). As it is unlikely to be able to gather enough samples to achieve effective training/ tuning in any target domain, we propose to perform unsupervised and continuous online adaptation of a deep stereo network in order to preserve its accuracy independently of the sensed environment. However, such a strategy can be extremely demanding regarding computational resources and thus not enabling real-time performance. Therefore, we address this side effect by introducing a new lightweight, yet effective, deep stereo architecture Modularly ADaptive Network (MADNet) and by developing Modular ADaptation (MAD), an algorithm to train independently only sub-portions of our model. By deploying MADNet together with MAD we propose the first ever realtime self-adaptive deep stereo system.
## Usage Instructions
See the accompanying codes readme for details on how to perform training and inferencing with the model: [madnet-deep-stereo-with-keras](https://github.com/ChristianOrr/madnet-deep-stereo-with-keras).
## Training
### TF1 Kitti and TF1 Synthetic
Training details for the TF1 weights are available in the supplementary material (at the end) of this paper: [Real-time self-adaptive deep stereo](https://arxiv.org/abs/1810.05424)
### Synthetic
The synthetic model was finetuned using the tf1 synthetic weights. It was trained on the flyingthings-3d dataset with the following parameters:
- Steps: 1.5 million
- Learning Rate: 0.0001
- Decay Rate: 0.999
- Minimum Learning Rate Cap: 0.000001
- Batch Size: 1
- Optimizer: Adam
- Image Height: 480
- Image Width: 640
### Kitti
The kitti model was finetuned using the synthetic weights. Tensorboard events file is available in the logs directory. It was trained on the 2012 and 2015 kitti stereo dataset with the following parameters:
- Steps: 0.5 million
- Learning Rate: 0.0001
- Decay Rate: 0.999
- Minimum Learning Rate Cap: 0.0000001
- Batch Size: 1
- Optimizer: Adam
- Image Height: 480
- Image Width: 640
## BibTeX entry and citation info
```bibtex
@InProceedings{Tonioni_2019_CVPR,
author = {Tonioni, Alessio and Tosi, Fabio and Poggi, Matteo and Mattoccia, Stefano and Di Stefano, Luigi},
title = {Real-time self-adaptive deep stereo},
booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2019}
}
```
```bibtex
@article{Poggi2021continual,
author={Poggi, Matteo and Tonioni, Alessio and Tosi, Fabio
and Mattoccia, Stefano and Di Stefano, Luigi},
title={Continual Adaptation for Deep Stereo},
journal={IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI)},
year={2021}
}
```
```bibtex
@InProceedings{MIFDB16,
author = "N. Mayer and E. Ilg and P. Hausser and P. Fischer and D. Cremers and A. Dosovitskiy and T. Brox",
title = "A Large Dataset to Train Convolutional Networks for Disparity, Optical Flow, and Scene Flow Estimation",
booktitle = "IEEE International Conference on Computer Vision and Pattern Recognition (CVPR)",
year = "2016",
note = "arXiv:1512.02134",
url = "http://lmb.informatik.uni-freiburg.de/Publications/2016/MIFDB16"
}
```
```bibtex
@INPROCEEDINGS{Geiger2012CVPR,
author = {Andreas Geiger and Philip Lenz and Raquel Urtasun},
title = {Are we ready for Autonomous Driving? The KITTI Vision Benchmark Suite},
booktitle = {Conference on Computer Vision and Pattern Recognition (CVPR)},
year = {2012}
}
```
```bibtex
@INPROCEEDINGS{Menze2015CVPR,
author = {Moritz Menze and Andreas Geiger},
title = {Object Scene Flow for Autonomous Vehicles},
booktitle = {Conference on Computer Vision and Pattern Recognition (CVPR)},
year = {2015}
}
``` | [
-0.056283753365278244,
-0.01750551164150238,
-0.033540189266204834,
0.04219767078757286,
0.043673787266016006,
0.005975534673780203,
-0.010070191696286201,
0.01220572181046009,
0.002248508855700493,
0.048060305416584015,
0.0359438955783844,
-0.012553534470498562,
0.006624410394579172,
0.0428195483982563,
-0.026581795886158943,
-0.02260981872677803,
-0.026271291077136993,
0.006898151244968176,
-0.04061335325241089,
0.009062794037163258,
0.03937002643942833,
-0.004343403037637472,
-0.01898241974413395,
0.036533549427986145,
-0.031580403447151184,
0.02080290950834751,
0.01939171925187111,
0.024728793650865555,
0.04218539595603943,
-0.0773807018995285,
0.018730051815509796,
-0.05454511567950249,
-0.04405621066689491,
-0.03757481276988983,
-0.005151607096195221,
-0.0005346607649698853,
-0.00814333837479353,
0.02230260521173477,
0.02128828875720501,
0.05585223436355591,
-0.01688212715089321,
0.02580922283232212,
-0.051445119082927704,
-0.02672741748392582,
0.02932300791144371,
0.007407034281641245,
-0.01892763376235962,
-0.014645641669631004,
0.00959975179284811,
-0.009427125565707684,
-0.08566706627607346,
-0.047670915722846985,
-0.03355411812663078,
0.04422963038086891,
-0.02895524725317955,
-0.033720213919878006,
-0.031959518790245056,
-0.018454648554325104,
0.04324354976415634,
-0.06820660084486008,
-0.0010941631626337767,
0.0037678356748074293,
-0.04681634530425072,
0.024558821693062782,
0.04247042536735535,
-0.027003364637494087,
0.005926105659455061,
-0.04422954097390175,
0.03249649703502655,
-0.021062685176730156,
0.05111246183514595,
-0.043956492096185684,
0.0030567364301532507,
-0.0851258635520935,
0.003188293194398284,
-0.005357495974749327,
0.04667872190475464,
0.011672294698655605,
-0.059417154639959335,
0.0700593963265419,
0.035488855093717575,
0.02434179186820984,
0.011674695648252964,
-0.0009887827327474952,
-0.0096195749938488,
0.06715070456266403,
-0.016509614884853363,
0.045061636716127396,
0.014801884070038795,
0.006609340663999319,
-0.04283811151981354,
-0.01834959164261818,
-0.00563238887116313,
-0.022186221554875374,
-0.011221814900636673,
0.04394044354557991,
0.0462302640080452,
0.009074358269572258,
0.0410846471786499,
0.0527745857834816,
0.03681695833802223,
0.017830539494752884,
-0.002087782137095928,
0.06838587671518326,
-0.004873210564255714,
-0.04097724333405495,
-0.033649004995822906,
-0.02670920267701149,
-0.05498164892196655,
0.02765510603785515,
0.03832005709409714,
-0.05131533369421959,
-0.04201316460967064,
0.04149351269006729,
0.0009143379866145551,
0.025390520691871643,
0.07614028453826904,
-0.0316210500895977,
-0.03801420331001282,
-0.04148491099476814,
0.03654570132493973,
-0.007299499586224556,
0.004672057926654816,
-0.0038710511289536953,
-0.051907747983932495,
0.010389715433120728,
-0.04662395641207695,
-0.03283228352665901,
-0.020502664148807526,
0.028161367401480675,
0.018129846081137657,
0.030855942517518997,
0.023108217865228653,
-0.06040473282337189,
0.012213906273245811,
0.05326968804001808,
-0.08009427040815353,
0.05913778766989708,
0.006634945515543222,
0.09793352335691452,
-0.07513632625341415,
-0.06584460288286209,
-0.008377641439437866,
0.008471133187413216,
-0.016447175294160843,
0.02277630753815174,
0.02121417596936226,
-0.06619204580783844,
-0.02618899941444397,
-0.0381665900349617,
0.05475091189146042,
-0.06519238650798798,
-0.017971590161323547,
0.05778989940881729,
-0.02537047117948532,
0.028845323249697685,
-0.04522857069969177,
0.010191096924245358,
-0.017779691144824028,
0.004457714501768351,
-0.01204686053097248,
0.05692846328020096,
-0.013123407028615475,
-0.006509806029498577,
-0.039082515984773636,
-0.03649016097187996,
-0.026154670864343643,
0.09175456315279007,
-0.01964935101568699,
-0.005129436030983925,
-0.04617038369178772,
0.031110724434256554,
0.027490897104144096,
0.06957033276557922,
-0.00702064111828804,
0.05008484795689583,
0.048718832433223724,
0.02097538486123085,
-0.041116632521152496,
0.05035432428121567,
0.028428588062524796,
-0.03705482557415962,
-0.024397501721978188,
0.0065827020443975925,
0.006745691876858473,
-0.061831023544073105,
-0.003007905324921012,
0.036344725638628006,
0.018628183752298355,
-0.041609566658735275,
-0.020995844155550003,
0.08654341846704483,
-0.007124911528080702,
-0.005474763922393322,
-0.017409365624189377,
-0.060591526329517365,
-0.02284112013876438,
0.03600131347775459,
-0.02242126129567623,
-0.013104570098221302,
0.012640267610549927,
-0.01629965379834175,
-0.0026781081687659025,
0.012771306559443474,
-0.012535211630165577,
0.008624016307294369,
0.00985863246023655,
0.08594541251659393,
-0.008569215424358845,
0.03172120079398155,
-0.015046296641230583,
-0.06349439918994904,
-0.008947975002229214,
0.06356556713581085,
0.0486336387693882,
0.03183441609144211,
-0.027344152331352234,
-0.04279237613081932,
0.03903431072831154,
0.05224401131272316,
0.035170793533325195,
0.03819514811038971,
0.0005335203022696078,
0.011774690821766853,
0.003286267165094614,
0.015156303532421589,
-0.04180298373103142,
-0.004030443262308836,
0.025265241041779518,
0.044538531452417374,
0.0024614890571683645,
-0.005318134091794491,
-0.019609887152910233,
0.04358075186610222,
-0.050997212529182434,
-0.08253611624240875,
0.020816927775740623,
0.046811457723379135,
0.0006367921596392989,
0.03300591930747032,
-0.00001597600567038171,
0.0024699291680008173,
0.033247459679841995,
0.007632846012711525,
-0.005290952976793051,
-0.0263352170586586,
0.013511313125491142,
0.026424512267112732,
0.0349365659058094,
-0.048520710319280624,
0.032181981950998306,
-0.003827829612419009,
-0.010283323004841805,
0.030309665948152542,
-0.038789208978414536,
0.06456894427537918,
0.08602878451347351,
0.0028300487902015448,
-0.01923394948244095,
0.0429091677069664,
0.033209651708602905,
0.04296809807419777,
0.06273923814296722,
-0.03237752616405487,
0.042317748069763184,
-0.017474455758929253,
0.03607107698917389,
0.07702842354774475,
-0.005477486178278923,
0.029616476967930794,
0.025407860055565834,
0.0836564302444458,
0.01623745635151863,
-0.028280116617679596,
0.03948228061199188,
-0.022518515586853027,
0.010361351072788239,
-0.003484346205368638,
-0.022857755422592163,
-0.019477060064673424,
0.010443044826388359,
0.053299758583307266,
0.03282203897833824,
-0.005879794247448444,
-0.02512732334434986,
-0.01402321271598339,
-0.02009325660765171,
0.028724225237965584,
0.0270997267216444,
-0.003442404791712761,
0.003208848647773266,
-0.05357811599969864,
0.01303849183022976,
-0.06868795305490494,
-0.0642615258693695,
-0.010812999680638313,
-0.0406656451523304,
-0.01255580224096775,
-0.06376286596059799,
-0.02663099579513073,
-0.0659109354019165,
-0.023470941931009293,
0.07902324944734573,
0.0020034010522067547,
-0.004133221693336964,
-0.039311736822128296,
0.0033058293629437685,
-0.05998610705137253,
-0.03885555639863014,
-0.0522565133869648,
-0.06407742202281952,
-0.026555316522717476,
-0.08130370825529099,
0.052194226533174515,
0.01604955829679966,
0.023472702130675316,
0.01303793489933014,
-0.003982589580118656,
-0.013884736225008965,
-0.022786812856793404,
0.04704638198018074,
0.06177685782313347,
-0.014658186584711075,
-0.03603683039546013,
0.02420707419514656,
-0.010364268906414509,
-0.023774404078722,
-0.041378021240234375,
-0.03482307866215706,
0.07167379558086395,
0.08878132700920105,
0.01017311867326498,
0.030301161110401154,
-0.005663430783897638,
-0.04232506826519966,
-0.038517873734235764,
-0.025971733033657074,
-0.059054140001535416,
-0.009054480120539665,
-0.03727041929960251,
-0.019493136554956436,
-0.028148183599114418,
-0.05211208388209343,
0.0017247553914785385,
0.010178217664361,
0.005177209619432688,
0.04781414195895195,
0.07361932098865509,
0.01592372916638851,
0.011123397387564182,
-0.06853937357664108,
-0.02412516251206398,
0.04362405091524124,
-0.004334873985499144,
-0.011726719327270985,
-0.05381439998745918,
-0.011194383725523949,
0.0345623642206192,
0.009958341717720032,
-0.002981706755235791,
0.0067506590858101845,
0.07252799719572067,
0.002552490681409836,
0.007816378027200699,
0.042181938886642456,
0.006100697908550501,
-0.003822019323706627,
0.0027184286154806614,
0.0002115897659678012,
-0.013105838559567928,
-0.050413161516189575,
-0.007141147740185261,
-0.012398910708725452,
0.044762276113033295,
-0.0743860974907875,
-0.05908336490392685,
-0.016785336658358574,
0.039990659803152084,
0.05094281584024429,
0.0066649639047682285,
-0.056292422115802765,
-0.003295456524938345,
-0.04117695987224579,
-0.00522580137476325,
0.030017297714948654,
-0.029089517891407013,
0.03273024782538414,
0.04633438214659691,
0.014409000054001808,
0.018390409648418427,
0.08318386226892471,
0.02885797992348671,
0.07687484472990036,
0.02241319790482521,
-0.012309492565691471,
0.021010056138038635,
-0.03855929896235466,
0.05441002547740936,
-0.006587219424545765,
-0.008533531799912453,
-0.05982255935668945,
-0.08919568359851837,
-0.04026034101843834,
0.011052764020860195,
-0.024718690663576126,
-0.022592969238758087,
0.04135361686348915,
0.022512201219797134,
-0.03239523246884346,
0.0068150958977639675,
0.028003621846437454,
0.04987935721874237,
-0.04106161743402481,
0.06679552793502808,
-0.012736686505377293,
0.007387686520814896,
-0.032353952527046204,
0.03188642859458923,
-0.038191623985767365,
-0.023527823388576508,
0.009338200092315674,
0.10849294811487198,
0.030440058559179306,
0.0487719401717186,
0.06351354718208313,
0.020540349185466766,
-0.0349629670381546,
0.025149811059236526,
0.033555783331394196,
-0.04248384013772011,
-0.06655135005712509,
-0.0019305059686303139,
-0.018917396664619446,
0.0018747923895716667,
-0.0286426804959774,
-0.014049663208425045,
0.051043860614299774,
0.04321609437465668,
-0.011787647381424904,
-0.028157677501440048,
0.0033637150190770626,
-0.018911197781562805,
-0.01784243993461132,
-0.03709367290139198,
0.01963471807539463,
-0.023758843541145325,
-0.020079173147678375,
0.015852630138397217,
0.015081730671226978,
0.01313216146081686,
0.053731996566057205,
0.010162923485040665,
-0.008314724080264568,
-0.0465700589120388,
0.04579620808362961,
0.0073273321613669395,
-0.043782513588666916,
-0.05316062271595001,
-0.01724832132458687,
0.022265177220106125,
0.025734785944223404,
-0.037472695112228394,
-0.05971883237361908,
0.00017188377387356013,
0.06135480850934982,
-0.04340692609548569,
0.041187211871147156,
-0.012031282298266888,
0.034092795103788376,
0.04836765676736832,
0.0007163413683883846,
0.036452002823352814,
-0.016874369233846664,
-0.006290579214692116,
0.00013850089453626424,
0.04028377681970596,
-0.005393654573708773,
-0.04143602401018143,
-0.04388817399740219,
0.016925202682614326,
0.008178109303116798,
0.03653905913233757,
0.03731135278940201,
-0.04445357993245125,
-0.045036185532808304,
-0.02739735133945942,
0.030995603650808334,
-0.04293766990303993,
0.021220305934548378,
0.021433664485812187,
0.03872762247920036,
-0.04463665187358856,
-0.028023768216371536,
-0.02035936526954174,
-0.0024192449636757374,
0.012546336278319359,
-0.002082776976749301,
-0.04605814069509506,
-0.08217822760343552,
0.03276661038398743,
-0.016165824607014656,
-0.020809590816497803,
-0.09514308720827103,
0.02439323626458645,
0.013092607259750366,
-0.01805170252919197,
0.07680507004261017,
0.04726865887641907,
0.05435445159673691,
0.05523902177810669,
0.0021212296560406685,
0.022099293768405914,
-0.03240060433745384,
0.02340363897383213,
-0.06392562389373779,
-0.026717355474829674,
-0.0005206625792197883,
-0.062036775052547455,
-0.03115672431886196,
0.013132969848811626,
-0.02913529798388481,
-0.055307697504758835,
-0.012047555297613144,
-0.0047565060667693615,
-0.018204238265752792,
-0.013945642858743668,
0.01834149658679962,
0.03370234742760658,
-0.014976727776229382,
-0.04687543958425522,
-0.039822254329919815,
-0.03917703032493591,
-0.02083568461239338,
-0.023499751463532448,
0.028422091156244278,
-0.0013699018163606524,
-0.0017428447026759386,
-0.0012358070816844702,
0.015134299173951149,
0.006972654722630978,
0.016547078266739845,
-0.03638255223631859,
0.024818498641252518,
0.027284245938062668,
-0.016915882006287575,
-0.008085601031780243,
0.01374598778784275,
-0.0033795698545873165,
0.020554563030600548,
-0.05490870401263237,
0.03807590529322624,
0.02521713636815548,
0.01736549846827984,
-0.012702304869890213,
0.034367892891168594,
0.03807830438017845,
-0.053833767771720886,
-0.03225585073232651,
0.004575244151055813,
-0.039850734174251556,
0.015323915518820286,
-0.020720679312944412,
0.0015422506257891655,
0.027216965332627296,
0.00955870933830738,
0.050023674964904785,
-0.02691318653523922,
-0.026988927274942398,
0.045655637979507446,
-0.00017992116045206785,
0.03717367723584175,
-0.04857521131634712,
0.03621261939406395,
-0.029068727046251297,
0.026399094611406326,
-0.01701674796640873,
-0.0077971178106963634,
-0.05143822357058525,
0.04986770451068878,
0.011606019921600819,
-0.023309476673603058,
-0.030131954699754715,
-0.008744840510189533,
-0.018071221187710762,
0.059745315462350845,
-0.0070756422355771065,
0.029651127755641937,
-0.038653142750263214,
0.06315678358078003,
-0.01376405544579029,
0.00019213212362956256,
-0.004163952544331551,
0.022037893533706665,
-0.036284033209085464,
-0.019290322437882423,
0.015601346269249916,
-0.019885228946805,
0.04551532119512558,
0.07553218305110931,
0.040538374334573746,
0.013163107447326183,
-0.006511232815682888,
-0.011650352738797665,
0.052865296602249146,
-0.049820899963378906,
-0.04473322629928589,
0.0038610929623246193,
0.03319747373461723,
0.00414474168792367,
0.0363859198987484,
0.031348004937171936,
-0.08218181133270264,
-0.04410320147871971,
0.04250587895512581,
0.025592144578695297,
0.023432930931448936,
0.0022409020457416773,
0.02157924883067608,
0.03722904622554779,
0.04064197838306427,
-0.02598734200000763,
0.0022248728200793266,
-0.015392305329442024,
-0.03828130289912224,
0.019532980397343636,
-0.006471092347055674,
0.0020652569364756346,
0.020894939079880714,
-0.007868913002312183,
-0.032326262444257736,
0.04698983579874039,
0.05345583334565163,
0.03759174421429634,
-0.019644519314169884,
-0.06262417882680893,
0.02584480680525303,
0.017459923401474953,
-0.04525366052985191,
0.007221328094601631,
-0.009202240966260433,
-0.013610079884529114,
0.06012945994734764,
0.02233964018523693,
0.03176680579781532,
0.03241773694753647,
0.06083279103040695,
-0.040240343660116196,
0.05406884849071503,
-0.007607967592775822,
0.02912881225347519,
0.05344390124082565,
-0.04668021202087402,
-0.021360401064157486,
-0.029062988236546516,
0.07556674629449844,
-0.06350760906934738,
0.055600088089704514,
0.0056593092158436775,
-0.00745846563950181,
0.0014092378551140428,
-0.025221144780516624,
-0.02535029500722885,
0.03450850769877434,
-0.02643369697034359,
0.055790118873119354,
0.007186560891568661,
-0.04804498702287674,
0.060686640441417694,
-0.0020566999446600676,
-0.07506120204925537,
0.05617554858326912,
0.011747987009584904,
0.018780801445245743,
0.060687437653541565,
0.025211632251739502,
-0.04808959364891052,
0.0019041994819417596,
-0.0488763228058815,
0.029300371184945107,
-0.03517500311136246,
0.006445745937526226,
0.020867446437478065,
-0.0281502865254879,
0.0084390165284276,
0.014772755093872547,
-0.004868161864578724,
-0.024166153743863106,
0.023363716900348663,
-0.04549384117126465,
-0.017760086804628372,
0.0020084488205611706,
0.04094923287630081,
0.0030705388635396957,
-0.0010833053383976221,
-0.025824973359704018,
-0.008868645876646042,
0.02126443013548851,
0.015781400725245476,
-0.005600265227258205,
-0.012909944169223309,
0.026942765340209007,
-0.051507532596588135,
-0.03029714524745941,
0.04021317884325981,
0.018383430317044258,
-0.03823963180184364,
0.025552039965987206,
-0.013181309215724468,
0.03667791187763214,
0.01851656660437584,
0.02018439769744873,
0.017893927171826363,
-0.030269594863057137,
-0.036759138107299805,
0.015713835135102272,
-0.022270038723945618,
0.017324449494481087,
-0.013486262410879135,
0.007483075372874737,
0.043374963104724884,
0.013868027366697788,
-0.002253427403047681,
-0.02890206314623356,
-0.009827516041696072,
0.03749682381749153,
-0.053674351423978806,
-0.00478509534150362,
-0.00020346023666206747,
-0.04093087837100029,
-0.03175513073801994,
-0.005783995147794485,
-0.01672315038740635,
0.0387088768184185,
-0.06935133785009384,
0.03280413895845413,
0.007461515720933676,
0.015377111732959747,
-0.05390233173966408,
-0.07665280252695084,
-0.03185374662280083,
-0.009400974959135056,
0.006048702634871006,
0.00642365962266922,
-0.016134168952703476,
0.03887561336159706,
-0.04535818099975586,
-0.05831814184784889,
0.017006002366542816,
0.03871461749076843,
0.016599783673882484,
0.02735704928636551,
0.029101887717843056,
-0.042108431458473206,
0.0367150641977787,
0.011692428961396217,
-0.014494515024125576,
0.039153389632701874,
-0.013955888338387012,
0.00012529456580523401,
0.04538392648100853,
0.013541086576879025,
-0.013112003915011883,
-0.014022015035152435,
-0.05904063954949379,
-0.0352838970720768,
-0.0352952778339386,
0.03384626284241676,
0.04147553816437721
] |
ChristopherA08/IndoELECTRA | [
"pytorch",
"electra",
"pretraining",
"id",
"dataset:oscar",
"transformers"
] | null | {
"architectures": [
"ElectraForPreTraining"
],
"model_type": "electra",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 4 | null | ---
language: id
datasets:
- oscar
---
# IndoBERT (Indonesian BERT Model)
## Model description
ELECTRA is a new method for self-supervised language representation learning. This repository contains the pre-trained Electra Base model (tensorflow 1.15.0) trained in a Large Indonesian corpus (~16GB of raw text | ~2B indonesian words).
IndoELECTRA is a pre-trained language model based on ELECTRA architecture for the Indonesian Language.
This model is base version which use electra-base config.
## Intended uses & limitations
#### How to use
```python
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("ChristopherA08/IndoELECTRA")
model = AutoModel.from_pretrained("ChristopherA08/IndoELECTRA")
tokenizer.encode("hai aku mau makan.")
[2, 8078, 1785, 2318, 1946, 18, 4]
```
## Training procedure
The training of the model has been performed using Google's original Tensorflow code on eight core Google Cloud TPU v2.
We used a Google Cloud Storage bucket, for persistent storage of training data and models.
| [
-0.020901726558804512,
-0.03038758598268032,
-0.011897576972842216,
0.01672341302037239,
0.02776537649333477,
0.033583544194698334,
-0.019120177254080772,
-0.0062095969915390015,
-0.02367556281387806,
0.052525606006383896,
0.03096015192568302,
-0.03733839467167854,
0.01443624310195446,
0.054783888161182404,
-0.045671526342630386,
-0.018608814105391502,
-0.01785683073103428,
0.015551642514765263,
-0.023335853591561317,
-0.018282098695635796,
0.00783094298094511,
0.006461769342422485,
0.010341889224946499,
0.047068316489458084,
-0.003820856800302863,
0.0275803841650486,
-0.02510679140686989,
0.03100251592695713,
0.057305123656988144,
-0.05777910351753235,
0.015300118364393711,
-0.028310075402259827,
-0.02358071506023407,
-0.01622765325009823,
-0.0400344543159008,
0.008350507356226444,
0.018763970583677292,
0.032558973878622055,
0.047845710068941116,
0.043324124068021774,
-0.006825284566730261,
0.026440920308232307,
-0.005495691206306219,
-0.04140551760792732,
0.04242781177163124,
-0.015928661450743675,
-0.03471339866518974,
-0.013897129334509373,
0.020229533314704895,
-0.022003209218382835,
-0.05675283446907997,
-0.07874542474746704,
-0.02729378081858158,
0.016566883772611618,
0.003234705189242959,
-0.013516170904040337,
-0.07164568454027176,
-0.0338287428021431,
0.06387478113174438,
-0.03531746193766594,
-0.04169034957885742,
0.012851065956056118,
-0.07384282350540161,
0.008820410817861557,
0.04750568047165871,
-0.007443964947015047,
0.01768280193209648,
-0.05078856647014618,
0.048794765025377274,
-0.020349418744444847,
0.061182085424661636,
-0.0455961674451828,
-0.008900458924472332,
-0.07109339535236359,
-0.030398879200220108,
-0.021985944360494614,
0.03629492223262787,
0.022524431347846985,
-0.028761081397533417,
0.047150250524282455,
0.023692583665251732,
-0.019906500354409218,
-0.003526929533109069,
-0.017613545060157776,
-0.0007622485863976181,
0.054530106484889984,
-0.021480796858668327,
0.0008939180988818407,
0.015917718410491943,
0.04729761555790901,
-0.06209319829940796,
-0.021926522254943848,
-0.020035823807120323,
-0.028065066784620285,
0.0017261868342757225,
0.03189057484269142,
0.027117760851979256,
0.004533010069280863,
0.03596564009785652,
0.03609337657690048,
0.049897607415914536,
0.04184533283114433,
-0.031236130744218826,
0.07686005532741547,
0.004343862179666758,
-0.012291524559259415,
-0.024825848639011383,
-0.04046953096985817,
-0.05124586820602417,
0.03595208004117012,
0.03055712953209877,
-0.06711677461862564,
-0.03088422492146492,
0.03704092279076576,
0.01741652376949787,
-0.023543046787381172,
0.05066705867648125,
-0.023690102621912956,
-0.05237249284982681,
-0.03128457069396973,
0.03005492314696312,
0.02819371037185192,
0.026565156877040863,
0.016659889370203018,
-0.055104680359363556,
0.021130502223968506,
-0.04055099934339523,
-0.024742746725678444,
-0.009876617230474949,
0.018182890489697456,
0.011993557214736938,
0.021184945479035378,
0.008034834638237953,
-0.03481271490454674,
0.0029467015992850065,
0.012346209026873112,
-0.07184392213821411,
0.054596010595560074,
0.026364190503954887,
0.10187572985887527,
-0.05138816311955452,
-0.029705915600061417,
0.013814068399369717,
0.006933640222996473,
-0.024754339829087257,
0.012815590016543865,
0.011872952803969383,
-0.03998700901865959,
-0.025165090337395668,
-0.020128872245550156,
0.04728565737605095,
-0.07171617448329926,
0.009398209862411022,
0.05527934432029724,
-0.01488473266363144,
0.03853771090507507,
-0.013877009972929955,
-0.027627626433968544,
0.0003412481164559722,
0.028218921273946762,
-0.02828659676015377,
0.040304169058799744,
0.007482543122023344,
-0.00381487631238997,
-0.037595976144075394,
-0.03814456984400749,
0.028375178575515747,
0.11239802837371826,
0.01677851378917694,
-0.012593268416821957,
-0.01964671164751053,
0.022481555119156837,
0.07265079766511917,
0.017287198454141617,
-0.017774280160665512,
0.028670266270637512,
0.0507638193666935,
0.041600584983825684,
-0.007403413765132427,
0.050758276134729385,
0.012118116021156311,
-0.020635230466723442,
-0.004588054958730936,
0.0003701804962474853,
0.018716860562562943,
-0.021282503381371498,
0.015377257950603962,
0.04436831921339035,
-0.007359989453107119,
-0.030591940507292747,
-0.01821811869740486,
0.07260269671678543,
-0.006421521306037903,
-0.021709376946091652,
-0.014273496344685555,
-0.019186275079846382,
-0.045942701399326324,
0.02849874272942543,
-0.031879961490631104,
-0.0075474996119737625,
-0.03417011350393295,
-0.014762707985937595,
0.0035497364588081837,
0.026142582297325134,
0.021260863170027733,
0.04009518399834633,
0.005143975373357534,
0.0950799360871315,
-0.05208438262343407,
0.023049890995025635,
-0.04734646528959274,
-0.05155477672815323,
-0.0009705594857223332,
0.025087717920541763,
0.033812981098890305,
0.03036552481353283,
0.010250224731862545,
-0.040933817625045776,
0.03202539309859276,
0.06035031005740166,
0.0638410747051239,
0.01895148493349552,
-0.02299158275127411,
-0.0067727230489254,
0.03637790307402611,
0.0485486276447773,
-0.041530024260282516,
-0.03047202341258526,
0.019213562831282616,
0.05555453896522522,
-0.009137049317359924,
0.03600650280714035,
-0.024064283818006516,
0.01546698808670044,
-0.03564212843775749,
-0.03655777871608734,
0.034040842205286026,
0.025161052122712135,
0.0239579938352108,
0.025070345029234886,
-0.01759096421301365,
-0.014741326682269573,
0.006159826647490263,
0.019339988008141518,
0.0003977646119892597,
-0.01017802581191063,
0.004503652919083834,
-0.0076428488828241825,
0.05476447194814682,
-0.04798734188079834,
0.0582256019115448,
-0.015584283508360386,
0.021428637206554413,
0.05376802757382393,
-0.03443821147084236,
0.05127299576997757,
0.028559919446706772,
0.032770853489637375,
-0.022131210193037987,
0.029229985550045967,
0.003434468526393175,
0.04778623580932617,
0.05729006975889206,
0.013673159293830395,
0.021333465352654457,
0.005421499256044626,
0.034310489892959595,
0.08084283024072647,
-0.008758848533034325,
0.023405473679304123,
0.04653587564826012,
0.09411241859197617,
0.008645140565931797,
-0.03680848702788353,
0.05798230320215225,
-0.06206417456269264,
0.021117083728313446,
-0.03749093785881996,
0.0015154159627854824,
-0.007531553506851196,
-0.002137267030775547,
0.049494486302137375,
0.006251951213926077,
0.005372202023863792,
0.014744365587830544,
0.017925217747688293,
-0.011594019830226898,
0.03342026472091675,
-0.0037005937192589045,
-0.0064127035439014435,
-0.014184916391968727,
-0.014249872416257858,
0.02092985063791275,
-0.0804370567202568,
-0.046345751732587814,
0.00833289697766304,
-0.060872383415699005,
-0.025948353111743927,
-0.07194870710372925,
-0.03869744390249252,
-0.06443355977535248,
-0.02098453976213932,
0.04888475686311722,
0.03702212870121002,
0.005003481172025204,
-0.014098867774009705,
0.005604869686067104,
-0.05856073275208473,
-0.028870901092886925,
-0.032576125115156174,
-0.04861785098910332,
-0.026190632954239845,
-0.08927171677350998,
0.0493764691054821,
0.011133363470435143,
0.02364196628332138,
-0.000574506470002234,
0.007990826852619648,
-0.014483419246971607,
-0.046227797865867615,
0.03486167639493942,
0.06763767451047897,
-0.04604019969701767,
-0.04454685375094414,
0.0358942449092865,
-0.01555357500910759,
0.00017594511155039072,
-0.031481046229600906,
-0.015534358099102974,
0.10181239992380142,
0.04717765375971794,
0.011978840455412865,
-0.0017089336179196835,
-0.007627018261700869,
-0.04273439943790436,
-0.05970381945371628,
-0.030047910287976265,
-0.0495978482067585,
-0.01675654761493206,
-0.0038744055200368166,
-0.05096929520368576,
-0.023692555725574493,
-0.03049929440021515,
0.004160256125032902,
-0.01120003405958414,
0.0007841167389415205,
0.02070208452641964,
0.05192846804857254,
0.042432017624378204,
0.038321785628795624,
-0.03876177594065666,
-0.019476722925901413,
0.028114648535847664,
0.026046147570014,
-0.0016033109277486801,
-0.05993817001581192,
-0.02187587507069111,
0.04765942320227623,
0.03125203028321266,
-0.008813814260065556,
-0.00036501456634141505,
0.07085759937763214,
0.038854509592056274,
0.0015074339462444186,
-0.002029013354331255,
0.0037185067776590586,
-0.04589275270700455,
-0.0156643595546484,
0.01267696637660265,
-0.03284914791584015,
-0.05944394692778587,
-0.008098148740828037,
-0.014177090488374233,
0.03826791048049927,
-0.07541117072105408,
-0.05376267433166504,
-0.0057292659766972065,
0.05176778882741928,
0.02015993371605873,
0.0089641772210598,
-0.04034550115466118,
-0.009710176847875118,
-0.043558668345212936,
-0.04991278052330017,
0.010230571031570435,
0.005244710016995668,
-0.0033536492846906185,
0.05770275369286537,
0.038515396416187286,
-0.01346947718411684,
0.04528237134218216,
0.030417082831263542,
0.05630091577768326,
-0.004027452785521746,
-0.04097065329551697,
0.009088583290576935,
-0.02241073176264763,
0.014831090345978737,
0.000557048711925745,
-0.001701107481494546,
-0.0416996106505394,
-0.08663308620452881,
-0.02615697868168354,
-0.014034895226359367,
-0.02120080776512623,
-0.009102845564484596,
0.030985185876488686,
-0.009659229777753353,
0.002985968952998519,
-0.011251678690314293,
0.010412245988845825,
0.025483839213848114,
-0.0323319248855114,
0.06389347463846207,
-0.02441861853003502,
0.009127596393227577,
-0.03237806260585785,
0.002146295038983226,
-0.032324470579624176,
-0.04994489997625351,
-0.02588840201497078,
0.03262234479188919,
0.029873698949813843,
0.04879596456885338,
0.09134809672832489,
0.011436994187533855,
-0.024388067424297333,
0.06377273797988892,
0.011774943210184574,
-0.010459472425282001,
-0.05069059506058693,
-0.039934199303388596,
-0.03838525712490082,
-0.026272621005773544,
-0.036901116371154785,
-0.013679501600563526,
0.028343375772237778,
0.02582957223057747,
-0.001331106061115861,
-0.02355785295367241,
-0.00207867962308228,
-0.013257875107228756,
-0.03574662655591965,
-0.07894214987754822,
-0.025049231946468353,
0.01688418909907341,
-0.011923737823963165,
0.02214634418487549,
0.023556983098387718,
0.016973331570625305,
0.08236505091190338,
0.038799818605184555,
-0.012349237687885761,
-0.04918414726853371,
0.030256884172558784,
0.029756693169474602,
-0.01593194529414177,
-0.08129120618104935,
-0.05016739293932915,
0.03510528802871704,
0.04812360182404518,
0.004510088823735714,
-0.08314630389213562,
0.009343763813376427,
0.03906334564089775,
-0.016177689656615257,
0.06158648803830147,
-0.01959351822733879,
0.03597189113497734,
0.08263614028692245,
-0.01001686230301857,
0.006659297738224268,
-0.02591601200401783,
-0.022839050740003586,
-0.00788796879351139,
0.030597519129514694,
-0.04435725510120392,
-0.04244329407811165,
-0.05675968527793884,
0.033620476722717285,
0.044042881578207016,
0.05717409774661064,
0.02368609979748726,
-0.018531348556280136,
-0.05008137971162796,
-0.011665980331599712,
0.05697071552276611,
-0.010952070355415344,
0.01494680717587471,
0.025390898808836937,
0.04653247073292732,
-0.03945831209421158,
-0.02700166404247284,
-0.029630830511450768,
-0.02163194864988327,
0.01703529991209507,
0.042107779532670975,
-0.031874097883701324,
-0.07359245419502258,
0.01622500643134117,
-0.0007301472942344844,
-0.01831410825252533,
-0.08196812123060226,
0.007824270986020565,
-0.016729267314076424,
-0.02030368149280548,
0.028441686183214188,
0.01748647727072239,
0.031028224155306816,
0.057334885001182556,
-0.00075521320104599,
0.015874389559030533,
-0.027079511433839798,
0.0320550911128521,
-0.028265273198485374,
-0.013220785185694695,
-0.025004126131534576,
-0.040101632475852966,
-0.018276860937476158,
-0.03662139177322388,
-0.04562218487262726,
-0.04290441796183586,
0.01155640184879303,
0.005946311168372631,
-0.030125658959150314,
0.002124933758750558,
-0.006911836564540863,
0.04927646741271019,
-0.037282075732946396,
-0.047679003328084946,
-0.03435554727911949,
-0.023295899853110313,
-0.06359035521745682,
-0.055844154208898544,
-0.006103052757680416,
0.032931018620729446,
0.026244081556797028,
0.012753112241625786,
0.02107052691280842,
-0.01792324334383011,
-0.007740088738501072,
-0.061321765184402466,
-0.003514824202284217,
-0.0009242351516149938,
-0.03519419953227043,
-0.0419931560754776,
0.0005667689838446677,
0.010317099280655384,
0.04600027948617935,
-0.03125540912151337,
0.040465325117111206,
-0.011408158577978611,
0.004551599267870188,
0.004554963670670986,
0.008518765680491924,
0.024008385837078094,
-0.07078380137681961,
-0.04808758571743965,
-0.03106803260743618,
-0.05382315069437027,
0.023205630481243134,
-0.03285229206085205,
-0.027503088116645813,
0.001837376388721168,
0.030884766951203346,
0.05658532679080963,
0.006793307606130838,
-0.036421194672584534,
0.013143455609679222,
-0.037892088294029236,
-0.0031644627451896667,
-0.03167859837412834,
0.04395643621683121,
-0.03659613057971001,
0.01746826432645321,
0.0035142083652317524,
0.004628781694918871,
-0.06533558666706085,
0.031111128628253937,
-0.004894420504570007,
-0.010193871334195137,
0.007274647243320942,
0.02083561010658741,
-0.032120008021593094,
0.023664990440011024,
-0.020388752222061157,
0.006280305329710245,
-0.012265398167073727,
0.07707436382770538,
-0.014569863677024841,
0.029574360698461533,
-0.0036455837544053793,
0.02093776874244213,
-0.04868987947702408,
-0.02496093511581421,
-0.004139666445553303,
-0.022160369902849197,
0.03414478898048401,
0.026291226968169212,
0.027701636776328087,
0.010782060213387012,
-0.04085901007056236,
0.004358647856861353,
-0.0029673597309738398,
-0.08716791123151779,
-0.01782308891415596,
-0.0107768215239048,
0.012476122006773949,
-0.000007070330866554286,
0.05628356710076332,
0.05689607188105583,
-0.06853754073381424,
-0.0553203783929348,
0.0609927624464035,
0.03417566791176796,
-0.011111154220998287,
-0.013610650785267353,
0.020943794399499893,
-0.017576025798916817,
0.056854113936424255,
-0.019451525062322617,
-0.0013532541925087571,
-0.02209571562707424,
-0.023910485208034515,
0.011706948280334473,
-0.01859242282807827,
0.013345569372177124,
-0.015139482915401459,
-0.02015066146850586,
-0.02147498168051243,
0.06316807121038437,
0.019780434668064117,
0.03949528932571411,
-0.008136997930705547,
-0.04230860248208046,
0.027906930074095726,
0.01011728961020708,
-0.04873678833246231,
-0.03037908673286438,
0.026688605546951294,
-0.044372837990522385,
0.10605974495410919,
-0.009776662103831768,
0.027785560116171837,
0.042908862233161926,
0.029006633907556534,
-0.017388224601745605,
0.04254612699151039,
-0.03416985273361206,
0.01984371989965439,
0.03885887563228607,
-0.026799777522683144,
-0.016915136948227882,
-0.01635345071554184,
0.05566699802875519,
-0.03728979453444481,
0.03599810600280762,
0.03940969333052635,
0.016234902665019035,
0.029718464240431786,
-0.04756033048033714,
0.0002756093454081565,
0.02650959976017475,
-0.04273651912808418,
0.06283561885356903,
-0.012799582444131374,
-0.06693748384714127,
0.06187566742300987,
0.04085772857069969,
-0.080928273499012,
0.05084588751196861,
0.026819303631782532,
0.01848064363002777,
0.030077720060944557,
0.04887422174215317,
-0.05887788161635399,
0.009260261431336403,
-0.05370170995593071,
0.02170008048415184,
-0.08449557423591614,
0.005242471117526293,
0.026924612000584602,
-0.024159936234354973,
-0.012872694060206413,
0.04602748900651932,
-0.013989666476845741,
-0.016978351399302483,
0.010954524390399456,
-0.07281673699617386,
-0.05790000036358833,
0.0031903183553367853,
0.016682466492056847,
-0.009638315066695213,
-0.015192979946732521,
-0.01135853212326765,
0.040680333971977234,
-0.018661119043827057,
-0.0016372965183109045,
-0.04466128349304199,
-0.0024912816006690264,
0.013367750681936741,
-0.022621121257543564,
-0.03401366248726845,
0.03313102573156357,
0.015770198777318,
-0.04055361822247505,
0.05427195876836777,
-0.0006184999365359545,
0.014963352121412754,
0.027419181540608406,
-0.01245352253317833,
0.02339845523238182,
-0.04592229425907135,
-0.006018413696438074,
-0.010638370178639889,
0.03145550563931465,
0.043736353516578674,
0.0010827435180544853,
0.019791362807154655,
0.044730789959430695,
0.03138522058725357,
-0.013628735207021236,
-0.05598315969109535,
-0.04201357811689377,
0.03505200892686844,
-0.05124833807349205,
0.026955539360642433,
-0.019775137305259705,
-0.029252052307128906,
-0.0264643132686615,
0.0015204879455268383,
-0.016708271577954292,
0.032928939908742905,
-0.03436500206589699,
0.03490518033504486,
0.032881077378988266,
0.0036613065749406815,
-0.06244821101427078,
-0.05526787415146828,
-0.020908428356051445,
-0.004568066913634539,
-0.0017486040014773607,
0.013888743706047535,
-0.01821586675941944,
0.02440888062119484,
-0.05286335572600365,
-0.08220864832401276,
0.046281855553388596,
0.020230811089277267,
-0.05551575869321823,
0.07259982824325562,
0.05023840814828873,
-0.06327489018440247,
0.020661521703004837,
0.034083861857652664,
-0.03990830481052399,
0.03600795567035675,
0.015412675216794014,
0.0001549063454149291,
0.023159688338637352,
0.03552268445491791,
-0.020241977646946907,
-0.01107586920261383,
-0.05248356610536575,
-0.01310037262737751,
-0.050565533339977264,
0.005127346143126488,
0.0798330307006836
] |
ChukSamuels/DialoGPT-small-Dr.FauciBot | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 13 | null | ---
tags:
- conversational
---
# Dr. Fauci DialoGPT Model | [
-0.029088571667671204,
0.015468232333660126,
0.024115674197673798,
0.008065166883170605,
0.010630602948367596,
0.014905967749655247,
-0.0028600525110960007,
0.024700092151761055,
-0.012895705178380013,
0.011968838050961494,
0.03872830420732498,
-0.012844613753259182,
0.006394188851118088,
0.03986155241727829,
-0.047465551644563675,
-0.031927309930324554,
-0.033005502074956894,
0.001890230574645102,
-0.03692726790904999,
-0.008711394853889942,
0.03613780066370964,
0.0003964494972024113,
-0.028747335076332092,
0.03951593488454819,
0.006772087421268225,
0.03474348783493042,
-0.0012357773957774043,
0.006815664935857058,
0.02966388128697872,
-0.03898469731211662,
0.023348528891801834,
-0.042595263570547104,
-0.026913868263363838,
-0.029087286442518234,
-0.025446156039834023,
-0.04112221300601959,
0.017200738191604614,
-0.01734425686299801,
-0.004087613429874182,
0.03363564983010292,
-0.01180447917431593,
-0.01018897071480751,
0.0013705785386264324,
-0.032042428851127625,
0.07972881942987442,
-0.0035245881881564856,
-0.05233871564269066,
-0.02353016845881939,
0.021791674196720123,
-0.03334955498576164,
-0.0452706478536129,
-0.08079225569963455,
-0.05496466904878616,
-0.01935996674001217,
0.016134144738316536,
-0.06295925378799438,
-0.06216903403401375,
-0.006129788234829903,
0.09523715078830719,
-0.013512769713997841,
0.0027009048499166965,
0.0031888384837657213,
-0.08301803469657898,
0.01002299040555954,
0.029008805751800537,
-0.08071117848157883,
0.01109983492642641,
-0.04617474228143692,
0.015972362831234932,
-0.030695440247654915,
0.041859716176986694,
-0.044387828558683395,
0.021280918270349503,
-0.06629228591918945,
-0.006522552575916052,
-0.002556918188929558,
0.05230196565389633,
0.06787145137786865,
-0.043391503393650055,
0.053405601531267166,
0.04153408110141754,
0.02107238955795765,
0.058113109320402145,
-0.004995428491383791,
-0.028228841722011566,
0.04173799231648445,
-0.04830922931432724,
0.013733649626374245,
0.0075333318673074245,
0.023537397384643555,
-0.021682996302843094,
-0.052494749426841736,
-0.014250971376895905,
-0.014150003902614117,
0.009404575452208519,
0.0439416766166687,
0.012158369645476341,
-0.027073802426457405,
0.009124558418989182,
0.04365501552820206,
0.015015366487205029,
0.04575575888156891,
-0.014677244238555431,
0.037862248718738556,
-0.008311646059155464,
0.03431010618805885,
0.02612302452325821,
-0.015582521446049213,
-0.0410599559545517,
0.022388143464922905,
0.007963918149471283,
-0.040020983666181564,
-0.024998022243380547,
0.04176818206906319,
0.011072731576859951,
0.002801714465022087,
0.0763271152973175,
-0.03191637247800827,
-0.0274860467761755,
-0.06744997948408127,
0.04722284898161888,
-0.00841569434851408,
-0.012907294556498528,
-0.008986382745206356,
-0.051887158304452896,
0.0018606288358569145,
-0.03927372768521309,
-0.016834311187267303,
-0.015955151990056038,
0.006558211054652929,
0.01780124381184578,
0.03448599576950073,
-0.030487120151519775,
-0.07122181355953217,
-0.005934002343565226,
0.036932237446308136,
-0.07496608793735504,
-0.00014166311302687973,
0.048765383660793304,
0.09884652495384216,
-0.07632475346326828,
-0.027293454855680466,
-0.008217248134315014,
0.027400344610214233,
-0.026417981833219528,
-0.01912512257695198,
0.006354156415909529,
-0.010482191108167171,
-0.043340183794498444,
-0.013730949722230434,
0.01873110793530941,
-0.05150466412305832,
0.002090596128255129,
0.05554777383804321,
0.012372100725769997,
0.026601670309901237,
-0.02003476768732071,
0.01084341760724783,
-0.00310654123313725,
-0.03329675272107124,
-0.058201875537633896,
0.04022150859236717,
-0.0313887782394886,
-0.0417226105928421,
-0.039426419883966446,
-0.037864912301301956,
0.02335592545568943,
0.0737086832523346,
0.02010561153292656,
-0.016983849927783012,
-0.029647110030055046,
0.03494904935359955,
0.06127719208598137,
0.034652650356292725,
-0.010902953334152699,
0.02164432965219021,
0.0499190017580986,
0.012637076899409294,
-0.03706325963139534,
0.07647392898797989,
0.011569315567612648,
-0.028287090361118317,
-0.04903728887438774,
-0.011424730531871319,
0.03492039069533348,
-0.02992338314652443,
0.014762993901968002,
0.042873986065387726,
-0.022122137248516083,
-0.03424345701932907,
0.010431126691401005,
0.03832826018333435,
-0.023664331063628197,
0.0011310887057334185,
-0.029584238305687904,
-0.028670893982052803,
-0.0355028361082077,
0.01558422576636076,
-0.033402878791093826,
-0.011784684844315052,
-0.0341363288462162,
-0.011460334062576294,
0.03979509696364403,
-0.0001222132268594578,
-0.0036566511262208223,
0.04923354089260101,
-0.00981217809021473,
0.06175222620368004,
-0.043165188282728195,
0.018436240032315254,
-0.03916015103459358,
-0.02533976547420025,
-0.026307130232453346,
0.037914540618658066,
0.02236391045153141,
0.058347463607788086,
-0.04511667415499687,
-0.043296929448843,
0.032524473965168,
0.05583765730261803,
0.04326356202363968,
0.020789099857211113,
-0.010036558844149113,
-0.006897381506860256,
0.04847247526049614,
0.03349298983812332,
-0.027858402580022812,
0.009252803400158882,
0.010141358710825443,
0.02311660349369049,
-0.02337307669222355,
-0.028369544073939323,
-0.04705527424812317,
0.020910903811454773,
-0.04617998003959656,
-0.05062856152653694,
0.04525458812713623,
0.040943313390016556,
-0.012865221127867699,
0.042798612266778946,
0.0035498959477990866,
-0.009905541315674782,
0.026498695835471153,
0.006625983398407698,
-0.0027176844887435436,
-0.07956603169441223,
0.014256932772696018,
0.04336113855242729,
0.1047801673412323,
-0.05844007804989815,
0.007177895400673151,
0.006374448072165251,
0.02177250199019909,
0.012238857336342335,
-0.027542833238840103,
0.043100856244564056,
0.0448707714676857,
0.041581325232982635,
-0.030838022008538246,
0.03303462266921997,
-0.006621901411563158,
0.031173545867204666,
0.054722316563129425,
-0.008713681250810623,
0.0777561292052269,
-0.015053468756377697,
0.025390135124325752,
0.051314808428287506,
0.01648496277630329,
-0.02749686874449253,
0.0199570395052433,
0.05939093232154846,
-0.003444683738052845,
0.028303280472755432,
0.04176071658730507,
-0.0027284191455692053,
0.0022000414319336414,
-0.04704321175813675,
-0.006240994203835726,
-0.005552867893129587,
-0.020871959626674652,
0.05669345706701279,
0.002738958690315485,
-0.013580371625721455,
-0.0026234190445393324,
0.006398816127330065,
0.002279499312862754,
0.05865325778722763,
-0.0017451182939112186,
-0.010359646752476692,
0.013168848119676113,
-0.0211543757468462,
0.019997939467430115,
-0.04182036221027374,
-0.04672224819660187,
-0.009700598195195198,
-0.06498263776302338,
-0.015448156744241714,
-0.09513574093580246,
-0.03502775728702545,
-0.07116632163524628,
-0.017873989418148994,
0.05533304065465927,
0.0248329509049654,
0.024037806317210197,
0.009903442114591599,
0.01106313057243824,
-0.01391111221164465,
-0.05924326553940773,
-0.057617418467998505,
-0.012336339801549911,
-0.015201338566839695,
-0.03546180948615074,
0.03155297040939331,
0.028590112924575806,
0.040436409413814545,
0.0003934145497623831,
-0.017063111066818237,
-0.02636302262544632,
-0.014108003117144108,
0.04052465036511421,
0.01683233119547367,
-0.055787961930036545,
-0.03432921692728996,
0.006466864142566919,
0.007582671940326691,
-0.005215649958699942,
-0.01760847307741642,
-0.0587751679122448,
0.0753111019730568,
0.03161988779902458,
0.013152552768588066,
0.01598317176103592,
-0.0016951067373156548,
-0.03290500491857529,
-0.016023702919483185,
-0.0556013360619545,
-0.031763285398483276,
0.0015312436735257506,
-0.014786955900490284,
-0.04840151593089104,
-0.032650597393512726,
-0.050045035779476166,
0.0017052431358024478,
0.0042859637178480625,
0.0024438383989036083,
0.019256040453910828,
0.015036367811262608,
0.018247956410050392,
0.021636145189404488,
-0.01619696617126465,
-0.018830914050340652,
0.04394632577896118,
-0.021470215171575546,
-0.0069252802059054375,
-0.06782880425453186,
-0.050476301461458206,
0.027908938005566597,
-0.011059778742492199,
-0.007386210840195417,
-0.028752213343977928,
0.027927512302994728,
0.039568305015563965,
0.009560864418745041,
0.0296847652643919,
-0.07225700467824936,
-0.00009249262075172737,
-0.03252030536532402,
-0.028696518391370773,
-0.03946477919816971,
-0.029103968292474747,
-0.012690125033259392,
-0.0033783912658691406,
0.039247266948223114,
-0.08839090168476105,
-0.03556625172495842,
-0.029522182419896126,
0.006526173558086157,
0.04897313565015793,
-0.007159103639423847,
-0.06415389478206635,
-0.006875693332403898,
-0.037822362035512924,
-0.02154790237545967,
-0.009350394830107689,
-0.021239597350358963,
0.005094102583825588,
0.02063916064798832,
0.01747359149158001,
-0.03337667137384415,
0.05705343931913376,
0.01768856681883335,
0.07244061678647995,
0.05248561128973961,
-0.03171096369624138,
0.03677165135741234,
-0.0301828496158123,
0.03312690183520317,
-0.007226215675473213,
-0.023707162588834763,
-0.03593297675251961,
-0.10959658771753311,
-0.048084575682878494,
0.033730436116456985,
-0.020919106900691986,
0.007065445184707642,
0.037189312279224396,
-0.05566206946969032,
-0.011089391075074673,
-0.009760824032127857,
0.0430695004761219,
0.050221122801303864,
-0.02851245366036892,
0.06678597629070282,
0.008522376418113708,
0.03000493161380291,
-0.06285727769136429,
-0.007908998057246208,
-0.051264215260744095,
-0.013120695948600769,
-0.007542833685874939,
0.05910259112715721,
0.0054288702085614204,
0.05850188434123993,
0.07245299220085144,
0.034775007516145706,
-0.03316153585910797,
0.05278401076793671,
0.07425928115844727,
-0.017992116510868073,
-0.036088474094867706,
0.003853938775137067,
-0.011439216323196888,
-0.01845099963247776,
-0.01505367737263441,
-0.03375015780329704,
0.031033450737595558,
0.034021686762571335,
-0.003243326907977462,
0.015338954515755177,
0.01283197570592165,
-0.045297663658857346,
-0.018702704459428787,
-0.05641666427254677,
-0.009465042501688004,
-0.004810372833162546,
-0.020029272884130478,
0.05331186577677727,
0.04503300413489342,
0.01401683408766985,
0.06388293951749802,
0.01059385109692812,
-0.024948960170149803,
-0.050664037466049194,
0.024596497416496277,
0.014639567583799362,
-0.035884980112314224,
-0.0434667244553566,
-0.046710312366485596,
0.034136928617954254,
0.04098040983080864,
-0.023410089313983917,
-0.08434033393859863,
0.03295356035232544,
0.05979064106941223,
-0.04638366773724556,
0.05728578194975853,
-0.00681802723556757,
0.044271618127822876,
0.036752622574567795,
0.012597671709954739,
0.046130795031785965,
-0.07511461526155472,
0.030893078073859215,
-0.022274760529398918,
0.02107345126569271,
-0.05166974663734436,
-0.04503593593835831,
-0.05510798469185829,
0.04523169621825218,
0.019548384472727776,
0.009140750393271446,
0.028421388939023018,
-0.042552363127470016,
-0.0441427081823349,
0.0017145462334156036,
0.04074973613023758,
-0.021785426884889603,
0.011218239553272724,
0.02677912265062332,
0.056911446154117584,
-0.05991988256573677,
0.002056346507743001,
0.01234489493072033,
0.023284194990992546,
0.020063763484358788,
-0.010381664149463177,
-0.04499684274196625,
-0.00836692564189434,
0.02654089219868183,
-0.03427083045244217,
-0.04330934211611748,
-0.09199391305446625,
0.02023286558687687,
-0.032351233065128326,
-0.034118954092264175,
0.07008197903633118,
0.05563193932175636,
0.05995243042707443,
0.06272681802511215,
-0.014101345092058182,
0.050751689821481705,
-0.026671569794416428,
0.014362338930368423,
-0.034304652363061905,
-0.03547747805714607,
0.005756196100264788,
-0.0812498927116394,
-0.03226775676012039,
-0.033157043159008026,
-0.053739290684461594,
-0.03538234904408455,
0.004814596846699715,
0.007582423277199268,
-0.00827632937580347,
-0.008387059904634953,
0.0013652164489030838,
0.006421216297894716,
-0.02186613343656063,
-0.01796087436378002,
-0.0033864674624055624,
-0.022979669272899628,
-0.07955213636159897,
-0.06568648666143417,
0.02048388496041298,
-0.025692827999591827,
0.0029400824569165707,
0.011922736652195454,
0.015053777024149895,
0.04332917928695679,
-0.004597039427608252,
-0.021860972046852112,
0.008466371335089207,
0.037989988923072815,
-0.030171271413564682,
-0.02723735384643078,
0.029827890917658806,
0.026219874620437622,
0.01297904271632433,
-0.030602868646383286,
0.04003267362713814,
0.016298430040478706,
-0.06433799862861633,
-0.031112167984247208,
0.025915896520018578,
0.014581372030079365,
-0.07080257683992386,
-0.00907585397362709,
-0.04234665259718895,
-0.01821056939661503,
0.01306814607232809,
-0.0447939969599247,
-0.019240522757172585,
-0.002563730115070939,
0.03946101292967796,
0.027465758845210075,
-0.0007490773568861187,
-0.020114639773964882,
-0.008423278108239174,
-0.009210104122757912,
0.004307773429900408,
-0.06793274730443954,
0.023933563381433487,
-0.02345862239599228,
0.014534623362123966,
-0.01615433767437935,
0.015291193500161171,
-0.04240651801228523,
0.05357770994305611,
-0.015539491549134254,
-0.0024156789295375347,
0.004283007234334946,
-0.023893773555755615,
-0.002858527237549424,
0.0554216131567955,
0.005722484551370144,
-0.003334743669256568,
-0.03386108949780464,
0.06332234293222427,
-0.05146240070462227,
-0.009084661491215229,
-0.00044204192818142474,
-0.034399569034576416,
-0.02468462474644184,
0.0040425267070531845,
0.0009826987516134977,
-0.04992787912487984,
0.03407113254070282,
0.020016061142086983,
0.03446882218122482,
0.03660886362195015,
0.001155103906057775,
0.01432533748447895,
0.022782234475016594,
-0.057698141783475876,
-0.036920998245477676,
0.00642111012712121,
0.0009064599289558828,
0.026362968608736992,
0.054856546223163605,
0.01898978464305401,
-0.0611797571182251,
-0.023647742345929146,
0.029146770015358925,
0.019805416464805603,
0.022008879110217094,
0.0043368348851799965,
0.0340115986764431,
0.05864555761218071,
0.052604515105485916,
-0.006578537169843912,
0.002159280236810446,
0.02223527617752552,
-0.013335466384887695,
-0.007686902768909931,
-0.0038296151906251907,
-0.0012893789680674672,
0.006389630492776632,
-0.017563017085194588,
-0.03273338824510574,
0.06474646925926208,
-0.013180691748857498,
0.002817923901602626,
-0.02916630543768406,
-0.04457930102944374,
0.06826456636190414,
-0.01138297375291586,
-0.03849484771490097,
-0.0006202061777003109,
0.036518532782793045,
-0.0324992761015892,
0.0234301146119833,
-0.020564435049891472,
0.01344482321292162,
0.06245705485343933,
0.0241911169141531,
0.0011383219389244914,
0.00276350905187428,
-0.01503006648272276,
-0.008919806219637394,
0.011887251399457455,
-0.0420360267162323,
-0.01327989250421524,
-0.029529079794883728,
0.07372630387544632,
-0.04615608602762222,
0.06117556244134903,
0.03108159266412258,
0.03943764045834541,
0.025598149746656418,
-0.05248815566301346,
-0.04215676710009575,
-0.01638062484562397,
-0.03814428672194481,
0.07365398854017258,
-0.014144577085971832,
-0.04844363033771515,
0.06552721560001373,
0.04237343370914459,
-0.0758214220404625,
0.03543245047330856,
0.03682294115424156,
0.03227139264345169,
0.02406367100775242,
0.05145835503935814,
-0.04142362251877785,
0.018012989312410355,
-0.01715477742254734,
0.003920364659279585,
-0.039881590753793716,
-0.006699984893202782,
-0.03154261037707329,
-0.04253732040524483,
-0.0003466182970441878,
0.0343894362449646,
-0.01737680844962597,
0.004380248486995697,
0.015345792286098003,
-0.014521757140755653,
-0.05231703817844391,
0.0031916534062474966,
0.026013847440481186,
-0.006429695058614016,
-0.016795020550489426,
-0.03036644496023655,
0.02440568618476391,
0.04088098555803299,
-0.003619654104113579,
-0.057341236621141434,
0.022089457139372826,
-0.011363358236849308,
-0.06768354773521423,
-0.0503588430583477,
0.06553807854652405,
0.024354320019483566,
-0.0018105364870280027,
-0.014951147139072418,
0.04598591476678848,
0.02588605135679245,
0.03409460932016373,
-0.017684172838926315,
0.001345203840173781,
-0.07562169432640076,
0.0027558065485209227,
0.01413043774664402,
0.001813155715353787,
0.001870012958534062,
-0.0177919901907444,
0.03360408917069435,
0.07857836782932281,
0.04111267626285553,
0.004774285946041346,
-0.03707283362746239,
-0.030302446335554123,
-0.0015447339974343777,
-0.035594500601291656,
0.05296827480196953,
0.00331298541277647,
-0.06332217156887054,
-0.03597662225365639,
-0.03041326254606247,
0.006317486055195332,
0.03251928463578224,
-0.02662510611116886,
0.015246366150677204,
0.024954745545983315,
-0.0039051177445799112,
-0.03517535701394081,
-0.10269001871347427,
-0.04886471852660179,
-0.01927890069782734,
0.031375739723443985,
0.022020120173692703,
-0.06770041584968567,
0.02251332812011242,
-0.02312540076673031,
0.0029471435118466616,
0.06267407536506653,
-0.016323767602443695,
-0.015373571775853634,
0.07159825414419174,
0.061775438487529755,
-0.03232073411345482,
0.06380871683359146,
0.03441516309976578,
-0.024433793500065804,
0.061640992760658264,
0.013134258799254894,
0.029525121673941612,
0.009418799541890621,
0.022783935070037842,
-0.007817264646291733,
-0.018780065700411797,
-0.003184583503752947,
-0.03170298784971237,
0.004763666074723005,
0.0011781365610659122,
0.04984540492296219
] |
Cinnamon/electra-small-japanese-discriminator | [
"pytorch",
"electra",
"pretraining",
"ja",
"transformers",
"license:apache-2.0"
] | null | {
"architectures": [
"ElectraForPreTraining"
],
"model_type": "electra",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 419 | null | ---
language: ja
license: apache-2.0
---
## Japanese ELECTRA-small
We provide a Japanese **ELECTRA-Small** model, as described in [ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators](https://openreview.net/pdf?id=r1xMH1BtvB).
Our pretraining process employs subword units derived from the [Japanese Wikipedia](https://dumps.wikimedia.org/jawiki/latest), using the [Byte-Pair Encoding](https://www.aclweb.org/anthology/P16-1162.pdf) method and building on an initial tokenization with [mecab-ipadic-NEologd](https://github.com/neologd/mecab-ipadic-neologd). For optimal performance, please take care to set your MeCab dictionary appropriately.
## How to use the discriminator in `transformers`
```
from transformers import BertJapaneseTokenizer, ElectraForPreTraining
tokenizer = BertJapaneseTokenizer.from_pretrained('Cinnamon/electra-small-japanese-discriminator', mecab_kwargs={"mecab_option": "-d /usr/lib/x86_64-linux-gnu/mecab/dic/mecab-ipadic-neologd"})
model = ElectraForPreTraining.from_pretrained('Cinnamon/electra-small-japanese-discriminator')
```
| [
-0.02161187306046486,
-0.02095971070230007,
-0.0014227642677724361,
0.03935916721820831,
0.03975844010710716,
0.030973073095083237,
-0.0007872945279814303,
-0.009710375219583511,
-0.04628976434469223,
0.055314961820840836,
-0.0009499362204223871,
-0.012028593569993973,
0.00016484395018778741,
0.037117403000593185,
-0.0582415945827961,
-0.024285681545734406,
-0.024845868349075317,
-0.024823298677802086,
-0.031333792954683304,
-0.019585927948355675,
0.013717756606638432,
-0.011298161000013351,
0.000663895858451724,
0.025950968265533447,
-0.005693482700735331,
-0.006052435375750065,
-0.0317511148750782,
0.021859686821699142,
0.028365308418869972,
-0.05278851464390755,
-0.006067036651074886,
-0.023402320221066475,
-0.04094720259308815,
-0.035145021975040436,
-0.036938320845365524,
-0.022712262347340584,
-0.005042802542448044,
-0.0019520261557772756,
0.026058075949549675,
0.06958279758691788,
0.014966255985200405,
0.0054244836792349815,
-0.009671192616224289,
-0.012676311656832695,
0.02869834005832672,
0.014268548227846622,
-0.004537984263151884,
-0.0027701123617589474,
0.028120005503296852,
-0.03816060349345207,
-0.05822009965777397,
-0.07540083676576614,
-0.030269987881183624,
0.013180714100599289,
-0.020730596035718918,
-0.013465330004692078,
-0.06698433309793472,
-0.010077172890305519,
0.03999048098921776,
-0.04726938530802727,
-0.01740620844066143,
0.017891384661197662,
-0.08791793137788773,
0.045477405190467834,
0.03175578638911247,
-0.022363577038049698,
0.00498308427631855,
-0.04848012700676918,
0.02364559844136238,
-0.010028713382780552,
0.049162574112415314,
-0.03578413650393486,
0.012142609804868698,
-0.09973160177469254,
-0.020292649045586586,
-0.021052910014986992,
0.02755504474043846,
0.04039837419986725,
-0.03940984234213829,
0.053363580256700516,
0.009419634938240051,
0.02878844179213047,
0.034441497176885605,
-0.013925887644290924,
-0.008231669664382935,
0.0484076663851738,
-0.03262278810143471,
0.003854395356029272,
-0.015295293182134628,
0.04766027629375458,
-0.061193838715553284,
-0.04082955792546272,
-0.036038100719451904,
-0.024954991415143013,
-0.02468407340347767,
0.03730959817767143,
0.033145904541015625,
-0.0021891999058425426,
0.06960287690162659,
0.019950170069932938,
0.0464189387857914,
0.05538959428668022,
-0.01139017939567566,
0.020665043964982033,
-0.03085976280272007,
0.00890774093568325,
-0.017803577706217766,
-0.052631646394729614,
-0.028740618377923965,
0.046665262430906296,
0.021077753975987434,
-0.02252403274178505,
-0.056583765894174576,
0.04509584605693817,
0.023321077227592468,
-0.042971689254045486,
0.05051104351878166,
-0.004947826731950045,
-0.029792267829179764,
-0.03974742814898491,
0.028340985998511314,
0.029486192390322685,
-0.009594044648110867,
0.006842656061053276,
-0.05979669466614723,
0.03506952524185181,
-0.041380368173122406,
-0.01889410801231861,
0.0019937388133257627,
0.017793333157896996,
-0.008744420483708382,
0.03856785595417023,
0.010522441007196903,
-0.021759796887636185,
-0.007317250594496727,
0.0002950596099253744,
-0.08521582931280136,
0.054477378726005554,
0.054050710052251816,
0.09920013695955276,
-0.04186411201953888,
-0.0056413630954921246,
0.004278212320059538,
0.008420812897384167,
-0.028667183592915535,
0.010156176052987576,
0.0018302261596545577,
-0.07308883219957352,
-0.03448484465479851,
-0.019331445917487144,
0.027307428419589996,
-0.049152251332998276,
-0.008749758824706078,
0.05858541652560234,
-0.017018280923366547,
0.04615594074130058,
-0.04768837243318558,
-0.01292521134018898,
0.012752443552017212,
-0.006822348106652498,
-0.02818228490650654,
0.03656534478068352,
-0.002776395296677947,
-0.002993234433233738,
-0.0528767928481102,
-0.05870907008647919,
-0.015810394659638405,
0.11119455099105835,
-0.009138831868767738,
-0.029610561206936836,
-0.008161152713000774,
0.02333862893283367,
0.04382163658738136,
0.040047839283943176,
-0.02494453825056553,
0.026013964787125587,
0.05338352918624878,
0.050362542271614075,
-0.008753711357712746,
0.05771437659859657,
0.04274638369679451,
-0.018199097365140915,
-0.029421303421258926,
0.004399422090500593,
0.01760171167552471,
-0.04556471109390259,
0.009638333693146706,
0.0030360727105289698,
0.000700835429597646,
-0.027511639520525932,
0.006992320530116558,
0.07444623112678528,
-0.009233194403350353,
0.008229998871684074,
0.008237794041633606,
-0.013314732350409031,
-0.036332886666059494,
0.06713270395994186,
-0.030032144859433174,
-0.016910899430513382,
-0.029890283942222595,
-0.025909120216965675,
0.004793332424014807,
0.02796303667128086,
0.030765466392040253,
0.03827022761106491,
-0.0031057095620781183,
0.061090435832738876,
-0.027341600507497787,
0.01926848106086254,
-0.042451027780771255,
-0.0435248538851738,
0.018179437145590782,
0.027721205726265907,
0.028612449765205383,
0.03762516379356384,
-0.0009908853098750114,
-0.03609272465109825,
0.01776040531694889,
0.08235328644514084,
0.05044945329427719,
0.004704551305621862,
-0.040116772055625916,
0.008146801963448524,
0.01455911248922348,
0.06395324319601059,
-0.0633421316742897,
-0.03731091320514679,
0.04026493802666664,
0.06272688508033752,
-0.014584612101316452,
0.029926268383860588,
-0.0008923139539547265,
-0.005808079149574041,
-0.05557975172996521,
-0.07339128851890564,
0.014100602827966213,
0.04034951701760292,
0.01955527253448963,
0.014459257014095783,
0.018391262739896774,
0.020801091566681862,
0.02962961420416832,
0.03191755339503288,
-0.0014673174591735005,
-0.04616539552807808,
0.0021277759224176407,
0.01759449765086174,
0.03092152439057827,
-0.04531662166118622,
0.03421952947974205,
-0.014902545139193535,
0.017208267003297806,
0.02452395111322403,
-0.03248878940939903,
0.032174982130527496,
-0.0004044399247504771,
0.01764308288693428,
-0.036650776863098145,
0.030716057866811752,
0.005803143605589867,
0.03144126012921333,
0.0798615887761116,
0.011336046271026134,
0.06534815579652786,
-0.007898791693150997,
0.05583814159035683,
0.07287584990262985,
0.00727559719234705,
0.03942078351974487,
0.03744818642735481,
0.07537122070789337,
0.005489277187734842,
-0.0011695175198838115,
0.06851182878017426,
-0.03357679396867752,
0.011059188283979893,
-0.031193288043141365,
0.025235038250684738,
0.010212869383394718,
-0.014480886049568653,
0.028767960146069527,
0.007702774368226528,
-0.013428169302642345,
0.0016468592220917344,
-0.02505304664373398,
-0.0077678970992565155,
0.024031775072216988,
-0.015514615923166275,
0.01254262775182724,
0.017702724784612656,
-0.02676490508019924,
0.0043332576751708984,
-0.07375800609588623,
-0.043819598853588104,
0.006635269150137901,
-0.026561221107840538,
-0.029826879501342773,
-0.08184786885976791,
-0.004353063181042671,
-0.06900150328874588,
-0.025569086894392967,
0.04179517552256584,
0.02480645477771759,
0.0017977335955947638,
-0.034735217690467834,
0.03943842276930809,
-0.03511134907603264,
-0.03241179138422012,
-0.025189688429236412,
-0.05830017477273941,
-0.025318140164017677,
-0.07674537599086761,
0.04030966758728027,
0.03063848800957203,
0.004108000081032515,
0.02115044742822647,
0.024749521166086197,
0.007674827706068754,
-0.05009327456355095,
0.032224953174591064,
0.02055833861231804,
-0.03292373567819595,
-0.05180874839425087,
0.033223219215869904,
-0.018595056608319283,
-0.019258512184023857,
-0.004195963032543659,
-0.017502129077911377,
0.06484204530715942,
0.0676947757601738,
0.007103506941348314,
0.003717580810189247,
-0.007935008965432644,
-0.05220108479261398,
-0.0644524022936821,
-0.030618559569120407,
-0.05185071378946304,
-0.023676639422774315,
-0.02441509999334812,
-0.04369911924004555,
-0.01964079774916172,
-0.05438927561044693,
-0.0016764480387791991,
-0.01118521485477686,
0.005821860395371914,
0.03408234566450119,
0.03782087564468384,
0.038791876286268234,
0.03716051205992699,
-0.03005763329565525,
-0.024444788694381714,
0.033738791942596436,
-0.0008973943185992539,
0.006870893761515617,
-0.06338897347450256,
-0.028815580531954765,
0.03753923624753952,
0.038333434611558914,
-0.004521028138697147,
-0.04236951842904091,
0.06680194288492203,
0.032167933881282806,
-0.014027880504727364,
0.0037166120018810034,
-0.006676395423710346,
-0.01415674202144146,
-0.009391143918037415,
0.010849379934370518,
-0.013549364171922207,
-0.04963995888829231,
-0.03783072158694267,
-0.023264972493052483,
0.04899846762418747,
-0.048489414155483246,
-0.05504068732261658,
-0.012543349526822567,
0.030280912294983864,
0.016085220500826836,
0.005607900209724903,
-0.027806922793388367,
0.008872704580426216,
-0.035475943237543106,
-0.030349381268024445,
0.012962094508111477,
0.003613455919548869,
0.013356644660234451,
0.062038421630859375,
0.01359762903302908,
-0.007977928034961224,
0.024488035589456558,
0.037023186683654785,
0.07595042139291763,
0.02188177965581417,
-0.031209459528326988,
0.02332555316388607,
-0.028322795405983925,
0.020028075203299522,
0.010790749453008175,
0.019009068608283997,
-0.027012484148144722,
-0.08168631047010422,
-0.0021415736991912127,
0.004467553459107876,
-0.027927681803703308,
-0.015895545482635498,
0.050423406064510345,
-0.020187877118587494,
0.0018656000029295683,
-0.018354272469878197,
0.030276987701654434,
0.03427332639694214,
-0.04971569404006004,
0.06880415976047516,
0.0106211481615901,
0.049341920763254166,
-0.07792440801858902,
-0.01298588514328003,
-0.023527158424258232,
-0.041307613253593445,
0.012059511616826057,
0.0604574978351593,
0.011825719848275185,
0.04179099202156067,
0.08332914113998413,
0.03001129999756813,
-0.02922167256474495,
0.04213273525238037,
0.05005621537566185,
0.015895724296569824,
-0.04229944944381714,
-0.008852413855493069,
-0.045582618564367294,
-0.030844559893012047,
-0.007816274650394917,
-0.046497642993927,
0.02133244089782238,
0.03673341125249863,
-0.0002296630700584501,
-0.029178250581026077,
0.005455317907035351,
-0.016596322879195213,
-0.02567329816520214,
-0.060661304742097855,
-0.020449360832571983,
0.011542882770299911,
-0.01876021735370159,
0.01877749338746071,
0.036313533782958984,
0.021838681772351265,
0.06577884405851364,
0.05897485837340355,
-0.020793763920664787,
-0.0348612479865551,
0.018760040402412415,
0.03301769122481346,
-0.05530190095305443,
-0.06137605756521225,
-0.05548285320401192,
0.031007537618279457,
0.04852434620261192,
-0.015184395015239716,
-0.08742495626211166,
0.015795961022377014,
0.02306985668838024,
-0.02390480786561966,
0.0760522112250328,
-0.008557661436498165,
0.04834296926856041,
0.06516827642917633,
-0.020278608426451683,
0.009088002145290375,
-0.0182906836271286,
-0.013039354234933853,
-0.008669792674481869,
0.033095572143793106,
-0.01747221127152443,
-0.046562984585762024,
-0.06683048605918884,
0.02708234079182148,
0.022375119850039482,
0.04664893448352814,
0.02778209000825882,
-0.007433851715177298,
-0.0497884564101696,
0.007772071752697229,
0.026642346754670143,
-0.028153128921985626,
0.0025922993663698435,
0.029330654069781303,
0.05131794512271881,
-0.034514281898736954,
-0.02725578099489212,
-0.029912211000919342,
0.00015648519911337644,
0.03457381948828697,
0.008335593156516552,
-0.023889541625976562,
-0.057467684149742126,
0.011310293339192867,
-0.009893202222883701,
-0.016080323606729507,
-0.09747350215911865,
0.04832930490374565,
-0.011483852751553059,
-0.010400744155049324,
0.05332092195749283,
0.01910492032766342,
0.014212178066372871,
0.049484770745038986,
0.004176834132522345,
0.029515599831938744,
-0.04647123068571091,
0.047383420169353485,
-0.031152794137597084,
-0.009330661036074162,
-0.009005884639918804,
-0.0436517670750618,
-0.011495321057736874,
-0.008370892144739628,
-0.044330015778541565,
-0.042118534445762634,
-0.004155444912612438,
0.01736830547451973,
-0.0049058543518185616,
-0.006821042392402887,
-0.02520117536187172,
0.029855387285351753,
-0.04978196322917938,
-0.02916407771408558,
-0.011408261023461819,
-0.020620502531528473,
-0.07649915665388107,
-0.033160384744405746,
0.029342016205191612,
0.04383595660328865,
0.033735405653715134,
0.005333896726369858,
-0.0012845414457842708,
0.04093378782272339,
0.0011588794877752662,
-0.027946699410676956,
0.006538607180118561,
0.01416854839771986,
-0.02907905913889408,
-0.03951039910316467,
0.003601736156269908,
0.01729218289256096,
0.021745799109339714,
-0.024920986965298653,
0.03156331926584244,
0.02437645010650158,
-0.001364248339086771,
-0.017583444714546204,
-0.002256163163110614,
0.02039540559053421,
-0.08325479179620743,
-0.05730464309453964,
-0.0023936531506478786,
-0.07153663039207458,
0.030696868896484375,
-0.014436868019402027,
-0.0195001270622015,
0.03791335970163345,
0.010014079511165619,
0.022589361295104027,
-0.02583589032292366,
-0.003665011143311858,
0.04903944209218025,
-0.007684682961553335,
0.016765866428613663,
-0.03796570375561714,
0.03309659659862518,
-0.026402175426483154,
0.002085350686684251,
-0.017408940941095352,
0.0045637269504368305,
-0.06159193813800812,
0.020565716549754143,
-0.009207358583807945,
-0.0012157723540440202,
0.0030431344639509916,
0.039322856813669205,
-0.034033846110105515,
0.04005694016814232,
-0.013676060363650322,
0.01511742640286684,
-0.01010147389024496,
0.047102153301239014,
-0.0579516775906086,
0.013918614946305752,
-0.0019031136762350798,
0.0026922193355858326,
-0.04746702313423157,
-0.04063465818762779,
-0.013499436900019646,
-0.04456083104014397,
0.01284792460501194,
0.05387498438358307,
0.022385943681001663,
0.04682758077979088,
-0.02436203323304653,
-0.007128051482141018,
0.006739567033946514,
-0.05855570733547211,
-0.023888716474175453,
-0.016683463007211685,
0.02890881896018982,
-0.007168511860072613,
0.06992656737565994,
0.06145543232560158,
-0.05495123565196991,
-0.04700441285967827,
0.05331697687506676,
0.024327736347913742,
0.0007950399885885417,
-0.01992880553007126,
0.029804427176713943,
0.017691200599074364,
0.037660788744688034,
-0.03837009519338608,
-0.010632768273353577,
-0.02809552475810051,
-0.010449803434312344,
0.021832242608070374,
-0.009753386490046978,
0.0258986447006464,
-0.004941155202686787,
-0.034103795886039734,
-0.025095459073781967,
0.06271456182003021,
0.022613955661654472,
0.04652798920869827,
0.014904693700373173,
-0.04796834662556648,
0.015374400652945042,
-0.012801764532923698,
-0.06797236204147339,
-0.006815948989242315,
0.001289392588660121,
-0.02382086217403412,
0.08222556114196777,
-0.02564995363354683,
0.026932360604405403,
0.03725383058190346,
0.013169841840863228,
-0.0068450686521828175,
0.038538023829460144,
-0.051640693098306656,
0.008213204331696033,
0.04059269651770592,
-0.04001426696777344,
-0.018065717071294785,
-0.028260082006454468,
0.07366088032722473,
-0.054267480969429016,
0.04599682614207268,
0.02979603223502636,
0.009282396174967289,
0.0301163699477911,
-0.03020707331597805,
-0.030176270753145218,
0.036753859370946884,
-0.0264415442943573,
0.07989790290594101,
0.03229686990380287,
-0.08155877888202667,
0.06699264794588089,
0.041867367923259735,
-0.08077187836170197,
0.040156248956918716,
0.03542773798108101,
0.055080629885196686,
0.038778696209192276,
0.07079850137233734,
-0.04071246087551117,
0.006418042350560427,
-0.04027288034558296,
0.01668667234480381,
-0.05622691661119461,
-0.0007244409061968327,
0.022389721125364304,
-0.049448151141405106,
-0.027363207191228867,
0.02391296997666359,
-0.001622027950361371,
-0.009504785761237144,
0.04436996579170227,
-0.057630911469459534,
-0.06035507842898369,
-0.012687724083662033,
0.03611584007740021,
-0.027430612593889236,
-0.006736313924193382,
-0.024378832429647446,
0.0013266121968626976,
0.01883074641227722,
-0.03294399380683899,
-0.06522967666387558,
-0.00709900539368391,
0.03733571618795395,
-0.05459168553352356,
-0.023283429443836212,
0.03554083779454231,
0.015819696709513664,
-0.004406342748552561,
0.05549706518650055,
-0.01370229385793209,
0.021576564759016037,
0.026934798806905746,
-0.0012893310049548745,
0.032884854823350906,
-0.0652671530842781,
-0.0037904607597738504,
0.00020498843514360487,
0.022055448964238167,
0.04407260939478874,
-0.014834098517894745,
0.024079907685518265,
0.04404468461871147,
0.006190923973917961,
0.0017943551065400243,
-0.055381760001182556,
-0.04217526316642761,
0.029293270781636238,
-0.05009228736162186,
0.04833259806036949,
0.003919058479368687,
-0.030918382108211517,
-0.04319476708769798,
-0.0285743810236454,
-0.04068547114729881,
0.035753000527620316,
-0.060006868094205856,
0.006313914433121681,
0.02774321660399437,
-0.006358950398862362,
-0.03842545673251152,
-0.08498621731996536,
-0.019534416496753693,
-0.024879228323698044,
0.0034669670276343822,
0.025812458246946335,
-0.03650227189064026,
0.04162446781992912,
-0.03601832315325737,
-0.08356453478336334,
0.04501043260097504,
0.03335151448845863,
-0.04283618927001953,
0.056322041898965836,
0.05921415239572525,
-0.039629921317100525,
0.004654948599636555,
0.030863838270306587,
-0.04775477945804596,
0.03988638147711754,
0.01988052949309349,
0.012450162321329117,
0.02859492599964142,
0.02447751723229885,
-0.012550845742225647,
-0.027836505323648453,
-0.06222934275865555,
-0.007349134888499975,
-0.026985755190253258,
-0.013178412802517414,
0.06538833677768707
] |
Cinnamon/electra-small-japanese-generator | [
"pytorch",
"electra",
"fill-mask",
"ja",
"transformers",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"ElectraForMaskedLM"
],
"model_type": "electra",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 19 | null | ---
language: ja
---
## Japanese ELECTRA-small
We provide a Japanese **ELECTRA-Small** model, as described in [ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators](https://openreview.net/pdf?id=r1xMH1BtvB).
Our pretraining process employs subword units derived from the [Japanese Wikipedia](https://dumps.wikimedia.org/jawiki/latest), using the [Byte-Pair Encoding](https://www.aclweb.org/anthology/P16-1162.pdf) method and building on an initial tokenization with [mecab-ipadic-NEologd](https://github.com/neologd/mecab-ipadic-neologd). For optimal performance, please take care to set your MeCab dictionary appropriately.
```
# ELECTRA-small generator usage
from transformers import BertJapaneseTokenizer, ElectraForMaskedLM
tokenizer = BertJapaneseTokenizer.from_pretrained('Cinnamon/electra-small-japanese-generator', mecab_kwargs={"mecab_option": "-d /usr/lib/x86_64-linux-gnu/mecab/dic/mecab-ipadic-neologd"})
model = ElectraForMaskedLM.from_pretrained('Cinnamon/electra-small-japanese-generator')
```
| [
-0.01789187267422676,
-0.029390642419457436,
0.00015473771782126278,
0.04486081004142761,
0.039674799889326096,
0.02391248196363449,
-0.0019621571991592646,
-0.01370853278785944,
-0.041343942284584045,
0.05432415381073952,
-0.0004405998042784631,
-0.015525671653449535,
-0.0028482095804065466,
0.04153919219970703,
-0.05456644669175148,
-0.025648150593042374,
-0.02426767535507679,
-0.023788778111338615,
-0.0364375114440918,
-0.016235673800110817,
0.007300774101167917,
-0.004462894052267075,
0.0043818107806146145,
0.029746897518634796,
-0.007386444136500359,
0.0026598190888762474,
-0.024758361279964447,
0.014447678811848164,
0.02700723335146904,
-0.04862901568412781,
-0.01013576053082943,
-0.017412234097719193,
-0.04178217425942421,
-0.02836749702692032,
-0.03766167163848877,
-0.03324240818619728,
-0.0075848288834095,
0.001919376663863659,
0.022927945479750633,
0.06870925426483154,
0.014600187540054321,
0.000851984485052526,
-0.009526845999062061,
-0.007114788051694632,
0.023927783593535423,
0.01551938708871603,
-0.0065717268735170364,
0.0021022818982601166,
0.030330639332532883,
-0.0353294275701046,
-0.05289027839899063,
-0.07568657398223877,
-0.028045548126101494,
0.010744930244982243,
-0.026217157021164894,
-0.01810615509748459,
-0.06612717360258102,
-0.005945073440670967,
0.04663251340389252,
-0.051451314240694046,
-0.018590779975056648,
0.016337351873517036,
-0.09386488050222397,
0.044267043471336365,
0.031474519520998,
-0.02212049625813961,
0.0004504845419432968,
-0.04683857783675194,
0.02537413313984871,
-0.007191729731857777,
0.040992893278598785,
-0.04254471883177757,
0.012099350802600384,
-0.09991474449634552,
-0.01830303482711315,
-0.020191559568047523,
0.029642025008797646,
0.03568299487233162,
-0.04752722382545471,
0.052835505455732346,
0.007084585726261139,
0.025191329419612885,
0.028931161388754845,
-0.014216111972928047,
-0.01630454882979393,
0.039039164781570435,
-0.029863528907299042,
0.005800233222544193,
-0.008903207257390022,
0.048577867448329926,
-0.05838068202137947,
-0.04032033309340477,
-0.03888896480202675,
-0.026215629652142525,
-0.02569698542356491,
0.03473813459277153,
0.03207295760512352,
-0.003719238331541419,
0.06779566407203674,
0.018488971516489983,
0.029824962839484215,
0.05805490165948868,
-0.005422832444310188,
0.025157209485769272,
-0.03199099749326706,
0.00934965442866087,
-0.01638614945113659,
-0.05610719695687294,
-0.02537483535706997,
0.043381739407777786,
0.017774438485503197,
-0.026789451017975807,
-0.057412825524806976,
0.0478605218231678,
0.021274227648973465,
-0.046392545104026794,
0.04184410721063614,
0.0017104475991800427,
-0.031321655958890915,
-0.047735996544361115,
0.034517765045166016,
0.026007557287812233,
-0.009055973030626774,
0.010495924390852451,
-0.0694476068019867,
0.04420103877782822,
-0.04523555189371109,
-0.01450320053845644,
0.0073020881973207,
0.02661079354584217,
-0.01983400247991085,
0.03318103775382042,
0.01422555185854435,
-0.022905616089701653,
-0.004186222795397043,
-0.009230767376720905,
-0.0844377651810646,
0.04962117597460747,
0.047880832105875015,
0.10299340635538101,
-0.034965455532073975,
-0.01295758318156004,
0.010069181211292744,
0.011155808344483376,
-0.029523836448788643,
0.003971063066273928,
-0.0025526098906993866,
-0.061168693006038666,
-0.030082330107688904,
-0.017376329749822617,
0.02563529461622238,
-0.053264982998371124,
-0.002708297921344638,
0.05763635411858559,
-0.010988493449985981,
0.04845423251390457,
-0.05344280228018761,
-0.016861796379089355,
0.019475536420941353,
-0.010360571555793285,
-0.021367380395531654,
0.030868113040924072,
-0.0007964360411278903,
-0.007852025330066681,
-0.055973589420318604,
-0.05876865237951279,
-0.01706492342054844,
0.10227921605110168,
-0.002918510464951396,
-0.02627383917570114,
-0.006970732472836971,
0.016886813566088676,
0.038327138870954514,
0.03179077059030533,
-0.018181025981903076,
0.026692895218729973,
0.04840760678052902,
0.050552744418382645,
-0.00982403103262186,
0.06368673592805862,
0.03876253962516785,
-0.011410134844481945,
-0.033016007393598557,
0.013392905704677105,
0.021768774837255478,
-0.042501967400312424,
0.004528118763118982,
0.006152053363621235,
-0.001609356957487762,
-0.025261230766773224,
0.0069126770831644535,
0.07947913557291031,
-0.007144906558096409,
0.005412899889051914,
0.006366558838635683,
-0.017241161316633224,
-0.039135370403528214,
0.057869184762239456,
-0.02562626078724861,
-0.02405010350048542,
-0.03122677281498909,
-0.02826269529759884,
0.003944121301174164,
0.03127853572368622,
0.03722798079252243,
0.04322131723165512,
0.007109870668500662,
0.06147581338882446,
-0.026893094182014465,
0.01904204860329628,
-0.043730366975069046,
-0.045466694980859756,
0.014542209915816784,
0.03243386372923851,
0.02968255802989006,
0.04600194841623306,
-0.005097063258290291,
-0.028313452377915382,
0.01806844212114811,
0.08438469469547272,
0.044429607689380646,
0.0006789801991544664,
-0.0441775843501091,
0.00884644128382206,
0.01689288765192032,
0.0676790103316307,
-0.06933539360761642,
-0.03598184883594513,
0.040152668952941895,
0.05897074565291405,
-0.019756413996219635,
0.023453356698155403,
0.006442086771130562,
-0.004593644291162491,
-0.046567052602767944,
-0.08372844755649567,
0.015074810944497585,
0.047132883220911026,
0.018756115809082985,
0.01311839371919632,
0.013933468610048294,
0.019728051498532295,
0.0326685830950737,
0.030580148100852966,
0.0034092124551534653,
-0.0404263399541378,
-0.002693326910957694,
0.02023734152317047,
0.03440244123339653,
-0.042579665780067444,
0.030276458710432053,
-0.013466408476233482,
0.014150804840028286,
0.023615915328264236,
-0.030002210289239883,
0.029369793832302094,
0.003567630657926202,
0.012263334356248379,
-0.03480011597275734,
0.027490103617310524,
0.014315781183540821,
0.036852236837148666,
0.07268375903367996,
-0.0009361148113384843,
0.06218107417225838,
-0.005366040859371424,
0.0577339306473732,
0.0765400305390358,
0.006444042548537254,
0.03179767727851868,
0.031832631677389145,
0.07953294366598129,
0.0036647606175392866,
-0.0022581161465495825,
0.07537145167589188,
-0.031168079003691673,
0.00461089750751853,
-0.02720552124083042,
0.026084700599312782,
0.015519739128649235,
-0.011118903756141663,
0.01859685778617859,
0.008360084146261215,
-0.011782475747168064,
-0.00477296719327569,
-0.020694231614470482,
-0.013105928897857666,
0.02131756953895092,
-0.017107363790273666,
0.010867582634091377,
0.019487399607896805,
-0.022544847801327705,
0.012825196608901024,
-0.06410536915063858,
-0.051597561687231064,
0.009663253091275692,
-0.020313767716288567,
-0.029705198481678963,
-0.08817968517541885,
-0.011047515086829662,
-0.06477716565132141,
-0.017194371670484543,
0.04178762808442116,
0.022282171994447708,
0.0003951708204112947,
-0.03223741799592972,
0.0363471657037735,
-0.03236568346619606,
-0.0262848399579525,
-0.02324000373482704,
-0.0595330186188221,
-0.02824266254901886,
-0.0704994946718216,
0.038937512785196304,
0.029823599383234978,
0.0006253144820220768,
0.02328605204820633,
0.032117441296577454,
0.0063041504472494125,
-0.051144614815711975,
0.02465437725186348,
0.02086358517408371,
-0.03464222326874733,
-0.055085260421037674,
0.034285396337509155,
-0.019151655957102776,
-0.009558840654790401,
-0.0026493570767343044,
-0.010376273654401302,
0.06824255734682083,
0.07033491134643555,
0.009717636741697788,
-0.00015787839947734028,
-0.007504482287913561,
-0.04825111851096153,
-0.06684385240077972,
-0.0275601614266634,
-0.052722055464982986,
-0.023331932723522186,
-0.018730085343122482,
-0.04227543994784355,
-0.017195425927639008,
-0.046764422208070755,
0.001571959932334721,
-0.00942894909530878,
0.012484836392104626,
0.03294959291815758,
0.03792213276028633,
0.03917577117681503,
0.04005008190870285,
-0.03803021088242531,
-0.01847841404378414,
0.040972787886857986,
0.003813991090282798,
0.010404112748801708,
-0.05594848096370697,
-0.031486786901950836,
0.037483878433704376,
0.035514865070581436,
-0.008362067863345146,
-0.041577111929655075,
0.07684891670942307,
0.03993309661746025,
-0.014905457384884357,
0.0007833901327103376,
-0.00851360708475113,
-0.016843052580952644,
-0.007115026004612446,
0.005725397262722254,
-0.0120609225705266,
-0.05557295307517052,
-0.03459586948156357,
-0.02607809379696846,
0.0550575777888298,
-0.05101115629076958,
-0.06058149412274361,
-0.01155531033873558,
0.02710888348519802,
0.014042412862181664,
0.0016543951351195574,
-0.02741101197898388,
0.006574284750968218,
-0.043572958558797836,
-0.02496241219341755,
0.014888078905642033,
0.012276116758584976,
0.007133420556783676,
0.06165190041065216,
0.017643362283706665,
-0.01889800652861595,
0.026167122647166252,
0.0357842743396759,
0.07359258085489273,
0.01747335121035576,
-0.030779873952269554,
0.027510691434144974,
-0.02651500329375267,
0.01610904559493065,
0.010307792574167252,
0.010967455804347992,
-0.032677605748176575,
-0.07255321741104126,
0.00823652558028698,
0.006970517337322235,
-0.024405939504504204,
-0.013606133870780468,
0.056908462196588516,
-0.023825179785490036,
0.007697104010730982,
-0.024069279432296753,
0.030622292309999466,
0.032333604991436005,
-0.05366574227809906,
0.06998059153556824,
0.003962425049394369,
0.047793179750442505,
-0.08597256988286972,
-0.015021621249616146,
-0.02020222879946232,
-0.03744705393910408,
0.007141191978007555,
0.06596752256155014,
0.015153530985116959,
0.04430672898888588,
0.08064758777618408,
0.026654671877622604,
-0.035912513732910156,
0.04268624633550644,
0.045999739319086075,
0.011416667141020298,
-0.03954450786113739,
-0.0065574925392866135,
-0.038066741079092026,
-0.035562943667173386,
-0.01369679719209671,
-0.04170914366841316,
0.014942397363483906,
0.033624451607465744,
-0.004005711525678635,
-0.022091101855039597,
0.007049822248518467,
-0.014607044868171215,
-0.023737505078315735,
-0.057903219014406204,
-0.034037262201309204,
0.014505884610116482,
-0.018293723464012146,
0.022828882560133934,
0.03479812666773796,
0.02005777508020401,
0.06575401872396469,
0.06325428187847137,
-0.0248736459761858,
-0.03479831665754318,
0.013639080338180065,
0.03247205913066864,
-0.05843900889158249,
-0.06377264857292175,
-0.051789481192827225,
0.03948665410280228,
0.04845551773905754,
-0.002455253154039383,
-0.09207005053758621,
0.014662298373878002,
0.022555846720933914,
-0.016102628782391548,
0.07395666837692261,
-0.0080692358314991,
0.05022592097520828,
0.0609387643635273,
-0.018578387796878815,
0.005659511778503656,
-0.01670996844768524,
-0.01141750905662775,
-0.012444977648556232,
0.03131677582859993,
-0.016030866652727127,
-0.044769011437892914,
-0.059849534183740616,
0.0312669575214386,
0.020363720133900642,
0.038594890385866165,
0.02830585464835167,
-0.0074010384269058704,
-0.05786225572228432,
0.005873128771781921,
0.028777847066521645,
-0.035504259169101715,
0.009833808057010174,
0.027085209265351295,
0.05175454169511795,
-0.030534803867340088,
-0.02549505978822708,
-0.02972898632287979,
0.005348748527467251,
0.039083972573280334,
0.004924604669213295,
-0.024652743712067604,
-0.059006307274103165,
0.008719346486032009,
-0.006153460126370192,
-0.018212342634797096,
-0.09322408586740494,
0.041974712163209915,
-0.010487630032002926,
-0.007973880507051945,
0.049215592443943024,
0.018740281462669373,
0.014194628223776817,
0.04795502871274948,
0.004500685725361109,
0.02550162747502327,
-0.04604989290237427,
0.04216880723834038,
-0.026686592027544975,
-0.009498044848442078,
-0.01646580919623375,
-0.04567774012684822,
-0.0072767105884850025,
-0.008646956644952297,
-0.049190424382686615,
-0.04472733661532402,
-0.0071117510087788105,
0.021711813285946846,
-0.007848278619349003,
-0.012112461030483246,
-0.0348239429295063,
0.029714545235037804,
-0.05510285496711731,
-0.03283076733350754,
-0.011775584891438484,
-0.02639835514128208,
-0.07492849975824356,
-0.03709360957145691,
0.02744464762508869,
0.04363902658224106,
0.03638017550110817,
0.00046025862684473395,
-0.0011337068863213062,
0.03901723772287369,
0.0008012637845240533,
-0.02713799476623535,
0.010727634653449059,
0.013468349352478981,
-0.031287990510463715,
-0.041664980351924896,
-0.0023705502972006798,
0.018154220655560493,
0.021166134625673294,
-0.02593098394572735,
0.027983181178569794,
0.02321864292025566,
-0.007739504799246788,
-0.014701098203659058,
0.0001259643177036196,
0.021356936544179916,
-0.07766413688659668,
-0.05945875495672226,
0.002831108868122101,
-0.07520750910043716,
0.02552146092057228,
-0.01787320338189602,
-0.024702446535229683,
0.04097551479935646,
0.015425249934196472,
0.023356307297945023,
-0.017068611457943916,
-0.007204336114227772,
0.0463603176176548,
-0.008056097663939,
0.007325403857976198,
-0.04301684722304344,
0.033686958253383636,
-0.02996440790593624,
-0.0031221802346408367,
-0.008324279449880123,
-0.004999731667339802,
-0.060723111033439636,
0.01919846050441265,
-0.00719964737072587,
0.0022660803515464067,
0.004908190108835697,
0.04093874245882034,
-0.03423351049423218,
0.04668433219194412,
-0.01189496647566557,
0.020416421815752983,
-0.013348321430385113,
0.044994328171014786,
-0.05894883722066879,
0.01022102776914835,
-0.0005767829134128988,
-0.008536187931895256,
-0.05145668610930443,
-0.04145341366529465,
-0.017173174768686295,
-0.047638554126024246,
0.011872400529682636,
0.05508093163371086,
0.026401787996292114,
0.04366908222436905,
-0.022820543497800827,
-0.006203328724950552,
0.007679409347474575,
-0.053978290408849716,
-0.022149480879306793,
-0.0185858104377985,
0.025646619498729706,
-0.01303856261074543,
0.07836084812879562,
0.062322765588760376,
-0.05621853098273277,
-0.04850044846534729,
0.055120162665843964,
0.02250702865421772,
0.0020375431049615145,
-0.021754909306764603,
0.029447639361023903,
0.014023764058947563,
0.035960759967565536,
-0.04479162395000458,
-0.010706397704780102,
-0.0235296618193388,
-0.015547621995210648,
0.019242437556385994,
-0.006051852833479643,
0.0158931165933609,
0.00505816238000989,
-0.03599006310105324,
-0.019676214084029198,
0.05352533981204033,
0.024631336331367493,
0.0472070537507534,
0.015968307852745056,
-0.04405863955616951,
0.015999257564544678,
-0.013917218893766403,
-0.06629837304353714,
-0.005665309261530638,
0.0007293482194654644,
-0.023214777931571007,
0.0852714478969574,
-0.03187661990523338,
0.028759879991412163,
0.04243159294128418,
0.012109923176467419,
-0.004710783716291189,
0.0362604483962059,
-0.04653609171509743,
0.010726881213486195,
0.051049601286649704,
-0.04080573469400406,
-0.015686072409152985,
-0.03186454996466637,
0.07294061779975891,
-0.06518243998289108,
0.042159609496593475,
0.036167215555906296,
0.008582359179854393,
0.026491623371839523,
-0.02210002951323986,
-0.034113362431526184,
0.03712879493832588,
-0.03281082585453987,
0.08135847747325897,
0.04351115971803665,
-0.0793735682964325,
0.07333962619304657,
0.03675142303109169,
-0.08239466696977615,
0.04244469851255417,
0.03849519044160843,
0.0523168109357357,
0.03746570646762848,
0.07368999719619751,
-0.044422876089811325,
0.01292408537119627,
-0.03887539356946945,
0.02887989953160286,
-0.04695916175842285,
-0.0019644133280962706,
0.024519164115190506,
-0.05286988243460655,
-0.027202194556593895,
0.02190515212714672,
-0.004776827059686184,
-0.012659098953008652,
0.0449250265955925,
-0.06309070438146591,
-0.06207238510251045,
-0.010305200703442097,
0.033355213701725006,
-0.028034890070557594,
-0.0005745510570704937,
-0.0265718474984169,
0.002157277660444379,
0.01769319549202919,
-0.037736035883426666,
-0.06340818107128143,
-0.008250842802226543,
0.04270576313138008,
-0.05550060421228409,
-0.03181832283735275,
0.04262726008892059,
0.015916241332888603,
-0.008833058178424835,
0.05092325061559677,
-0.008325641043484211,
0.016724491491913795,
0.029047761112451553,
-0.006822152528911829,
0.02844696119427681,
-0.06744568794965744,
-0.0015279731014743447,
0.0070073711685836315,
0.015894170850515366,
0.03789709135890007,
-0.01594644784927368,
0.02296442911028862,
0.03849782422184944,
0.012466136366128922,
-0.0034287835005670786,
-0.05311236530542374,
-0.0380992591381073,
0.03200313821434975,
-0.05278223380446434,
0.050959233194589615,
0.002386090811342001,
-0.031598109751939774,
-0.04443296417593956,
-0.023726997897028923,
-0.03186452016234398,
0.0365978479385376,
-0.061114512383937836,
0.006111118942499161,
0.023015221580863,
-0.017457401379942894,
-0.02457628957927227,
-0.07794321328401566,
-0.026581579819321632,
-0.024261118844151497,
0.006953694857656956,
0.020345186814665794,
-0.04028499871492386,
0.037849124521017075,
-0.03239470347762108,
-0.08239970356225967,
0.04277786612510681,
0.03327016904950142,
-0.036176446825265884,
0.049420710653066635,
0.061431899666786194,
-0.035615473985672,
0.00028111421852372587,
0.0336914025247097,
-0.04229147732257843,
0.04377339780330658,
0.017539722844958305,
0.014757280237972736,
0.02578914724290371,
0.03145071491599083,
-0.0022352056112140417,
-0.028334807604551315,
-0.0625244677066803,
-0.011123410426080227,
-0.026539120823144913,
-0.012064702808856964,
0.061415091156959534
] |
Ciruzzo/DialoGPT-small-harrypotter | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 9 | null | ---
tags:
- conversational
---
# Harry Potter DialoGPT Model | [
-0.029324334114789963,
0.006045046728104353,
0.013366674073040485,
0.034415628761053085,
0.0064101917669177055,
0.0184163898229599,
0.0027549832593649626,
0.015343309380114079,
-0.019336814060807228,
0.01679833233356476,
0.02836332842707634,
-0.0335305817425251,
0.010642284527420998,
0.03561847656965256,
-0.026645774021744728,
-0.022012796252965927,
-0.0374370738863945,
-0.007161307148635387,
-0.011235304176807404,
-0.024762284010648727,
0.01878328248858452,
0.019173908978700638,
-0.023326190188527107,
0.04056162014603615,
-0.00013032220886088908,
0.01604306325316429,
-0.017776837572455406,
0.007180109620094299,
0.02825922891497612,
-0.05232449620962143,
0.0054761734791100025,
-0.04873955622315407,
-0.04309379681944847,
-0.02253297157585621,
-0.03122914582490921,
-0.03367152065038681,
0.01157275028526783,
-0.0038235762622207403,
-0.0015630485722795129,
0.035578105598688126,
-0.023000074550509453,
0.006916804704815149,
0.0018112226389348507,
-0.056640177965164185,
0.07643008232116699,
-0.0021587542723864317,
-0.04019196704030037,
-0.013396967202425003,
0.019284876063466072,
-0.03964890167117119,
-0.02973981760442257,
-0.06467559188604355,
-0.057371340692043304,
-0.02214694954454899,
0.021305561065673828,
-0.047492701560258865,
-0.07273899763822556,
-0.009300298057496548,
0.09301820397377014,
-0.008789985440671444,
-0.003479601349681616,
-0.0015972885303199291,
-0.06657750904560089,
0.0034638172946870327,
0.022680899128317833,
-0.08078191429376602,
0.021663960069417953,
-0.03377952054142952,
0.006651107221841812,
-0.03950415179133415,
0.05879628285765648,
-0.0505913682281971,
0.014896580018103123,
-0.08635079860687256,
-0.006956600118428469,
0.006866901181638241,
0.062096644192934036,
0.056914135813713074,
-0.05117888003587723,
0.04631425812840462,
0.03922424092888832,
0.019339002668857574,
0.038175541907548904,
-0.02033150941133499,
-0.03604703024029732,
0.04485022649168968,
-0.049899447709321976,
-0.015213698148727417,
0.002321400912478566,
0.041603583842515945,
-0.028948627412319183,
-0.04592858999967575,
-0.03450830280780792,
-0.011223982088267803,
-0.006015983410179615,
0.06087745726108551,
0.027222031727433205,
-0.03689863532781601,
0.009819765575230122,
0.05178665369749069,
0.022423744201660156,
0.05077588930726051,
-0.02648092247545719,
0.02764766477048397,
-0.015271658077836037,
0.0276294257491827,
0.025957558304071426,
-0.021426763385534286,
-0.028382839635014534,
0.02598307467997074,
0.00972988735884428,
-0.03767849877476692,
-0.03283713757991791,
0.04257403314113617,
0.018710672855377197,
0.014837652444839478,
0.03926532343029976,
-0.038093142211437225,
-0.034723252058029175,
-0.06044483184814453,
0.04765630513429642,
-0.008917461149394512,
0.00722747715190053,
-0.0038273672107607126,
-0.0535883754491806,
-0.003075293730944395,
-0.04485759884119034,
-0.02825883962213993,
-0.016061797738075256,
0.0031830216757953167,
0.02533522993326187,
0.03805280104279518,
-0.028510073199868202,
-0.0657055675983429,
0.015092626214027405,
0.04771393537521362,
-0.06248725205659866,
0.0037312330678105354,
0.046378303319215775,
0.10275783389806747,
-0.07461053133010864,
-0.022824198007583618,
0.016644421964883804,
0.01629127562046051,
-0.0266636423766613,
0.00005521136336028576,
-0.008702308870851994,
-0.017780471593141556,
-0.05689717456698418,
-0.01681748777627945,
0.006729383487254381,
-0.05807029828429222,
-0.007673975080251694,
0.04841874912381172,
-0.014388065785169601,
0.009547034278512001,
-0.03169182687997818,
0.006040643434971571,
-0.020283591002225876,
-0.03357336297631264,
-0.04814692586660385,
0.03068779781460762,
-0.01935543119907379,
-0.021936746314167976,
-0.05094262957572937,
-0.03968610242009163,
0.012327304109930992,
0.0705903172492981,
0.021678997203707695,
-0.014923504553735256,
-0.027380215004086494,
0.04607361555099487,
0.0663459524512291,
0.039896946400403976,
-0.025043867528438568,
0.014710103161633015,
0.037086427211761475,
0.014699638821184635,
-0.028026485815644264,
0.06597111374139786,
0.007464506197720766,
-0.034463342279195786,
-0.04504704102873802,
-0.02622162736952305,
0.023382164537906647,
-0.016682155430316925,
0.014659442007541656,
0.040892571210861206,
-0.037681784480810165,
-0.043271467089653015,
0.025090549141168594,
0.05521121248602867,
-0.02454865723848343,
0.00022230457398109138,
-0.015020915307104588,
-0.017583895474672318,
-0.03008204512298107,
0.03579287603497505,
-0.04497387632727623,
0.0007514043245464563,
-0.024583086371421814,
-0.004709289409220219,
0.027974503114819527,
-0.004079547710716724,
-0.009944266639649868,
0.035158999264240265,
0.0007475509191863239,
0.07896332442760468,
-0.029629364609718323,
0.02389870211482048,
-0.02972949482500553,
-0.0038248610217124224,
-0.027765914797782898,
0.02494957484304905,
0.02031428925693035,
0.04876300320029259,
-0.04660053178668022,
-0.060219962149858475,
0.03221181407570839,
0.06487572193145752,
0.027613649144768715,
0.031065847724676132,
-0.02008022554218769,
-0.016284359619021416,
0.030312977731227875,
0.039717547595500946,
-0.038305364549160004,
0.0014758353354409337,
0.0009163497015833855,
0.028793707489967346,
-0.0077044544741511345,
-0.029279274865984917,
-0.038149476051330566,
0.003091629594564438,
-0.03434260934591293,
-0.07473298907279968,
0.047628700733184814,
0.031131526455283165,
-0.00892054382711649,
0.02309340424835682,
-0.013147242367267609,
0.013761166483163834,
0.03681659325957298,
0.012213367037475109,
0.0028349999338388443,
-0.07353322952985764,
-0.0017687792424112558,
0.011865610256791115,
0.08528615534305573,
-0.050786443054676056,
0.009875438176095486,
0.01450960524380207,
0.028331726789474487,
0.03657151013612747,
-0.011829410679638386,
0.03377189487218857,
0.05878402665257454,
0.043790269643068314,
-0.02899227663874626,
0.046585459262132645,
-0.002162110060453415,
0.0480341799557209,
0.055273812264204025,
0.003149155294522643,
0.053119514137506485,
-0.006468884646892548,
0.02760019153356552,
0.039632849395275116,
0.01438270416110754,
-0.0320330485701561,
0.03415761888027191,
0.07532195001840591,
0.0007230250630527735,
0.03211534395813942,
0.0394044853746891,
-0.0006387882749550045,
0.0007480086642317474,
-0.03934842348098755,
-0.008443034254014492,
0.010566980578005314,
-0.011486753821372986,
0.05970734357833862,
0.007821928709745407,
-0.01563885062932968,
-0.010194342583417892,
-0.014454849995672703,
-0.013643015176057816,
0.04400497302412987,
-0.017525989562273026,
-0.015870314091444016,
-0.014409157447516918,
0.00028267272864468396,
0.011324447579681873,
-0.05840837582945824,
-0.07261456549167633,
-0.00892136711627245,
-0.04502694308757782,
0.0015251465374603868,
-0.10529199242591858,
-0.033938802778720856,
-0.051022861152887344,
-0.01648094691336155,
0.040511712431907654,
0.01596754603087902,
0.02945655584335327,
-0.004817067179828882,
0.006404382176697254,
-0.02895386889576912,
-0.05527380853891373,
-0.05277848243713379,
-0.013484315946698189,
-0.011922584846615791,
-0.05986711382865906,
0.03639623522758484,
0.03594469651579857,
0.059636440128088,
0.004005639813840389,
-0.031525757163763046,
-0.04907754063606262,
-0.011161072179675102,
0.049111414700746536,
0.029080145061016083,
-0.04609939455986023,
-0.026032710447907448,
0.002191880950704217,
0.01638808660209179,
0.005718542728573084,
-0.03371670842170715,
-0.05463572219014168,
0.07348424196243286,
0.037300724536180496,
0.018640462309122086,
0.006455768831074238,
-0.003478005528450012,
-0.03578047826886177,
-0.021421674638986588,
-0.0400761216878891,
-0.04631587490439415,
-0.006308929529041052,
-0.03676237165927887,
-0.05955388769507408,
-0.030016839504241943,
-0.0606619156897068,
0.004153134301304817,
-0.0064947050996124744,
0.0026194551028311253,
0.01437730249017477,
0.017646076157689095,
0.030950473621487617,
0.01628406159579754,
-0.020657874643802643,
-0.01649150438606739,
0.028876960277557373,
-0.005001821089535952,
-0.01918436773121357,
-0.07858137786388397,
-0.04967968165874481,
0.010130629874765873,
0.018305519595742226,
-0.011504319496452808,
-0.002546550240367651,
0.03047904744744301,
0.027014032006263733,
-0.0036192380357533693,
0.027359556406736374,
-0.060156289488077164,
0.009445133619010448,
-0.044433508068323135,
-0.044254038482904434,
-0.025507858023047447,
-0.024130068719387054,
-0.025223398581147194,
-0.009120017290115356,
0.04303348809480667,
-0.08471989631652832,
-0.027839569374918938,
-0.009472784586250782,
0.010087325237691402,
0.027230044826865196,
0.0053651416674256325,
-0.06074148043990135,
-0.0025745003949850798,
-0.03820035234093666,
-0.024975325912237167,
-0.014738112688064575,
-0.018760642036795616,
0.003309398889541626,
0.027584483847022057,
0.03569645434617996,
-0.04446111246943474,
0.055457744747400284,
0.012019732035696507,
0.05459335073828697,
0.06237439438700676,
-0.02545018680393696,
0.02867874689400196,
-0.042907826602458954,
0.042373865842819214,
0.004029440227895975,
-0.03830255940556526,
-0.054072923958301544,
-0.09945599734783173,
-0.04973861947655678,
0.0275014266371727,
-0.007318167015910149,
0.013769112527370453,
0.038077931851148605,
-0.044596243649721146,
-0.039812974631786346,
0.01465238630771637,
0.035569336265325546,
0.04650743678212166,
-0.030582720413804054,
0.048671092838048935,
0.014076371677219868,
0.006929371505975723,
-0.05133192613720894,
0.004024306312203407,
-0.05675031989812851,
-0.028189698234200478,
-0.008334139361977577,
0.04396547004580498,
0.014822574332356453,
0.0701635554432869,
0.07078737765550613,
0.046007510274648666,
-0.05500912666320801,
0.06339516490697861,
0.08126981556415558,
-0.007854863069951534,
-0.037003785371780396,
-0.00683246785774827,
-0.00846167840063572,
0.00026697901193983853,
-0.0014921199763193727,
-0.015141051262617111,
0.026136642321944237,
0.04228907451033592,
0.00297183683142066,
0.000511582416947931,
0.029101410880684853,
-0.015128291212022305,
-0.012436055578291416,
-0.0765959694981575,
0.0032401259522885084,
-0.025109941139817238,
-0.032988619059324265,
0.05356369912624359,
0.03872525319457054,
0.005621433723717928,
0.05566524714231491,
0.022301461547613144,
-0.010847410187125206,
-0.04954244941473007,
0.03685742989182472,
0.020767906680703163,
-0.05409272760152817,
-0.047952596098184586,
-0.06094774603843689,
0.036577943712472916,
0.05609051138162613,
-0.011115551926195621,
-0.08585789054632187,
0.02011454850435257,
0.0463884174823761,
-0.0551876574754715,
0.04372739419341087,
0.005179118365049362,
0.0625462457537651,
0.01610248163342476,
0.009406471624970436,
0.03418578580021858,
-0.06436669081449509,
0.015213262289762497,
-0.010873571038246155,
0.04413327947258949,
-0.05113816261291504,
-0.051073893904685974,
-0.06846770644187927,
0.04051796719431877,
0.02092994749546051,
0.026323679834604263,
0.01026386208832264,
-0.05436021462082863,
-0.03328754007816315,
-0.009042703546583652,
0.014465195126831532,
-0.007088589947670698,
0.022031152620911598,
0.018190819770097733,
0.053670693188905716,
-0.0702144205570221,
0.0025187924038618803,
0.01905016228556633,
0.02234090305864811,
0.015032424591481686,
-0.020317483693361282,
-0.04864870756864548,
-0.009062418714165688,
0.02697126194834709,
-0.03206963092088699,
0.006005092989653349,
-0.09589269012212753,
0.014080235734581947,
-0.024870790541172028,
-0.024516701698303223,
0.0635879710316658,
0.05623811110854149,
0.05504676327109337,
0.07299675047397614,
-0.007165116257965565,
0.044777099043130875,
-0.01823703944683075,
0.04584970325231552,
-0.03918127343058586,
-0.021183477714657784,
-0.0004742054152302444,
-0.09294062852859497,
-0.024923225864768028,
-0.02198467217385769,
-0.030108192935585976,
-0.04360305517911911,
0.018514160066843033,
-0.004303574096411467,
-0.02432386763393879,
0.005927645601332188,
0.001532129943370819,
0.027096247300505638,
-0.0260924082249403,
-0.04185408726334572,
-0.00774267828091979,
-0.011413153260946274,
-0.09150898456573486,
-0.051739972084760666,
0.030621178448200226,
-0.03692938759922981,
0.012287834659218788,
-0.00610322505235672,
0.0063345045782625675,
0.061451513320207596,
0.006252190563827753,
-0.013939211145043373,
0.005934006534516811,
0.040698371827602386,
-0.042205821722745895,
-0.013071139343082905,
0.008154467679560184,
0.0029791579581797123,
0.004696345422416925,
-0.039839740842580795,
0.0385361947119236,
0.008949578739702702,
-0.05626218765974045,
-0.032879456877708435,
0.038065411150455475,
0.006613257806748152,
-0.07458451390266418,
-0.005305635742843151,
-0.025044642388820648,
-0.04123532772064209,
0.005882963538169861,
-0.04165685921907425,
-0.022826137021183968,
-0.008985799737274647,
0.029600806534290314,
0.022460687905550003,
-0.007589888293296099,
-0.021002883091568947,
0.000597560778260231,
-0.023328177630901337,
0.03661675751209259,
-0.059721387922763824,
0.01907220669090748,
-0.021868718788027763,
0.029988015070557594,
-0.031072424724698067,
0.011503472924232483,
-0.03803470358252525,
0.04737085849046707,
-0.033153094351291656,
-0.008493160828948021,
-0.005506565328687429,
-0.01269377302378416,
0.0029418987687677145,
0.03680837154388428,
0.009493755176663399,
0.006852645426988602,
-0.03660179302096367,
0.07498744875192642,
-0.06040522828698158,
0.02503969706594944,
-0.018646009266376495,
-0.025875579565763474,
-0.0221214909106493,
0.010518569499254227,
-0.00243677687831223,
-0.04895931854844093,
0.02525801956653595,
0.026589417830109596,
0.01125175878405571,
0.056251946836709976,
0.004884405992925167,
0.002131040906533599,
0.04290904104709625,
-0.047080472111701965,
-0.04695260152220726,
0.01371457427740097,
-0.0036854492500424385,
0.010200509801506996,
0.06730148941278458,
0.019656850025057793,
-0.051269304007291794,
-0.03298187628388405,
0.036224622279405594,
0.03920775651931763,
0.01547351386398077,
0.013992264866828918,
0.038688454777002335,
0.05340225622057915,
0.06545703113079071,
-0.014284899458289146,
-0.008399687707424164,
0.02632058784365654,
-0.015389695763587952,
-0.010931363329291344,
-0.0011463254923000932,
0.007501407992094755,
0.02187659963965416,
-0.02314271405339241,
-0.017980478703975677,
0.07055877894163132,
-0.002504604170098901,
0.003662115428596735,
-0.003091471502557397,
-0.033761415630578995,
0.06009666994214058,
0.009287005290389061,
-0.051856182515621185,
-0.006517966277897358,
0.033703580498695374,
-0.03184324502944946,
0.029390254989266396,
-0.02171221934258938,
0.008781238459050655,
0.040882062166929245,
0.018404237926006317,
0.017135364934802055,
0.022892175242304802,
-0.02161395363509655,
-0.0020907986909151077,
0.020904554054141045,
-0.042144861072301865,
-0.029485343024134636,
-0.04201829433441162,
0.042180344462394714,
-0.052373386919498444,
0.05242586508393288,
0.01947634108364582,
0.039626237004995346,
0.00204284256324172,
-0.04078803211450577,
-0.024650808423757553,
-0.022751539945602417,
-0.0470784492790699,
0.06416257470846176,
-0.022259114310145378,
-0.04111771285533905,
0.07285141199827194,
0.032809942960739136,
-0.07665783166885376,
0.03320395573973656,
0.02954564429819584,
0.04169195145368576,
0.01691335253417492,
0.06123942509293556,
-0.0454246960580349,
0.012235907837748528,
-0.0315406359732151,
0.001444325316697359,
-0.032137177884578705,
-0.029147351160645485,
-0.01114110741764307,
-0.039019957184791565,
0.00825886894017458,
0.03404037654399872,
-0.02594446763396263,
0.020991912111639977,
0.008665453642606735,
-0.037056297063827515,
-0.04209477826952934,
-0.010286766104400158,
0.027574384585022926,
-0.0018829028122127056,
-0.002804409246891737,
-0.002874651923775673,
0.01882787235081196,
0.029967091977596283,
-0.020682567730545998,
-0.06116577610373497,
0.019078020006418228,
-0.01757967472076416,
-0.054765768349170685,
-0.06269072741270065,
0.05467918515205383,
0.024424761533737183,
-0.021622810512781143,
-0.00860762782394886,
0.03603753075003624,
0.013047618791460991,
0.03396212309598923,
-0.00953170470893383,
0.01731584593653679,
-0.08252567797899246,
0.000751139537896961,
0.026040880009531975,
0.02617098204791546,
-0.011058756150305271,
-0.012689783237874508,
0.015810219570994377,
0.0690523311495781,
0.05578429624438286,
-0.00024373790074605495,
-0.045822955667972565,
-0.02362227439880371,
-0.012840475887060165,
-0.038220446556806564,
0.05083516985177994,
0.016029030084609985,
-0.061181697994470596,
-0.03173583373427391,
-0.009317218326032162,
0.002656501019373536,
0.022773977369070053,
-0.04440457001328468,
0.023512249812483788,
0.010786732658743858,
-0.005174492485821247,
-0.038444988429546356,
-0.09174039959907532,
-0.03351268172264099,
-0.019307183101773262,
0.02875979244709015,
0.03961571305990219,
-0.07238275557756424,
0.014237849041819572,
-0.027363313362002373,
-0.022072048857808113,
0.049900829792022705,
0.00413566455245018,
-0.014953586272895336,
0.07735265046358109,
0.04406217485666275,
-0.045390162616968155,
0.05342625826597214,
0.020868640393018723,
-0.05321521311998367,
0.052108488976955414,
0.009516383521258831,
0.033601313829422,
0.0004953616880811751,
0.014341053552925587,
-0.01190819963812828,
0.006626333110034466,
-0.022978195920586586,
-0.04506203159689903,
-0.0010064292000606656,
0.003309110179543495,
0.03568396344780922
] |
ClaudeCOULOMBE/RickBot | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 9 | null | ---
tags:
- conversational
---
# RickBot built for [Chai](https://chai.ml/)
Make your own [here](https://colab.research.google.com/drive/1o5LxBspm-C28HQvXN-PRQavapDbm5WjG?usp=sharing)
| [
-0.014600630849599838,
0.011047551408410072,
-0.0025056854356080294,
0.025152776390314102,
0.023659562692046165,
-0.0032209758646786213,
-0.010315208695828915,
0.020202817395329475,
-0.03274945542216301,
0.035551153123378754,
0.0479019358754158,
0.0015214774757623672,
0.016969949007034302,
0.05027348920702934,
-0.03197211027145386,
-0.03320441022515297,
-0.021389443427324295,
0.017044737935066223,
-0.04423082247376442,
-0.00039333925815299153,
0.04222453758120537,
0.007099505048245192,
-0.008334550075232983,
0.04031708836555481,
0.006833320017904043,
0.012694505043327808,
-0.008937528356909752,
0.010656008496880531,
0.009842597879469395,
-0.051966648548841476,
0.009106009267270565,
-0.043520208448171616,
-0.010615503415465355,
-0.05365026369690895,
-0.027114279568195343,
-0.035407714545726776,
0.018701881170272827,
-0.010653242468833923,
-0.010191034525632858,
0.03886008635163307,
-0.01166387740522623,
-0.003950000740587711,
0.013400665484368801,
-0.04929215461015701,
0.0872754156589508,
0.006584780756384134,
-0.05303486809134483,
-0.01508262101560831,
0.003556553740054369,
-0.04329836368560791,
-0.05707056447863579,
-0.06567138433456421,
-0.05205943435430527,
-0.006903462577611208,
0.0018430952914059162,
-0.04862000048160553,
-0.06268259882926941,
0.0024326639249920845,
0.08292406797409058,
-0.05010319873690605,
-0.014444202184677124,
-0.009790275245904922,
-0.08573907613754272,
0.024392178282141685,
0.027086127549409866,
-0.07459421455860138,
0.01803538389503956,
-0.04511771723628044,
0.0008612155797891319,
-0.0390191450715065,
0.061567582190036774,
-0.04094082489609718,
0.011024098843336105,
-0.07292533665895462,
-0.02314797416329384,
-0.023551730439066887,
0.03411167114973068,
0.06640748679637909,
-0.042510464787483215,
0.037112168967723846,
0.0507044792175293,
0.0023623595479875803,
0.06890672445297241,
-0.024112394079566002,
-0.01986539363861084,
0.0415768139064312,
-0.05036460980772972,
0.004160396289080381,
0.016567815095186234,
0.04476805403828621,
-0.02531863935291767,
-0.05160241201519966,
-0.02618139423429966,
-0.008014429360628128,
0.0030823592096567154,
0.03467967361211777,
0.043379005044698715,
-0.005577974021434784,
0.027683883905410767,
0.03436223044991493,
0.028749490156769753,
0.06408090144395828,
-0.0007537202909588814,
0.03069068118929863,
-0.006015954073518515,
0.013826058246195316,
0.012907554395496845,
-0.008940951898694038,
-0.056195218116045,
0.029694218188524246,
0.01203089952468872,
-0.04382769390940666,
-0.03228287026286125,
0.017330899834632874,
0.018308738246560097,
0.0030519526917487383,
0.02598346769809723,
-0.04499928653240204,
-0.050103917717933655,
-0.058273497968912125,
0.053645819425582886,
-0.01973291113972664,
-0.026161495596170425,
0.007441098336130381,
-0.038074932992458344,
-0.0033460615668445826,
-0.0481918528676033,
-0.017358245328068733,
-0.015369828790426254,
0.0014962751884013414,
0.023508988320827484,
0.04948760196566582,
-0.028772342950105667,
-0.05839236080646515,
-0.005560584366321564,
0.04690753296017647,
-0.06438269466161728,
0.010278244502842426,
0.04492158815264702,
0.079036645591259,
-0.0909191370010376,
-0.041587360203266144,
0.009014546871185303,
0.02142244577407837,
-0.04423002898693085,
-0.012175116688013077,
0.004027327988296747,
-0.0020502181723713875,
-0.0308722835034132,
-0.00429429579526186,
0.044578924775123596,
-0.054867200553417206,
-0.009748357348144054,
0.04013892635703087,
0.0235410388559103,
0.01898629404604435,
-0.035564813762903214,
-0.016606640070676804,
0.029904183000326157,
-0.015546699054539204,
-0.03682180494070053,
0.027949953451752663,
-0.019971216097474098,
-0.035223010927438736,
-0.012835344299674034,
-0.023277951404452324,
-0.008382025174796581,
0.09156812727451324,
0.002981708152219653,
-0.014473202638328075,
-0.03378394991159439,
0.03259489685297012,
0.05822286382317543,
0.01303186547011137,
-0.0005627326900139451,
0.01917293854057789,
0.059860169887542725,
0.037688709795475006,
-0.03513120487332344,
0.06743832677602768,
0.028364382684230804,
-0.029653148725628853,
-0.02651973068714142,
-0.009903814643621445,
0.03593135252594948,
-0.01518539059907198,
0.021882984787225723,
0.05030660703778267,
-0.015872353687882423,
-0.0462949313223362,
0.019958555698394775,
0.05321119725704193,
0.005247104912996292,
-0.01525942888110876,
-0.006653683725744486,
-0.038473423570394516,
-0.03536969795823097,
0.02969232201576233,
-0.006257826928049326,
-0.011828416958451271,
-0.037598706781864166,
-0.007603937294334173,
0.03479678928852081,
-0.02390240505337715,
-0.0010705131571739912,
0.04812407121062279,
-0.042917054146528244,
0.0752495676279068,
-0.023766478523612022,
0.01648438163101673,
-0.026754947379231453,
-0.026270458474755287,
-0.020527835935354233,
0.06580725312232971,
0.0033784653060138226,
0.04956386983394623,
-0.03650623932480812,
-0.03408382833003998,
0.029165761545300484,
0.06305708736181259,
0.040738992393016815,
0.026911035180091858,
-0.013191944919526577,
0.007200049702078104,
0.02223910577595234,
0.04803130030632019,
-0.04634476453065872,
0.010399363934993744,
0.006034810096025467,
0.04111713171005249,
-0.03421769291162491,
-0.019461223855614662,
-0.015475502237677574,
0.016523413360118866,
-0.03244592994451523,
-0.047160014510154724,
0.07058335840702057,
0.027330024167895317,
0.0055661615915596485,
0.043465785682201385,
0.015786143019795418,
-0.015925288200378418,
0.03354727476835251,
0.019334135577082634,
0.028408080339431763,
-0.07856115698814392,
0.016982311382889748,
0.051027562469244,
0.09848351031541824,
-0.030986154451966286,
0.024258514866232872,
0.010875101201236248,
0.012115750461816788,
0.015665002167224884,
-0.033415887504816055,
0.04125397279858589,
0.06665332615375519,
0.04454570636153221,
-0.00714472308754921,
0.038804713636636734,
0.00027204822981730103,
-0.0033204311039298773,
0.03791750967502594,
-0.008245395496487617,
0.07861874997615814,
-0.030533520504832268,
0.027021005749702454,
0.05204641446471214,
0.013137074187397957,
0.0014330047415569425,
0.016295116394758224,
0.0786224976181984,
0.030855422839522362,
0.017108198255300522,
0.043665435165166855,
-0.0054554385133087635,
0.01314341276884079,
-0.049325212836265564,
-0.007740851491689682,
-0.0032790955156087875,
-0.02067040279507637,
0.028654713183641434,
0.0152052640914917,
-0.00882547628134489,
-0.011028148233890533,
-0.009922833181917667,
-0.021908678114414215,
0.05934327095746994,
0.008170079439878464,
-0.0076140291057527065,
0.00437355088070035,
-0.003154332283884287,
0.03499404340982437,
-0.06438570469617844,
-0.04416617006063461,
-0.0019822849426418543,
-0.03455829992890358,
0.0006366281304508448,
-0.0829375758767128,
-0.03263436257839203,
-0.0741950049996376,
-0.007199134677648544,
0.048886124044656754,
0.030322473496198654,
-0.0015067183412611485,
0.007680963259190321,
0.006686488166451454,
-0.03362893685698509,
-0.07045593857765198,
-0.05355897173285484,
-0.03257889673113823,
-0.005073939450085163,
-0.06594735383987427,
0.025630807504057884,
0.028977571055293083,
0.04169341176748276,
-0.002837743377313018,
-0.017924068495631218,
-0.05815516412258148,
-0.010731667280197144,
0.0425751693546772,
0.012595747597515583,
-0.04952515661716461,
-0.033731408417224884,
0.03224538639187813,
0.0015868204645812511,
-0.014023153111338615,
-0.0013640255201607943,
-0.0360800065100193,
0.05596943944692612,
0.04278382286429405,
-0.011419563554227352,
0.0031497348099946976,
-0.021024588495492935,
-0.04438797011971474,
-0.027459830045700073,
-0.03553788736462593,
-0.02291378192603588,
-0.029436785727739334,
-0.03395429998636246,
-0.045402683317661285,
-0.03467952460050583,
-0.04035324230790138,
-0.022469302639365196,
0.002824996830895543,
-0.01122816652059555,
0.04187530279159546,
0.0172108206897974,
0.03538867458701134,
0.021708855405449867,
-0.027174169197678566,
-0.018007678911089897,
0.0615406297147274,
-0.020457345992326736,
-0.017568938434123993,
-0.07079004496335983,
-0.047535330057144165,
0.05177401006221771,
0.010671202093362808,
0.003637729911133647,
-0.005221027880907059,
0.030658060684800148,
0.041954025626182556,
-0.01788354106247425,
0.028059476986527443,
-0.03978234902024269,
-0.008930491283535957,
-0.01350656058639288,
-0.025084270164370537,
-0.052704326808452606,
-0.03953242674469948,
0.0000884249820956029,
-0.01644284464418888,
0.020436950027942657,
-0.06724560260772705,
-0.06247963383793831,
-0.02739236131310463,
-0.023290371522307396,
0.01523232739418745,
-0.008674000389873981,
-0.04647872969508171,
0.004681454971432686,
-0.031345244497060776,
0.0015075707342475653,
0.007513373624533415,
-0.03181520104408264,
-0.0025977499317377806,
0.024810170754790306,
0.001145301852375269,
-0.013833027333021164,
0.06533007323741913,
0.0054825046099722385,
0.06392183154821396,
0.037237346172332764,
-0.03896776959300041,
0.035501040518283844,
-0.017802219837903976,
0.017438989132642746,
-0.0227495264261961,
-0.015182658098638058,
-0.01653607375919819,
-0.10178785771131516,
-0.044979169964790344,
0.03803551197052002,
-0.028690580278635025,
-0.002579767256975174,
0.033943869173526764,
-0.04408450424671173,
-0.016801532357931137,
0.0010560305090621114,
0.05630078539252281,
0.027000833302736282,
-0.011775783263146877,
0.03872871771454811,
0.002610770519822836,
0.033397845923900604,
-0.050831884145736694,
-0.008361229673027992,
-0.04257341846823692,
0.012444434687495232,
0.008587850257754326,
0.053799644112586975,
-0.000786032120231539,
0.05676489695906639,
0.0764872133731842,
0.017188694328069687,
-0.034008122980594635,
0.036127109080553055,
0.056294918060302734,
-0.018192119896411896,
-0.055992286652326584,
0.01588236540555954,
0.01194741390645504,
0.0018543117912486196,
-0.025860125198960304,
-0.04539831355214119,
0.017916705459356308,
0.0333506315946579,
0.010383184999227524,
0.018785027787089348,
0.003683780785650015,
-0.02362242341041565,
-0.03425309434533119,
-0.05850197747349739,
-0.017315533012151718,
0.0013263692380860448,
-0.036794956773519516,
0.046021029353141785,
0.05677814409136772,
0.03169843927025795,
0.05725179985165596,
0.028377661481499672,
-0.04688494652509689,
-0.03518415614962578,
0.0245372261852026,
0.03391414135694504,
-0.03883644565939903,
-0.04906080663204193,
-0.003748917719349265,
0.026662055402994156,
0.026921022683382034,
-0.023537354543805122,
-0.08369852602481842,
0.022860147058963776,
0.057554591447114944,
-0.047201018780469894,
0.042828261852264404,
0.002151183784008026,
0.04736386612057686,
0.05274910107254982,
-0.0026943248230963945,
0.0452987402677536,
-0.06467118114233017,
0.02298888936638832,
-0.022714722901582718,
0.02588486671447754,
-0.02950662560760975,
-0.028900550678372383,
-0.03992214798927307,
0.030974552035331726,
0.01859571412205696,
0.028551768511533737,
0.04427749663591385,
-0.06710479408502579,
-0.04094039276242256,
-0.00008052510384004563,
0.05238023027777672,
-0.03437545523047447,
0.033000051975250244,
0.040062420070171356,
0.06459930539131165,
-0.05769387260079384,
0.0011292204726487398,
0.0092620262876153,
0.02261081524193287,
0.027010289952158928,
-0.025315485894680023,
-0.027196168899536133,
-0.012905512936413288,
0.035082098096609116,
-0.017885616049170494,
-0.005641543306410313,
-0.09153808653354645,
0.04719429090619087,
-0.004074529279023409,
-0.033202528953552246,
0.07422082126140594,
0.01842920295894146,
0.05950893461704254,
0.06991332769393921,
-0.013627134263515472,
0.045669879764318466,
-0.02781817503273487,
0.02729918248951435,
-0.04764504358172417,
-0.02424546889960766,
0.006456233561038971,
-0.0569785051047802,
-0.039282653480768204,
-0.022639557719230652,
-0.062183745205402374,
-0.031169075518846512,
-0.025591310113668442,
0.023642538115382195,
0.011897848919034004,
0.012109370902180672,
0.01144468691200018,
0.01681833155453205,
-0.01372260320931673,
-0.009300990961492062,
-0.006004150491207838,
-0.02240465208888054,
-0.06821691989898682,
-0.04624158516526222,
0.02207794412970543,
-0.004332382697612047,
0.003129468997940421,
0.01888720877468586,
0.0018763765692710876,
0.060247331857681274,
-0.00481416517868638,
-0.022903183475136757,
0.018974335864186287,
0.030901972204446793,
-0.06807493418455124,
-0.01753605157136917,
0.02397863380610943,
-0.004949420224875212,
0.03347940370440483,
-0.017153795808553696,
0.039614029228687286,
0.008871469646692276,
-0.05184812843799591,
-0.02853158488869667,
0.021867983043193817,
0.00922902300953865,
-0.07193999737501144,
-0.003516104305163026,
-0.022678477689623833,
-0.03524268418550491,
0.019290119409561157,
-0.03938630223274231,
-0.04347432404756546,
0.0035911891609430313,
0.03841293230652809,
0.023801876232028008,
-0.00855958927422762,
-0.019478855654597282,
0.007946155034005642,
-0.016583379358053207,
0.011523867025971413,
-0.04177529364824295,
0.015008038841187954,
-0.025016823783516884,
0.006761093158274889,
-0.010285669006407261,
-0.0019150875741615891,
-0.056709181517362595,
0.06998705118894577,
-0.03268224373459816,
-0.01081918552517891,
0.009865113534033298,
0.012214737944304943,
-0.010295107029378414,
0.047339942306280136,
0.020154157653450966,
0.008140604943037033,
-0.049994852393865585,
0.05410649999976158,
-0.06862945109605789,
0.0027677114121615887,
0.006610423792153597,
-0.02067173272371292,
-0.0124140540137887,
0.0013473822036758065,
-0.010030360892415047,
-0.04741954058408737,
0.02722977101802826,
0.026068270206451416,
0.030391689389944077,
0.043615106493234634,
0.019692953675985336,
0.0029361872002482414,
0.014117556624114513,
-0.05029813200235367,
-0.04326288029551506,
0.0070665739476680756,
-0.010458788834512234,
0.003186907386407256,
0.048537831753492355,
0.0497426800429821,
-0.05636368319392204,
-0.03264101967215538,
0.03132622689008713,
0.02999572455883026,
0.0030368396546691656,
-0.0014227088540792465,
0.03327711671590805,
0.04838678240776062,
0.030685944482684135,
-0.022602517157793045,
0.008271101862192154,
0.01768418960273266,
-0.007349460851401091,
0.018664157018065453,
-0.0005216881399974227,
-0.003673258936032653,
-0.02665768750011921,
-0.03267459198832512,
-0.03724181652069092,
0.08001306653022766,
-0.017452137544751167,
-0.0029822438955307007,
-0.019858691841363907,
-0.04793882742524147,
0.05068352073431015,
-0.005690602585673332,
-0.03422396257519722,
-0.004458829294890165,
0.040515318512916565,
-0.02516024373471737,
0.03972732275724411,
-0.023783473297953606,
0.020574228838086128,
0.05407322198152542,
0.03689505532383919,
-0.018790606409311295,
0.007620176766067743,
-0.006244008895009756,
0.009900092147290707,
0.03658101707696915,
-0.0633091852068901,
0.004708812106400728,
-0.05581428483128548,
0.05800560116767883,
-0.06747888773679733,
0.06664461642503738,
0.027707846835255623,
0.04055017605423927,
0.011000111699104309,
-0.033725593239068985,
-0.05790729075670242,
-0.02576754242181778,
-0.06919346749782562,
0.0634506344795227,
-0.017324624583125114,
-0.05194637179374695,
0.06141461059451103,
0.019526319578289986,
-0.0991901233792305,
0.03986978903412819,
0.04213542491197586,
0.021540094166994095,
0.0313507616519928,
0.014164801687002182,
-0.039321169257164,
0.020771773532032967,
-0.0368681438267231,
0.028504766523838043,
-0.03574860095977783,
-0.0019884619396179914,
-0.020646166056394577,
-0.04318905621767044,
-0.005175638943910599,
0.017912648618221283,
-0.0043588425032794476,
-0.002580199856311083,
0.0012359742540866137,
-0.028902439400553703,
-0.07276982069015503,
0.02485462836921215,
0.031190868467092514,
-0.009897110983729362,
-0.0018456070683896542,
-0.015086200088262558,
0.01006382703781128,
0.04662666097283363,
0.0010060591157525778,
-0.05480501428246498,
0.009520428255200386,
0.019383642822504044,
-0.09329525381326675,
-0.0462113656103611,
0.07161484658718109,
-0.003722499357536435,
-0.014421272091567516,
-0.016780639067292213,
0.011866909451782703,
0.015681417658925056,
0.00012614329170901328,
-0.01048686821013689,
0.006730640307068825,
-0.09586386382579803,
-0.008038460277020931,
0.05312590301036835,
0.0030296926852315664,
-0.025511058047413826,
-0.00407057860866189,
0.03675607219338417,
0.0742272362112999,
0.030893266201019287,
-0.013316253200173378,
-0.024805111810564995,
-0.03234262391924858,
0.0010669584153220057,
-0.04406146705150604,
0.04289457947015762,
-0.0033596460707485676,
-0.06681446731090546,
-0.018793808296322823,
-0.03180995583534241,
-0.009036063216626644,
0.029198601841926575,
-0.042617082595825195,
0.026845846325159073,
0.02311967872083187,
-0.03003770112991333,
-0.04621995612978935,
-0.10928241163492203,
-0.05498283728957176,
-0.0262604970484972,
-0.0019299446139484644,
0.042393118143081665,
-0.03621182590723038,
-0.005813168361783028,
-0.011112469248473644,
-0.017373520880937576,
0.04496360570192337,
-0.004249251913279295,
-0.043525330722332,
0.06510826200246811,
0.06485714763402939,
0.0008408874273300171,
0.02845894545316696,
0.0007848671521060169,
-0.025917189195752144,
0.024559469893574715,
-0.023251410573720932,
0.028088560327887535,
0.032006535679101944,
0.02134494110941887,
-0.014270279556512833,
-0.013657618314027786,
-0.03355930745601654,
-0.02523881010711193,
-0.01356129813939333,
0.004483066499233246,
0.0769500657916069
] |
ClaudeYang/awesome_fb_model | [
"pytorch",
"bart",
"text-classification",
"dataset:multi_nli",
"transformers",
"zero-shot-classification"
] | zero-shot-classification | {
"architectures": [
"BartForSequenceClassification"
],
"model_type": "bart",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 26 | null | ---
pipeline_tag: zero-shot-classification
datasets:
- multi_nli
widget:
- text: "ETH"
candidate_labels: "Location & Address, Employment, Organizational, Name, Service, Studies, Science"
hypothesis_template: "This is {}."
---
ETH Zeroshot | [
-0.01035753171890974,
0.0011775840539485216,
0.0238056480884552,
0.01719270460307598,
0.06262799352407455,
0.013107715174555779,
-0.022360816597938538,
0.011554178781807423,
-0.04136341065168381,
0.05395768955349922,
0.017679397016763687,
0.012091890908777714,
0.035024724900722504,
0.0346437506377697,
-0.04541869834065437,
-0.013214386068284512,
-0.01775769330561161,
-0.02668025530874729,
-0.0641472190618515,
0.0018505719490349293,
0.028090806677937508,
-0.019408810883760452,
-0.005969326477497816,
0.04204476252198219,
-0.011662383563816547,
0.009129196405410767,
-0.028256714344024658,
0.03502384200692177,
0.10261812806129456,
-0.026228712871670723,
0.028852615505456924,
-0.04254439100623131,
-0.02496868558228016,
-0.03850236535072327,
-0.06456358730792999,
-0.003957763779908419,
-0.005932899191975594,
-0.0104453694075346,
0.016298705711960793,
0.048845238983631134,
0.006789038423448801,
0.01717725582420826,
0.00024555306299589574,
-0.04234457015991211,
0.06122273951768875,
0.021829241886734962,
-0.03330833464860916,
-0.022673452273011208,
0.02900405041873455,
-0.02054782770574093,
-0.061751749366521835,
-0.0689416229724884,
-0.04820624738931656,
0.023010820150375366,
-0.04928939417004585,
-0.04883519932627678,
-0.03220180422067642,
0.024900518357753754,
0.08481280505657196,
-0.04764462262392044,
-0.03788122162222862,
-0.026757389307022095,
-0.06403195112943649,
0.020880291238427162,
0.003806043416261673,
-0.05636703222990036,
0.025468669831752777,
-0.051018692553043365,
0.012168172746896744,
0.0022448692470788956,
0.0565105602145195,
-0.009321395307779312,
0.007493653800338507,
-0.04538663476705551,
-0.0214688777923584,
-0.0144225237891078,
0.04782945662736893,
0.012831964530050755,
-0.026252374053001404,
0.06401552259922028,
0.027400849387049675,
0.00642451923340559,
0.06970223039388657,
-0.007475312799215317,
-0.006945224944502115,
0.041880059987306595,
-0.0325748436152935,
-0.00708924001082778,
0.04138557240366936,
0.019389498978853226,
-0.02602532133460045,
-0.058340884745121,
-0.002820524387061596,
-0.02830037660896778,
-0.03196461871266365,
0.03696057200431824,
0.060552868992090225,
0.0009325330029241741,
0.02560134045779705,
0.03313770890235901,
0.029564840719103813,
0.047153539955616,
-0.012658820487558842,
0.06600827723741531,
-0.014865446835756302,
0.0003233067109249532,
0.004761361517012119,
-0.03048538789153099,
-0.043853238224983215,
0.016116494312882423,
-0.012387673370540142,
-0.009567145258188248,
-0.021845705807209015,
0.04258947819471359,
0.026523621752858162,
0.020703531801700592,
0.06320203095674515,
-0.041624970734119415,
-0.017513561993837357,
-0.03354639559984207,
0.04747562110424042,
0.0024843888822942972,
-0.026454702019691467,
-0.005309711210429668,
-0.011345704086124897,
-0.002359428908675909,
-0.0438714362680912,
-0.008627073839306831,
-0.01604629121720791,
-0.011073417961597443,
0.014180491678416729,
0.03924780339002609,
-0.00916899461299181,
-0.054227862507104874,
0.028393594548106194,
0.03957138583064079,
-0.05494430288672447,
0.046097852289676666,
0.00535574508830905,
0.1014510840177536,
-0.07042551785707474,
-0.07287036627531052,
0.003051145700737834,
0.012873691506683826,
-0.03386981785297394,
0.0035535411443561316,
-0.003971825819462538,
-0.063349649310112,
-0.008742017671465874,
-0.028810812160372734,
0.027366701513528824,
-0.058308593928813934,
0.008128657005727291,
0.07653234153985977,
0.011450586840510368,
0.048739511519670486,
-0.047902703285217285,
-0.01870657131075859,
-0.003768158843740821,
0.0014019828522577882,
-0.037899199873209,
0.028537333011627197,
-0.030300823971629143,
-0.007126068230718374,
-0.028997022658586502,
-0.039055828005075455,
-0.005230241920799017,
0.07791787385940552,
-0.02241610735654831,
-0.02556060068309307,
-0.06351888924837112,
0.024980491027235985,
0.04913577064871788,
0.03148239478468895,
-0.012318174354732037,
0.03720065578818321,
0.06059248000383377,
0.028330719098448753,
-0.05323820933699608,
0.08710309118032455,
0.031749431043863297,
-0.03652703016996384,
-0.050329193472862244,
0.006524284370243549,
0.0280827134847641,
-0.013934732414782047,
-0.00599856348708272,
0.023715851828455925,
0.016707008704543114,
-0.05935627222061157,
-0.014278285205364227,
0.02880622074007988,
0.017237937077879906,
-0.0070949397049844265,
0.0005554395611397922,
-0.0014251827960833907,
-0.018717296421527863,
0.018803730607032776,
-0.003425921779125929,
0.01205897144973278,
-0.021136578172445297,
-0.03376862406730652,
0.013740073889493942,
0.026995275169610977,
0.03186160326004028,
0.06900317966938019,
-0.00011315099254716188,
0.06418459862470627,
-0.028385980054736137,
0.004451842978596687,
-0.03644992783665657,
-0.03124041110277176,
-0.00889255478978157,
0.05051688849925995,
0.025678908452391624,
0.03669891506433487,
-0.017035281285643578,
-0.05821087211370468,
0.04975166171789169,
0.062090933322906494,
0.0471707358956337,
0.005257955752313137,
-0.04243059456348419,
0.017477108165621758,
0.013171105645596981,
0.02073984593153,
-0.01280186790972948,
-0.03827008977532387,
0.01792413927614689,
0.03760715574026108,
-0.009249291382730007,
-0.014010450802743435,
-0.01837155409157276,
0.010513895191252232,
-0.039189718663692474,
-0.0204253438860178,
0.0049134972505271435,
0.011095276102423668,
-0.0023390245623886585,
0.028615862131118774,
-0.023645145818591118,
-0.006542854942381382,
0.06336507201194763,
-0.0031700031831860542,
0.033624835312366486,
-0.06665446609258652,
0.01860946975648403,
0.004083208739757538,
0.04944999888539314,
-0.05245368182659149,
0.02691677212715149,
0.011483539827167988,
0.005568054970353842,
0.06398594379425049,
-0.025615384802222252,
0.04041672870516777,
0.0726383775472641,
0.03251725062727928,
-0.04588090255856514,
0.01718967780470848,
0.03644632548093796,
0.02072296477854252,
0.07214058190584183,
0.012041311711072922,
0.08581604063510895,
-0.04022427275776863,
0.04994307830929756,
0.06850031018257141,
0.014294792897999287,
0.023666733875870705,
0.05829091742634773,
0.06730695068836212,
-0.02993115223944187,
0.004250733181834221,
0.05657540261745453,
-0.03298678249120712,
0.012564974837005138,
-0.04450752213597298,
0.000945211504586041,
-0.044457241892814636,
-0.02709580957889557,
0.08319961279630661,
0.022695528343319893,
-0.03572196885943413,
-0.013349068351089954,
0.0004504505486693233,
-0.015154383145272732,
0.05192720890045166,
-0.017039015889167786,
-0.0015034638345241547,
0.0053941477090120316,
-0.023276928812265396,
0.034673724323511124,
-0.04473679140210152,
-0.06074528768658638,
-0.011516948230564594,
-0.02709946408867836,
-0.0017735352739691734,
-0.0635855495929718,
-0.008091864176094532,
-0.08110149949789047,
-0.016015075147151947,
0.06462286412715912,
0.013372757472097874,
-0.006093840580433607,
-0.026193995028734207,
0.022365350276231766,
-0.02610158920288086,
-0.048986442387104034,
-0.05544469133019447,
-0.06652294099330902,
-0.01653902791440487,
-0.046464841812849045,
0.030236903578042984,
0.031128564849495888,
0.02148427627980709,
0.0354415662586689,
0.010893542319536209,
-0.010232323780655861,
-0.04518461227416992,
0.06570710986852646,
0.048850394785404205,
-0.012520928867161274,
-0.031168565154075623,
0.013170541264116764,
-0.0033995124977082014,
0.01525138784199953,
-0.00621810182929039,
-0.05926382914185524,
0.07822607457637787,
0.02947934903204441,
0.032041262835264206,
-0.007447050418704748,
0.016591597348451614,
-0.055114082992076874,
-0.033940523862838745,
-0.056639663875103,
-0.017897268757224083,
-0.020091012120246887,
-0.03421899676322937,
-0.02614196017384529,
-0.027399588376283646,
-0.060907118022441864,
0.0067697553895413876,
-0.0169911477714777,
-0.007371300831437111,
0.020547857508063316,
0.02369706705212593,
0.024613944813609123,
0.033757466822862625,
-0.07040372490882874,
-0.024167416617274284,
0.07308744639158249,
-0.022280996665358543,
-0.024323375895619392,
-0.08669909089803696,
-0.01856428198516369,
0.02909971959888935,
-0.01567351073026657,
0.041171710938215256,
-0.0015127529622986913,
0.06060279905796051,
0.009318480268120766,
0.0021570143289864063,
0.02874968945980072,
-0.0166615080088377,
-0.007378610782325268,
-0.010410062037408352,
-0.033829063177108765,
-0.01954222470521927,
-0.031898874789476395,
-0.007407267112284899,
-0.03449096903204918,
0.029848862439393997,
-0.06463083624839783,
-0.049676407128572464,
-0.011379734613001347,
0.02715897746384144,
0.03763787820935249,
-0.0072836545296013355,
-0.04066925123333931,
-0.011147885583341122,
-0.053201451897621155,
-0.01269907783716917,
0.012704549357295036,
0.005853733513504267,
0.011516871862113476,
0.004763088654726744,
0.01520618237555027,
0.0020517364609986544,
0.040635962039232254,
0.04248153790831566,
0.042429663240909576,
0.017860502004623413,
-0.030331213027238846,
0.02347164787352085,
-0.01678476668894291,
0.014203728176653385,
-0.032549962401390076,
-0.020390642806887627,
-0.02246248722076416,
-0.08901861310005188,
-0.03239080309867859,
0.011664514429867268,
-0.031181354075670242,
0.015457211062312126,
0.03231304883956909,
-0.012783036567270756,
-0.006568185519427061,
-0.025242123752832413,
0.01290261372923851,
0.0545162595808506,
-0.03693585842847824,
0.05497245118021965,
-0.03255283832550049,
0.019571194425225258,
-0.021595943719148636,
0.01276874728500843,
-0.055817823857069016,
-0.033259063959121704,
0.0007634524954482913,
0.03762960433959961,
0.019432801753282547,
0.02705838531255722,
0.05396972596645355,
-0.004047689028084278,
-0.029859356582164764,
0.06672109663486481,
0.05593878775835037,
-0.02569851651787758,
-0.0561768114566803,
-0.008221786469221115,
0.018068287521600723,
-0.003281421260908246,
0.024447854608297348,
-0.011890843510627747,
0.013164171017706394,
0.03767482936382294,
-0.006770266219973564,
-0.008542188443243504,
-0.02403310127556324,
0.0023057430516928434,
-0.008940351195633411,
-0.031156068667769432,
0.017551157623529434,
0.032279122620821,
-0.03578823059797287,
-0.011667788028717041,
0.07174396514892578,
0.02275736816227436,
0.04901658743619919,
0.026790382340550423,
-0.04192375764250755,
-0.0570671483874321,
0.011740065179765224,
0.020878542214632034,
-0.026795266196131706,
-0.10892336070537567,
-0.03323110193014145,
0.024923697113990784,
0.038244426250457764,
-0.032376594841480255,
-0.0839986726641655,
-0.00010765488696051762,
0.03376594930887222,
-0.07305865734815598,
0.06812428683042526,
0.026786334812641144,
0.022845348343253136,
0.06216036155819893,
-0.043333325535058975,
0.030736062675714493,
-0.008540807291865349,
-0.00896528922021389,
-0.010461927391588688,
0.012220703065395355,
-0.01240974199026823,
-0.019847197458148003,
-0.037227895110845566,
0.03842560201883316,
0.02449391782283783,
0.03297075629234314,
0.019849468022584915,
-0.0648002102971077,
-0.07851477712392807,
-0.02209811843931675,
0.05209679901599884,
-0.03285878151655197,
-0.006310213822871447,
0.03996185213327408,
0.044301390647888184,
-0.040268994867801666,
-0.03381924331188202,
0.02791401371359825,
-0.025674311444163322,
0.03156261518597603,
-0.017870450392365456,
-0.020675966516137123,
-0.03371339663863182,
0.03915049880743027,
-0.01938544027507305,
-0.038806360214948654,
-0.09321650862693787,
0.03557561710476875,
-0.022311188280582428,
-0.02340303175151348,
0.06077520176768303,
0.04801678657531738,
0.046723395586013794,
0.05828525125980377,
-0.008632319048047066,
0.032030411064624786,
-0.004867006093263626,
0.04975801706314087,
-0.03312337398529053,
-0.017689624801278114,
-0.007809770293533802,
-0.0576370470225811,
-0.03260696679353714,
-0.03958462178707123,
-0.03909830003976822,
-0.02930198423564434,
-0.0070219640620052814,
-0.008220142684876919,
-0.007607343140989542,
-0.02499755658209324,
-0.007386063691228628,
0.030035533010959625,
0.015306875109672546,
-0.05085809528827667,
-0.014365741051733494,
-0.023086369037628174,
-0.08759421855211258,
-0.036616209894418716,
0.03025190159678459,
-0.019351067021489143,
-0.002776558743789792,
-0.005715648178011179,
0.037087950855493546,
0.021420234814286232,
-0.00758877070620656,
-0.030146336182951927,
0.013298846781253815,
0.00934778805822134,
0.00878486130386591,
-0.014372126199305058,
0.02692737802863121,
0.006408464629203081,
0.0212065652012825,
-0.04219907149672508,
0.035373978316783905,
0.02739414945244789,
-0.01611831970512867,
0.0029907338321208954,
0.04282009229063988,
0.0007431837148033082,
-0.044893890619277954,
-0.02655176818370819,
-0.01752105914056301,
-0.017606016248464584,
0.025634225457906723,
-0.055063892155885696,
-0.009348404593765736,
-0.010005572810769081,
0.029709437862038612,
0.01885232701897621,
-0.05189301446080208,
-0.023850416764616966,
0.039057664573192596,
-0.03342685475945473,
0.029406936839222908,
-0.0388173945248127,
0.02926412969827652,
-0.022007372230291367,
-0.02397073060274124,
-0.00824358593672514,
0.014704014174640179,
-0.034660834819078445,
0.032654378563165665,
0.008009333163499832,
-0.04001230373978615,
-0.04971819743514061,
-0.00021061924053356051,
-0.011251591145992279,
0.030213087797164917,
0.025617877021431923,
0.029896778985857964,
-0.03145839273929596,
0.036190856248140335,
-0.06826920062303543,
0.033134471625089645,
-0.017249099910259247,
-0.00495562981814146,
-0.02968323789536953,
-0.0018560499884188175,
-0.0012928741052746773,
-0.05187428742647171,
0.020305771380662918,
0.028583960607647896,
0.009607596322894096,
0.020184822380542755,
0.0009969919919967651,
-0.0031574182212352753,
0.02938331663608551,
-0.06118917092680931,
-0.017979104071855545,
-0.031506381928920746,
-0.0109115494415164,
-0.009163190610706806,
0.04731839895248413,
0.028178011998534203,
-0.05426674708724022,
-0.06955622136592865,
0.05470634624361992,
0.04104403033852577,
-0.013833727687597275,
-0.016556257382035255,
0.015038715675473213,
0.05572594329714775,
0.010377204976975918,
-0.016073819249868393,
-0.017735490575432777,
0.007781026419252157,
-0.022970380261540413,
-0.019860317930579185,
-0.008612207137048244,
0.012934120371937752,
-0.021628709509968758,
-0.049081310629844666,
-0.014925997704267502,
0.07713038474321365,
0.02949695847928524,
0.02291925810277462,
-0.022140154615044594,
-0.04837801307439804,
0.04972730204463005,
0.014894665218889713,
-0.042989253997802734,
0.015473213978111744,
0.018587205559015274,
-0.030576996505260468,
0.07726417481899261,
-0.011627674102783203,
0.0064585283398628235,
0.06686282902956009,
0.01679413579404354,
-0.003034319495782256,
0.026896370574831963,
-0.03938049077987671,
-0.0014940937981009483,
0.03917180001735687,
-0.05068739876151085,
-0.002524136332795024,
-0.01137160137295723,
0.039284225553274155,
-0.043655697256326675,
0.05957705155014992,
0.04139687120914459,
0.005166968796402216,
0.05903398618102074,
-0.02813621796667576,
-0.03465699777007103,
0.039816271513700485,
-0.035756442695856094,
0.05264073610305786,
-0.024851258844137192,
-0.0723055899143219,
0.028235996142029762,
0.03959139436483383,
-0.07654064148664474,
0.045890793204307556,
0.019668646156787872,
0.0220511332154274,
0.04169001430273056,
0.03242495283484459,
-0.037749942392110825,
0.01294814795255661,
-0.00917499978095293,
0.010863221250474453,
-0.06911409646272659,
-0.009845370426774025,
0.02369578182697296,
-0.03222695738077164,
-0.03240884095430374,
0.046491362154483795,
0.004677994642406702,
-0.016174670308828354,
0.039801280945539474,
-0.036597173660993576,
-0.05376515910029411,
0.034157559275627136,
0.037406209856271744,
-0.006439520511776209,
0.005530191119760275,
-0.01737896539270878,
-0.013762105256319046,
0.0198585856705904,
-0.02678636461496353,
-0.0015757059445604682,
-0.0033242576755583286,
0.03994803875684738,
-0.08219420909881592,
-0.00045979308197274804,
0.03787362575531006,
0.013646353036165237,
-0.029940154403448105,
0.023596638813614845,
0.02445090003311634,
0.04319530352950096,
0.04157249629497528,
-0.026481295004487038,
0.0034942838829010725,
-0.05778001621365547,
-0.026626847684383392,
0.03138056397438049,
0.009364319033920765,
-0.007518391590565443,
-0.0074519747868180275,
0.024841666221618652,
0.05727916955947876,
0.04476374387741089,
-0.009581399150192738,
-0.01968185231089592,
-0.02345520444214344,
0.021080538630485535,
-0.030264630913734436,
-0.0007890821434557438,
0.0032753129489719868,
-0.04689125344157219,
-0.04227504879236221,
-0.011183170601725578,
-0.020505789667367935,
0.04256787151098251,
-0.02252492494881153,
0.04157847911119461,
0.05079739913344383,
0.01620030775666237,
-0.057865798473358154,
-0.0871078222990036,
-0.0497044138610363,
-0.04261421412229538,
0.04047243297100067,
0.025337958708405495,
-0.017070261761546135,
0.03573805093765259,
-0.024069756269454956,
-0.02822110429406166,
0.05918063595890999,
-0.012087070383131504,
-0.021993346512317657,
0.08473916351795197,
0.04166603088378906,
-0.029665283858776093,
0.03761158138513565,
0.04387767240405083,
-0.05537175014615059,
0.029647091403603554,
0.0030807603616267443,
0.013597887009382248,
0.0167403407394886,
0.0145341157913208,
-0.03958559036254883,
-0.018810566514730453,
-0.025276383385062218,
-0.041413500905036926,
-0.040563955903053284,
-0.010334474965929985,
0.07393401861190796
] |
CogComp/bart-faithful-summary-detector | [
"pytorch",
"jax",
"bart",
"text-classification",
"en",
"dataset:xsum",
"transformers",
"xsum",
"license:cc-by-sa-4.0"
] | text-classification | {
"architectures": [
"BartForSequenceClassification"
],
"model_type": "bart",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": 1,
"max_length": 128,
"min_length": 12,
"no_repeat_ngram_size": null,
"num_beams": 4,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 234 | null | ---
language:
- en
thumbnail: https://cogcomp.seas.upenn.edu/images/logo.png
tags:
- text-classification
- bart
- xsum
license: cc-by-sa-4.0
datasets:
- xsum
widget:
- text: "<s> Ban Ki-moon was elected for a second term in 2007. </s></s> Ban Ki-Moon was re-elected for a second term by the UN General Assembly, unopposed and unanimously, on 21 June 2011."
- text: "<s> Ban Ki-moon was elected for a second term in 2011. </s></s> Ban Ki-Moon was re-elected for a second term by the UN General Assembly, unopposed and unanimously, on 21 June 2011."
---
# bart-faithful-summary-detector
## Model description
A BART (base) model trained to classify whether a summary is *faithful* to the original article. See our [paper in NAACL'21](https://www.seas.upenn.edu/~sihaoc/static/pdf/CZSR21.pdf) for details.
## Usage
Concatenate a summary and a source document as input (note that the summary needs to be the **first** sentence).
Here's an example usage (with PyTorch)
```python
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("CogComp/bart-faithful-summary-detector")
model = AutoModelForSequenceClassification.from_pretrained("CogComp/bart-faithful-summary-detector")
article = "Ban Ki-Moon was re-elected for a second term by the UN General Assembly, unopposed and unanimously, on 21 June 2011."
bad_summary = "Ban Ki-moon was elected for a second term in 2007."
good_summary = "Ban Ki-moon was elected for a second term in 2011."
bad_pair = tokenizer(text=bad_summary, text_pair=article, return_tensors='pt')
good_pair = tokenizer(text=good_summary, text_pair=article, return_tensors='pt')
bad_score = model(**bad_pair)
good_score = model(**good_pair)
print(good_score[0][:, 1] > bad_score[0][:, 1]) # True, label mapping: "0" -> "Hallucinated" "1" -> "Faithful"
```
### BibTeX entry and citation info
```bibtex
@inproceedings{CZSR21,
author = {Sihao Chen and Fan Zhang and Kazoo Sone and Dan Roth},
title = {{Improving Faithfulness in Abstractive Summarization with Contrast Candidate Generation and Selection}},
booktitle = {NAACL},
year = {2021}
}
``` | [
-0.021080143749713898,
-0.02572302520275116,
-0.035950351506471634,
0.03625526651740074,
0.039238397032022476,
0.010241060517728329,
-0.0016730774659663439,
-0.01157265156507492,
-0.04589153081178665,
0.04226065054535866,
0.04301108047366142,
0.02291819453239441,
0.03921537101268768,
0.015920402482151985,
-0.021750476211309433,
-0.04600665718317032,
-0.013056930154561996,
-0.012843001633882523,
-0.015810441225767136,
0.019570710137486458,
0.030607517808675766,
-0.01386123988777399,
-0.013730201870203018,
0.05499270558357239,
0.0008505102596245706,
0.0011874510673806071,
-0.01510914508253336,
0.03702102601528168,
0.02562440186738968,
-0.059978749603033066,
0.015616918914020061,
-0.0416465625166893,
-0.06125853955745697,
0.0002773936721496284,
-0.02525336667895317,
0.01919647864997387,
-0.016006499528884888,
0.005773629993200302,
0.012956421822309494,
0.06631329655647278,
-0.011719699017703533,
0.019693007692694664,
0.0064048366621136665,
-0.02978958934545517,
0.04587676003575325,
0.008298496715724468,
-0.03416777029633522,
-0.039345595985651016,
0.01808059774339199,
-0.02421380765736103,
-0.06447811424732208,
-0.060020532459020615,
-0.03915604203939438,
0.04243014007806778,
0.0027727989945560694,
-0.034995321184396744,
-0.05532972887158394,
0.010682164691388607,
0.05705643072724342,
-0.0366068035364151,
-0.01860496774315834,
0.015742622315883636,
-0.06313297897577286,
0.030379924923181534,
0.033178653568029404,
-0.04064219072461128,
0.01380162313580513,
-0.02796405926346779,
-0.000029260794690344483,
-0.022563312202692032,
0.049811091274023056,
-0.02891959622502327,
0.02635822631418705,
-0.061444658786058426,
-0.02066422998905182,
-0.013913975097239017,
0.04968486726284027,
0.06077712029218674,
-0.0317668616771698,
0.03852012753486633,
0.02486785687506199,
0.01879512518644333,
0.032082363963127136,
-0.039927899837493896,
-0.012209623120725155,
0.020448977127671242,
-0.046806104481220245,
-0.0035049745347350836,
-0.00737242354080081,
0.046942420303821564,
-0.04487983137369156,
-0.04142531752586365,
-0.010395713150501251,
-0.01679283194243908,
-0.03558977693319321,
0.008777494542300701,
0.04883003234863281,
0.0024484985042363405,
0.018254024907946587,
0.040658652782440186,
0.026972992345690727,
0.04465619847178459,
-0.019484594464302063,
0.04164542630314827,
0.01547660119831562,
0.0039864820428192616,
-0.0345320850610733,
-0.056175291538238525,
-0.0348835363984108,
0.04980156570672989,
0.029725207015872,
-0.033550925552845,
-0.0448114275932312,
0.02725268341600895,
0.006145177409052849,
-0.027974123135209084,
0.04051867499947548,
-0.023575052618980408,
-0.03624243289232254,
-0.02659866400063038,
0.03441735729575157,
0.0012855824315920472,
-0.017452476546168327,
-0.014453358948230743,
-0.03575332090258598,
0.01590922102332115,
-0.04598020389676094,
-0.036205146461725235,
-0.004710279870778322,
0.021445777267217636,
0.004275004845112562,
0.03349631279706955,
0.02612660825252533,
-0.04927670583128929,
0.007270378060638905,
0.026484152302145958,
-0.07939230650663376,
0.03371904790401459,
0.026628829538822174,
0.09119930118322372,
-0.062403272837400436,
-0.03304503485560417,
-0.0182094294577837,
-0.004588499199599028,
-0.02540905773639679,
-0.006488378159701824,
0.00903754960745573,
-0.03638705983757973,
-0.033267904072999954,
-0.013266466557979584,
0.037380579859018326,
-0.06058632582426071,
0.00923742726445198,
0.05691222846508026,
-0.015247955918312073,
0.04102494195103645,
-0.044040050357580185,
0.02412707358598709,
0.004315520171076059,
0.016296083107590675,
-0.04099048301577568,
0.06463543325662613,
0.011094426736235619,
0.003593083005398512,
-0.04229523986577988,
-0.03547378256917,
-0.02288985252380371,
0.0910697877407074,
-0.010125294327735901,
-0.035613011568784714,
-0.050459422171115875,
0.00022596582130063325,
0.027956491336226463,
0.01807977445423603,
-0.007395088206976652,
0.031242428347468376,
0.052097368985414505,
0.0459444597363472,
-0.027223503217101097,
0.06489920616149902,
-0.006540495436638594,
-0.005033631343394518,
-0.02007254771888256,
0.03328744322061539,
-0.005974555388092995,
-0.02731933258473873,
0.01287888828665018,
0.04243903234601021,
-0.002689327811822295,
-0.0009656737674959004,
-0.022462528198957443,
0.046187616884708405,
-0.014841957949101925,
0.0012768093729391694,
0.0010925789829343557,
-0.018161283805966377,
-0.02858143113553524,
0.04103720560669899,
-0.02846243977546692,
-0.007454651407897472,
0.005610650405287743,
-0.01679324172437191,
0.00015401578275486827,
0.024961933493614197,
0.04419644549489021,
-0.0063496921211481094,
-0.024404678493738174,
0.08509951829910278,
-0.03492790460586548,
0.020160960033535957,
-0.046277906745672226,
-0.03445452079176903,
-0.008667107671499252,
0.0400981567800045,
0.03658704832196236,
0.07766455411911011,
0.0015400939155369997,
-0.0780310109257698,
0.01359084527939558,
0.03968000039458275,
0.03968463093042374,
0.05107780918478966,
-0.05096002295613289,
-0.0284405630081892,
0.03317774459719658,
0.04485136270523071,
-0.030347725376486778,
-0.05418353155255318,
0.04713309183716774,
0.03621931001543999,
0.002180342562496662,
-0.008510852232575417,
-0.01626398414373398,
0.013732916675508022,
-0.055054277181625366,
-0.05787801742553711,
0.0539805069565773,
0.012035044841468334,
-0.01659112237393856,
0.004419352393597364,
-0.04115590453147888,
0.010237282142043114,
0.02915680594742298,
0.00490568159148097,
-0.002168726408854127,
-0.055286284536123276,
-0.010359403677284718,
0.015211330726742744,
0.07286712527275085,
-0.02179293893277645,
0.054876696318387985,
0.004162117838859558,
0.0008464882266707718,
0.030786564573645592,
-0.038461487740278244,
0.04896920174360275,
0.05536365881562233,
-0.0078601548448205,
-0.03761938214302063,
0.02286963351070881,
0.010823010466992855,
0.041965074837207794,
0.06903636455535889,
0.008737749420106411,
0.06502486765384674,
-0.012870353646576405,
0.06089704483747482,
0.06999383866786957,
0.01374723855406046,
0.0051612285897135735,
0.049567051231861115,
0.06432827562093735,
0.01604481413960457,
-0.015628313645720482,
0.045806922018527985,
-0.058049656450748444,
0.0247652530670166,
-0.04948487505316734,
0.030582962557673454,
-0.01880447380244732,
-0.00592932989820838,
0.03769342228770256,
0.0025282283313572407,
-0.012007049284875393,
0.03358879312872887,
-0.008016710169613361,
-0.003986569121479988,
0.026979252696037292,
0.009918255731463432,
0.011484959162771702,
0.002033151453360915,
-0.008902627043426037,
0.021768884733319283,
-0.05982957035303116,
-0.03613858297467232,
-0.006135252304375172,
-0.04245296120643616,
0.000034614284231793135,
-0.07721876353025436,
-0.02695927582681179,
-0.044594064354896545,
-0.03073968179523945,
0.04247963801026344,
-0.002509399550035596,
0.012428662739694118,
-0.04768865555524826,
-0.0027602342888712883,
-0.028769906610250473,
-0.048853982239961624,
-0.046560488641262054,
-0.040869902819395065,
-0.04243793338537216,
-0.06495647877454758,
0.01733875460922718,
0.030345721170306206,
0.0269473847001791,
0.015097679570317268,
0.00468685757368803,
-0.07119464874267578,
-0.013157359324395657,
0.05038747563958168,
0.025072606280446053,
-0.044709980487823486,
-0.04093986004590988,
0.03423379734158516,
-0.01184347365051508,
0.03856344893574715,
-0.01722642593085766,
-0.041799288243055344,
0.06575009971857071,
0.0840909481048584,
0.01613118313252926,
0.013282185420393944,
0.008928390219807625,
-0.056451216340065,
-0.04918404668569565,
-0.028955455869436264,
-0.03927330672740936,
-0.04411756992340088,
-0.04360545799136162,
-0.02446012943983078,
-0.05082744359970093,
-0.031177254393696785,
-0.027136841788887978,
-0.010709384456276894,
0.01771077699959278,
0.022366145625710487,
0.04185790568590164,
0.021820029243826866,
0.013361998833715916,
-0.04031297191977501,
-0.026086466386914253,
0.06135382130742073,
-0.010062244720757008,
-0.0004665256419684738,
-0.07722871750593185,
-0.02755160629749298,
0.06148093193769455,
0.029285727068781853,
0.023550495505332947,
-0.011218120343983173,
0.08593057841062546,
0.017901184037327766,
-0.021054856479167938,
-0.010759145952761173,
-0.02924695424735546,
-0.006954073905944824,
0.0037338079418987036,
-0.010442771948873997,
-0.03498144820332527,
-0.04894755780696869,
-0.021464407444000244,
-0.028349418193101883,
0.03862729296088219,
-0.0795745849609375,
-0.02732272818684578,
-0.021684058010578156,
0.02801905944943428,
0.04518153518438339,
-0.004670347087085247,
-0.030502749606966972,
-0.0341644361615181,
-0.056992463767528534,
-0.008731111884117126,
-0.019452758133411407,
0.024304192513227463,
0.020484045147895813,
0.038241710513830185,
0.02244303561747074,
-0.03244999051094055,
0.04410966858267784,
0.02809622883796692,
0.05925924330949783,
-0.0018276380142197013,
-0.06721921265125275,
0.02660319209098816,
-0.004189081955701113,
0.016805993393063545,
0.0010824165074154735,
-0.029950536787509918,
-0.039889995008707047,
-0.058775126934051514,
-0.0170524213463068,
0.005553917959332466,
-0.0019595702178776264,
-0.010415051132440567,
0.027135631069540977,
-0.02393917180597782,
-0.03831447660923004,
0.004465007223188877,
0.011796386912465096,
0.05889138579368591,
-0.06650076806545258,
0.03952190652489662,
-0.026008140295743942,
0.03945663571357727,
-0.03909825533628464,
-0.026631971821188927,
-0.04432027041912079,
-0.01919366978108883,
-0.008624810725450516,
0.06344671547412872,
0.024819280952215195,
0.038887374103069305,
0.07822422683238983,
0.007741030305624008,
-0.022707238793373108,
0.024362435564398766,
0.0596909336745739,
0.0046682050451636314,
-0.04629494249820709,
0.01909736730158329,
0.012203709222376347,
-0.04246170073747635,
-0.014324863441288471,
-0.026701252907514572,
0.029446067288517952,
0.038009464740753174,
-0.0008550374186597764,
0.00211952137760818,
0.015309106558561325,
-0.022994304075837135,
-0.04083799198269844,
-0.09482981264591217,
0.0026562626007944345,
-0.0006920014275237918,
-0.03390944376587868,
0.009781093336641788,
0.042870428413152695,
0.011900953017175198,
0.04898115247488022,
0.03399664908647537,
-0.036660999059677124,
-0.04232087358832359,
0.04849177971482277,
0.05385418236255646,
-0.05491749569773674,
-0.06718422472476959,
-0.047725558280944824,
0.016736766323447227,
0.034896302968263626,
-0.03458206728100777,
-0.08677960187196732,
0.009568902663886547,
0.05481131747364998,
-0.050104353576898575,
0.059866491705179214,
0.0028748204931616783,
0.03924636170268059,
0.0573863759636879,
-0.011815754696726799,
0.04950585961341858,
-0.0005712226266041398,
0.0061420570127666,
0.00556845311075449,
0.04113742709159851,
-0.029035700485110283,
-0.02611200325191021,
-0.03007618337869644,
0.03674444556236267,
0.0014310256810858846,
0.04889519885182381,
0.041023749858140945,
-0.03550485521554947,
-0.041899003088474274,
-0.0023529049940407276,
0.04819105193018913,
-0.03882043436169624,
0.015556133352220058,
0.03213701769709587,
0.04105149954557419,
-0.049455881118774414,
-0.05373026803135872,
-0.029262512922286987,
0.0015661012148484588,
0.04330011084675789,
-0.035454247146844864,
-0.033681415021419525,
-0.03585638478398323,
0.011428392492234707,
-0.002323618857190013,
-0.02573505975306034,
-0.09218582510948181,
0.035807885229587555,
0.020071638748049736,
-0.020048262551426888,
0.05702846124768257,
0.04501666873693466,
0.03877069056034088,
0.032691679894924164,
0.015620188787579536,
0.03543230518698692,
-0.030667277052998543,
0.024540789425373077,
-0.03839115425944328,
-0.03357091546058655,
0.00693516293540597,
-0.053164176642894745,
-0.021728768944740295,
-0.046891819685697556,
-0.02987365424633026,
-0.058431655168533325,
-0.018524425104260445,
0.024184439331293106,
-0.016797587275505066,
0.020682228729128838,
-0.014308499172329903,
0.004137749318033457,
-0.023435793817043304,
-0.026368333026766777,
-0.03132600337266922,
-0.036036416888237,
-0.0745730772614479,
-0.004028873052448034,
0.01696447841823101,
0.004196884576231241,
0.020455362275242805,
0.025969412177801132,
0.01387818530201912,
0.019468875601887703,
-0.0010192113695666194,
-0.057986196130514145,
0.036717288196086884,
0.010207206942141056,
-0.03220648691058159,
-0.019109029322862625,
0.023486118763685226,
0.010028345510363579,
0.046074967831373215,
-0.04958762973546982,
0.0020200740545988083,
0.02500648982822895,
-0.01079371478408575,
-0.01682088151574135,
0.04389756917953491,
0.008861919865012169,
-0.05400139093399048,
-0.0501985065639019,
0.006882013287395239,
-0.022316262125968933,
0.06608806550502777,
-0.024387694895267487,
-0.025008421391248703,
0.006263148505240679,
0.022104591131210327,
0.003920270595699549,
0.0013195454375818372,
-0.03335997089743614,
0.035681743174791336,
-0.06257615983486176,
0.02847995050251484,
-0.07347806543111801,
0.05389561131596565,
-0.024575993418693542,
0.007544230669736862,
-0.03507305309176445,
0.00927083007991314,
-0.04024955630302429,
0.05165288597345352,
-0.010177726857364178,
-0.029746536165475845,
-0.012727134861052036,
-0.005159925203770399,
-0.04023059085011482,
0.0216094758361578,
-0.020548364147543907,
-0.007235645782202482,
-0.03416968509554863,
0.02994956076145172,
-0.03945091366767883,
0.02990058995783329,
-0.03562029078602791,
0.02199925296008587,
-0.054933201521635056,
-0.025595588609576225,
0.011339354328811169,
-0.035056933760643005,
0.02679922617971897,
0.04995354637503624,
0.0436132587492466,
0.022810593247413635,
-0.02801818773150444,
0.028610948473215103,
0.045270826667547226,
-0.07335779070854187,
-0.021271802484989166,
-0.017581067979335785,
0.01911139115691185,
-0.012476418167352676,
0.0367940329015255,
0.030938714742660522,
-0.05147192254662514,
-0.04535597562789917,
0.04173654317855835,
0.034605953842401505,
-0.016488831490278244,
-0.003621436655521393,
0.03789737820625305,
0.04308184236288071,
0.020700126886367798,
-0.013879223726689816,
-0.006676712539047003,
-0.0050329649820923805,
-0.021956315264105797,
0.012968079186975956,
-0.011781047098338604,
0.024086639285087585,
-0.0018481913721188903,
-0.03564208745956421,
-0.02738693542778492,
0.10128472000360489,
0.05106441676616669,
0.019340889528393745,
-0.0006272025057114661,
-0.057068608701229095,
0.030563736334443092,
0.01213658507913351,
-0.0469665564596653,
0.019130298867821693,
0.011347661726176739,
-0.0376005582511425,
0.07969406247138977,
-0.017994727939367294,
0.005811057053506374,
0.036451615393161774,
0.04242953658103943,
-0.028423665091395378,
0.028282951563596725,
-0.06969685107469559,
0.03381800651550293,
0.03245965763926506,
-0.05097446218132973,
-0.014434080570936203,
-0.0042130895890295506,
0.04892328381538391,
-0.07135166227817535,
0.04670210927724838,
0.05074794590473175,
-0.002103488426655531,
0.03960845619440079,
-0.02708776667714119,
-0.036542557179927826,
0.010219198651611805,
-0.05116414651274681,
0.061155930161476135,
-0.0029485032428056,
-0.0362105555832386,
0.08624450862407684,
0.027630528435111046,
-0.07209558039903641,
0.025966716930270195,
-0.0003285380662418902,
0.01937399059534073,
0.01247300673276186,
0.032792650163173676,
-0.03559410944581032,
-0.004126144107431173,
-0.062170419842004776,
0.016090864315629005,
-0.057236723601818085,
-0.019445672631263733,
0.030714794993400574,
-0.05222208797931671,
-0.003442584304139018,
0.044876597821712494,
-0.023717835545539856,
0.00938547495752573,
0.045329056680202484,
-0.02832111157476902,
-0.07666905224323273,
-0.014334894716739655,
0.017518609762191772,
-0.0008661860483698547,
0.01021540630608797,
-0.04748474061489105,
0.0167305339127779,
-0.000026181547582382336,
-0.0010681001003831625,
-0.028772452846169472,
0.015324536710977554,
0.02325022965669632,
-0.058789052069187164,
-0.03307131305336952,
0.03778308629989624,
0.03497067466378212,
-0.02656044252216816,
0.029898537322878838,
-0.007988706231117249,
0.021696139127016068,
0.04308830201625824,
0.014999452978372574,
0.01478186622262001,
-0.06677872687578201,
0.008690387941896915,
0.029884573072195053,
0.005772015079855919,
0.06858377903699875,
-0.04569334164261818,
0.043844979256391525,
0.03486928343772888,
0.015575019642710686,
-0.00904602650552988,
-0.052669379860162735,
-0.0085922721773386,
0.010465124621987343,
-0.031971462070941925,
0.019351620227098465,
0.005918119102716446,
-0.06854353845119476,
-0.048685699701309204,
0.0024581397883594036,
-0.016388097777962685,
0.029856543987989426,
-0.044461943209171295,
0.018932458013296127,
0.03658149391412735,
0.033256206661462784,
-0.0528954416513443,
-0.09673216193914413,
-0.04717588052153587,
-0.04685335233807564,
0.03260624036192894,
0.013971328735351562,
-0.02899514138698578,
0.002854117890819907,
-0.0496324859559536,
-0.03798755630850792,
0.034243203699588776,
-0.0003830030036624521,
-0.03053845651447773,
0.048085276037454605,
0.03914280980825424,
-0.02343374490737915,
-0.002633047988638282,
0.03880849853157997,
-0.042275067418813705,
0.03755893185734749,
0.017102567479014397,
0.017024479806423187,
0.009721748530864716,
0.06654085963964462,
-0.03871818259358406,
-0.028977014124393463,
-0.04217220097780228,
-0.027589155361056328,
-0.04549678415060043,
-0.017019011080265045,
0.0378352552652359
] |
Coolhand/Abuela | [
"en",
"image_restoration",
"superresolution",
"license:mit"
] | null | {
"architectures": null,
"model_type": null,
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 0 | null | ---
language:
- en
thumbnail: https://github.com/Nick-Harvey/for_my_abuela/blob/master/cuban_large.jpg
tags:
- image_restoration
- superresolution
license: mit
metrics:
---
@inproceedings{wan2020bringing,
title={Bringing Old Photos Back to Life},
author={Wan, Ziyu and Zhang, Bo and Chen, Dongdong and Zhang, Pan and Chen, Dong and Liao, Jing and Wen, Fang},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
pages={2747--2757},
year={2020}
}
@article{wan2020old,
title={Old Photo Restoration via Deep Latent Space Translation},
author={Wan, Ziyu and Zhang, Bo and Chen, Dongdong and Zhang, Pan and Chen, Dong and Liao, Jing and Wen, Fang},
journal={arXiv preprint arXiv:2009.07047},
year={2020}
}
| [
-0.011517656967043877,
-0.03410547226667404,
-0.008905556984245777,
0.051035311073064804,
0.05378296226263046,
-0.01059431117027998,
0.010284415446221828,
0.013356716372072697,
0.002364901127293706,
0.01974586769938469,
-0.005146987736225128,
0.002407356631010771,
0.0029810038395226,
0.04371451959013939,
-0.03082183189690113,
-0.037222970277071,
-0.02570980414748192,
0.001966141164302826,
-0.04437903314828873,
0.015309828333556652,
0.03184313327074051,
0.0167545098811388,
-0.010500595904886723,
0.0286415908485651,
0.029623808339238167,
-0.0012981535401195288,
0.03625869378447533,
0.02065209299325943,
0.02570636011660099,
-0.09073493629693985,
0.007874595932662487,
-0.0628437027335167,
-0.03522719442844391,
-0.009116405621170998,
-0.02729922905564308,
0.023318201303482056,
0.015872912481427193,
0.02784494310617447,
0.022791679948568344,
0.07206391543149948,
-0.015010029077529907,
0.013683207333087921,
-0.03661956265568733,
-0.04911021515727043,
0.03670294210314751,
-0.005501267500221729,
-0.034786950796842575,
-0.05046031251549721,
0.006357236765325069,
-0.037305109202861786,
-0.08515017479658127,
-0.09476552903652191,
-0.03888385370373726,
0.022547032684087753,
-0.022398624569177628,
-0.007728271652013063,
-0.045872557908296585,
0.0005932742496952415,
0.06713076680898666,
-0.07073195278644562,
-0.03590802103281021,
0.014477680437266827,
-0.08940204977989197,
0.006308529991656542,
0.0176084041595459,
-0.048270951956510544,
-0.004557309206575155,
0.012470223009586334,
0.03840401768684387,
-0.0038621709682047367,
0.03467298299074173,
-0.05298159271478653,
0.0202352162450552,
-0.06718380749225616,
-0.022360701113939285,
-0.025690220296382904,
0.03911084309220314,
0.06174078211188316,
-0.06049302592873573,
0.041665248572826385,
0.010846352204680443,
0.00895330123603344,
0.009450406767427921,
-0.03202830255031586,
-0.034694649279117584,
0.015536352060735226,
-0.035932756960392,
0.015367281623184681,
0.029836945235729218,
0.05619538575410843,
-0.024899223819375038,
-0.006372946780174971,
-0.0155325997620821,
-0.012969392351806164,
-0.0017722760094329715,
0.033706143498420715,
0.042944230139255524,
0.001965467818081379,
0.02447517029941082,
0.029598066583275795,
0.028669821098446846,
0.04035590961575508,
-0.001238980214111507,
0.02928777225315571,
-0.0029267261270433664,
-0.0286912489682436,
-0.024053115397691727,
-0.02570039965212345,
-0.05509265512228012,
0.002763913245871663,
0.062382083386182785,
-0.02983025088906288,
-0.043973349034786224,
0.04157191514968872,
-0.02960091084241867,
0.011151055805385113,
0.047688622027635574,
-0.022705066949129105,
-0.028031498193740845,
-0.0628560408949852,
0.03598840534687042,
0.03197535127401352,
-0.020962702110409737,
-0.0002469500759616494,
-0.05999448895454407,
0.019909098744392395,
-0.036260709166526794,
-0.027197210118174553,
0.01680515892803669,
0.02675667777657509,
-0.0065041533671319485,
0.010551955550909042,
0.01143709011375904,
-0.07787387818098068,
0.00803465861827135,
0.033379487693309784,
-0.047432828694581985,
0.043368835002183914,
0.019619660452008247,
0.09485500305891037,
-0.04505298659205437,
-0.04819346219301224,
0.01324423123151064,
0.021057112142443657,
-0.0312647819519043,
0.018430357798933983,
0.02171388454735279,
-0.028808683156967163,
-0.02316182479262352,
-0.02933337539434433,
0.04882305487990379,
-0.09597791731357574,
-0.03473188355565071,
0.05828874558210373,
-0.0062401555478572845,
0.04733894020318985,
-0.03970053046941757,
-0.010479981079697609,
-0.018968576565384865,
-0.00467926450073719,
-0.005968935322016478,
0.04112011939287186,
-0.013673907145857811,
-0.014294411055743694,
-0.05911204218864441,
-0.06207823380827904,
-0.010950349271297455,
0.0753294974565506,
0.007899429649114609,
-0.04224573075771332,
-0.01203802041709423,
0.019462553784251213,
0.05420258268713951,
0.041299376636743546,
-0.000978453434072435,
0.06161069497466087,
0.0655522271990776,
0.018817931413650513,
-0.022893311455845833,
0.06614307314157486,
0.015715016052126884,
-0.02317206747829914,
-0.03613279014825821,
0.010113079100847244,
0.017471004277467728,
-0.0492529533803463,
0.01159595139324665,
0.028818544000387192,
0.01700505241751671,
-0.026733286678791046,
-0.0036769246216863394,
0.07161705195903778,
-0.029432864859700203,
-0.001818368793465197,
-0.0011158782290294766,
-0.013658935204148293,
-0.017477737739682198,
0.04212938994169235,
-0.04338768124580383,
-0.013456910848617554,
-0.03185071796178818,
-0.030072689056396484,
-0.01918286643922329,
0.017223965376615524,
0.003982352092862129,
0.020304080098867416,
-0.020666632801294327,
0.07193352282047272,
-0.032112523913383484,
0.0045551699586212635,
-0.028641093522310257,
-0.06852243840694427,
-0.00877461675554514,
0.040888506919145584,
0.0287125576287508,
0.041546911001205444,
-0.012431440874934196,
-0.04382544755935669,
0.027716653421521187,
0.06415589153766632,
0.05254114791750908,
0.03662840649485588,
-0.03063950315117836,
-0.017197290435433388,
0.03789837658405304,
0.03457792475819588,
-0.053761616349220276,
-0.04360264912247658,
0.01590796373784542,
0.030528226867318153,
-0.02802267298102379,
0.004569286480545998,
-0.03378509357571602,
0.018529225140810013,
-0.051678840070962906,
-0.06643148511648178,
0.042451921850442886,
0.03392794355750084,
-0.021213915199041367,
0.049718376249074936,
-0.00870216079056263,
0.005181226413697004,
0.03810513764619827,
0.023237138986587524,
0.025889266282320023,
-0.01122309360653162,
0.011484650894999504,
0.014587759971618652,
0.05056295543909073,
-0.02713627927005291,
0.03836185485124588,
0.005726193077862263,
-0.008012766018509865,
0.03493262454867363,
-0.02271048165857792,
0.009121454320847988,
0.07068030536174774,
0.013439134694635868,
-0.009252559393644333,
0.02808110974729061,
0.010539044626057148,
-0.004921177867799997,
0.03103029914200306,
0.001189103233627975,
0.04322884976863861,
-0.005292248912155628,
0.06409785896539688,
0.08048626780509949,
0.0013722267467528582,
0.02338399551808834,
0.04897143319249153,
0.07326836884021759,
-0.012192427180707455,
-0.03712547942996025,
0.06456431746482849,
-0.01532189641147852,
-0.005938271060585976,
-0.01104953046888113,
0.008201231248676777,
-0.025765925645828247,
0.002265860792249441,
0.028309360146522522,
0.007822358049452305,
-0.030211860314011574,
-0.000294067693175748,
-0.008690955117344856,
-0.00979817844927311,
0.04059983789920807,
0.005466902162879705,
-0.004813007079064846,
-0.009470880031585693,
-0.02772504650056362,
0.014099981635808945,
-0.025217419490218163,
-0.04768381267786026,
-0.011578007601201534,
-0.0410802848637104,
-0.003794814459979534,
-0.0804828405380249,
-0.01070213783532381,
-0.07360334694385529,
-0.0352926030755043,
0.06626272946596146,
0.020981572568416595,
-0.004984488245099783,
-0.04035753384232521,
0.01955808885395527,
-0.005767958704382181,
-0.005691209342330694,
-0.0469030998647213,
-0.022104546427726746,
-0.024200232699513435,
-0.0499202162027359,
0.012349187396466732,
0.015605415217578411,
0.06456286460161209,
0.004919873550534248,
0.018714021891355515,
-0.033791620284318924,
-0.028075627982616425,
0.06831850111484528,
0.04028840735554695,
-0.015781300142407417,
-0.029180292040109634,
0.002115313895046711,
-0.007872309535741806,
0.0002637820434756577,
-0.03285519406199455,
-0.025779247283935547,
0.060446035116910934,
0.07973089069128036,
0.02339148335158825,
0.017347630113363266,
0.010114452801644802,
-0.021746983751654625,
-0.021878682076931,
-0.02678798884153366,
-0.05822937190532684,
-0.01409094501286745,
-0.029243454337120056,
-0.03844328969717026,
-0.02546004392206669,
-0.03360598906874657,
-0.002879529260098934,
0.018326716497540474,
-0.05410248041152954,
0.04437969997525215,
0.043741434812545776,
0.04715347662568092,
0.0541042722761631,
-0.03275812417268753,
-0.03217090293765068,
0.09588239341974258,
0.0009685162804089487,
-0.014570692554116249,
-0.021919546648859978,
-0.023374564945697784,
0.026950590312480927,
0.03387654572725296,
0.007254608441144228,
-0.024313513189554214,
0.05492769926786423,
0.00638201367110014,
-0.022346748039126396,
-0.021935557946562767,
-0.02258014865219593,
-0.029708538204431534,
-0.0037017050199210644,
-0.009818606078624725,
-0.03261856734752655,
-0.05937967076897621,
-0.022051509469747543,
0.0038764229975640774,
0.06200714036822319,
-0.09150301665067673,
-0.06463667750358582,
-0.021294113248586655,
-0.011407341808080673,
0.030090417712926865,
-0.01883598603308201,
-0.05432506278157234,
-0.00782085582613945,
-0.058353278785943985,
-0.017984401434659958,
0.040246885269880295,
0.011619698256254196,
0.021181708201766014,
0.06102249398827553,
0.03123350255191326,
-0.02725113555788994,
0.027939485386013985,
0.03674422577023506,
0.04278331995010376,
0.043282486498355865,
-0.05189913883805275,
0.05598071590065956,
-0.008303772658109665,
0.010528073646128178,
0.027226522564888,
-0.029794402420520782,
-0.0555141344666481,
-0.03522520884871483,
0.006303369998931885,
-0.009575690142810345,
-0.0009766992880031466,
-0.042677685618400574,
0.05364035442471504,
-0.011760980822145939,
-0.0010453155264258385,
0.022060519084334373,
0.006515390705317259,
0.05688321217894554,
-0.0693812146782875,
0.07275937497615814,
0.013411186635494232,
0.02893923409283161,
-0.027131900191307068,
0.0004886150709353387,
-0.04073513299226761,
-0.011233467608690262,
-0.00038044623215682805,
0.05539952218532562,
0.02816450409591198,
0.006134573835879564,
0.0389079786837101,
0.011033276095986366,
-0.026821156963706017,
0.022460877895355225,
0.05722637474536896,
-0.015988947823643684,
-0.05182753503322601,
0.019058365374803543,
-0.02720346674323082,
-0.008834417909383774,
-0.017177099362015724,
-0.021042443811893463,
0.009879063814878464,
0.05332498624920845,
-0.0010061293141916394,
-0.004768235143274069,
0.020270545035600662,
-0.018577180802822113,
-0.031214630231261253,
-0.05560968071222305,
0.017003647983074188,
0.004740123171359301,
-0.014182701706886292,
-0.00036392657784745097,
0.05211813375353813,
0.002258632332086563,
0.04771323874592781,
0.03142295405268669,
-0.016875185072422028,
-0.03478463739156723,
0.044008173048496246,
0.043900392949581146,
-0.043963294476270676,
-0.04974290356040001,
-0.053737539798021317,
0.051390066742897034,
-0.001893258886411786,
0.01739903911948204,
-0.09617477655410767,
0.028121858835220337,
0.034149833023548126,
-0.06144757941365242,
0.04663233831524849,
0.005112805403769016,
0.04918896034359932,
0.07190464437007904,
0.003737205872312188,
0.03524380922317505,
-0.024161437526345253,
0.00645914301276207,
-0.0021828669123351574,
0.04802623763680458,
-0.02351435460150242,
-0.009659584611654282,
-0.03398779407143593,
0.041502878069877625,
-0.008406667038798332,
0.021700164303183556,
0.05921655520796776,
-0.04459242522716522,
-0.06551995128393173,
0.00870185624808073,
0.04728962481021881,
-0.09900356829166412,
0.003565821796655655,
0.02211633510887623,
0.0411832295358181,
-0.04106861352920532,
-0.003841439029201865,
-0.01638847216963768,
-0.00022476415324490517,
0.057318683713674545,
-0.008213509805500507,
-0.0599609836935997,
-0.054295614361763,
0.025372954085469246,
0.010014821775257587,
-0.04576806351542473,
-0.07202640175819397,
0.0464385561645031,
-0.002031670417636633,
-0.0047639100812375546,
0.03343430534005165,
0.0157907847315073,
0.04688837751746178,
0.06174666807055473,
0.015403145924210548,
0.028255803510546684,
-0.0468515083193779,
0.040858592838048935,
-0.06107833981513977,
-0.014053033664822578,
0.03449379652738571,
-0.022909769788384438,
-0.028939012438058853,
-0.03365869075059891,
-0.03626788780093193,
-0.031966716051101685,
0.00042943417793139815,
0.04633431136608124,
-0.00398480286821723,
-0.034542880952358246,
-0.023953450843691826,
0.023619990795850754,
0.003404867835342884,
-0.004686554428189993,
-0.018058137968182564,
-0.029392059892416,
-0.05653629079461098,
-0.03384434059262276,
0.018896348774433136,
-0.013391738757491112,
0.013725437223911285,
0.012281850911676884,
0.02855326607823372,
0.01704704388976097,
0.007469478994607925,
-0.01697198860347271,
0.032868847250938416,
0.033727120608091354,
-0.0483664833009243,
-0.02787749096751213,
0.0006169604021124542,
0.026982389390468597,
0.06026770547032356,
-0.053211797028779984,
0.040488697588443756,
-0.001350191654637456,
-0.006394677795469761,
-0.01721007004380226,
0.03696965053677559,
0.008616575039923191,
-0.07405504584312439,
-0.03874736279249191,
-0.014332509599626064,
-0.008013508282601833,
0.04543382674455643,
-0.03679993748664856,
-0.04065576195716858,
0.018007822334766388,
0.00920818280428648,
0.04042242467403412,
-0.021679086610674858,
-0.03614348918199539,
0.02004619687795639,
-0.03635652735829353,
0.025036919862031937,
-0.05800611898303032,
0.018447378650307655,
-0.03436967730522156,
-0.006835410837084055,
-0.01475426647812128,
-0.02300865761935711,
-0.05237971991300583,
0.0501568429172039,
-0.025734612718224525,
-0.0008506762096658349,
-0.027035634964704514,
0.0427674800157547,
-0.02899797633290291,
0.03528602793812752,
-0.014078272506594658,
0.010156981647014618,
-0.03697238862514496,
0.05575557053089142,
-0.05489278584718704,
-0.014256521128118038,
-0.015027277171611786,
0.004014702048152685,
-0.06126231700181961,
-0.024454716593027115,
-0.031506847590208054,
-0.046540819108486176,
0.05407613143324852,
0.05472530797123909,
0.04263479262590408,
0.0014201243175193667,
-0.0505865141749382,
0.005393844563513994,
0.06427374482154846,
-0.048173002898693085,
-0.03267164155840874,
0.014810346066951752,
-0.024676408618688583,
0.006535370368510485,
0.03889128193259239,
0.01971697062253952,
-0.06860774010419846,
-0.04409722983837128,
0.04424142837524414,
-0.0005420091329142451,
0.005486141890287399,
-0.0009740370442159474,
0.013118521310389042,
0.06273376941680908,
0.05082947388291359,
-0.028283599764108658,
0.005996474996209145,
-0.018061891198158264,
-0.013301165774464607,
0.025292500853538513,
0.024152038618922234,
0.02524169720709324,
0.006527668796479702,
-0.028385648503899574,
-0.013596782460808754,
0.07386083900928497,
0.04669380187988281,
0.05265567824244499,
-0.019908469170331955,
-0.04421677812933922,
0.017871655523777008,
0.008564552292227745,
-0.03838670998811722,
0.02432667650282383,
0.016566816717386246,
-0.029264090582728386,
0.062455013394355774,
-0.0034284256398677826,
0.014252335764467716,
0.025778915733098984,
0.053372371941804886,
-0.03341466188430786,
0.029380496591329575,
-0.049325305968523026,
0.031071579083800316,
0.03082464076578617,
-0.04910476505756378,
-0.021283384412527084,
-0.049731966108083725,
0.058044642210006714,
-0.08678247779607773,
0.06871349364519119,
0.050872888416051865,
-0.02251342684030533,
0.008234248496592045,
0.010937526822090149,
-0.023159129545092583,
0.020916089415550232,
-0.046340297907590866,
0.05145787447690964,
0.00009511614916846156,
-0.04649538919329643,
0.07288823276758194,
0.02642100676894188,
-0.08239678293466568,
0.05016794055700302,
0.02102677710354328,
0.02657287009060383,
0.01380757987499237,
-0.01068930421024561,
-0.03298449516296387,
0.02877076342701912,
-0.04229041934013367,
0.038777243345975876,
-0.03733471408486366,
-0.033448126167058945,
0.022831730544567108,
-0.011830033734440804,
-0.019614901393651962,
0.024091776460409164,
-0.03603823482990265,
0.015834592282772064,
0.03216530755162239,
-0.03725115954875946,
-0.060754552483558655,
-0.010264108888804913,
0.027959005907177925,
0.011448349803686142,
0.0000797991015133448,
-0.028920702636241913,
0.014795894734561443,
0.013781760819256306,
0.008512998931109905,
-0.02049311250448227,
0.007864386774599552,
0.04979782551527023,
-0.08693325519561768,
-0.052468352019786835,
0.04032596945762634,
0.006275497376918793,
-0.024447064846754074,
0.011378412134945393,
-0.02693127654492855,
0.014837536960840225,
0.04599644988775253,
-0.019732195883989334,
0.00403484795242548,
-0.030299825593829155,
-0.02003907598555088,
0.023033462464809418,
0.012545118108391762,
-0.0030792944598942995,
-0.007592285517603159,
0.01989763416349888,
0.04109419882297516,
0.027312010526657104,
0.00316198100335896,
0.001991020515561104,
-0.01609054021537304,
0.044923871755599976,
-0.01721014641225338,
0.01282807718962431,
-0.0076381065882742405,
-0.07290292531251907,
-0.037031881511211395,
-0.003070255508646369,
-0.019300417974591255,
0.03258692845702171,
-0.07389677315950394,
0.0007588295266032219,
0.03911089897155762,
0.010185565799474716,
-0.02982354164123535,
-0.11112327128648758,
-0.030861983075737953,
-0.04285484552383423,
0.020451420918107033,
0.010165837593376637,
-0.04878341034054756,
0.01906634122133255,
-0.012655544094741344,
-0.046629998832941055,
0.023136267438530922,
-0.0012662613298743963,
-0.021650249138474464,
0.043373290449380875,
0.04190996661782265,
-0.029947400093078613,
0.01202466432005167,
0.04744073748588562,
-0.05867151916027069,
0.03675467148423195,
0.016103209927678108,
0.019272785633802414,
-0.0006387363537214696,
0.03406299278140068,
-0.008993232622742653,
-0.005775591358542442,
-0.04151246324181557,
-0.03139909356832504,
-0.022667240351438522,
0.026160987094044685,
0.027896927669644356
] |
CopymySkill/DialoGPT-medium-atakan | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 7 | 2021-09-23T17:08:19Z | ---
tags:
- conversational
---
# Atakan DialoGPT Model | [
-0.033462654799222946,
0.014642354100942612,
0.00981519091874361,
0.01700306497514248,
0.015098954550921917,
0.01294666063040495,
-0.005834856536239386,
0.025119565427303314,
-0.015526024624705315,
0.027102919295430183,
0.036575064063072205,
-0.039991553872823715,
0.011526745744049549,
0.042362455278635025,
-0.04575512185692787,
-0.013040662743151188,
-0.032369229942560196,
0.012949415482580662,
-0.022274333983659744,
-0.023693498224020004,
0.037146829068660736,
0.00010725035099312663,
-0.03163832053542137,
0.024062756448984146,
0.01060115359723568,
0.03253266215324402,
-0.013890640810132027,
0.011214750818908215,
0.024513036012649536,
-0.03224058076739311,
0.013784767128527164,
-0.045712973922491074,
-0.025462914258241653,
-0.02647293359041214,
-0.02739090472459793,
-0.049252815544605255,
0.023214656859636307,
-0.00254720076918602,
-0.006865874398499727,
0.038463614881038666,
-0.029577871784567833,
0.00016091698489617556,
0.0053497543558478355,
-0.034273646771907806,
0.06990353763103485,
-0.007365616504102945,
-0.04833659529685974,
-0.013807239010930061,
0.01805933006107807,
-0.026383625343441963,
-0.037910763174295425,
-0.07118235528469086,
-0.06260358542203903,
-0.026507889851927757,
0.012827504426240921,
-0.06013713404536247,
-0.07059233635663986,
-0.023721866309642792,
0.09033554792404175,
-0.02188817784190178,
-0.014749476686120033,
0.0035147848539054394,
-0.08900207281112671,
0.013981739990413189,
0.016772419214248657,
-0.06700533628463745,
0.002950063208118081,
-0.050580885261297226,
0.023219801485538483,
-0.036496564745903015,
0.05413800850510597,
-0.04787125065922737,
0.018396886065602303,
-0.08478022366762161,
-0.021366655826568604,
-0.0015145790530368686,
0.03819076344370842,
0.06662146002054214,
-0.03444177657365799,
0.06383424997329712,
0.043078403919935226,
-0.0004643451247829944,
0.055530089884996414,
-0.003370697610080242,
-0.035074759274721146,
0.04978714510798454,
-0.048139166086912155,
0.0018372319173067808,
0.005755808670073748,
0.02083752118051052,
-0.031917233020067215,
-0.05209243670105934,
-0.019185185432434082,
-0.004910038784146309,
-0.011818576604127884,
0.026657192036509514,
0.01836427114903927,
-0.02824670448899269,
0.022714007645845413,
0.03957662358880043,
0.024998165667057037,
0.048331767320632935,
-0.026856791228055954,
0.03897746279835701,
-0.003666628384962678,
0.02677660621702671,
0.012642689049243927,
-0.026617512106895447,
-0.04502776265144348,
0.027138572186231613,
0.014194793067872524,
-0.055924054235219955,
-0.03946702927350998,
0.036245428025722504,
0.0048597948625683784,
-0.007308423053473234,
0.056795910000801086,
-0.028358733281493187,
-0.024802519008517265,
-0.06095030903816223,
0.04702926427125931,
-0.019043520092964172,
-0.01087653636932373,
-0.008414465934038162,
-0.044182419776916504,
-0.002519708825275302,
-0.04294993728399277,
-0.02209440991282463,
-0.006230731960386038,
-0.00624849833548069,
0.006557074375450611,
0.027743542566895485,
-0.033732183277606964,
-0.06497835367918015,
0.006613440345972776,
0.027360573410987854,
-0.07676173746585846,
0.0009106567013077438,
0.034815650433301926,
0.07367409765720367,
-0.0701446682214737,
-0.029964281246066093,
-0.017690978944301605,
0.024908756837248802,
-0.02398102730512619,
-0.006476860027760267,
0.006716377101838589,
0.004005535040050745,
-0.03157522901892662,
-0.02244250476360321,
0.022643961012363434,
-0.05951264500617981,
0.0036231274716556072,
0.06003648787736893,
0.015815824270248413,
0.024765776470303535,
-0.023654121905565262,
0.004642230924218893,
-0.0016537682386115193,
-0.026770535856485367,
-0.05048077926039696,
0.03445318713784218,
-0.01166281197220087,
-0.057075127959251404,
-0.042456772178411484,
-0.040249235928058624,
0.011747484095394611,
0.06870939582586288,
0.015262333676218987,
-0.00835811160504818,
-0.01883363537490368,
0.03435536473989487,
0.07491570711135864,
0.034685831516981125,
-0.016908768564462662,
0.017324401065707207,
0.05922102928161621,
0.0217603649944067,
-0.041443418711423874,
0.07502660900354385,
0.013997604139149189,
-0.026594748720526695,
-0.04785085842013359,
-0.02359902858734131,
0.04483695328235626,
-0.01813502423465252,
0.0250120609998703,
0.03630124777555466,
-0.018550138920545578,
-0.025806410238146782,
0.007421867456287146,
0.04892731085419655,
-0.024767430499196053,
-0.005111654754728079,
-0.031823813915252686,
-0.030658960342407227,
-0.03981856629252434,
0.014722726307809353,
-0.038466162979602814,
-0.011834472417831421,
-0.0399775467813015,
0.004122668877243996,
0.03872409835457802,
0.009153148159384727,
0.014517664909362793,
0.03663886711001396,
-0.017444202676415443,
0.06107709929347038,
-0.03814909979701042,
0.019576359540224075,
-0.03842269256711006,
-0.012876657769083977,
-0.030571088194847107,
0.02861565537750721,
0.02015732228755951,
0.05014215037226677,
-0.026814399287104607,
-0.040945038199424744,
0.03799606114625931,
0.0720277726650238,
0.03215260058641434,
0.03231044486165047,
-0.02459145523607731,
-0.002808252116665244,
0.03911954164505005,
0.03375618904829025,
-0.05878589302301407,
0.011987478472292423,
0.005582593847066164,
0.027425773441791534,
-0.022653674706816673,
-0.01896934024989605,
-0.040349286049604416,
0.00429148692637682,
-0.03459583595395088,
-0.05244210362434387,
0.03707369416952133,
0.03671105578541756,
0.004907755181193352,
0.038925621658563614,
-0.003437371226027608,
-0.006498437374830246,
0.03138163685798645,
0.013532816432416439,
-0.0035413422156125307,
-0.07710672914981842,
0.007852232083678246,
0.029867995530366898,
0.10449036210775375,
-0.057685110718011856,
0.013057773932814598,
0.015211513265967369,
0.030486468225717545,
0.026178281754255295,
-0.022013315930962563,
0.04736033082008362,
0.029989100992679596,
0.039219971746206284,
-0.024603914469480515,
0.04053936526179314,
-0.0013219477841630578,
0.020045869052410126,
0.0615277998149395,
0.0006021659355610609,
0.060280658304691315,
-0.016300443559885025,
0.024074479937553406,
0.0705583468079567,
0.015307719819247723,
-0.00888453982770443,
0.01820499636232853,
0.07395240664482117,
0.010322470217943192,
0.027711976319551468,
0.04130217060446739,
0.0019929404370486736,
0.0007668779580853879,
-0.04449639469385147,
0.00800943374633789,
-0.003979315981268883,
-0.021342847496271133,
0.06557942926883698,
-0.003094980027526617,
-0.008100219070911407,
-0.0013104996178299189,
-0.011600401252508163,
0.006541614420711994,
0.05266294255852699,
0.0011256992584094405,
-0.02431977540254593,
0.008549372665584087,
-0.023629866540431976,
0.02087002992630005,
-0.04466904327273369,
-0.03265993297100067,
-0.01603497937321663,
-0.07123567163944244,
-0.011286761611700058,
-0.09491205215454102,
-0.036873336881399155,
-0.06566684693098068,
-0.029507407918572426,
0.0451243594288826,
0.028676297515630722,
0.018865350633859634,
0.011636649258434772,
-0.000007560291123809293,
-0.0199899822473526,
-0.05494751036167145,
-0.045825619250535965,
-0.03270091488957405,
-0.005829713307321072,
-0.04526335373520851,
0.025593053549528122,
0.028297295793890953,
0.036974336951971054,
0.008978416211903095,
-0.023759009316563606,
-0.03471800684928894,
-0.024648692458868027,
0.033996377140283585,
0.02138541080057621,
-0.04942131042480469,
-0.03443542867898941,
0.01903417520225048,
0.00997291598469019,
-0.02081262320280075,
-0.0343928299844265,
-0.04692580923438072,
0.08147743344306946,
0.047321368008852005,
0.00481547974050045,
0.01820891536772251,
-0.0018108142539858818,
-0.04443516954779625,
-0.011600762605667114,
-0.05848103016614914,
-0.03440604731440544,
-0.0031274850480258465,
-0.018818767741322517,
-0.05310623720288277,
-0.023226473480463028,
-0.04077235981822014,
-0.010060620494186878,
0.0030601657927036285,
0.01485720556229353,
0.033980708569288254,
0.0221076812595129,
0.03321812301874161,
0.03158911317586899,
-0.0015014595119282603,
-0.01481587439775467,
0.05129644647240639,
-0.01362668164074421,
-0.016001496464014053,
-0.06890637427568436,
-0.04121355712413788,
0.03780732303857803,
0.0064045279286801815,
-0.015836255624890327,
-0.023033596575260162,
0.04513218253850937,
0.03366032615303993,
-0.0005853939219377935,
0.03435775637626648,
-0.057762403041124344,
-0.001160248531959951,
-0.05813170224428177,
-0.02296849526464939,
-0.0433335117995739,
-0.029304446652531624,
-0.0030445894226431847,
-0.015270684845745564,
0.04315687343478203,
-0.09963170439004898,
-0.02912859432399273,
-0.0326995924115181,
0.022273236885666847,
0.03093206323683262,
-0.000777952722273767,
-0.0468355268239975,
-0.010821948759257793,
-0.034080829471349716,
-0.02735917456448078,
-0.004412749782204628,
-0.009996920824050903,
0.0008000796078704298,
0.03116431273519993,
0.0146994199603796,
-0.029166322201490402,
0.0590193048119545,
0.009096920490264893,
0.06413555890321732,
0.04477362707257271,
-0.02459457889199257,
0.025424135848879814,
-0.02083199843764305,
0.03557761013507843,
-0.011354513466358185,
-0.03763611614704132,
-0.03525923192501068,
-0.10957952588796616,
-0.042631253600120544,
0.018755700439214706,
-0.03492898866534233,
-0.003215878503397107,
0.04077731817960739,
-0.04134685918688774,
-0.006865077652037144,
0.007197911851108074,
0.04566940665245056,
0.039420876652002335,
-0.03468005359172821,
0.06007697433233261,
0.010426214896142483,
0.021223807707428932,
-0.050979308784008026,
-0.006955639459192753,
-0.047002390027046204,
-0.010943285189568996,
-0.0034549073316156864,
0.04385412484407425,
0.014858648180961609,
0.0500960648059845,
0.07344817370176315,
0.032023195177316666,
-0.03372981771826744,
0.057464852929115295,
0.07676713168621063,
-0.029088355600833893,
-0.048034586012363434,
-0.006021518260240555,
-0.01678355596959591,
-0.023576416075229645,
-0.010961108841001987,
-0.05183212086558342,
0.03426359221339226,
0.030512068420648575,
0.001979944994673133,
0.016083229333162308,
0.017032276839017868,
-0.0297017190605402,
-0.03968347981572151,
-0.06621681153774261,
-0.010575009509921074,
-0.0007034975569695234,
-0.022998634725809097,
0.05731387063860893,
0.03806708753108978,
0.025229305028915405,
0.07151263952255249,
0.0194014273583889,
-0.019062841311097145,
-0.056425053626298904,
0.02549353614449501,
0.019336674362421036,
-0.026459094136953354,
-0.057410746812820435,
-0.04711772873997688,
0.027277708053588867,
0.04694985970854759,
-0.03231159970164299,
-0.07924637198448181,
0.026042141020298004,
0.041080545634031296,
-0.04067915678024292,
0.0595690980553627,
-0.013138076290488243,
0.0602259561419487,
0.031052136793732643,
0.013670681044459343,
0.041691940277814865,
-0.0785856544971466,
0.020689034834504128,
-0.021916836500167847,
0.02582123875617981,
-0.06210345774888992,
-0.05223438888788223,
-0.06212262436747551,
0.04243145138025284,
0.02341373637318611,
0.01509396918118,
0.01486869528889656,
-0.03369181230664253,
-0.04382971674203873,
0.011063067242503166,
0.04211249575018883,
-0.01937948539853096,
0.017454255372285843,
0.02658286690711975,
0.05050717294216156,
-0.04705098643898964,
0.005936307832598686,
0.014691745862364769,
0.015932772308588028,
0.021488357335329056,
-0.0038183683063834906,
-0.045163411647081375,
-0.01167052797973156,
0.023967521265149117,
-0.032139141112565994,
-0.03834192082285881,
-0.08616892993450165,
0.023618295788764954,
-0.03448325768113136,
-0.04221900552511215,
0.06645947694778442,
0.07211750000715256,
0.057641077786684036,
0.06630624085664749,
-0.006327314767986536,
0.055161211639642715,
-0.030921118333935738,
0.017344925552606583,
-0.0316273458302021,
-0.02295112982392311,
0.004001049790531397,
-0.08036936819553375,
-0.02577841654419899,
-0.04015268012881279,
-0.030781783163547516,
-0.02975446730852127,
0.01034601405262947,
0.005818463396281004,
-0.013728339225053787,
-0.0051025464199483395,
0.015323175117373466,
0.018246067687869072,
-0.036208104342222214,
-0.03525731340050697,
-0.0007194904610514641,
-0.014807682484388351,
-0.08266311138868332,
-0.06645257771015167,
0.009296653792262077,
-0.019655421376228333,
0.007546046283096075,
0.010106833651661873,
0.015859365463256836,
0.04255591705441475,
-0.015275289304554462,
-0.02760590799152851,
0.014138654805719852,
0.03225952386856079,
-0.021363135427236557,
-0.029195068404078484,
0.018839558586478233,
0.023365875706076622,
0.01619994267821312,
-0.02901040017604828,
0.038313545286655426,
0.0034039851743727922,
-0.0585751086473465,
-0.012336361221969128,
0.021940967068076134,
0.028578797355294228,
-0.06917299330234528,
-0.01542005967348814,
-0.03222639858722687,
-0.022704895585775375,
0.006930021569132805,
-0.04234490171074867,
-0.03135579824447632,
-0.006908243056386709,
0.038416992872953415,
0.02842591144144535,
0.011131610721349716,
-0.022280825302004814,
0.004177900031208992,
-0.001188702299259603,
-0.004002072848379612,
-0.07254329323768616,
0.035144444555044174,
-0.03698747232556343,
0.01233567576855421,
-0.0066045369021594524,
0.00005633040200336836,
-0.04760036617517471,
0.04437347501516342,
-0.00945999100804329,
-0.0002266855735797435,
0.001056458568200469,
-0.022650811821222305,
-0.006568740587681532,
0.05368205904960632,
0.014707701280713081,
-0.0029571542982012033,
-0.03057384304702282,
0.06275644153356552,
-0.05013800412416458,
0.008448148146271706,
-0.005448909010738134,
-0.028484968468546867,
-0.02672937512397766,
0.0017445816192775965,
0.004838987253606319,
-0.06262707710266113,
0.023593688383698463,
0.020442988723516464,
0.03151122108101845,
0.0399341955780983,
-0.0023523736745119095,
0.0048775761388242245,
0.016841517761349678,
-0.05496116727590561,
-0.03340723365545273,
0.002526810159906745,
0.00010302187001798302,
0.01956615224480629,
0.06284057348966599,
0.022158630192279816,
-0.05678862705826759,
-0.020664913579821587,
0.033499520272016525,
0.017837828025221825,
0.013304101303219795,
0.008329866454005241,
0.042152613401412964,
0.0578688345849514,
0.06511043757200241,
-0.010415986180305481,
-0.0041216216050088406,
0.017668014392256737,
-0.022939877584576607,
-0.010504156351089478,
-0.005963635165244341,
0.003358263988047838,
-0.010041305795311928,
-0.03428540751338005,
-0.03780224919319153,
0.06703430414199829,
-0.010554254055023193,
0.009412117302417755,
-0.014963796362280846,
-0.05443292111158371,
0.06249754875898361,
0.00818228255957365,
-0.027397871017456055,
-0.013331335969269276,
0.04070572182536125,
-0.03222687542438507,
0.05181346833705902,
-0.024111807346343994,
0.012362506240606308,
0.0611305832862854,
0.022777535021305084,
-0.00021617290622089058,
0.0028189681470394135,
-0.021978238597512245,
-0.01354594249278307,
0.024093057960271835,
-0.0360054075717926,
-0.012390577234327793,
-0.022045627236366272,
0.06979001313447952,
-0.055310096591711044,
0.05322668328881264,
0.03313310816884041,
0.04227755591273308,
0.02665785886347294,
-0.049628786742687225,
-0.047100335359573364,
-0.0199874434620142,
-0.028599105775356293,
0.0647391751408577,
-0.006081165745854378,
-0.026831356808543205,
0.05040687322616577,
0.03559672087430954,
-0.08221527189016342,
0.04207148775458336,
0.03902009129524231,
0.050043754279613495,
0.03322107717394829,
0.047845155000686646,
-0.04526687413454056,
0.030299168080091476,
-0.021549604833126068,
0.007005980238318443,
-0.05278652161359787,
-0.001214242191053927,
-0.022602299228310585,
-0.056417983025312424,
-0.009263095445930958,
0.029706327244639397,
-0.02441304549574852,
-0.006345072295516729,
0.00924233254045248,
-0.027354717254638672,
-0.06061315909028053,
-0.00304030510596931,
0.032684292644262314,
-0.02019261196255684,
-0.009768402203917503,
-0.028493734076619148,
0.02210644818842411,
0.03317365422844887,
-0.0010466249659657478,
-0.06190994381904602,
0.012292101979255676,
0.003460469888523221,
-0.059687450528144836,
-0.043981537222862244,
0.05545958876609802,
0.015541024506092072,
-0.014696124941110611,
-0.005822387523949146,
0.03758573532104492,
0.020330695435404778,
0.023947035893797874,
-0.016518861055374146,
0.011776345781981945,
-0.07802287489175797,
0.0030150278471410275,
0.017451193183660507,
0.0007480128551833332,
0.002858065301552415,
-0.010589158162474632,
0.033949144184589386,
0.09128609299659729,
0.04855719581246376,
0.010564057156443596,
-0.06517892330884933,
-0.0327298529446125,
0.0022167356219142675,
-0.041375044733285904,
0.039432086050510406,
0.0036224329378455877,
-0.06171148642897606,
-0.026234373450279236,
-0.025196878239512444,
-0.0032948898151516914,
0.0381460078060627,
-0.03892277553677559,
0.018937215209007263,
0.019743267446756363,
0.0003319312527310103,
-0.03549592196941376,
-0.08981268852949142,
-0.04629860073328018,
-0.016267014667391777,
0.029741235077381134,
0.02576175145804882,
-0.06501322984695435,
0.025302249938249588,
-0.03605898097157478,
-0.009303325787186623,
0.05351235717535019,
-0.009944078512489796,
-0.020444294437766075,
0.07497896999120712,
0.06687755137681961,
-0.03584203124046326,
0.06593087315559387,
0.016408389434218407,
-0.03882807493209839,
0.05751607567071915,
0.012399326078593731,
0.027596434578299522,
0.010649745352566242,
0.019405214115977287,
-0.015938417986035347,
-0.01277897134423256,
-0.0173493605107069,
-0.03470225632190704,
-0.0014040584210306406,
-0.005231898743659258,
0.05041571334004402
] |
Corvus/DialoGPT-medium-CaptainPrice-Extended | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 7 | null | ---
tags:
- conversational
---
#DiabloGPT Captain Price (Extended) | [
-0.04326275736093521,
0.03385471925139427,
-0.005610657390207052,
-0.001928122597746551,
0.06598714739084244,
-0.005530508700758219,
-0.003115494968369603,
0.012486283667385578,
0.004461122676730156,
0.022686051204800606,
0.07307977974414825,
0.005858770105987787,
0.006304123904556036,
0.04509957507252693,
-0.05020518973469734,
-0.026233205571770668,
-0.007655028253793716,
0.006005080882459879,
-0.03078075498342514,
-0.0023143861908465624,
0.03458530455827713,
0.019090812653303146,
0.002537190681323409,
0.03118930570781231,
0.03179847449064255,
0.03384407237172127,
-0.013517413288354874,
0.017080051824450493,
0.02172241546213627,
-0.05741118639707565,
0.03072347305715084,
-0.008199427276849747,
-0.020886583253741264,
-0.024319184944033623,
-0.010583257302641869,
-0.018555155023932457,
0.009184722788631916,
-0.014844434335827827,
0.0026559855323284864,
0.01671633869409561,
0.00010819599265232682,
-0.02281678467988968,
0.030496330931782722,
-0.06549491733312607,
0.0571199469268322,
-0.011586695909500122,
-0.04292438551783562,
-0.03836969658732414,
0.021001024171710014,
-0.03992576152086258,
-0.05145375058054924,
-0.054914359003305435,
-0.027918895706534386,
-0.01902330294251442,
0.04152586683630943,
-0.05307961627840996,
-0.03717464208602905,
0.011692427098751068,
0.09783874452114105,
-0.038498684763908386,
0.0023404727689921856,
0.01460216660052538,
-0.0766763910651207,
0.016390375792980194,
0.002186230616644025,
-0.06732135266065598,
0.016633136197924614,
-0.05324527621269226,
0.01743125170469284,
-0.023797381669282913,
0.04753033444285393,
-0.06328520178794861,
0.023824939504265785,
-0.09037132561206818,
-0.016382090747356415,
-0.0009936963906511664,
0.04540234059095383,
0.05182216316461563,
-0.038673724979162216,
0.031498588621616364,
0.026721755042672157,
0.017028750851750374,
0.0651380717754364,
-0.013266141526401043,
-0.04765154421329498,
0.03991881012916565,
-0.05766456201672554,
0.02881845086812973,
0.02477174438536167,
0.0308650154620409,
-0.008064438588917255,
-0.04772477596998215,
-0.031906552612781525,
0.007450760807842016,
-0.0049098823219537735,
0.05434000864624977,
0.047164857387542725,
-0.007096628658473492,
0.033984050154685974,
0.023633399978280067,
0.050716832280159,
0.04770277813076973,
-0.012504125013947487,
0.051119785755872726,
-0.02411486767232418,
0.010208599269390106,
0.015180321410298347,
-0.011834466829895973,
-0.03502199426293373,
0.029159145429730415,
0.009404723532497883,
-0.007275436073541641,
-0.00900155957788229,
0.01073439046740532,
0.04878208041191101,
0.009946689009666443,
0.06648025661706924,
-0.0354253351688385,
-0.028473740443587303,
-0.05460217967629433,
0.06895893067121506,
0.005577707197517157,
-0.04454907774925232,
0.0034703228157013655,
-0.03111780248582363,
-0.019286280497908592,
-0.04482152312994003,
-0.02685612067580223,
-0.022581182420253754,
0.006541306618601084,
0.008322515524923801,
0.03983503580093384,
-0.04772213101387024,
-0.06360768526792526,
0.042003829032182693,
0.0537426695227623,
-0.03874310106039047,
-0.008806739933788776,
0.030722323805093765,
0.08959539234638214,
-0.09283730387687683,
-0.04124075546860695,
-0.028259607031941414,
0.016385667026042938,
-0.042583733797073364,
-0.016581691801548004,
0.02808324433863163,
-0.02292170561850071,
-0.03656577691435814,
-0.016947628930211067,
0.023037126287817955,
-0.056387078016996384,
-0.00010651161574060097,
0.034388672560453415,
0.008419535122811794,
0.02711458131670952,
-0.023052126169204712,
-0.006868647877126932,
-0.0012513704132288694,
-0.027303365990519524,
-0.04651584103703499,
0.05678822100162506,
-0.013028435409069061,
-0.015293033793568611,
-0.050280481576919556,
-0.013906731270253658,
-0.0006003506132401526,
0.06336953490972519,
-0.0038188667967915535,
-0.010858380235731602,
-0.04747684299945831,
0.04322211816906929,
0.04606097564101219,
0.02082991413772106,
0.006904991809278727,
0.027631226927042007,
0.047235194593667984,
0.032404471188783646,
-0.05595196783542633,
0.0665685310959816,
0.012137003242969513,
-0.042156293988227844,
-0.0506758950650692,
0.011078358627855778,
0.015185457654297352,
-0.01794513501226902,
0.008702559396624565,
0.03654339909553528,
-0.025472458451986313,
-0.04040442034602165,
-0.00298182456754148,
0.03545230254530907,
-0.029942218214273453,
-0.0031596545595675707,
-0.003696044906973839,
-0.009274248965084553,
-0.021656326949596405,
0.035123277455568314,
-0.07752876728773117,
-0.0004165001737419516,
-0.02847888693213463,
-0.009275711141526699,
0.04937243461608887,
0.00010412043775431812,
0.018596796318888664,
0.02382410317659378,
-0.022756773978471756,
0.05331150442361832,
-0.04364912584424019,
0.025443395599722862,
-0.024133719503879547,
-0.04589514061808586,
-0.02887064963579178,
0.03641046956181526,
0.009175379760563374,
0.01970764249563217,
-0.015743665397167206,
-0.05574436113238335,
0.05614543706178665,
0.05720535293221474,
0.02626870572566986,
0.026791170239448547,
-0.021447643637657166,
0.011564837768673897,
0.033769696950912476,
0.009180011227726936,
-0.018393609672784805,
0.006366903427988291,
0.004408432170748711,
0.032824475318193436,
0.006323457695543766,
-0.008632278069853783,
-0.036121416836977005,
0.0135904960334301,
-0.05908741056919098,
-0.05755440145730972,
0.05793900415301323,
0.014797216281294823,
-0.02138032205402851,
0.021806763485074043,
0.012698058970272541,
0.005780654493719339,
0.04696584865450859,
0.006108670029789209,
-0.009718166664242744,
-0.07811236381530762,
0.0087757408618927,
-0.022860800847411156,
0.07635781168937683,
-0.06441061198711395,
0.011987264268100262,
0.024689609184861183,
-0.007659821771085262,
0.029330909252166748,
-0.022059494629502296,
0.03166832774877548,
0.0638127401471138,
0.07079477608203888,
-0.040449097752571106,
0.041746143251657486,
-0.0012723483378067613,
0.029394211247563362,
0.05471700429916382,
0.00279990048147738,
0.05010734871029854,
-0.0016747319605201483,
0.02914206124842167,
0.04932282119989395,
0.011730439029633999,
-0.004808112047612667,
0.028218185529112816,
0.05069733411073685,
-0.007530182134360075,
0.03467214107513428,
0.05454755201935768,
-0.011268733069300652,
0.03944302350282669,
-0.051650118082761765,
-0.012623755261301994,
-0.008198624476790428,
-0.022830726578831673,
0.05087374523282051,
0.0194960068911314,
-0.017238659784197807,
-0.0010099903447553515,
-0.03180679678916931,
-0.018232077360153198,
0.01030588150024414,
-0.0018915246473625302,
-0.012456041760742664,
-0.006800835020840168,
-0.019272755831480026,
0.01612602174282074,
-0.04108971729874611,
-0.06078458949923515,
-0.031587935984134674,
-0.03781646862626076,
0.001329478807747364,
-0.1013510450720787,
-0.05035968869924545,
-0.07168056070804596,
-0.008517860434949398,
0.047660794109106064,
0.02352181449532509,
0.0179185401648283,
-0.02112547494471073,
0.01639510504901409,
-0.03131673112511635,
-0.053710244596004486,
-0.03993712365627289,
-0.010317306034266949,
-0.02455371990799904,
-0.035068925470113754,
0.026118643581867218,
0.0674126073718071,
0.026085373014211655,
0.023762661963701248,
-0.026133868843317032,
-0.05721870809793472,
0.005329760257154703,
0.039332665503025055,
0.01450105756521225,
-0.05988490581512451,
-0.03430391103029251,
0.011329754255712032,
-0.0003223047242499888,
-0.028680169954895973,
-0.004401624668389559,
-0.05998796597123146,
0.07840658724308014,
0.053554072976112366,
0.001534830080345273,
-0.010267914272844791,
-0.0013786074705421925,
-0.058559805154800415,
-0.0013352977111935616,
-0.04983166605234146,
-0.0495506227016449,
-0.007068914361298084,
-0.026960046961903572,
-0.050241097807884216,
-0.03440737724304199,
-0.03813083842396736,
0.017704833298921585,
-0.004394659772515297,
-0.01565810851752758,
0.02744712308049202,
0.005701081827282906,
0.02082652971148491,
-0.005215208977460861,
-0.028904715552926064,
-0.021392537280917168,
0.057614512741565704,
-0.027634184807538986,
-0.031307388097047806,
-0.08602907508611679,
-0.054744090884923935,
0.014666613191366196,
0.01825011521577835,
0.007577513810247183,
0.0054727704264223576,
0.04907318577170372,
0.03721873462200165,
-0.005741859320551157,
0.05630761384963989,
-0.060752686113119125,
0.002258404390886426,
-0.03412342816591263,
-0.004964997060596943,
-0.0597061924636364,
-0.03633194416761398,
-0.00897596962749958,
0.01842738315463066,
0.03800471872091293,
-0.05389701575040817,
-0.02148299291729927,
-0.03206131234765053,
-0.004785498138517141,
0.041326552629470825,
-0.006354439537972212,
-0.050035469233989716,
-0.022566379979252815,
-0.042995747178792953,
0.0015460181748494506,
-0.022807534784078598,
-0.005503276828676462,
0.014226083643734455,
0.02865929901599884,
0.0394803024828434,
-0.02485838532447815,
0.040831781923770905,
0.02366320975124836,
0.04948516562581062,
0.04651113227009773,
-0.007307262159883976,
0.016895189881324768,
-0.013237424194812775,
0.03766419366002083,
-0.013273133896291256,
-0.012563880532979965,
-0.03906627744436264,
-0.10687888413667679,
-0.024899210780858994,
0.013052075169980526,
-0.021521827206015587,
-0.002479591639712453,
0.02710152044892311,
-0.042241815477609634,
-0.00875149480998516,
-0.017104284837841988,
0.04203253984451294,
0.04800202324986458,
-0.03756918013095856,
0.05382321774959564,
-0.0018098835134878755,
0.02453034557402134,
-0.041132889688014984,
-0.010582375340163708,
-0.04368799552321434,
0.006744628772139549,
0.015290958806872368,
0.06756417453289032,
-0.0014628971694037318,
0.06267041712999344,
0.07562834769487381,
0.04515683278441429,
-0.0366489514708519,
0.021059324964880943,
0.0666523277759552,
-0.0407777763903141,
-0.0385889895260334,
0.002688957843929529,
-0.019498677924275398,
0.010208494029939175,
0.011480441316962242,
-0.022122789174318314,
0.013444831594824791,
0.06712227314710617,
-0.0009593242430128157,
0.01891719363629818,
0.020996516570448875,
-0.04012996330857277,
-0.027559097856283188,
-0.0789930522441864,
-0.021629398688673973,
-0.004454045090824366,
-0.03541683405637741,
0.0418575257062912,
0.040299367159605026,
0.006791695952415466,
0.04401827231049538,
0.021519601345062256,
-0.034493982791900635,
-0.06265508383512497,
0.02780766971409321,
0.009444613941013813,
-0.03355605527758598,
-0.055810991674661636,
-0.03828508406877518,
0.04374035447835922,
0.01971271261572838,
-0.0061353701166808605,
-0.08012837171554565,
0.04634186252951622,
0.05970322713255882,
-0.06458032876253128,
0.0569419264793396,
0.016838889569044113,
0.058435142040252686,
0.034511249512434006,
0.02362727001309395,
0.05558857321739197,
-0.043106917291879654,
0.012554130516946316,
0.015798768028616905,
0.030369384214282036,
-0.042701274156570435,
-0.023126237094402313,
-0.03894636780023575,
0.03139553219079971,
0.032464053481817245,
0.01287776231765747,
0.02064216136932373,
-0.02738702856004238,
-0.025396479293704033,
-0.026427188888192177,
0.06085281819105148,
-0.04027974605560303,
0.018666308373212814,
0.026483142748475075,
0.057229332625865936,
-0.0621030330657959,
-0.006258652079850435,
0.008574896492064,
0.026274748146533966,
0.041454482823610306,
-0.04100451618432999,
-0.05203951895236969,
-0.022867873311042786,
0.027255941182374954,
-0.008524766191840172,
-0.0411454476416111,
-0.08259283751249313,
0.029787784442305565,
-0.01958458125591278,
-0.007902908138930798,
0.0680064931511879,
0.04447344318032265,
0.05221918225288391,
0.05442390218377113,
-0.02190409041941166,
0.06676614284515381,
0.0008228031219914556,
0.023313721641898155,
-0.041912902146577835,
-0.0660172700881958,
0.01656349189579487,
-0.06477966159582138,
-0.05377081409096718,
-0.050712499767541885,
-0.03204311057925224,
-0.03541205823421478,
0.016654452309012413,
0.017013419419527054,
0.011714642867445946,
0.003988587763160467,
0.017609626054763794,
0.0063299499452114105,
0.005243935156613588,
-0.030464235693216324,
-0.028908366337418556,
-0.00988035462796688,
-0.07688695937395096,
-0.05961964651942253,
0.022784480825066566,
-0.029489686712622643,
0.0008238198352046311,
-0.018532253801822662,
0.026428768411278725,
0.030973516404628754,
0.015557323582470417,
-0.010044554248452187,
0.013856842182576656,
0.03099222481250763,
-0.051550593227148056,
-0.0012636884348466992,
0.022558778524398804,
0.010374190285801888,
0.018561167642474174,
-0.026248762384057045,
0.04828344285488129,
-0.005478824023157358,
-0.012309799902141094,
-0.041429225355386734,
0.03699156641960144,
-0.0029987958259880543,
-0.08671096712350845,
-0.01705065928399563,
-0.02335086278617382,
-0.013132144697010517,
0.034038085490465164,
-0.06423524767160416,
-0.05284881964325905,
-0.007641769479960203,
0.04323864355683327,
0.016353989019989967,
-0.013394152745604515,
-0.01435776986181736,
0.01641998440027237,
-0.009218187071383,
0.06036827340722084,
-0.03488137945532799,
0.017684688791632652,
-0.01849275268614292,
0.007609242107719183,
-0.006892073433846235,
-0.00557527132332325,
-0.06956280022859573,
0.06581185013055801,
-0.003390864934772253,
-0.005547165870666504,
-0.010248939506709576,
-0.017447173595428467,
0.026043126359581947,
0.029960710555315018,
0.009378412738442421,
0.011706911027431488,
-0.04350600764155388,
0.03870934620499611,
-0.05309201776981354,
0.005373305641114712,
-0.032443925738334656,
0.0056184339337050915,
-0.020106129348278046,
0.011754283681511879,
-0.0011651269160211086,
-0.04254354536533356,
0.030160121619701385,
0.022011790424585342,
0.02182743325829506,
0.028147855773568153,
0.0031166921835392714,
-0.010615143924951553,
0.024047283455729485,
-0.06032879278063774,
-0.04653233289718628,
0.019579051062464714,
-0.007255543023347855,
0.014577241614460945,
0.046941738575696945,
0.010993490926921368,
-0.06284452229738235,
-0.0322137251496315,
-0.0001569207524880767,
0.033948108553886414,
0.015558199025690556,
-0.004447449464350939,
0.05295807123184204,
0.04314585402607918,
0.03840728476643562,
-0.011939039453864098,
0.004672367591410875,
0.0242443960160017,
-0.011979414150118828,
-0.02508758194744587,
-0.0008119406993500888,
-0.007304789964109659,
0.004793981090188026,
-0.023430442437529564,
-0.042387623339891434,
0.07109151780605316,
-0.019144207239151,
0.020573792979121208,
-0.021109484136104584,
-0.012520027346909046,
0.03861236572265625,
0.030308831483125687,
-0.020894892513751984,
-0.01081730518490076,
0.0262145958840847,
-0.0435062013566494,
0.02015714719891548,
-0.0281232800334692,
-0.004465057514607906,
0.06462880223989487,
0.021044185385107994,
-0.00782670546323061,
0.018998926505446434,
-0.03048046864569187,
0.016659162938594818,
0.023956865072250366,
-0.06223248317837715,
-0.026669859886169434,
-0.0477641299366951,
0.03946998342871666,
-0.04098646342754364,
0.05738858878612518,
0.02442169189453125,
0.004905145615339279,
0.013387004844844341,
-0.024259813129901886,
-0.056739211082458496,
-0.025029467418789864,
-0.05204175040125847,
0.055433616042137146,
-0.0027370487805455923,
-0.05375349149107933,
0.06469111144542694,
0.01159289013594389,
-0.07742887735366821,
0.03557979315519333,
0.029050325974822044,
0.047967419028282166,
0.013207852840423584,
0.033498361706733704,
-0.02906881645321846,
-0.0005867712898179889,
-0.010563228279352188,
0.00036778178764507174,
-0.030069369822740555,
-0.046260833740234375,
-0.017312318086624146,
-0.024823889136314392,
0.009015104733407497,
0.023440254852175713,
-0.006411113776266575,
0.02271953597664833,
0.014178626239299774,
-0.007816489785909653,
-0.07659367471933365,
0.010717961005866528,
0.02716415375471115,
-0.016126982867717743,
-0.00413961336016655,
-0.02700379118323326,
0.0026998447719961405,
0.05338047444820404,
-0.020988302305340767,
-0.049592275172472,
0.011818138882517815,
0.02664390578866005,
-0.06946894526481628,
-0.03367995843291283,
0.06155647337436676,
0.01402992568910122,
-0.013681503012776375,
-0.006570760626345873,
0.020297670736908913,
0.025717083364725113,
0.03092660754919052,
-0.012739001773297787,
-0.0086672343313694,
-0.08175330609083176,
0.0059317550621926785,
0.021465592086315155,
0.007958168163895607,
-0.00252073397859931,
-0.008616953156888485,
0.038862816989421844,
0.10238056629896164,
0.05544333532452583,
0.005496223922818899,
-0.03923974931240082,
-0.039571281522512436,
0.0023951155599206686,
-0.061261795461177826,
0.048461779952049255,
-0.009692693129181862,
-0.04850325360894203,
-0.03543208912014961,
-0.017886536195874214,
-0.0063527971506118774,
0.038096532225608826,
-0.034098297357559204,
0.014830237254500389,
0.057439662516117096,
0.0016933210426941514,
-0.051760874688625336,
-0.09480777382850647,
-0.05830351263284683,
-0.023362334817647934,
0.003601419972255826,
0.011833534575998783,
-0.05312420427799225,
-0.018357358872890472,
-0.033462271094322205,
0.000961513549555093,
0.04432971403002739,
-0.0029188652988523245,
0.0001103975810110569,
0.055814795196056366,
0.06438469886779785,
-0.027373023331165314,
0.06139294430613518,
0.036114852875471115,
-0.03621600940823555,
0.037296589463949203,
0.005805659107863903,
0.04692716524004936,
-0.01200697012245655,
-0.001911915373057127,
-0.015876198187470436,
-0.01579381339251995,
-0.02277524024248123,
-0.04724673554301262,
0.007520389277487993,
0.016001002863049507,
0.046120934188365936
] |
Corvus/DialoGPT-medium-CaptainPrice | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 7 | null | ---
tags:
- conversational
---
# Captain Price DialoGPT Model | [
-0.04994901269674301,
0.043779414147138596,
0.010187274776399136,
0.02145841345191002,
0.02550284005701542,
0.002857899060472846,
-0.006780155468732119,
0.02292460948228836,
-0.0021853861398994923,
0.01384765561670065,
0.03972615674138069,
-0.024151882156729698,
0.012171081267297268,
0.041873376816511154,
-0.046100880950689316,
-0.01908932812511921,
-0.01461881771683693,
0.013141957111656666,
-0.02508392371237278,
-0.030882710590958595,
0.02754085883498192,
-0.002011299831792712,
-0.025296790525317192,
0.02099880389869213,
0.0019264188595116138,
0.04208478331565857,
0.0051659694872796535,
0.011451806873083115,
0.012908611446619034,
-0.04748876020312309,
0.024492403492331505,
-0.054011546075344086,
-0.014977909624576569,
-0.029786715283989906,
-0.02499847486615181,
-0.03661753982305527,
0.010109842754900455,
-0.018270915374159813,
-0.0002660290920175612,
0.02460276521742344,
-0.0287473201751709,
-0.024575771763920784,
-0.004003182984888554,
-0.03615755960345268,
0.06886772066354752,
-0.0039935968816280365,
-0.03592069819569588,
-0.02678356133401394,
0.022122973576188087,
-0.03417259454727173,
-0.04450441524386406,
-0.06132528930902481,
-0.050177570432424545,
-0.017540879547595978,
0.022858556360006332,
-0.0688740462064743,
-0.05031581223011017,
-0.004373176489025354,
0.09556539356708527,
-0.006248740013688803,
-0.011796189472079277,
0.012034686282277107,
-0.08506493270397186,
0.00622153002768755,
0.022969957441091537,
-0.07478824257850647,
0.008964392356574535,
-0.05274603143334389,
0.012814044952392578,
-0.030394963920116425,
0.050923436880111694,
-0.04065726324915886,
0.015648620203137398,
-0.09377486258745193,
-0.02229464054107666,
0.007816885598003864,
0.04074004292488098,
0.059911198914051056,
-0.03836018964648247,
0.04004630073904991,
0.03469732776284218,
0.013179359026253223,
0.06864750385284424,
0.0018341020913794637,
-0.026602933183312416,
0.04866761714220047,
-0.05147053301334381,
0.015323267318308353,
-0.0006434816750697792,
0.02911403961479664,
-0.017753157764673233,
-0.05306750908493996,
-0.024536272510886192,
-0.006401689723134041,
0.002527609933167696,
0.05340075120329857,
0.015712080523371696,
-0.024430716410279274,
0.03345146030187607,
0.041648559272289276,
0.03319216147065163,
0.044359590858221054,
-0.019116707146167755,
0.04490462690591812,
-0.01638626679778099,
0.03263915702700615,
0.02328014373779297,
-0.015612177550792694,
-0.049963466823101044,
0.027661079540848732,
0.007490235846489668,
-0.03736186772584915,
-0.019375145435333252,
0.03349529206752777,
0.018308419734239578,
0.006285449489951134,
0.06654847413301468,
-0.037203166633844376,
-0.019339334219694138,
-0.053298965096473694,
0.038762181997299194,
-0.01417824998497963,
-0.022388136014342308,
-0.020009249448776245,
-0.028727252036333084,
-0.006449446547776461,
-0.0520990714430809,
-0.014620420522987843,
-0.01143468264490366,
0.007197095546871424,
0.013306126929819584,
0.0225826445966959,
-0.039853502064943314,
-0.07642191648483276,
0.00321242050267756,
0.056718096137046814,
-0.05964211747050285,
-0.001231748377904296,
0.041232846677303314,
0.0926080048084259,
-0.08880025148391724,
-0.024083338677883148,
-0.008436582051217556,
0.024224013090133667,
-0.026051077991724014,
-0.02163480408489704,
0.01584167778491974,
0.0006202625227160752,
-0.039514556527137756,
-0.012193385511636734,
0.02673252485692501,
-0.05031846463680267,
-0.000008872488251654431,
0.049678366631269455,
0.006585246883332729,
0.031355392187833786,
-0.017948154360055923,
0.007839174941182137,
-0.011905576102435589,
-0.044583164155483246,
-0.04970068484544754,
0.0451476089656353,
-0.031481657177209854,
-0.040902938693761826,
-0.04296736419200897,
-0.02170395664870739,
0.012955655343830585,
0.06668847799301147,
0.014240797609090805,
-0.0197254978120327,
-0.021117892116308212,
0.034024205058813095,
0.049770113080739975,
0.037838831543922424,
-0.025494525209069252,
0.02453021891415119,
0.047863610088825226,
9.484097631684563e-7,
-0.04697597399353981,
0.08189462870359421,
0.004595938604325056,
-0.03545722737908363,
-0.04354848712682724,
-0.012413273565471172,
0.024693667888641357,
-0.02832780033349991,
0.022463077679276466,
0.034616656601428986,
-0.023793403059244156,
-0.034609824419021606,
0.009848976507782936,
0.04494756832718849,
-0.034648261964321136,
-0.00767235504463315,
-0.019141923636198044,
-0.022131729871034622,
-0.03623335063457489,
0.01565822772681713,
-0.05117984488606453,
-0.005613740533590317,
-0.0274855624884367,
-0.005103961564600468,
0.038749370723962784,
0.0025019668973982334,
0.008525185286998749,
0.04627889767289162,
-0.009657757356762886,
0.05135408788919449,
-0.04524487629532814,
0.021321600303053856,
-0.02446867898106575,
-0.02177949622273445,
-0.030243320390582085,
0.03585873544216156,
0.02734540030360222,
0.039864398539066315,
-0.03221356123685837,
-0.048545971512794495,
0.04003942012786865,
0.059441033750772476,
0.032178960740566254,
0.021541757509112358,
-0.02179487608373165,
-0.0013614104827865958,
0.022354409098625183,
0.01791953854262829,
-0.04172592610120773,
0.009533894248306751,
0.010461049154400826,
0.021983878687024117,
-0.011039393953979015,
-0.022599048912525177,
-0.052349694073200226,
0.019765034317970276,
-0.053362470120191574,
-0.06845099478960037,
0.039351336658000946,
0.0416552908718586,
-0.007916823029518127,
0.033466923981904984,
-0.006282404996454716,
-0.0072087752632796764,
0.04738214984536171,
0.017989518120884895,
-0.000024936201953096315,
-0.08085151016712189,
0.00988564733415842,
0.0311722494661808,
0.08938334882259369,
-0.05665140971541405,
0.016728928312659264,
0.023834630846977234,
0.012407870031893253,
0.012974952347576618,
-0.025659283623099327,
0.04040273651480675,
0.05133961886167526,
0.05856883153319359,
-0.03456101194024086,
0.03455137461423874,
-0.00897070113569498,
0.031547918915748596,
0.051191315054893494,
-0.006920506712049246,
0.05542069673538208,
-0.019329870119690895,
0.026618333533406258,
0.05839391052722931,
0.012879897840321064,
-0.018571030348539352,
0.020034441724419594,
0.07272835820913315,
-0.0032114009372889996,
0.04042750597000122,
0.035555385053157806,
0.0051348707638680935,
-0.00012612680438905954,
-0.05295486003160477,
-0.007859009318053722,
-0.0031750004272907972,
-0.02264847420156002,
0.07083112001419067,
0.009997373446822166,
-0.008667285554111004,
0.006453060545027256,
-0.02227018028497696,
0.0008843017276376486,
0.03641081228852272,
0.0027233315631747246,
-0.026526911184191704,
0.0003761237603612244,
-0.025825075805187225,
0.021282464265823364,
-0.03765888884663582,
-0.048646051436662674,
-0.031336575746536255,
-0.05767396092414856,
-0.0049119992181658745,
-0.08332154154777527,
-0.04530148580670357,
-0.07426317036151886,
-0.012386145070195198,
0.043453630059957504,
0.02378324791789055,
0.020710933953523636,
-0.008924360387027264,
0.011555172502994537,
-0.016824839636683464,
-0.05385902151465416,
-0.04166289046406746,
-0.010745599865913391,
-0.022679777815937996,
-0.041826166212558746,
0.045844729989767075,
0.05871177837252617,
0.029989847913384438,
0.00333116902038455,
-0.02434120886027813,
-0.040090762078762054,
-0.012930884957313538,
0.03133881464600563,
0.017348749563097954,
-0.050497353076934814,
-0.039324674755334854,
0.006188887637108564,
-0.0030535629484802485,
-0.02392982877790928,
-0.019390249624848366,
-0.04835396632552147,
0.07122795283794403,
0.047880083322525024,
0.00557359866797924,
0.015123099088668823,
-0.0017149592749774456,
-0.038936808705329895,
-0.013471758924424648,
-0.051273807883262634,
-0.03168872371315956,
0.003303932724520564,
-0.02643902599811554,
-0.05785387009382248,
-0.028926776722073555,
-0.04394983500242233,
-0.0034628065768629313,
-0.009248869493603706,
-0.008916052058339119,
0.030610647052526474,
0.00676577677950263,
0.016226034611463547,
0.017969520762562752,
-0.016019508242607117,
-0.03441350534558296,
0.04693657532334328,
-0.011248852126300335,
-0.009396426379680634,
-0.0811958760023117,
-0.05292513594031334,
0.022062981501221657,
0.008190326392650604,
-0.00256182043813169,
-0.021870050579309464,
0.0454116053879261,
0.03472595289349556,
0.0077522494830191135,
0.03569595515727997,
-0.06942296773195267,
0.0024432705249637365,
-0.0441972054541111,
-0.017201542854309082,
-0.05152921751141548,
-0.020585302263498306,
-0.01632004603743553,
0.010504506528377533,
0.046065911650657654,
-0.0728282704949379,
-0.031180914491415024,
-0.023094888776540756,
0.01618308573961258,
0.0398620180785656,
-0.0032079597003757954,
-0.04865086451172829,
-0.011893984861671925,
-0.053242433816194534,
-0.005824635270982981,
-0.008527815341949463,
-0.01613185554742813,
0.010700935497879982,
0.03140046447515488,
0.01956525631248951,
-0.02018287405371666,
0.044635336846113205,
0.01947748474776745,
0.059386007487773895,
0.04990917816758156,
-0.020697779953479767,
0.01820557750761509,
-0.025865526869893074,
0.04170707240700722,
-0.0073571098037064075,
-0.03062545880675316,
-0.04184982553124428,
-0.10793764889240265,
-0.039863623678684235,
0.024102235212922096,
-0.02006448619067669,
0.0004616465885192156,
0.01948894001543522,
-0.0560925230383873,
-0.0017691698158159852,
0.00040206455742008984,
0.04792177677154541,
0.04009746015071869,
-0.03387000411748886,
0.07393591105937958,
0.020621586591005325,
0.031348295509815216,
-0.04704691842198372,
-0.004429266322404146,
-0.05891880393028259,
-0.004364616237580776,
0.0034602012019604445,
0.06087745726108551,
0.01147749088704586,
0.059290479868650436,
0.07594459503889084,
0.04400135204195976,
-0.04696568846702576,
0.04307129234075546,
0.07186340540647507,
-0.03518155589699745,
-0.03878384456038475,
0.0038224824238568544,
-0.007517082616686821,
-0.032500043511390686,
0.00855606235563755,
-0.02196917124092579,
0.03166758641600609,
0.04536819085478783,
-0.018366578966379166,
0.00881168246269226,
0.00741587346419692,
-0.04137006029486656,
-0.024069519713521004,
-0.0704999715089798,
-0.01877959817647934,
-0.008629788644611835,
-0.007944879122078419,
0.05581628158688545,
0.03927772119641304,
0.009037944488227367,
0.0510014146566391,
0.006533642765134573,
-0.023363670334219933,
-0.058336276561021805,
0.02657671645283699,
0.008225803263485432,
-0.03869521617889404,
-0.05142622068524361,
-0.0546271875500679,
0.03587884083390236,
0.032631151378154755,
-0.022788411006331444,
-0.08403456211090088,
0.030589567497372627,
0.05162740498781204,
-0.03786357864737511,
0.055716101080179214,
0.00021097096032463014,
0.052581608295440674,
0.04211047291755676,
0.014523299410939217,
0.044652052223682404,
-0.06892943382263184,
0.018572987988591194,
-0.005096514243632555,
0.022505152970552444,
-0.06410709768533707,
-0.0514429435133934,
-0.05318155884742737,
0.036685116589069366,
0.03387179225683212,
0.013516310602426529,
0.02034563571214676,
-0.04024254530668259,
-0.04061463475227356,
-0.004766054451465607,
0.032567039132118225,
-0.026101255789399147,
0.019373787567019463,
0.033858172595500946,
0.04887416213750839,
-0.07520129531621933,
0.0009866412729024887,
0.017269082367420197,
0.029187830165028572,
0.026168951764702797,
-0.01839025691151619,
-0.055850546807050705,
-0.00691768666729331,
0.029754342511296272,
-0.02704438380897045,
-0.04075589403510094,
-0.07637737691402435,
0.014632358215749264,
-0.027988772839307785,
-0.03127426654100418,
0.06351155042648315,
0.06833618879318237,
0.054865334182977676,
0.07206527143716812,
-0.011959247291088104,
0.06379280984401703,
-0.01606808230280876,
0.019689103588461876,
-0.029446015134453773,
-0.037370715290308,
-0.004197250586003065,
-0.07769746333360672,
-0.04395265504717827,
-0.049036767333745956,
-0.03408557549118996,
-0.04321776330471039,
0.006975044496357441,
0.020515695214271545,
-0.011505085974931717,
-0.024867378175258636,
0.014785785228013992,
0.006277669221162796,
-0.02222098782658577,
-0.020945701748132706,
-0.010898880660533905,
-0.012674148194491863,
-0.07602689415216446,
-0.0698525607585907,
0.019428182393312454,
-0.03551597148180008,
-0.0010928594274446368,
-0.006465013138949871,
0.01691041886806488,
0.037931591272354126,
-0.008495073765516281,
-0.007401547394692898,
0.01843995787203312,
0.041272129863500595,
-0.0317300409078598,
-0.008782507851719856,
0.01656336709856987,
0.024532314389944077,
0.010963856242597103,
-0.019988687708973885,
0.044699978083372116,
0.005093553569167852,
-0.04024141654372215,
-0.03172584995627403,
0.0436859093606472,
0.01704147271811962,
-0.08356063812971115,
-0.009685160592198372,
-0.0409628301858902,
-0.02476840279996395,
0.02247879095375538,
-0.06085943430662155,
-0.036310628056526184,
-0.01259797252714634,
0.043317023664712906,
0.0323139987885952,
-0.003090264042839408,
-0.018600527197122574,
-0.0013894513249397278,
-0.008204416371881962,
0.03071221522986889,
-0.0688689649105072,
0.018163595348596573,
-0.03398680314421654,
0.022500935941934586,
-0.008580824360251427,
0.011568214744329453,
-0.045671962201595306,
0.05094480514526367,
-0.019348451867699623,
0.0012408692855387926,
-0.016947368159890175,
-0.01749441772699356,
0.007540429476648569,
0.05666249990463257,
0.020233068615198135,
0.011542082764208317,
-0.031112590804696083,
0.05993243306875229,
-0.06320571154356003,
0.0016012154519557953,
-0.011131670325994492,
-0.018256591632962227,
-0.017093505710363388,
-0.0029397017788141966,
0.011434822343289852,
-0.06428202241659164,
0.03194773569703102,
0.020184947177767754,
0.033846594393253326,
0.0371202789247036,
0.0017077832017093897,
0.005037310533225536,
0.025828519836068153,
-0.06393080204725266,
-0.037633489817380905,
0.012642974965274334,
0.005236352328211069,
0.027043186128139496,
0.050550587475299835,
0.00851756427437067,
-0.0667794793844223,
-0.02470843493938446,
0.014543555676937103,
0.022631121799349785,
0.007912280037999153,
0.0077217924408614635,
0.04951007664203644,
0.05721172317862511,
0.0427815280854702,
-0.009753745049238205,
0.005460128653794527,
0.026940306648612022,
-0.014345701783895493,
-0.01683051884174347,
-0.0008664610795676708,
0.013577627949416637,
0.012208656407892704,
-0.02135695144534111,
-0.02743149921298027,
0.06336821615695953,
-0.02768373116850853,
-0.0016663711285218596,
-0.01915397122502327,
-0.033062539994716644,
0.06315774470567703,
0.002083871979266405,
-0.024586409330368042,
-0.007641543168574572,
0.03100641258060932,
-0.025051869451999664,
0.03444798290729523,
-0.0249495767056942,
1.8405795287890214e-7,
0.060895856469869614,
0.020114071667194366,
0.0012291274033486843,
-0.000019617875295807607,
-0.01425476185977459,
0.0018327317666262388,
0.020114997401833534,
-0.05376692861318588,
-0.015915317460894585,
-0.03927592188119888,
0.059391483664512634,
-0.0373261384665966,
0.05602899566292763,
0.033188287168741226,
0.031104614958167076,
0.03212069347500801,
-0.04593471437692642,
-0.05236046761274338,
-0.010439729318022728,
-0.03136797994375229,
0.07415233552455902,
-0.002065019216388464,
-0.0371595099568367,
0.06541593372821808,
0.03727191314101219,
-0.09442057460546494,
0.037604883313179016,
0.04320191591978073,
0.04663196951150894,
0.027327772229909897,
0.04600280895829201,
-0.04218527302145958,
0.0017860574880614877,
-0.016276046633720398,
0.008970878086984158,
-0.02826640009880066,
-0.02015734277665615,
-0.020496925339102745,
-0.03857690840959549,
-0.008280890062451363,
0.028153983876109123,
-0.009259712882339954,
-0.003320752177387476,
0.010140501894056797,
-0.017162516713142395,
-0.060138389468193054,
-0.0037129276897758245,
0.030863706022500992,
-0.010808782652020454,
-0.008665964938700199,
-0.04282459244132042,
0.016083979979157448,
0.05202901363372803,
-0.009606719948351383,
-0.06322808563709259,
0.006687067914754152,
0.0005003551486879587,
-0.0656227171421051,
-0.04859326034784317,
0.05636994540691376,
0.02106049656867981,
-0.005628412589430809,
0.002937520854175091,
0.040257178246974945,
0.01837569661438465,
0.04255416616797447,
-0.010261869989335537,
0.0044095017947256565,
-0.07883274555206299,
0.005291174165904522,
0.013887248933315277,
0.013109377585351467,
0.013030104339122772,
-0.014422229491174221,
0.03894105926156044,
0.08886279910802841,
0.03956497833132744,
0.008570199832320213,
-0.04045187681913376,
-0.03026747889816761,
-0.005627266597002745,
-0.04850326478481293,
0.0363241508603096,
0.00095442368183285,
-0.04195645451545715,
-0.026419535279273987,
-0.033561959862709045,
0.006060260813683271,
0.036876462399959564,
-0.03202376514673233,
0.01902521215379238,
0.04393607750535011,
-0.005193931981921196,
-0.04638676717877388,
-0.09510301053524017,
-0.049420956522226334,
-0.015005419962108135,
0.03139473497867584,
0.02443394437432289,
-0.0641242042183876,
0.010406462475657463,
-0.024792121723294258,
0.004261163529008627,
0.058292705565690994,
-0.011155983433127403,
-0.007745570037513971,
0.0659535825252533,
0.06456132978200912,
-0.04008316248655319,
0.06573980301618576,
0.028765825554728508,
-0.026810551062226295,
0.05455927178263664,
-0.0016494507435709238,
0.038321953266859055,
-0.0004543583781924099,
0.005710401572287083,
-0.021059788763523102,
-0.005010932683944702,
-0.01860869862139225,
-0.03402964025735855,
0.001260483986698091,
0.0015470009529963136,
0.04960666969418526
] |
CouchCat/ma_mlc_v7_distil | [
"pytorch",
"distilbert",
"text-classification",
"en",
"transformers",
"multi-label",
"license:mit"
] | text-classification | {
"architectures": [
"DistilBertForSequenceClassification"
],
"model_type": "distilbert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 29 | 2021-02-14T11:20:32Z | ---
language: en
license: mit
tags:
- multi-label
widget:
- text: "I would like to return these pants and shoes"
---
### Description
A Multi-label text classification model trained on a customer feedback data using DistilBert.
Possible labels are:
- Delivery (delivery status, time of arrival, etc.)
- Return (return confirmation, return label requests, etc.)
- Product (quality, complaint, etc.)
- Monetary (pending transactions, refund, etc.)
### Usage
```
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("CouchCat/ma_mlc_v7_distil")
model = AutoModelForSequenceClassification.from_pretrained("CouchCat/ma_mlc_v7_distil")
``` | [
-0.010135974735021591,
-0.009555862285196781,
-0.008249744772911072,
0.0640934482216835,
0.057258207350969315,
0.07102734595537186,
-0.006196321453899145,
-0.007309481501579285,
-0.010280235670506954,
0.050825078040361404,
0.027206363156437874,
-0.018951447680592537,
0.022055674344301224,
0.04625863581895828,
-0.06261033564805984,
-0.025420716032385826,
-0.008189981803297997,
-0.03682687506079674,
-0.0111427903175354,
-0.01299348659813404,
-0.007254357915371656,
-0.013720771297812462,
-0.026688959449529648,
0.016198309138417244,
-0.005889671854674816,
0.013166505843400955,
-0.004790702369064093,
0.06793288886547089,
0.030758438631892204,
-0.06404931843280792,
-0.0014242910547181964,
-0.02636697143316269,
-0.043442148715257645,
-0.022153373807668686,
-0.03315681591629982,
-0.01902017742395401,
0.0054994733072817326,
0.011848176829516888,
0.011012124828994274,
0.022507447749376297,
0.020354928448796272,
0.023256609216332436,
-0.021851638332009315,
-0.02788739837706089,
0.043717578053474426,
0.02198590524494648,
-0.02795061469078064,
-0.030434144660830498,
0.0404236800968647,
-0.015730157494544983,
-0.06537564843893051,
-0.04279828071594238,
-0.05104142427444458,
0.029832283034920692,
-0.01401763316243887,
-0.0417943112552166,
-0.053809359669685364,
-0.001088425749912858,
0.03854263201355934,
-0.048985570669174194,
-0.06016615033149719,
0.01827290840446949,
-0.07386516034603119,
0.0044149309396743774,
0.00926828570663929,
-0.04313115403056145,
-0.006185411475598812,
-0.030869826674461365,
0.020093688741326332,
-0.01500120759010315,
0.07970275729894638,
-0.014227176085114479,
0.02789970673620701,
-0.07296580076217651,
-0.007802898064255714,
-0.02436109259724617,
0.05128071457147598,
0.024336013942956924,
-0.021250849589705467,
0.03537808731198311,
0.05785457789897919,
-0.003120460780337453,
0.026371043175458908,
-0.039037320762872696,
-0.03545338287949562,
0.051425445824861526,
-0.03784218430519104,
-0.0026084319688379765,
-0.002083084313198924,
0.01955040916800499,
-0.035256389528512955,
-0.018756220117211342,
-0.008651296608150005,
-0.013487420976161957,
-0.025150317698717117,
0.03603973239660263,
0.030480701476335526,
-0.03385496512055397,
0.03316308930516243,
0.04433811083436012,
0.03725944831967354,
0.03159313648939133,
-0.03525350242853165,
0.056922998279333115,
-0.017198733985424042,
-0.005535885225981474,
-0.010310735553503036,
-0.024886712431907654,
-0.049537159502506256,
0.03776700422167778,
0.01291869580745697,
-0.02766421250998974,
-0.028311343863606453,
0.03046862967312336,
-0.006215790752321482,
0.0037149556446820498,
0.08167034387588501,
-0.018070444464683533,
-0.03312506899237633,
-0.06247693672776222,
0.04265233501791954,
-0.015955740585923195,
0.02078881487250328,
-0.00021460581046994776,
-0.044933442026376724,
-0.024608736857771873,
-0.03602653369307518,
-0.04770328477025032,
-0.011697476729750633,
0.0040680887177586555,
-0.0027156879659742117,
0.06167503073811531,
-0.0084201255813241,
-0.0587431825697422,
0.02744382806122303,
0.015828190371394157,
-0.03580767288804054,
0.044437821954488754,
0.03873288631439209,
0.09570495784282684,
-0.039135321974754333,
-0.05471382662653923,
0.008168649859726429,
0.03138554468750954,
-0.020451996475458145,
0.021499058231711388,
0.0022956065367907286,
-0.030102193355560303,
-0.012266905978322029,
0.01697251759469509,
0.031201569363474846,
-0.056597787886857986,
-0.03869190067052841,
0.0343063548207283,
0.008599645458161831,
0.04677630588412285,
-0.038387708365917206,
0.004000555723905563,
-0.017574211582541466,
-0.03436499461531639,
-0.04449745640158653,
0.05732414871454239,
-0.005722020287066698,
0.007181694731116295,
-0.020424341782927513,
-0.05753867328166962,
-0.008394937962293625,
0.09243904054164886,
-0.025126712396740913,
-0.015215088613331318,
-0.022488921880722046,
0.005939120426774025,
0.04149303585290909,
0.021744830533862114,
-0.035603709518909454,
0.027944665402173996,
0.05528051778674126,
0.0385853610932827,
-0.024687794968485832,
0.08183173835277557,
0.013745984993875027,
-0.04464326053857803,
-0.033011794090270996,
0.018940959125757217,
-0.0034037672448903322,
-0.04698852449655533,
0.014323528856039047,
0.026650426909327507,
0.0014459029771387577,
0.0032928301952779293,
-0.03126796334981918,
0.021152928471565247,
0.0054582515731453896,
0.011012011207640171,
-0.02027060091495514,
-0.016983041539788246,
-0.03256463259458542,
0.07239506393671036,
0.020513705909252167,
-0.002569017466157675,
-0.02194986492395401,
-0.017175663262605667,
0.01483080442994833,
-0.0011172546073794365,
0.02598586492240429,
0.04791300743818283,
-0.00046209091669879854,
0.07799989730119705,
-0.05007020756602287,
-0.01381648238748312,
-0.028468690812587738,
-0.04740787297487259,
-0.007632664404809475,
0.0448358990252018,
0.017637860029935837,
0.03791958466172218,
-0.01670536957681179,
-0.03433685004711151,
0.026856305077672005,
0.04496146738529205,
0.05286787450313568,
0.03656996414065361,
-0.02572670392692089,
-0.014590684324502945,
0.03482896834611893,
0.04289243370294571,
-0.07908875495195389,
-0.044264353811740875,
0.01902911439538002,
0.06074747443199158,
-0.030776584520936012,
-0.019159015268087387,
-0.018077043816447258,
-0.007841752842068672,
-0.02556541934609413,
-0.060198161751031876,
0.03665286675095558,
0.032214101403951645,
-0.003158328589051962,
0.040424052625894547,
0.004649500362575054,
-0.010616438463330269,
0.03664497658610344,
0.028717946261167526,
-0.0030383190605789423,
-0.03901989758014679,
0.0013093467568978667,
0.026963958516716957,
0.052977338433265686,
-0.056664396077394485,
0.012746674008667469,
-0.0050055901519954205,
0.0010376424761489034,
0.06500384211540222,
-0.062300294637680054,
0.036795321851968765,
0.043450258672237396,
0.017184516414999962,
-0.018762903288006783,
0.060775138437747955,
-0.008767737075686455,
0.03286821022629738,
0.06509202718734741,
0.002972713205963373,
0.06792796403169632,
-0.004039079416543245,
0.042908359318971634,
0.09839582443237305,
0.052668116986751556,
0.01811891607940197,
0.044311199337244034,
0.033140718936920166,
0.013054857030510902,
-0.009600534103810787,
0.045680612325668335,
-0.07159387320280075,
0.023599451407790184,
-0.0376056544482708,
0.036437418311834335,
0.010855572298169136,
-0.011469271965324879,
0.05150622874498367,
0.007576474919915199,
-0.02287418209016323,
0.013286978006362915,
-0.004271105397492647,
-0.0023129843175411224,
0.04450925439596176,
0.024786239489912987,
-0.019569113850593567,
0.004511664621531963,
-0.022215306758880615,
0.044695936143398285,
-0.04881720989942551,
-0.05807514116168022,
-0.025548458099365234,
-0.04790491610765457,
-0.01882961019873619,
-0.06500695645809174,
-0.018291840329766273,
-0.0702136754989624,
-0.00008115336822811514,
0.056321024894714355,
-0.005376155022531748,
-0.00710223987698555,
-0.03663086146116257,
0.0025533554144203663,
-0.053568098694086075,
-0.03178897127509117,
-0.044242069125175476,
-0.049589961767196655,
-0.03771429508924484,
-0.0664692223072052,
0.04858299344778061,
0.002693620277568698,
0.01722569204866886,
0.0036753430031239986,
0.003425258444622159,
-0.04444606229662895,
-0.010609662160277367,
0.043272197246551514,
0.06276720017194748,
-0.017637209966778755,
-0.047071222215890884,
0.007720898371189833,
-0.039782147854566574,
0.01734105497598648,
-0.007929287850856781,
-0.02435118518769741,
0.09662064909934998,
0.06458310037851334,
0.026969298720359802,
0.009831377305090427,
-0.0077959694899618626,
-0.05902044475078583,
-0.04231208190321922,
-0.004518609959632158,
-0.0126409400254488,
-0.01770126447081566,
-0.018550360575318336,
-0.02828657627105713,
-0.029873516410589218,
-0.04626937210559845,
0.003703417256474495,
-0.00024282740196213126,
0.03148508816957474,
0.03706120327115059,
0.06284582614898682,
0.03977447375655174,
0.021234270185232162,
-0.01374377217143774,
-0.012084185145795345,
0.049442093819379807,
0.0034254775382578373,
-0.008949106559157372,
-0.08085472881793976,
-0.017655331641435623,
0.02059304341673851,
0.013555113226175308,
-0.010596957057714462,
-0.015325179323554039,
0.07762427628040314,
0.010988306254148483,
-0.022540202364325523,
0.01827871799468994,
-0.014931295067071915,
0.01607045717537403,
-0.02333039790391922,
-0.03385423868894577,
-0.027601702138781548,
-0.04132046923041344,
-0.05924803391098976,
0.00815329048782587,
0.028523117303848267,
-0.06180915609002113,
-0.034689079970121384,
0.008299540728330612,
0.03020288050174713,
0.0293272715061903,
0.009772524237632751,
-0.02213178761303425,
-0.008573805913329124,
-0.04392511397600174,
-0.02607637643814087,
0.03490474447607994,
0.01564106158912182,
0.008521674200892448,
0.042503271251916885,
0.025311866775155067,
-0.047724805772304535,
0.03292293846607208,
0.03571530431509018,
0.059362541884183884,
0.012540425173938274,
-0.06924105435609818,
0.01503379363566637,
-0.028115488588809967,
0.027346329763531685,
-0.013918603770434856,
-0.032146602869033813,
-0.05033233389258385,
-0.08932329714298248,
-0.008504587225615978,
0.007539225276559591,
-0.02563844993710518,
-0.006544368341565132,
0.05659099295735359,
-0.009346784092485905,
0.008200165815651417,
-0.03073335997760296,
0.034379955381155014,
0.042051564902067184,
-0.012173834256827831,
0.06786327809095383,
0.003588926512748003,
0.022839348763227463,
-0.05996296927332878,
0.00607723044231534,
-0.04002780094742775,
-0.018750831484794617,
-0.017414819449186325,
0.05695752799510956,
-0.006571839097887278,
0.03611164912581444,
0.08671027421951294,
0.04149191454052925,
-0.05288327857851982,
0.038362909108400345,
0.05636250600218773,
-0.023866908624768257,
-0.0437842458486557,
-0.012219895608723164,
-0.0053132218308746815,
-0.025085436180233955,
0.002509139943867922,
-0.028650442138314247,
-0.0014207321219146252,
0.03094014897942543,
-0.0017919362289831042,
-0.016026051715016365,
0.006536769215017557,
-0.023166585713624954,
-0.039335355162620544,
-0.06652207672595978,
-0.04254945367574692,
0.013824229128658772,
-0.025214355438947678,
0.03817961364984512,
0.01569048874080181,
-0.0021114577539265156,
0.08005325496196747,
0.03078293427824974,
-0.028791971504688263,
-0.03338043391704559,
0.026516065001487732,
0.025429200381040573,
-0.022486859932541847,
-0.07292971014976501,
-0.03771241381764412,
0.03758600726723671,
0.043349672108888626,
-0.0256397295743227,
-0.08378896117210388,
-0.0005063987337052822,
0.06618005782365799,
-0.0388285331428051,
0.08570905774831772,
-0.01983039826154709,
0.04033530130982399,
0.06876334547996521,
-0.00556133221834898,
0.028828280046582222,
-0.011249981820583344,
-0.0010575532214716077,
0.0036946143954992294,
0.014838729985058308,
-0.05445001646876335,
-0.04465654864907265,
-0.047765906900167465,
0.028895987197756767,
0.02967187389731407,
0.04287845268845558,
0.03581972047686577,
-0.03139974921941757,
-0.06931590288877487,
0.023089107125997543,
0.032788731157779694,
-0.05170255899429321,
-0.03334150090813637,
0.03013373538851738,
0.07777821272611618,
-0.04517737030982971,
-0.018993403762578964,
-0.015003453008830547,
-0.022605912759900093,
0.013400291092693806,
-0.00621440727263689,
-0.053075551986694336,
-0.06134892255067825,
0.012448668479919434,
-0.04117169231176376,
-0.030531099066138268,
-0.04790984094142914,
0.030768917873501778,
-0.003049063729122281,
-0.045147258788347244,
0.0673070177435875,
0.05666782706975937,
0.01871134154498577,
0.04442625492811203,
0.020932847633957863,
0.03714582696557045,
-0.007305322680622339,
0.03281613066792488,
-0.024712566286325455,
-0.032698750495910645,
0.010024458169937134,
-0.06098322570323944,
0.0006896796403452754,
0.006551985163241625,
-0.0472591333091259,
-0.051418643444776535,
0.0009323428967036307,
0.002813751110807061,
0.007445037364959717,
0.013822676613926888,
-0.013373666442930698,
0.011159680783748627,
-0.009916574694216251,
-0.01831536553800106,
-0.022495416924357414,
-0.004409831017255783,
-0.10038908571004868,
-0.0487971268594265,
0.0038572652265429497,
0.015582747757434845,
-0.009682136587798595,
-0.010896648280322552,
0.022323062643408775,
0.0510028637945652,
0.009586486965417862,
-0.03860395401716232,
0.02174011990427971,
0.010332235135138035,
-0.017457613721489906,
0.004768784623593092,
0.020111512392759323,
0.025098545476794243,
0.011247512884438038,
-0.02402224764227867,
-0.015112660825252533,
0.02777533419430256,
-0.01787208952009678,
-0.027188852429389954,
0.0254355501383543,
0.011309063993394375,
-0.07178067415952682,
-0.023210318759083748,
-0.03203832730650902,
-0.031626760959625244,
0.028934353962540627,
-0.02146652527153492,
-0.05810725316405296,
-0.0039688353426754475,
0.024017317220568657,
0.02427039109170437,
-0.030620720237493515,
-0.024515343829989433,
0.009226547554135323,
-0.03542647138237953,
0.005793644580990076,
-0.03998217359185219,
0.05211867019534111,
-0.03758983314037323,
0.01062960084527731,
0.0004817444132640958,
-0.019119765609502792,
-0.04387053847312927,
0.05827144905924797,
0.004152858164161444,
0.0009643625817261636,
-0.017198335379362106,
0.035902585834264755,
-0.010812724940478802,
0.006144687067717314,
0.0249299518764019,
0.032336555421352386,
-0.005614107009023428,
0.03124675713479519,
-0.05541820079088211,
-0.002692875685170293,
0.007714271545410156,
0.035724032670259476,
-0.03692075237631798,
-0.03922908008098602,
0.01825173944234848,
-0.05203075706958771,
0.020860547199845314,
0.02536938339471817,
0.029273750260472298,
0.0207030288875103,
-0.005269041750580072,
0.03485391288995743,
0.048296887427568436,
-0.04959215968847275,
-0.019649315625429153,
-0.03462686389684677,
-0.004665555898100138,
-0.0011736905435100198,
0.042120300233364105,
0.03662683442234993,
-0.044075969606637955,
-0.05694781616330147,
0.05199681967496872,
0.025716423988342285,
0.0253349207341671,
0.015990393236279488,
0.015709085389971733,
0.010090732015669346,
0.01657998003065586,
-0.027643995359539986,
-0.021822147071361542,
0.008723782375454903,
-0.025352252647280693,
-0.0009922614553943276,
-0.022205954417586327,
0.0073753162287175655,
0.023438623175024986,
-0.04170926287770271,
-0.0004945627297274768,
0.056967783719301224,
0.037245359271764755,
0.012979228049516678,
0.008467312902212143,
-0.04472486302256584,
0.02760256454348564,
0.009963777847588062,
-0.038520697504282,
-0.014036878943443298,
0.021465959027409554,
-0.029118338599801064,
0.06429172307252884,
-0.0017208766657859087,
0.010812344029545784,
0.06107734516263008,
0.028146816417574883,
-0.004578071646392345,
0.045343250036239624,
-0.022768734022974968,
0.022266745567321777,
0.026789631694555283,
-0.0690181776881218,
-0.030594395473599434,
-0.015047181397676468,
0.07732276618480682,
-0.07813089340925217,
0.05679110065102577,
0.03973005712032318,
0.05211358144879341,
0.02424716018140316,
-0.055826034396886826,
-0.04115645959973335,
0.010103920474648476,
-0.046789396554231644,
0.046419959515333176,
-0.006493873428553343,
-0.050023410469293594,
0.07074911147356033,
0.02206350676715374,
-0.08106476813554764,
0.044842276722192764,
0.02727031335234642,
0.05188717320561409,
0.021633589640259743,
0.048350900411605835,
-0.032394904643297195,
0.016770794987678528,
-0.03273341804742813,
0.02320844493806362,
-0.04867261275649071,
0.030071359127759933,
-0.0105257174000144,
-0.050385162234306335,
-0.010042928159236908,
0.03742576390504837,
-0.02975185588002205,
-0.001676721847616136,
0.03571655973792076,
-0.019328352063894272,
-0.044289831072092056,
-0.00414075655862689,
-0.003202939173206687,
-0.036092065274715424,
0.013925975188612938,
-0.03724066540598869,
-0.0019945241510868073,
0.031463027000427246,
-0.008270465768873692,
-0.020329033955931664,
-0.00624868692830205,
0.02129308320581913,
-0.057028982788324356,
-0.051457714289426804,
0.05942673981189728,
0.019721420481801033,
-0.045101627707481384,
0.018556075170636177,
0.015172608196735382,
0.004878623876720667,
0.018031977117061615,
-0.009359769523143768,
0.03961464390158653,
-0.05462238937616348,
0.0005258132005110383,
-0.010063390247523785,
0.025934413075447083,
0.016364404931664467,
-0.02612144686281681,
0.06077287346124649,
0.04478800296783447,
0.024078259244561195,
-0.010167630389332771,
-0.0458754301071167,
-0.017939288169145584,
0.001081359339877963,
-0.04391985386610031,
0.0017823202069848776,
-0.0025476478040218353,
-0.04137774929404259,
-0.054086022078990936,
-0.016746776178479195,
-0.02559247612953186,
0.026375306770205498,
-0.059144213795661926,
0.007062428165227175,
0.044552031904459,
-0.004175633657723665,
-0.06852266192436218,
-0.10187302529811859,
-0.01337144523859024,
-0.032239485532045364,
0.010954881086945534,
0.020969681441783905,
-0.03069455362856388,
-0.0061372206546366215,
-0.03662276640534401,
-0.043908074498176575,
0.023355448618531227,
0.002485414734110236,
-0.009560949169099331,
0.08275606483221054,
0.05898186191916466,
-0.029999414458870888,
0.02881917729973793,
0.023671701550483704,
-0.033629268407821655,
0.04925809055566788,
0.01115280669182539,
0.019032645970582962,
0.03138142079114914,
0.04191821068525314,
-0.024832647293806076,
-0.021522102877497673,
-0.07702624052762985,
-0.035602640360593796,
-0.039148323237895966,
-0.027650007978081703,
0.039470572024583817
] |
CouchCat/ma_ner_v6_distil | [
"pytorch",
"distilbert",
"token-classification",
"en",
"transformers",
"ner",
"license:mit",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"DistilBertForTokenClassification"
],
"model_type": "distilbert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 6 | 2021-02-14T11:34:25Z | ---
language: en
license: mit
tags:
- ner
widget:
- text: "These shoes from Adidas fit quite well"
---
### Description
A Named Entity Recognition model trained on a customer feedback data using DistilBert.
Possible labels are:
- PRD: for certain products
- BRND: for brands
### Usage
```
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("CouchCat/ma_ner_v6_distil")
model = AutoModelForTokenClassification.from_pretrained("CouchCat/ma_ner_v6_distil")
``` | [
-0.030823180451989174,
0.014966710470616817,
0.004433769732713699,
0.030961375683546066,
0.05280476436018944,
0.04788719117641449,
-0.00489426776766777,
0.01372539158910513,
-0.023311177268624306,
0.05500049516558647,
0.018503285944461823,
-0.01064096949994564,
0.02261117286980152,
0.04442087560892105,
-0.056193768978118896,
-0.02829873561859131,
-0.008630883879959583,
-0.022692615166306496,
-0.02679271809756756,
-0.02397625520825386,
-0.01953458972275257,
-0.0038610605988651514,
-0.008583559654653072,
0.005869764368981123,
0.008146462962031364,
0.027127360925078392,
0.0010139532387256622,
0.07518116384744644,
0.03871414065361023,
-0.05883066728711128,
0.004397843033075333,
-0.05416322126984596,
-0.030142128467559814,
-0.018069002777338028,
-0.022564910352230072,
-0.018281254917383194,
0.014668818563222885,
-0.00999861117452383,
0.021783843636512756,
0.04783826693892479,
0.001669062301516533,
0.038161590695381165,
-0.013111799024045467,
-0.0411292165517807,
0.032820623368024826,
0.02066970057785511,
-0.029843803495168686,
-0.031131790950894356,
0.038126688450574875,
-0.025438955053687096,
-0.06305427849292755,
-0.051311880350112915,
-0.029020503163337708,
0.023116404190659523,
-0.023903679102659225,
-0.028651610016822815,
-0.04843682423233986,
0.0042666178196668625,
0.05215257778763771,
-0.05602522939443588,
-0.05346031114459038,
0.005553443916141987,
-0.06629733741283417,
0.023290563374757767,
0.030892372131347656,
-0.040069062262773514,
-0.00383636518381536,
-0.04805581644177437,
0.012103354558348656,
-0.005551588721573353,
0.06745866686105728,
-0.023971516638994217,
-0.004372919909656048,
-0.06321592628955841,
-0.0175461582839489,
-0.029325267300009727,
0.039634231477975845,
0.005966428201645613,
-0.03341894969344139,
0.025412462651729584,
0.047013524919748306,
-0.000499308982398361,
0.027155300602316856,
-0.05178900808095932,
-0.024442270398139954,
0.0553475022315979,
-0.030927123501896858,
-0.006845887750387192,
0.008322286419570446,
0.016191860660910606,
-0.026944134384393692,
-0.02509516477584839,
0.02550896815955639,
-0.02759845368564129,
-0.009584471583366394,
0.026580024510622025,
0.03943253308534622,
0.000699597061611712,
0.013728936202824116,
0.029456138610839844,
0.041928842663764954,
0.05118915066123009,
-0.014112048782408237,
0.06922207027673721,
-0.017363030463457108,
-0.017646128311753273,
0.011028978042304516,
-0.027552727609872818,
-0.0342475064098835,
0.0563763752579689,
0.011118949390947819,
-0.03632722422480583,
-0.04441199451684952,
0.030908428132534027,
0.0023331723641604185,
-0.003084456082433462,
0.06604183465242386,
-0.04249703139066696,
-0.037645917385816574,
-0.04917206987738609,
0.056917306035757065,
-0.020466018468141556,
0.01463773287832737,
-0.02177325263619423,
-0.040636222809553146,
-0.01779799349606037,
-0.048268258571624756,
-0.0299229733645916,
-0.02351458929479122,
0.013333024457097054,
-0.0024240766651928425,
0.06148149445652962,
-0.011560650542378426,
-0.04342275485396385,
0.010566788725554943,
0.00497022457420826,
-0.04049547389149666,
0.05681925266981125,
0.034578587859869,
0.08094610273838043,
-0.029264679178595543,
-0.047990527004003525,
0.006579335778951645,
0.036390289664268494,
-0.021326551213860512,
-0.01039365865290165,
0.005682589020580053,
-0.02719508484005928,
-0.02767878957092762,
0.007161240093410015,
0.02502402476966381,
-0.0648500844836235,
-0.02738320827484131,
0.036222416907548904,
0.017003383487462997,
0.05171845853328705,
-0.046065554022789,
0.0013230314943939447,
-0.023908309638500214,
-0.0017019127262756228,
-0.05707845836877823,
0.05138330161571503,
-0.0019605057314038277,
0.00866375770419836,
-0.025317026302218437,
-0.046329982578754425,
-0.004135451279580593,
0.08837512880563736,
-0.014538560062646866,
-0.01806209422647953,
-0.048368483781814575,
0.020071277394890785,
0.0621606819331646,
0.02486599236726761,
-0.024384014308452606,
0.0318603515625,
0.05945824086666107,
0.039849087595939636,
-0.014462241902947426,
0.059540942311286926,
0.023892946541309357,
-0.04725296422839165,
-0.014425101689994335,
0.0181278083473444,
-0.0015087933279573917,
-0.029500944539904594,
0.0042829737067222595,
0.03143636882305145,
-0.005259609315544367,
-0.0275863166898489,
-0.016310343518853188,
0.03702584654092789,
-0.0007460304186679423,
0.007652974687516689,
-0.020436754450201988,
-0.02452181465923786,
-0.029843803495168686,
0.06957120448350906,
-0.0035202312283217907,
0.010970882140100002,
-0.023152543231844902,
-0.022155603393912315,
0.01338688749819994,
0.009154428727924824,
0.012484954670071602,
0.047448478639125824,
-0.006745415739715099,
0.059891022741794586,
-0.04506378248333931,
-0.010677439160645008,
-0.05100107938051224,
-0.03207360953092575,
-0.00402999110519886,
0.036090508103370667,
0.02994205430150032,
0.0271479319781065,
-0.022976316511631012,
-0.04058625549077988,
0.022256778553128242,
0.05013727396726608,
0.05153467506170273,
0.02995537407696247,
-0.011918896809220314,
-0.009804949164390564,
0.028874842450022697,
0.03849741443991661,
-0.053878072649240494,
-0.041559211909770966,
0.0195345189422369,
0.048564087599515915,
-0.012844634242355824,
-0.016983911395072937,
-0.018466943874955177,
-0.0006524488562718034,
-0.04392791539430618,
-0.053829025477170944,
0.036087531596422195,
0.01897883228957653,
0.005116903688758612,
0.06026777997612953,
-0.03803689777851105,
0.0021583829075098038,
0.032784510403871536,
0.021814502775669098,
0.008045823313295841,
-0.04648546874523163,
-0.0004284603928681463,
-0.004067098721861839,
0.04273202642798424,
-0.047160662710666656,
0.02219504490494728,
0.005096859764307737,
0.012759729288518429,
0.07150524854660034,
-0.05404534935951233,
0.04533882439136505,
0.05034105107188225,
0.02418171800673008,
-0.02130991406738758,
0.06483343243598938,
-0.005468337796628475,
0.02460285648703575,
0.046460434794425964,
0.011193335987627506,
0.08436866849660873,
-0.010898640379309654,
0.03267833590507507,
0.09793540090322495,
0.03930385410785675,
0.019394705072045326,
0.05912639945745468,
0.05113193020224571,
0.014643301256000996,
-0.013967125676572323,
0.06428147852420807,
-0.03267981484532356,
0.01899244450032711,
-0.04291181638836861,
0.01568388193845749,
-0.010703206062316895,
0.017150158062577248,
0.07285887002944946,
0.0029005035758018494,
-0.009236516430974007,
0.008506267331540585,
-0.005729026161134243,
0.004483284428715706,
0.052482087165117264,
0.021413957700133324,
0.004639807622879744,
-0.006022654008120298,
-0.020068736746907234,
0.04085884988307953,
-0.0498599112033844,
-0.034566640853881836,
-0.003547798143699765,
-0.05501170828938484,
-0.0009612004505470395,
-0.0608627125620842,
-0.019035784527659416,
-0.04573111981153488,
0.007117405068129301,
0.04205701872706413,
0.014305360615253448,
0.014399087056517601,
-0.04906371980905533,
0.007943002507090569,
-0.046434417366981506,
-0.052890975028276443,
-0.06456077843904495,
-0.036093637347221375,
-0.03987453132867813,
-0.07573298364877701,
0.05149321258068085,
-0.0007704815943725407,
0.025509517639875412,
0.010605396702885628,
-0.004428080283105373,
-0.04412870109081268,
-0.01685195229947567,
0.0457037016749382,
0.043837327510118484,
-0.03194625303149223,
-0.022176966071128845,
-0.009395529516041279,
-0.034295547753572464,
0.031172217801213264,
-0.033439286053180695,
-0.03670571744441986,
0.08836652338504791,
0.05698110908269882,
0.02762746624648571,
0.010881411843001842,
0.01655609719455242,
-0.050492022186517715,
-0.040493641048669815,
-0.012679493054747581,
-0.00868791714310646,
-0.020669221878051758,
-0.019352229312062263,
-0.036083269864320755,
-0.02261769212782383,
-0.06259967386722565,
-0.0033659080509096384,
0.01833481341600418,
0.026415759697556496,
0.03237972408533096,
0.07528099417686462,
0.026789136230945587,
0.02601342834532261,
-0.01286120992153883,
-0.029659973457455635,
0.04993169754743576,
0.0001845180959207937,
0.004459440242499113,
-0.0881042405962944,
-0.026936538517475128,
0.04122648760676384,
0.02332121692597866,
-0.01165053341537714,
-0.004284177906811237,
0.07708466053009033,
-0.0003403233422432095,
-0.030290285125374794,
0.005068456754088402,
-0.017374685034155846,
-0.006319595966488123,
-0.004190683364868164,
-0.004763861186802387,
-0.008279981091618538,
-0.054390668869018555,
-0.035624224692583084,
0.015031508170068264,
0.02989337034523487,
-0.05236088111996651,
-0.04908876121044159,
-0.00025119446218013763,
0.02715498022735119,
0.0654100701212883,
0.026571795344352722,
-0.03157230466604233,
-0.002182505326345563,
-0.027171436697244644,
-0.040876127779483795,
0.02365857921540737,
0.027360910549759865,
0.028826309368014336,
0.02856210060417652,
0.02784963697195053,
-0.06492870301008224,
0.037131417542696,
0.04632208123803139,
0.04222306236624718,
0.020924225449562073,
-0.03676017001271248,
0.02675425074994564,
-0.01630214788019657,
0.020377175882458687,
-0.0009589632390998304,
-0.03777267783880234,
-0.037555620074272156,
-0.10594664514064789,
-0.005608007311820984,
-0.00550075713545084,
-0.02008938044309616,
-0.003371029393747449,
0.04335545375943184,
-0.00262381206266582,
0.025360355153679848,
-0.02667701058089733,
0.026333287358283997,
0.025283996015787125,
-0.023910563439130783,
0.05605587735772133,
-0.01703045517206192,
0.02650940790772438,
-0.040480900555849075,
0.01668938249349594,
-0.04407777637243271,
-0.021991653367877007,
-0.014638297259807587,
0.0596325546503067,
0.019337795674800873,
0.05397624149918556,
0.07139121741056442,
0.02165214717388153,
-0.053877729922533035,
0.04777560010552406,
0.06594213843345642,
-0.026012662798166275,
-0.061503976583480835,
-0.02140769362449646,
-0.013324354775249958,
-0.04219485819339752,
0.0009231800795532763,
-0.04617658257484436,
-0.00132465991191566,
0.04252692684531212,
0.010141699574887753,
-0.02702110819518566,
0.008702457882463932,
-0.02637864276766777,
-0.020574739202857018,
-0.11622931808233261,
-0.042190272361040115,
0.015990624204277992,
-0.0324203297495842,
0.03567351773381233,
0.02677137777209282,
0.01207996066659689,
0.08075927197933197,
0.032451339066028595,
-0.026240771636366844,
-0.050834424793720245,
0.01807156391441822,
0.03405151516199112,
-0.03952803835272789,
-0.08773080259561539,
-0.02079828828573227,
0.03904726356267929,
0.06513933092355728,
-0.0263874102383852,
-0.08888640999794006,
-0.008329869247972965,
0.07242822647094727,
-0.03702394291758537,
0.11115285009145737,
-0.010225683450698853,
0.03783441334962845,
0.07997334003448486,
-0.02324243076145649,
0.017543479800224304,
-0.030536966398358345,
-0.0058800834231078625,
-0.0034997330512851477,
0.022766856476664543,
-0.061739832162857056,
-0.051632799208164215,
-0.02494368702173233,
0.02742069400846958,
0.030283741652965546,
0.046361688524484634,
0.03289392963051796,
-0.026973430067300797,
-0.06637168675661087,
0.009306315332651138,
0.018318673595786095,
-0.05872452259063721,
-0.027545951306819916,
0.02036081627011299,
0.06305264681577682,
-0.04327267035841942,
-0.01209677942097187,
-0.017475029453635216,
-0.03592558205127716,
0.021905770525336266,
-0.012539577670395374,
-0.03911333903670311,
-0.06621640175580978,
-0.0036035815719515085,
-0.04962753877043724,
-0.013998707756400108,
-0.06664001196622849,
0.031044280156493187,
-0.023539144545793533,
-0.0361611470580101,
0.058270249515771866,
0.041229020804166794,
0.015427164733409882,
0.031064946204423904,
0.0044974517077207565,
0.006383264437317848,
-0.017544753849506378,
0.016089610755443573,
-0.020352715626358986,
-0.041945960372686386,
-0.0007493718294426799,
-0.05867289379239082,
-0.02317059226334095,
0.013347923755645752,
-0.044787243008613586,
-0.06979930400848389,
0.00003171215212205425,
0.020061597228050232,
0.012279888615012169,
0.01146618276834488,
0.0018626933451741934,
0.017268676310777664,
-0.041062772274017334,
-0.024693606421351433,
-0.0051056332886219025,
-0.00788077525794506,
-0.060964811593294144,
-0.0434856042265892,
0.0056333695538342,
-0.00004146965511608869,
0.008595299907028675,
-0.004639455117285252,
0.020550059154629707,
0.03346424922347069,
0.002550457138568163,
-0.053760021924972534,
0.015420577488839626,
0.010809386149048805,
-0.018171854317188263,
-0.011322133243083954,
0.020572494715452194,
0.013820228166878223,
0.012810065411031246,
-0.02292778715491295,
-0.009229852817952633,
0.026737412437796593,
-0.021600687876343727,
-0.03058292344212532,
0.0216510109603405,
0.01362646371126175,
-0.07333029806613922,
-0.02046256512403488,
-0.013837331905961037,
-0.04468123987317085,
0.041703611612319946,
-0.017678385600447655,
-0.03640104830265045,
0.0007492100121453404,
0.007231894414871931,
-0.002548198914155364,
-0.0291301142424345,
-0.02891051396727562,
-0.014107475988566875,
-0.027362894266843796,
0.016249923035502434,
-0.049812447279691696,
0.03585546836256981,
-0.016416240483522415,
0.017234332859516144,
-0.01438194327056408,
-0.01736212521791458,
-0.04703890159726143,
0.04921797662973404,
0.0035411925055086613,
-0.007405981887131929,
-0.007546952459961176,
0.018578875809907913,
-0.030901027843356133,
0.011361092329025269,
-0.0029138755053281784,
0.02074359729886055,
-0.014043583534657955,
0.031081361696124077,
-0.06790145486593246,
-0.009769909083843231,
0.00768436212092638,
0.04872320964932442,
-0.03981998935341835,
-0.03321675583720207,
0.021874772384762764,
-0.040802594274282455,
0.014853332191705704,
0.01901150494813919,
0.01020138245075941,
0.025878988206386566,
-0.025095872581005096,
0.020992398262023926,
0.051185473799705505,
-0.06706072390079498,
-0.013393952511250973,
-0.038818202912807465,
0.0029654947575181723,
-0.02361227758228779,
0.053518060594797134,
0.032290879637002945,
-0.04132179915904999,
-0.05791661515831947,
0.06025777757167816,
0.023924695327878,
0.007671169470995665,
0.001596870948560536,
0.012986509129405022,
0.02777411974966526,
0.022861652076244354,
-0.033151354640722275,
-0.0039080409333109856,
0.017150403931736946,
-0.00625579571351409,
-0.013326112180948257,
0.006153027527034283,
0.021954376250505447,
0.0009259182261303067,
-0.03735337778925896,
-0.01832057535648346,
0.050412990152835846,
0.031511276960372925,
0.019292712211608887,
0.0029266716446727514,
-0.04755043983459473,
0.04046507924795151,
-0.010521115735173225,
-0.06706416606903076,
-0.04049994796514511,
0.02400761842727661,
-0.041984498500823975,
0.07072116434574127,
0.00468092504888773,
0.0088835209608078,
0.052239883691072464,
0.021285682916641235,
-0.0026308982633054256,
0.048175543546676636,
0.00565149774774909,
0.018105680122971535,
0.015816887840628624,
-0.0673278421163559,
-0.021804308518767357,
-0.025566725060343742,
0.055533505976200104,
-0.07072579860687256,
0.05030526593327522,
0.04302283003926277,
0.01601354219019413,
0.0011106362799182534,
-0.05808917433023453,
-0.023517273366451263,
0.021914122626185417,
-0.03173711150884628,
0.0491650253534317,
-0.03004106692969799,
-0.05136872082948685,
0.050611235201358795,
0.03579162806272507,
-0.0950622633099556,
0.036849841475486755,
0.03302794322371483,
0.05479774624109268,
0.029832914471626282,
0.051347311586141586,
-0.059810761362314224,
0.023053430020809174,
-0.029932839795947075,
0.0224445853382349,
-0.08426587283611298,
0.01041001919656992,
-0.015928341075778008,
-0.032922692596912384,
-0.019188040867447853,
0.03172220662236214,
-0.038864538073539734,
-0.002109905704855919,
0.022200312465429306,
-0.029330376535654068,
-0.03695084899663925,
-0.0019500497728586197,
0.009258844889700413,
-0.003289478598162532,
0.021092379465699196,
-0.03508502617478371,
0.006520531140267849,
0.03934109956026077,
0.004410530440509319,
-0.009402354247868061,
-0.006862672045826912,
0.017292892560362816,
-0.04868844151496887,
-0.027932044118642807,
0.0631573423743248,
0.01419579517096281,
-0.03171692043542862,
0.03452260047197342,
0.0030896018724888563,
0.024345314130187035,
0.02143118530511856,
0.007385778706520796,
0.032074615359306335,
-0.0550365149974823,
-0.0038809035904705524,
0.016502482816576958,
0.038604747503995895,
0.02406933158636093,
-0.0043366821482777596,
0.036940913647413254,
0.0474148765206337,
0.03166971355676651,
-0.012713061645627022,
-0.03993568941950798,
-0.030865883454680443,
-0.004843917675316334,
-0.022571943700313568,
0.007317293435335159,
-0.0033104417379945517,
-0.05651237070560455,
-0.05414270609617233,
-0.0009962826734408736,
-0.02027140185236931,
0.04368454962968826,
-0.06444695591926575,
0.025112023577094078,
0.047874998301267624,
0.0006045771297067404,
-0.06975485384464264,
-0.09802456945180893,
-0.0386679582297802,
-0.014277683570981026,
-0.000007172481218731264,
0.01479647122323513,
-0.03826545551419258,
0.0023839902132749557,
-0.03153852000832558,
-0.03664804995059967,
0.035810381174087524,
0.0055180205963552,
-0.01500182505697012,
0.09248479455709457,
0.055480651557445526,
-0.03842196986079216,
0.013800985179841518,
0.030671313405036926,
-0.04343590512871742,
0.04614521935582161,
0.010798213072121143,
0.021303975954651833,
0.04660632088780403,
0.03918033465743065,
-0.014963576570153236,
-0.009929419495165348,
-0.08057454973459244,
-0.030386874452233315,
-0.022295065224170685,
-0.014542421326041222,
0.04955850541591644
] |
CouchCat/ma_ner_v7_distil | [
"pytorch",
"distilbert",
"token-classification",
"en",
"transformers",
"ner",
"license:mit",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"DistilBertForTokenClassification"
],
"model_type": "distilbert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 13 | null | ---
language: en
license: mit
tags:
- ner
widget:
- text: "These shoes I recently bought from Tommy Hilfiger fit quite well. The shirt, however, has got a hole"
---
### Description
A Named Entity Recognition model trained on a customer feedback data using DistilBert.
Possible labels are in BIO-notation. Performance of the PERS tag could be better because of low data samples:
- PROD: for certain products
- BRND: for brands
- PERS: people names
The following tags are simply in place to help better categorize the previous tags
- MATR: relating to materials, e.g. cloth, leather, seam, etc.
- TIME: time related entities
- MISC: any other entity that might skew the results
### Usage
```
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("CouchCat/ma_ner_v7_distil")
model = AutoModelForTokenClassification.from_pretrained("CouchCat/ma_ner_v7_distil")
```
| [
-0.021400246769189835,
0.013077665120363235,
0.0008614578400738537,
0.02048981748521328,
0.03169477358460426,
0.05127790570259094,
-0.01015570666640997,
0.018381116911768913,
-0.022700835019350052,
0.055596739053726196,
0.02340880036354065,
-0.014178579673171043,
0.01213734969496727,
0.04809502512216568,
-0.050772715359926224,
-0.035564687103033066,
-0.011453809216618538,
-0.0165374968200922,
-0.03342844918370247,
-0.010317312553524971,
-0.02004094421863556,
0.007698813918977976,
-0.020680811256170273,
0.0036975762341171503,
-0.00020222854800522327,
0.02532382123172283,
0.0018353271298110485,
0.05570812523365021,
0.020480692386627197,
-0.05963375046849251,
-0.007940691895782948,
-0.049243997782468796,
-0.026879841461777687,
-0.018856629729270935,
-0.020408231765031815,
-0.014348135329782963,
0.004644911270588636,
-0.001898265560157597,
0.032020699232816696,
0.047188255935907364,
0.012492522597312927,
0.027429670095443726,
-0.012458262965083122,
-0.05313611775636673,
0.041920069605112076,
0.02254670113325119,
-0.028805352747440338,
-0.03790106251835823,
0.030841952189803123,
-0.03284021466970444,
-0.05956205725669861,
-0.0683957040309906,
-0.03143560513854027,
0.028915802016854286,
-0.024733172729611397,
-0.016638318076729774,
-0.05567343533039093,
0.0010402019834145904,
0.06632030010223389,
-0.04485497251152992,
-0.03160327300429344,
0.008688341826200485,
-0.06669476628303528,
0.029625779017806053,
0.0341629795730114,
-0.039229217916727066,
-0.011636924929916859,
-0.05891956761479378,
0.007985769771039486,
-0.013363944366574287,
0.05688143149018288,
-0.02241792157292366,
0.0014760977355763316,
-0.06817351281642914,
-0.010402090847492218,
-0.01567067950963974,
0.048678599298000336,
-0.009637823328375816,
-0.035717714577913284,
0.025648733600974083,
0.05556007847189903,
-0.006276433356106281,
0.026120485737919807,
-0.048915568739175797,
-0.014486905187368393,
0.05509602651000023,
-0.02938011661171913,
-0.0061809909529984,
0.005319798365235329,
0.021458972245454788,
-0.025451621040701866,
-0.01854267157614231,
0.012619134038686752,
-0.023255659267306328,
-0.021110989153385162,
0.02397785522043705,
0.04077168181538582,
0.012442413717508316,
0.01611233316361904,
0.029445545747876167,
0.03843006491661072,
0.05671730265021324,
-0.011715235188603401,
0.07312848418951035,
-0.00693900603801012,
-0.010179711505770683,
0.014411616139113903,
-0.020960265770554543,
-0.03972548618912697,
0.04804300516843796,
0.013998831622302532,
-0.03971262648701668,
-0.05245431512594223,
0.038228847086429596,
0.007785457652062178,
0.013479101471602917,
0.07734108716249466,
-0.032850705087184906,
-0.020148808136582375,
-0.05990397185087204,
0.05286606028676033,
-0.02807113155722618,
0.01597997359931469,
-0.020603224635124207,
-0.0398896150290966,
-0.021983075886964798,
-0.03304756060242653,
-0.021681539714336395,
-0.009240373969078064,
0.0036477376706898212,
-0.008551117964088917,
0.05414465442299843,
-0.0277521051466465,
-0.03525665029883385,
0.025894902646541595,
0.01599191501736641,
-0.03922516480088234,
0.04755309224128723,
0.041268039494752884,
0.08849668502807617,
-0.03042696788907051,
-0.04571288451552391,
0.0020639256108552217,
0.031547658145427704,
-0.04241528734564781,
-0.009249291382730007,
0.006251232698559761,
-0.02050446718931198,
-0.023097850382328033,
-0.00597357377409935,
0.020246393978595734,
-0.06127288192510605,
-0.023603331297636032,
0.02780521847307682,
0.0069123306311666965,
0.0489288792014122,
-0.04741187393665314,
0.000028759819542756304,
-0.014269735664129257,
-0.009092559106647968,
-0.04108855128288269,
0.04855891317129135,
-0.0022948153782635927,
0.01842992752790451,
-0.023432381451129913,
-0.04858788475394249,
-0.009550891816616058,
0.07757523655891418,
-0.010774646885693073,
-0.007683337200433016,
-0.051071640104055405,
0.012397203594446182,
0.06363440304994583,
0.04007137939333916,
-0.024898555129766464,
0.04507514461874962,
0.06631849706172943,
0.04028058797121048,
-0.02555919997394085,
0.057886093854904175,
0.03255295380949974,
-0.040272876620292664,
-0.030290137976408005,
0.005422148387879133,
-0.007406530436128378,
-0.022570397704839706,
0.013399533927440643,
0.04308298975229263,
-0.0068018026649951935,
-0.01972760073840618,
-0.01368031557649374,
0.03842580318450928,
-0.0049652340821921825,
0.01384174358099699,
-0.01944774016737938,
-0.022410714998841286,
-0.03285418450832367,
0.06942756474018097,
-0.007216344587504864,
0.007036556489765644,
-0.017739104107022285,
-0.016694823279976845,
0.016272811219096184,
0.020259715616703033,
0.017153924331068993,
0.05293974280357361,
-0.012665564194321632,
0.07058850675821304,
-0.044975172728300095,
0.00045163530739955604,
-0.04689105600118637,
-0.018943991512060165,
0.0013327572960406542,
0.05117613077163696,
0.020602835342288017,
0.03303920477628708,
-0.03164920210838318,
-0.035479724407196045,
0.036350641399621964,
0.04435199126601219,
0.05125381797552109,
0.03371220827102661,
-0.03375424072146416,
-0.016885297372937202,
0.028352297842502594,
0.03198186680674553,
-0.04941686987876892,
-0.040291957557201385,
0.019641824066638947,
0.045399535447359085,
-0.030625350773334503,
-0.0183113943785429,
-0.02233731560409069,
-0.0033703185617923737,
-0.03717890754342079,
-0.0581786222755909,
0.02737712673842907,
0.019622614607214928,
-0.004201803356409073,
0.0624614953994751,
-0.03353295102715492,
0.0015357212396338582,
0.03605114668607712,
0.019329367205500603,
0.009064055979251862,
-0.03728450462222099,
-0.00543212890625,
0.0034980776254087687,
0.05223485827445984,
-0.047291018068790436,
0.030344676226377487,
0.004359615501016378,
0.006583898328244686,
0.07866090536117554,
-0.04722342640161514,
0.0326094813644886,
0.04772914946079254,
0.03363870084285736,
-0.012774132192134857,
0.06307492405176163,
-0.005867344327270985,
0.02274353615939617,
0.04503228887915611,
0.021697551012039185,
0.09143964946269989,
-0.004368393216282129,
0.031039807945489883,
0.10140412300825119,
0.030195433646440506,
0.01727019064128399,
0.05762643367052078,
0.0476086288690567,
0.01453472301363945,
-0.0217282772064209,
0.055952005088329315,
-0.03607974201440811,
0.015082601457834244,
-0.04829513654112816,
0.02018824592232704,
-0.02195381186902523,
0.0020860088989138603,
0.0727747306227684,
0.00425687013193965,
-0.010143982246518135,
0.012268178164958954,
-0.008355416357517242,
-0.011233145371079445,
0.040668874979019165,
0.017718171700835228,
0.005277961026877165,
0.011129723861813545,
-0.015790482982993126,
0.038345810025930405,
-0.05993969738483429,
-0.03729168325662613,
-0.002606429858133197,
-0.04956577345728874,
-0.006726910825818777,
-0.07905588299036026,
-0.029855985194444656,
-0.054753828793764114,
-0.0038815413136035204,
0.030498797073960304,
0.0015536653809249401,
0.016607971861958504,
-0.042886193841695786,
0.01010346133261919,
-0.04131961613893509,
-0.046990495175123215,
-0.059968262910842896,
-0.03727066144347191,
-0.05614766478538513,
-0.07684558629989624,
0.039135273545980453,
-0.0033905310556292534,
0.026103388518095016,
0.0142741147428751,
-0.014916040934622288,
-0.0465412400662899,
-0.011697843670845032,
0.055485017597675323,
0.03328033536672592,
-0.04595964029431343,
-0.03314114362001419,
0.0036529332865029573,
-0.03054419532418251,
0.024446746334433556,
-0.03260483965277672,
-0.04213244840502739,
0.08648744225502014,
0.05311894789338112,
0.03069183975458145,
0.013100619427859783,
0.007185120135545731,
-0.02552107721567154,
-0.029549499973654747,
-0.015061612240970135,
-0.021767742931842804,
-0.01938025839626789,
-0.021818140521645546,
-0.04221920296549797,
-0.026774130761623383,
-0.054461944848299026,
-0.002130763605237007,
0.011182323098182678,
0.029107026755809784,
0.03840070217847824,
0.07808312773704529,
0.029838206246495247,
0.024239379912614822,
-0.0030647781677544117,
-0.03023058921098709,
0.0520092211663723,
-0.018066851422190666,
0.005726615898311138,
-0.09415014833211899,
-0.025764502584934235,
0.031166665256023407,
0.01326302532106638,
-0.007300566416233778,
-0.017016444355249405,
0.07609138637781143,
0.00777363171800971,
-0.030958378687500954,
0.008418113924562931,
-0.009005126543343067,
-0.014479173347353935,
-0.015106158331036568,
-0.009327428415417671,
-0.013047547079622746,
-0.05658850446343422,
-0.028570085763931274,
0.005750075448304415,
0.024228528141975403,
-0.060499951243400574,
-0.04790496081113815,
-0.005887502338737249,
0.025597145780920982,
0.06438558548688889,
0.023688942193984985,
-0.030429888516664505,
-0.004240908194333315,
-0.03234105557203293,
-0.03586229309439659,
0.026822900399565697,
0.017652079463005066,
0.02563379518687725,
0.022755946964025497,
0.01194051280617714,
-0.07361067831516266,
0.04037083685398102,
0.042554620653390884,
0.04760320484638214,
0.023218125104904175,
-0.028444744646549225,
0.018459370359778404,
-0.020056551322340965,
0.022605789825320244,
-0.0033436601515859365,
-0.0306457057595253,
-0.0474255308508873,
-0.09435573220252991,
0.0035833274014294147,
0.00020510386093519628,
-0.01648545265197754,
0.0008475095964968204,
0.04534246772527695,
-0.002558552660048008,
0.020969951525330544,
-0.021374128758907318,
0.025751492008566856,
0.029406609013676643,
-0.021497370675206184,
0.05240296572446823,
-0.028872717171907425,
0.024732064455747604,
-0.03128175437450409,
0.010335511527955532,
-0.04798933118581772,
-0.017378011718392372,
-0.012060063891112804,
0.0559520348906517,
0.017242763191461563,
0.04698491096496582,
0.08063285052776337,
0.027424126863479614,
-0.05127305909991264,
0.053356364369392395,
0.06608406454324722,
-0.02170722931623459,
-0.0703641027212143,
-0.015732891857624054,
-0.007643323857337236,
-0.032061006873846054,
-0.0004853021528106183,
-0.04408005625009537,
0.012807324528694153,
0.049863919615745544,
0.003535805270075798,
-0.012451387010514736,
0.0019407864892855287,
-0.019643833860754967,
-0.021848352625966072,
-0.10847817361354828,
-0.027071287855505943,
0.000543733243830502,
-0.028149336576461792,
0.03616328537464142,
0.028511183336377144,
0.0003911390376742929,
0.07491157948970795,
0.03946097940206528,
-0.034051213413476944,
-0.04657629132270813,
0.02028799057006836,
0.033830225467681885,
-0.042160190641880035,
-0.08321079611778259,
-0.01683039590716362,
0.051895566284656525,
0.06195664033293724,
-0.01944868080317974,
-0.08972509205341339,
-0.012435036711394787,
0.07763965427875519,
-0.0419650599360466,
0.11764953285455704,
-0.011992739513516426,
0.03822397440671921,
0.07990385591983795,
-0.020154185593128204,
0.016093771904706955,
-0.04471924528479576,
0.0015952829271554947,
-0.00788482278585434,
0.03372037410736084,
-0.05484120175242424,
-0.03776679188013077,
-0.020474325865507126,
0.030650479719042778,
0.026057617738842964,
0.04899638146162033,
0.030889881774783134,
-0.02716016210615635,
-0.06278972327709198,
0.008538700640201569,
0.018885204568505287,
-0.06557194888591766,
-0.02320724166929722,
0.013057929463684559,
0.06129445508122444,
-0.04900491610169411,
-0.024468814954161644,
-0.019744915887713432,
-0.024147888645529747,
0.015407001599669456,
-0.011569187976419926,
-0.0494861975312233,
-0.05717272311449051,
-0.005001302342861891,
-0.04106955602765083,
-0.014951180666685104,
-0.06093084067106247,
0.034598685801029205,
-0.020304441452026367,
-0.03981934115290642,
0.06285258382558823,
0.03964979574084282,
0.0270544346421957,
0.027845872566103935,
-0.008225638419389725,
0.009605138562619686,
-0.021306708455085754,
0.017323551699519157,
-0.023212546482682228,
-0.04868273437023163,
-0.002164068166166544,
-0.06307777762413025,
-0.02134384959936142,
0.009885795414447784,
-0.034557320177555084,
-0.06293214112520218,
-0.0028969463892281055,
0.0036219432950019836,
0.009202729910612106,
0.016873277723789215,
0.007781587541103363,
0.020144281908869743,
-0.03491446375846863,
-0.029387062415480614,
0.003817582968622446,
-0.01729523204267025,
-0.08369279652833939,
-0.05549345538020134,
-0.0008704107603989542,
-0.007782271131873131,
0.008123829029500484,
-0.024193719029426575,
0.021433362737298012,
0.03081914409995079,
0.01049576885998249,
-0.05147303268313408,
0.005521753802895546,
0.007038457784801722,
-0.018255650997161865,
-0.00007619682583026588,
0.01984133943915367,
0.013582784682512283,
0.017832215875387192,
-0.020207349210977554,
-0.005999281536787748,
0.023191576823592186,
-0.028139106929302216,
-0.027539752423763275,
0.015334694646298885,
-0.0004055085009895265,
-0.08294966071844101,
-0.014048932120203972,
-0.01870422251522541,
-0.0453895702958107,
0.030603142455220222,
-0.019243590533733368,
-0.024671461433172226,
-0.018332425504922867,
0.012641645036637783,
0.0029098736122250557,
-0.03459393233060837,
-0.033705975860357285,
-0.00971005205065012,
-0.03156557306647301,
0.01028691790997982,
-0.0406612753868103,
0.04409576952457428,
-0.012872469611465931,
0.01850523054599762,
-0.008613582700490952,
-0.03037521056830883,
-0.037749018520116806,
0.043788131326436996,
0.0035965328570455313,
-0.016921449452638626,
-0.007796589285135269,
0.02056354284286499,
-0.033517129719257355,
0.013437623158097267,
0.014369228854775429,
0.01711314544081688,
-0.017370043322443962,
0.02550392970442772,
-0.08076445013284683,
-0.015109150670468807,
0.01656503416597843,
0.032181065529584885,
-0.019181296229362488,
-0.025576151907444,
0.023952873423695564,
-0.04409424960613251,
0.017867527902126312,
0.012954909354448318,
0.016939572989940643,
0.035081859678030014,
-0.02225559763610363,
0.030867883935570717,
0.05503392964601517,
-0.04910167679190636,
-0.011350196786224842,
-0.03254213556647301,
0.000223179129534401,
-0.015760289505124092,
0.0558224618434906,
0.03296835720539093,
-0.04080260172486305,
-0.04359981045126915,
0.05900641530752182,
0.016367381438612938,
0.010032660327851772,
-0.009377991780638695,
0.012572240084409714,
0.04430922865867615,
0.030021388083696365,
-0.033023133873939514,
-0.005323362071067095,
0.012509038671851158,
-0.02499774843454361,
-0.0031295123044401407,
0.009198098443448544,
0.02698744833469391,
-0.011226881295442581,
-0.036755286157131195,
-0.022758523002266884,
0.058537013828754425,
0.026875747367739677,
0.015444825403392315,
-0.007801478262990713,
-0.0434427373111248,
0.03462337329983711,
-0.009221586398780346,
-0.06725208461284637,
-0.03865346685051918,
0.03279887139797211,
-0.03915254399180412,
0.05712120607495308,
-0.007312563247978687,
0.008064433000981808,
0.044489145278930664,
0.014300509355962276,
-0.008922035805881023,
0.04307490959763527,
0.004332840442657471,
0.014078334905207157,
0.016186239197850227,
-0.06816525012254715,
-0.011674691922962666,
-0.029069360345602036,
0.04959352687001228,
-0.05893275886774063,
0.045671917498111725,
0.045345619320869446,
0.015302564017474651,
0.009298998862504959,
-0.04484250769019127,
-0.02351456694304943,
0.02918432466685772,
-0.039439234882593155,
0.04848700389266014,
-0.020062651485204697,
-0.04818583279848099,
0.05431235954165459,
0.02829388715326786,
-0.09830410033464432,
0.03363524749875069,
0.025410668924450874,
0.05348466336727142,
0.029239870607852936,
0.050450365990400314,
-0.058726489543914795,
0.028802374377846718,
-0.029740506783127785,
0.026303749531507492,
-0.07435256242752075,
0.00916364323347807,
-0.01933465152978897,
-0.043751541525125504,
-0.025976894423365593,
0.046132754534482956,
-0.03897584229707718,
-0.011237540282309055,
0.023591797798871994,
-0.0257743988186121,
-0.044232722371816635,
-0.0048780739307403564,
0.018962400034070015,
-0.014280609786510468,
0.024580642580986023,
-0.04948030412197113,
0.022514106705784798,
0.028995521366596222,
0.0035282312892377377,
-0.01143984030932188,
-0.01007130742073059,
0.03467338904738426,
-0.05015643686056137,
-0.025937216356396675,
0.05838102474808693,
0.005742812063544989,
-0.03935946896672249,
0.02412412129342556,
0.010179921053349972,
0.02695116214454174,
0.024986663833260536,
0.006136402953416109,
0.03369014337658882,
-0.0610455758869648,
0.00565354572609067,
0.03065100498497486,
0.041015494614839554,
0.02414128929376602,
-0.007742902729660273,
0.02939680404961109,
0.045599404722452164,
0.039870526641607285,
-0.014004030264914036,
-0.027567032724618912,
-0.045734357088804245,
-0.0006396673270501196,
-0.03453788161277771,
0.01253633014857769,
-0.01149239856749773,
-0.04899678751826286,
-0.04528690502047539,
0.0030868465546518564,
-0.015521004796028137,
0.034297164529561996,
-0.062384143471717834,
0.02349741756916046,
0.066673643887043,
-0.0041316356509923935,
-0.0576467365026474,
-0.10367466509342194,
-0.038692355155944824,
-0.010582616552710533,
-0.008679592981934547,
0.015085679478943348,
-0.042466819286346436,
0.0032935896888375282,
-0.03048299439251423,
-0.030364150181412697,
0.03853026404976845,
-0.0009823740692809224,
0.001453787088394165,
0.08878448605537415,
0.05893338844180107,
-0.03868803009390831,
0.02030007541179657,
0.04135097190737724,
-0.04610297456383705,
0.05751781165599823,
0.005692861974239349,
0.007045340724289417,
0.0377592109143734,
0.04268265515565872,
-0.02129542827606201,
-0.010401738807559013,
-0.08403916656970978,
-0.028821716085076332,
-0.02269277349114418,
-0.012757840566337109,
0.05569923669099808
] |
CouchCat/ma_sa_v7_distil | [
"pytorch",
"distilbert",
"text-classification",
"en",
"transformers",
"sentiment-analysis",
"license:mit"
] | text-classification | {
"architectures": [
"DistilBertForSequenceClassification"
],
"model_type": "distilbert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 38 | 2021-02-12T17:16:43Z | ---
language: en
license: mit
tags:
- sentiment-analysis
widget:
- text: "I am disappointed in the terrible quality of my dress"
---
### Description
A Sentiment Analysis model trained on customer feedback data using DistilBert.
Possible sentiments are:
* negative
* neutral
* positive
### Usage
```
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("CouchCat/ma_sa_v7_distil")
model = AutoModelForSequenceClassification.from_pretrained("CouchCat/ma_sa_v7_distil")
``` | [
-0.029790790751576424,
-0.007599276024848223,
-0.02506718598306179,
0.05491499975323677,
0.039195504039525986,
0.05997300148010254,
-0.011756853200495243,
0.024351133033633232,
-0.04326464980840683,
0.0538172610104084,
0.021644195541739464,
-0.025167470797896385,
0.02706444449722767,
0.04675446078181267,
-0.05025478079915047,
-0.029994700103998184,
-0.02326102741062641,
-0.02703707106411457,
-0.017208099365234375,
-0.02588161639869213,
-0.010411242954432964,
0.004114506300538778,
-0.012190435081720352,
0.007872623391449451,
-0.01821475476026535,
0.023346688598394394,
-0.005610431078821421,
0.030884411185979843,
0.015834210440516472,
-0.05805552378296852,
0.007429045159369707,
-0.05948425456881523,
-0.03302139788866043,
-0.01403332594782114,
-0.02204766310751438,
0.003051744308322668,
0.007614214904606342,
0.005382281728088856,
0.003899934235960245,
0.01909920573234558,
0.030235346406698227,
0.015920396894216537,
-0.020160062238574028,
-0.02668015845119953,
0.05487971752882004,
0.030591558665037155,
-0.04367288947105408,
-0.02627110853791237,
0.027942592278122902,
-0.03577130287885666,
-0.07584939897060394,
-0.05913442373275757,
-0.03194933384656906,
0.030251173302531242,
-0.0019007076043635607,
-0.03127172589302063,
-0.0476810447871685,
0.00834522396326065,
0.059523362666368484,
-0.08126714080572128,
-0.043816257268190384,
0.012411980889737606,
-0.0662224218249321,
-0.007389368489384651,
0.02059529349207878,
-0.047468915581703186,
-0.005866835825145245,
-0.01127937063574791,
-0.00463859224691987,
-0.03304928541183472,
0.06520603597164154,
-0.029959483072161674,
0.041059669107198715,
-0.06510011106729507,
-0.01520153321325779,
-0.02665914222598076,
0.036406729370355606,
0.02743459679186344,
-0.013225180096924305,
0.04599367827177048,
0.05480910837650299,
0.0009107697987928987,
0.012906577438116074,
-0.031236007809638977,
-0.04369286075234413,
0.03234616667032242,
-0.04768640920519829,
0.013624229468405247,
-0.02199883572757244,
0.03268243372440338,
-0.02348172850906849,
-0.03484143316745758,
0.007258593570441008,
-0.013881037011742592,
-0.021870678290724754,
0.02159711718559265,
0.01757238805294037,
-0.003676521824672818,
0.032754529267549515,
0.030271580442786217,
0.03449174389243126,
0.028582977131009102,
-0.027763383463025093,
0.04640085995197296,
-0.006320687010884285,
-0.020532656461000443,
-0.017246663570404053,
-0.011333311907947063,
-0.052668698132038116,
0.03611322119832039,
-0.005196471698582172,
-0.04204896092414856,
-0.046033576130867004,
0.005680927075445652,
0.004502456169575453,
0.002117572585120797,
0.06934016197919846,
-0.030629364773631096,
-0.028705760836601257,
-0.08038869500160217,
0.04294215887784958,
-0.0005129622295498848,
0.0063622803427278996,
-0.010789122432470322,
-0.06510461121797562,
0.005266980268061161,
-0.05251545459032059,
-0.038669995963573456,
-0.03061981499195099,
0.020141979679465294,
0.007911348715424538,
0.038738805800676346,
-0.012010065838694572,
-0.04698830097913742,
0.02001301199197769,
0.009407310746610165,
-0.050732534378767014,
0.022611094638705254,
0.043683428317308426,
0.10050099343061447,
-0.05640033259987831,
-0.05883203074336052,
-0.027821669355034828,
-0.003464573761448264,
-0.045546647161245346,
0.028188636526465416,
0.022820962592959404,
-0.03541960567235947,
-0.02203669399023056,
0.017545824870467186,
0.03513726964592934,
-0.06795483082532883,
-0.03131750598549843,
0.03428603708744049,
0.01855478063225746,
0.027701249346137047,
-0.04348558187484741,
-0.005792289040982723,
-0.01892637275159359,
-0.01206356380134821,
-0.04680453613400459,
0.040569007396698,
-0.00877356342971325,
-0.014998801052570343,
-0.020180338993668556,
-0.04157555103302002,
-0.004164166748523712,
0.08730249106884003,
-0.02358700893819332,
-0.04301907494664192,
-0.030713370069861412,
0.023406118154525757,
0.03325484320521355,
0.012856136076152325,
-0.022650096565485,
0.00919968169182539,
0.06488817185163498,
0.040456678718328476,
-0.02670552395284176,
0.062031328678131104,
0.009417996741831303,
-0.03815119341015816,
-0.01485496573150158,
0.0022855070419609547,
-0.006674210075289011,
-0.06277181953191757,
0.03461858257651329,
0.03090737573802471,
-0.01812608912587166,
0.0011573299998417497,
-0.01901189051568508,
0.041650108993053436,
0.004015258513391018,
0.020350825041532516,
-0.04004722088575363,
-0.015628619119524956,
-0.03673793375492096,
0.07534890621900558,
0.0007199583342298865,
0.014929218217730522,
-0.044502489268779755,
-0.03641131520271301,
0.011744691990315914,
0.0037024749908596277,
0.017937051132321358,
0.031581178307533264,
-0.01186298206448555,
0.09208541363477707,
-0.04352625459432602,
-0.008950061164796352,
-0.03716471418738365,
-0.0541050098836422,
-0.00849857646971941,
0.0586334764957428,
0.01058918610215187,
0.04482993483543396,
-0.007084582466632128,
-0.05086005479097366,
0.0008594693499617279,
0.05267667397856712,
0.04894627630710602,
0.04087464511394501,
-0.0258328877389431,
-0.016079993918538094,
0.019800826907157898,
0.041554540395736694,
-0.07832080870866776,
-0.05251619964838028,
0.014588279649615288,
0.03983757644891739,
-0.02606477215886116,
-0.028599346056580544,
-0.02842719294130802,
0.0000188004723895574,
-0.018924586474895477,
-0.07481445372104645,
0.07132390141487122,
0.023041052743792534,
0.00011421737144701183,
0.04378846660256386,
0.0006728012813255191,
-0.015164105221629143,
0.02298877201974392,
0.015756674110889435,
-0.007743405643850565,
-0.03658704832196236,
-0.004703538026660681,
0.01053888164460659,
0.06377547234296799,
-0.025867030024528503,
0.025650836527347565,
0.011057114228606224,
0.0014169313944876194,
0.07620630413293839,
-0.05427395924925804,
0.03676411136984825,
0.05253753811120987,
0.01170588843524456,
-0.030677638947963715,
0.04041798785328865,
0.004168166313320398,
0.04123850539326668,
0.0649649053812027,
-0.018927866593003273,
0.061442334204912186,
0.007985626347362995,
0.03372882679104805,
0.1164347380399704,
0.04425524175167084,
0.04043792188167572,
0.030038228258490562,
0.046280115842819214,
0.007796509191393852,
-0.006763482466340065,
0.05486517399549484,
-0.058486275374889374,
0.0076723056845366955,
-0.03625180199742317,
0.030402926728129387,
-0.017707766965031624,
-0.020253820344805717,
0.044417452067136765,
-0.0011137711117044091,
-0.03841940686106682,
-0.0051092845387756824,
-0.01161860954016447,
0.016672665253281593,
0.0559602789580822,
0.015086289495229721,
0.008500585332512856,
-0.00502235721796751,
-0.04638908803462982,
0.04537437856197357,
-0.055398475378751755,
-0.051800597459077835,
0.008910990320146084,
-0.042435817420482635,
-0.013912194408476353,
-0.0773734524846077,
-0.03424092009663582,
-0.056346744298934937,
0.009743619710206985,
0.03499174490571022,
-0.012314477935433388,
0.013180301524698734,
-0.0366431288421154,
0.01373601146042347,
-0.042083874344825745,
-0.04182390868663788,
-0.014021801762282848,
-0.04235467687249184,
-0.02137046493589878,
-0.07822664827108383,
0.03615722805261612,
-0.00469748442992568,
0.04680735245347023,
-0.01736290007829666,
-0.0005771107389591634,
-0.05341696739196777,
-0.013707145117223263,
0.05577635020017624,
0.039219968020915985,
-0.015922680497169495,
-0.054604411125183105,
-0.008221734315156937,
-0.0082096541300416,
0.021303322166204453,
0.008521837182343006,
-0.042873211205005646,
0.09441284090280533,
0.08410957455635071,
0.009748582728207111,
0.008140732534229755,
-0.006977338343858719,
-0.03921735659241676,
-0.03862260282039642,
-0.01838412694633007,
-0.023911789059638977,
-0.042420193552970886,
-0.009289033710956573,
-0.018129071220755577,
-0.05149915814399719,
-0.03463183343410492,
-0.03215393051505089,
0.014153997413814068,
0.030268216505646706,
0.04549400135874748,
0.05847020819783211,
0.024122726172208786,
0.01783844828605652,
-0.033766504377126694,
-0.007458586245775223,
0.05358092859387398,
0.0026418622583150864,
0.013968151062726974,
-0.07402990013360977,
-0.010714638978242874,
0.027428746223449707,
0.012951476499438286,
-0.020180687308311462,
-0.0003124858485534787,
0.07727404683828354,
0.012143501080572605,
-0.018707845360040665,
-0.007565305568277836,
0.006244349293410778,
0.027857745066285133,
-0.015280086547136307,
-0.030710255727171898,
-0.015777841210365295,
-0.03935987129807472,
-0.05147770792245865,
0.0020188195630908012,
0.031079264357686043,
-0.05582239106297493,
-0.03368513286113739,
0.007354021538048983,
0.025489822030067444,
0.04254131019115448,
0.005825815722346306,
-0.022077536210417747,
-0.007779545150697231,
-0.05434010550379753,
-0.022676773369312286,
0.029882440343499184,
0.005340197589248419,
0.02984762005507946,
0.034305110573768616,
0.013701245188713074,
-0.0440017431974411,
0.024316217750310898,
0.022970223799347878,
0.04020830616354942,
0.01419103518128395,
-0.05279482528567314,
0.014738375321030617,
-0.05453774333000183,
0.024761049076914787,
0.018993496894836426,
-0.01337019819766283,
-0.04873393103480339,
-0.0746154934167862,
-0.006615339778363705,
-0.003968023229390383,
-0.023210659623146057,
-0.010253624990582466,
0.03974812105298042,
-0.022180339321494102,
-0.006112121511250734,
-0.009608730673789978,
0.016960343345999718,
0.06560512632131577,
-0.03226754814386368,
0.059872109442949295,
-0.019065411761403084,
0.015548743307590485,
-0.040424007922410965,
0.028387652710080147,
-0.04186464101076126,
-0.025775019079446793,
-0.014138090424239635,
0.05863536149263382,
0.013205336406826973,
0.05114620178937912,
0.08774010837078094,
0.027537507936358452,
-0.04607703536748886,
0.034624241292476654,
0.061936963349580765,
-0.02923746593296528,
-0.0508454255759716,
-0.0034274414647370577,
-0.0029882066883146763,
-0.028275782242417336,
-0.0062944116070866585,
-0.042013343423604965,
0.011418226175010204,
0.019044984132051468,
-0.007231618743389845,
-0.020175958052277565,
0.004712266847491264,
-0.04195862635970116,
-0.02518228068947792,
-0.07964420318603516,
-0.04204576462507248,
0.006807589903473854,
-0.0068381777964532375,
0.024668855592608452,
0.027384497225284576,
0.01298182550817728,
0.06592866778373718,
0.016458597034215927,
-0.027956843376159668,
-0.03183160722255707,
0.04393735155463219,
0.04477466642856598,
-0.030427392572164536,
-0.0918511226773262,
-0.054308149963617325,
0.0213005430996418,
0.05896000191569328,
-0.01573154516518116,
-0.08507952839136124,
0.010778339579701424,
0.06643811613321304,
-0.04336696118116379,
0.08670184761285782,
-0.018483949825167656,
0.04992811754345894,
0.05742386355996132,
-0.001827778178267181,
0.033272068947553635,
-0.031792186200618744,
-0.003510330803692341,
0.002184490207582712,
0.023037072271108627,
-0.06872189044952393,
-0.006402179598808289,
-0.05901838839054108,
0.02554129809141159,
0.01966645009815693,
0.012908194214105606,
0.03322795405983925,
-0.04108352214097977,
-0.05763796716928482,
0.0008509816252626479,
0.0263429656624794,
-0.07984638214111328,
-0.028303904458880424,
0.038701899349689484,
0.049395278096199036,
-0.03375297412276268,
-0.014885669574141502,
-0.003367319470271468,
-0.01820913515985012,
0.028559410944581032,
-0.02564363367855549,
-0.04781327396631241,
-0.04182247444987297,
0.042150337249040604,
-0.04220698028802872,
-0.023411132395267487,
-0.057776253670454025,
0.037073228508234024,
-0.016774427145719528,
-0.029430808499455452,
0.05486975610256195,
0.05156334117054939,
0.0305815190076828,
0.04589461535215378,
0.013510365970432758,
0.011952030472457409,
-0.014922830276191235,
0.02527635730803013,
-0.03177442401647568,
-0.015445297583937645,
0.013491581194102764,
-0.026226738467812538,
-0.013689921237528324,
0.0009478913270868361,
-0.03135398030281067,
-0.05883653461933136,
-0.0296794343739748,
0.006322899833321571,
-0.0036593966651707888,
0.006439549848437309,
-0.0006069749942980707,
0.020283252000808716,
-0.010460914112627506,
-0.008273406885564327,
-0.023378415033221245,
-0.015470470301806927,
-0.08401203900575638,
-0.04969803988933563,
0.008783817291259766,
-0.004310398828238249,
0.024452626705169678,
-0.01303059235215187,
0.04339171200990677,
0.03771728649735451,
-0.00309376185759902,
-0.046577006578445435,
0.0054003046825528145,
0.015479110181331635,
-0.04134971275925636,
-0.01977652497589588,
0.0024210282135754824,
0.017810162156820297,
0.037359826266765594,
-0.04307327792048454,
-0.012867490760982037,
0.009218007326126099,
-0.029570266604423523,
-0.03770710155367851,
0.020710382610559464,
0.021347006782889366,
-0.08885814994573593,
-0.02749108523130417,
-0.010009562596678734,
-0.01013365387916565,
0.01982061378657818,
-0.027294160798192024,
-0.02291141450405121,
0.006699004210531712,
0.020356416702270508,
0.006972167640924454,
-0.02292572148144245,
-0.030852967873215675,
0.02762376330792904,
-0.02723771519958973,
0.0032954898197203875,
-0.05351487919688225,
0.04005415365099907,
-0.03675862029194832,
0.019889788702130318,
-0.012382914312183857,
-0.014299905858933926,
-0.05472388491034508,
0.06848360598087311,
-0.0024687990080565214,
0.0019805419724434614,
0.0089854896068573,
0.028450243175029755,
-0.007771812845021486,
0.002650256035849452,
-0.014445704407989979,
0.02729257382452488,
-0.017266733571887016,
0.042865507304668427,
-0.05338664725422859,
0.01604810170829296,
0.014660553075373173,
0.03133915364742279,
-0.05082867294549942,
-0.031988725066185,
0.004770223051309586,
-0.056820038706064224,
0.016343003138899803,
0.017445120960474014,
0.021029578521847725,
0.02599208615720272,
-0.000252956262556836,
0.0016874707071110606,
0.02967314049601555,
-0.06087488308548927,
-0.024013780057430267,
-0.036541011184453964,
0.013865971006453037,
-0.0255847480148077,
0.03925953805446625,
0.03615709766745567,
-0.054311417043209076,
-0.05181138962507248,
0.024241285398602486,
0.01611868292093277,
0.015730177983641624,
0.0009508897201158106,
0.02979937195777893,
0.01856832392513752,
0.014787913300096989,
-0.011791546829044819,
-0.015608605928719044,
0.004117028322070837,
-0.015722153708338737,
0.003005928359925747,
-0.008419780060648918,
-0.01592683047056198,
-0.013160581700503826,
-0.03554195538163185,
-0.012156586162745953,
0.047548603266477585,
0.02729586884379387,
0.030428431928157806,
0.02602482959628105,
-0.0639420673251152,
0.021964069455862045,
0.005298173520714045,
-0.03581053763628006,
-0.016208797693252563,
0.02589501440525055,
-0.021110491827130318,
0.06304891407489777,
-0.00028190133161842823,
-0.005766630172729492,
0.06723788380622864,
0.013115552254021168,
-0.024257052689790726,
0.038395192474126816,
-0.009240028448402882,
0.028210099786520004,
0.03441035374999046,
-0.05008914694190025,
-0.03418467193841934,
-0.02207876555621624,
0.0728701502084732,
-0.07307001948356628,
0.06660082936286926,
0.06992563605308533,
0.00659253029152751,
0.008644649758934975,
-0.0732070654630661,
-0.04614885896444321,
0.018499623984098434,
-0.04286440834403038,
0.045595232397317886,
-0.0044793118722736835,
-0.07401362806558609,
0.070943683385849,
0.012372287921607494,
-0.07750118523836136,
0.03369169682264328,
0.03343603387475014,
0.04477515071630478,
0.0186960119754076,
0.04225117340683937,
-0.048081979155540466,
0.01104249432682991,
-0.019037684425711632,
0.03163882717490196,
-0.0492183119058609,
-0.0008793583838269114,
-0.007233914453536272,
-0.05939318612217903,
-0.012484262697398663,
0.024805206805467606,
-0.03378095477819443,
-0.0017565264133736491,
0.026909397915005684,
-0.018738102167844772,
-0.028461003676056862,
0.008741220459342003,
-0.005506323650479317,
-0.03927667438983917,
0.011710241436958313,
-0.03107805922627449,
0.01665678806602955,
0.01068142056465149,
0.00003223442399757914,
-0.0035235686227679253,
0.007374126929789782,
0.003136055776849389,
-0.05483070760965347,
-0.048249684274196625,
0.025847919285297394,
-0.0022449251264333725,
-0.02819153480231762,
0.04958931356668472,
0.030461564660072327,
0.008019911125302315,
0.036961670964956284,
-0.013963392935693264,
0.029439466074109077,
-0.05843577906489372,
-0.02727288007736206,
0.011898739263415337,
0.025492720305919647,
0.025054816156625748,
-0.022050652652978897,
0.03216719999909401,
0.044164881110191345,
0.019559325650334358,
-0.019908234477043152,
-0.031983040273189545,
-0.02313452959060669,
0.008614341728389263,
-0.04426729679107666,
0.012739857658743858,
0.0007013129070401192,
-0.03308622166514397,
-0.04375898465514183,
0.009009083732962608,
-0.016540877521038055,
0.007346776779741049,
-0.031119484454393387,
0.00833368394523859,
0.07202252745628357,
-0.008575576357543468,
-0.05722784996032715,
-0.08672641217708588,
-0.02668903023004532,
-0.021772155538201332,
0.022095927968621254,
0.02667619287967682,
-0.053336579352617264,
0.00748292775824666,
-0.04500074312090874,
-0.028127243742346764,
0.044445350766181946,
0.017749415710568428,
-0.023648494854569435,
0.08389686048030853,
0.06236798316240311,
-0.027648868039250374,
0.009661993011832237,
0.011665231548249722,
-0.030478548258543015,
0.045511942356824875,
0.018269646912813187,
0.027001671493053436,
0.04147089272737503,
0.04107984900474548,
-0.024251196533441544,
-0.012940983287990093,
-0.09163504093885422,
-0.05971146374940872,
-0.05361831560730934,
-0.0044096000492572784,
0.055921413004398346
] |
Cryptikdw/DialoGPT-small-rick | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 7 | null | ---
tags:
- conversational
---
#rick DialoGPT Model | [
-0.02786177583038807,
0.025997694581747055,
0.008318262174725533,
0.014251687563955784,
0.021169574931263924,
0.01538817211985588,
-0.0035772272385656834,
0.0238888431340456,
-0.009015273302793503,
0.01624828204512596,
0.04019421339035034,
-0.033582307398319244,
0.006562510039657354,
0.04420548304915428,
-0.034618351608514786,
-0.03261345252394676,
-0.016998808830976486,
0.00872181635349989,
-0.03152768313884735,
-0.014817630872130394,
0.026455668732523918,
0.002295488491654396,
-0.022930795326828957,
0.021102987229824066,
0.005697882734239101,
0.02237756922841072,
-0.002366194501519203,
0.010851914994418621,
0.02474449947476387,
-0.03190810605883598,
0.016188299283385277,
-0.047180213034152985,
-0.00035597317037172616,
-0.023091362789273262,
-0.03704134747385979,
-0.04554305225610733,
0.03772640600800514,
-0.012622958980500698,
-0.008007507771253586,
0.03291630372405052,
-0.019552381709218025,
0.00026243439060635865,
0.011363278143107891,
-0.03958001732826233,
0.07546159625053406,
-0.012899554334580898,
-0.05671205744147301,
-0.03115890733897686,
0.025276929140090942,
-0.03427119925618172,
-0.04402663931250572,
-0.06046462804079056,
-0.057767026126384735,
-0.013425090350210667,
0.0157303586602211,
-0.06316831707954407,
-0.07049992680549622,
-0.02741178870201111,
0.10126324743032455,
-0.01849249377846718,
-0.00445385230705142,
-0.009808807633817196,
-0.07521571964025497,
0.012146667577326298,
0.026825986802577972,
-0.07402057945728302,
0.01088202465325594,
-0.04691566154360771,
0.025812191888689995,
-0.02636752836406231,
0.055161003023386,
-0.04466903582215309,
0.014835398644208908,
-0.08016417920589447,
-0.018153145909309387,
-0.004581528250128031,
0.04425531625747681,
0.06303498148918152,
-0.04517612233757973,
0.037395644932985306,
0.043590448796749115,
0.004861968103796244,
0.06262049078941345,
-0.00989812333136797,
-0.033283598721027374,
0.053545992821455,
-0.04702663794159889,
0.010351930744946003,
0.002587034832686186,
0.025144344195723534,
-0.013890370726585388,
-0.0631628930568695,
-0.027475250884890556,
-0.008473786525428295,
0.0005410308949649334,
0.03718944638967514,
0.02282453328371048,
-0.025918854400515556,
0.017773322761058807,
0.0388825424015522,
0.034952469170093536,
0.04616709426045418,
-0.023570479825139046,
0.028811709955334663,
0.002246408024802804,
0.02868925966322422,
0.03192998096346855,
-0.01918116956949234,
-0.05021160840988159,
0.025406841188669205,
0.019085559993982315,
-0.052528321743011475,
-0.026027079671621323,
0.036701750010252,
0.0029984451830387115,
0.015936000272631645,
0.05560455098748207,
-0.04113512858748436,
-0.03551291301846504,
-0.05835272744297981,
0.0536433570086956,
-0.01144633162766695,
-0.01446051336824894,
-0.008059010840952396,
-0.05714768171310425,
-0.009705428034067154,
-0.04792237654328346,
-0.006087221205234528,
-0.01564677059650421,
-0.006874552462249994,
0.009398296475410461,
0.02709084376692772,
-0.01978393830358982,
-0.05511279031634331,
0.0021295123733580112,
0.04735061153769493,
-0.07419975101947784,
0.0006297327345237136,
0.04523944854736328,
0.08647890388965607,
-0.08006557822227478,
-0.04696493595838547,
-0.008056171238422394,
0.01466149277985096,
-0.034179627895355225,
-0.006145937833935022,
0.007083627860993147,
-0.01015847735106945,
-0.0328674390912056,
-0.005730781238526106,
0.028426261618733406,
-0.04626825079321861,
-0.006497490685433149,
0.051571719348430634,
0.01514001376926899,
0.014734790660440922,
-0.022447938099503517,
0.00409479858353734,
-0.015176769345998764,
-0.028732044622302055,
-0.06444642692804337,
0.04377269744873047,
-0.02940131537616253,
-0.059972770512104034,
-0.031323712319135666,
-0.029465626925230026,
0.018543345853686333,
0.06399792432785034,
0.013426327146589756,
-0.009455963037908077,
-0.02856777049601078,
0.035265807062387466,
0.05141821876168251,
0.0444265641272068,
-0.011014530435204506,
0.029747098684310913,
0.052704714238643646,
0.01272241398692131,
-0.04771360754966736,
0.07213757187128067,
0.01810203678905964,
-0.03070695511996746,
-0.056140344589948654,
-0.01739809289574623,
0.02842763438820839,
-0.023488223552703857,
0.019161837175488472,
0.04099677875638008,
-0.01973479427397251,
-0.03526441380381584,
0.001828980864956975,
0.047457803040742874,
-0.017868846654891968,
0.0009247915004380047,
-0.02130499668419361,
-0.02728276513516903,
-0.027293618768453598,
0.013639305718243122,
-0.03418046608567238,
-0.010911756195127964,
-0.02580052986741066,
-0.0067986855283379555,
0.0348169319331646,
-0.012051732279360294,
0.009587147273123264,
0.050876982510089874,
-0.02317734993994236,
0.059947527945041656,
-0.03360598534345627,
0.025302723050117493,
-0.035684745758771896,
-0.013379842042922974,
-0.04466085508465767,
0.03974571451544762,
0.01698855683207512,
0.04236682504415512,
-0.05053666606545448,
-0.050906043499708176,
0.028026634827256203,
0.056963562965393066,
0.03576497733592987,
0.028538312762975693,
-0.019167112186551094,
0.005735335405915976,
0.0373588502407074,
0.019594158977270126,
-0.03644317016005516,
0.020474493503570557,
0.006426538340747356,
0.022089168429374695,
-0.02295790985226631,
-0.023159367963671684,
-0.04738807678222656,
0.01345835067331791,
-0.050957757979631424,
-0.057715971022844315,
0.045520417392253876,
0.03785634785890579,
-0.011259391903877258,
0.051558852195739746,
-0.003750632517039776,
-0.006488544400781393,
0.03331942856311798,
0.004795594606548548,
0.013152317143976688,
-0.08782804012298584,
0.01291910745203495,
0.032043516635894775,
0.09269169718027115,
-0.043146584182977676,
0.004840807057917118,
0.020955517888069153,
0.020746052265167236,
0.022010285407304764,
-0.021651357412338257,
0.043870363384485245,
0.05801093578338623,
0.05286021530628204,
-0.018324339762330055,
0.027333775535225868,
-0.0010945408139377832,
0.018353942781686783,
0.058524228632450104,
-0.016274355351924896,
0.06786075234413147,
-0.016273440793156624,
0.014057328924536705,
0.051359280943870544,
0.015397755429148674,
-0.034914568066596985,
0.02189655415713787,
0.06897275894880295,
0.004905831068754196,
0.023360861465334892,
0.03638307377696037,
0.004228686913847923,
-0.0012517102295532823,
-0.038707420229911804,
-0.01091422513127327,
-0.0000771872146287933,
-0.04000704362988472,
0.061466824263334274,
0.00901991967111826,
-0.011988059617578983,
0.0040025245398283005,
-0.006373459007591009,
-0.011415714398026466,
0.046895191073417664,
-0.0004984840634278953,
-0.023523908108472824,
0.0001199652542709373,
-0.017040126025676727,
0.02268097549676895,
-0.04186605289578438,
-0.04070145636796951,
-0.02112843096256256,
-0.05455726385116577,
-0.002566443756222725,
-0.09204171597957611,
-0.04970937594771385,
-0.07912765443325043,
-0.021050849929451942,
0.04242664948105812,
0.01702149026095867,
0.015475030057132244,
0.014934913255274296,
-0.004790240898728371,
-0.012125532142817974,
-0.06665817648172379,
-0.051521025598049164,
-0.025174587965011597,
-0.016103187575936317,
-0.040756285190582275,
0.031833793967962265,
0.03185994178056717,
0.03105294145643711,
0.002967977896332741,
-0.015364757739007473,
-0.04182642698287964,
-0.02488761954009533,
0.042125288397073746,
0.021573228761553764,
-0.04901070147752762,
-0.04441121965646744,
0.007914693094789982,
-0.00020351889543235302,
-0.012341837398707867,
-0.01558547280728817,
-0.049526963382959366,
0.0686865821480751,
0.04210265725851059,
0.00646355003118515,
0.013581366278231144,
-0.004684940446168184,
-0.03198382630944252,
-0.021815655753016472,
-0.0703778862953186,
-0.03330431506037712,
-0.013090409338474274,
-0.02415311709046364,
-0.046652182936668396,
-0.026544058695435524,
-0.04195674881339073,
-0.0027251080609858036,
-0.008385405875742435,
0.0016342203598469496,
0.03599819913506508,
0.02266804501414299,
0.03668801859021187,
0.019342737272381783,
-0.02009357139468193,
-0.023908667266368866,
0.03908514231443405,
-0.024399926885962486,
-0.013598339632153511,
-0.07071205973625183,
-0.04959234967827797,
0.03894304484128952,
0.014907736331224442,
0.0034962533973157406,
-0.028238780796527863,
0.025681421160697937,
0.046728234738111496,
0.003764332737773657,
0.02660239487886429,
-0.06267204135656357,
0.0033387388102710247,
-0.03889012336730957,
-0.028074344620108604,
-0.05038909241557121,
-0.027872389182448387,
-0.006496491376310587,
-0.005881888791918755,
0.03852051869034767,
-0.08859635144472122,
-0.033175233751535416,
-0.023351306095719337,
0.013492723926901817,
0.05872071161866188,
-0.004980714526027441,
-0.0502384789288044,
-0.004933643154799938,
-0.03634810447692871,
-0.011561620980501175,
0.004844694398343563,
-0.01903638057410717,
-0.0002533952356316149,
0.02326458878815174,
0.007572277449071407,
-0.019049882888793945,
0.04710976406931877,
0.0155101977288723,
0.06759024411439896,
0.05544063448905945,
-0.027271006256341934,
0.036911290138959885,
-0.03544807806611061,
0.0279423575848341,
-0.025156041607260704,
-0.027531303465366364,
-0.03117050603032112,
-0.10975690186023712,
-0.04980788752436638,
0.03650657460093498,
-0.016329117119312286,
0.014829513616859913,
0.02717442810535431,
-0.05636444315314293,
0.006537197157740593,
0.014857249334454536,
0.0418846532702446,
0.042716436088085175,
-0.03605363890528679,
0.06355315446853638,
0.006365301553159952,
0.025869829580187798,
-0.05674585700035095,
-0.011219236999750137,
-0.06440489739179611,
-0.014842011965811253,
-0.0039170049130916595,
0.05263761058449745,
0.001955568790435791,
0.05597539246082306,
0.07752306014299393,
0.0321163535118103,
-0.04387820139527321,
0.040872130542993546,
0.07416965067386627,
-0.031213514506816864,
-0.029858315363526344,
-0.004380400292575359,
0.004644753877073526,
-0.02129373326897621,
-0.013021289370954037,
-0.032259054481983185,
0.043864887207746506,
0.028621632605791092,
-0.015285566449165344,
0.01395302265882492,
0.003180241910740733,
-0.032207150012254715,
-0.02373407781124115,
-0.0747285857796669,
-0.014878475107252598,
-0.005496623460203409,
-0.02238202653825283,
0.04596763476729393,
0.05076690390706062,
0.014292968437075615,
0.05676193907856941,
0.018426552414894104,
-0.024357540532946587,
-0.0515139102935791,
0.026650320738554,
0.02063312567770481,
-0.04473751783370972,
-0.04645537585020065,
-0.03975406289100647,
0.023839127272367477,
0.04425147920846939,
-0.03212256729602814,
-0.08655320852994919,
0.022576700896024704,
0.047985274344682693,
-0.038233038038015366,
0.061483271420001984,
0.004843474365770817,
0.0556081123650074,
0.03141707554459572,
0.003142423229292035,
0.050676241517066956,
-0.06636453419923782,
0.027946263551712036,
-0.018932238221168518,
0.01605534553527832,
-0.05073196813464165,
-0.042912159115076065,
-0.04330925643444061,
0.04029504209756851,
0.0215710811316967,
0.008942761458456516,
0.014081158675253391,
-0.04723527655005455,
-0.04814794659614563,
0.005112390499562025,
0.04172646254301071,
-0.01881086267530918,
0.02480897307395935,
0.03248605877161026,
0.050787393003702164,
-0.061481572687625885,
0.00819280743598938,
0.011493214406073093,
0.008730449713766575,
0.02041768841445446,
-0.022557390853762627,
-0.04207863658666611,
-0.0005968684563413262,
0.02653217501938343,
-0.0406658910214901,
-0.02393345534801483,
-0.09290444850921631,
0.024280620738863945,
-0.021724160760641098,
-0.029944051057100296,
0.08098983019590378,
0.06274713575839996,
0.06350596994161606,
0.06559409946203232,
-0.012885350733995438,
0.049156393855810165,
-0.032013535499572754,
0.01800863817334175,
-0.030013112351298332,
-0.034816939383745193,
-0.0003904954937752336,
-0.06359595060348511,
-0.034013133496046066,
-0.038826607167720795,
-0.03926274552941322,
-0.03236737102270126,
0.013904420658946037,
0.006745333783328533,
-0.0032228361815214157,
-0.013535345904529095,
0.015528317540884018,
0.008954605087637901,
-0.01303087454289198,
-0.02593214251101017,
-0.0014915801584720612,
-0.01927635818719864,
-0.06538113206624985,
-0.05880619212985039,
0.027611037716269493,
-0.021479764953255653,
0.012513898313045502,
0.011227868497371674,
0.026712307706475258,
0.04175305739045143,
-0.010141394101083279,
-0.029360320419073105,
0.020605918020009995,
0.03529685363173485,
-0.025941818952560425,
-0.02054017223417759,
0.009573007933795452,
0.024269897490739822,
0.03577170521020889,
-0.03389046713709831,
0.04987390711903572,
0.0068086800165474415,
-0.05737292394042015,
-0.02023492194712162,
0.03210066631436348,
-0.0019631688483059406,
-0.06417050212621689,
-0.019127586856484413,
-0.04441465064883232,
-0.033374104648828506,
0.0036076989490538836,
-0.058638185262680054,
-0.012628444470465183,
-0.011851195245981216,
0.0520210787653923,
0.03220997378230095,
-0.0011062253033742309,
-0.02180570736527443,
0.003792744828388095,
-0.017711017280817032,
0.010648560710251331,
-0.07722654193639755,
0.021460343152284622,
-0.0369286835193634,
0.017874056473374367,
-0.02241666615009308,
0.016884222626686096,
-0.04174172133207321,
0.04866895079612732,
-0.020483674481511116,
-0.01081423182040453,
-0.0019928484689444304,
-0.021906645968556404,
0.0038776055444031954,
0.046638164669275284,
0.017612630501389503,
0.010633464902639389,
-0.03480631485581398,
0.07778868079185486,
-0.046779368072748184,
0.008878394961357117,
-0.01952987164258957,
-0.02838077023625374,
-0.017984170466661453,
0.00026857637567445636,
0.0037037685979157686,
-0.061138469725847244,
0.025760071352124214,
0.03841807693243027,
0.0378212071955204,
0.0413953959941864,
0.0034869753289967775,
0.007752573117613792,
0.026575662195682526,
-0.058138519525527954,
-0.04141805320978165,
-0.0009709681617096066,
-0.006538130342960358,
0.03383226320147514,
0.04300135374069214,
0.03291335701942444,
-0.051440902054309845,
-0.024227658286690712,
0.021880658343434334,
0.015573122538626194,
0.01166499126702547,
0.0053130569867789745,
0.04172743856906891,
0.05506851151585579,
0.052581485360860825,
-0.004861405119299889,
0.00514450715854764,
0.035137154161930084,
-0.020005719736218452,
-0.01907481998205185,
0.0016012446722015738,
0.019863702356815338,
0.008598864078521729,
-0.030282331630587578,
-0.038228198885917664,
0.07354429364204407,
-0.01696968451142311,
-0.0006497831782326102,
-0.017618458718061447,
-0.043397050350904465,
0.07425074279308319,
-0.006097510922700167,
-0.030564798042178154,
-0.01280288677662611,
0.03430168703198433,
-0.018999235704541206,
0.032487526535987854,
-0.02016982063651085,
0.009563913568854332,
0.05859677493572235,
0.029390422627329826,
0.006676532328128815,
0.005479342769831419,
-0.0067957499995827675,
-0.0035272412933409214,
0.02233291044831276,
-0.043286848813295364,
-0.021582001820206642,
-0.04904884472489357,
0.06987722218036652,
-0.03822909668087959,
0.04752948507666588,
0.025924721732735634,
0.038138266652822495,
0.020851843059062958,
-0.04447105899453163,
-0.04669567942619324,
-0.02343292348086834,
-0.03779163584113121,
0.05220729112625122,
-0.01198510080575943,
-0.04071686044335365,
0.06152753159403801,
0.02724069356918335,
-0.08884033560752869,
0.04171372950077057,
0.0429987870156765,
0.037792809307575226,
0.03095126524567604,
0.03879549726843834,
-0.05417496711015701,
0.02792733535170555,
-0.03152471035718918,
0.010880965739488602,
-0.03741962090134621,
0.0017507399898022413,
-0.02763574756681919,
-0.04321005195379257,
0.005143934860825539,
0.037854861468076706,
-0.0199804175645113,
0.0011780031491070986,
0.009120804257690907,
-0.017584558576345444,
-0.060312844812870026,
-0.003520777216181159,
0.02684880420565605,
-0.003238612087443471,
-0.021950986236333847,
-0.039100464433431625,
0.01706007309257984,
0.03632102906703949,
-0.004267571028321981,
-0.04753497987985611,
0.015240178443491459,
-0.02001555822789669,
-0.07124920189380646,
-0.06054787337779999,
0.06779749691486359,
0.003202150110155344,
-0.0059465267695486546,
0.009337997995316982,
0.027057873085141182,
0.013562093488872051,
0.03198408707976341,
-0.01542631909251213,
0.0018190562259405851,
-0.08637325465679169,
0.002507976721972227,
0.02722807042300701,
0.014907612465322018,
-0.009166592732071877,
-0.0019577322527766228,
0.026642534881830215,
0.08908410370349884,
0.042249035090208054,
-0.00445175776258111,
-0.058236464858055115,
-0.020822521299123764,
-0.006089968141168356,
-0.03562963381409645,
0.04213091358542442,
0.011342420242726803,
-0.06179305166006088,
-0.020515117794275284,
-0.017804531380534172,
0.001772910007275641,
0.04272354766726494,
-0.03809474781155586,
0.029621191322803497,
0.018270056694746017,
0.002925330772995949,
-0.04830067977309227,
-0.09918707609176636,
-0.056597765535116196,
-0.010751383379101753,
0.0204156581312418,
0.03329278528690338,
-0.047512806951999664,
0.012574702501296997,
-0.03423861786723137,
0.0033421271946281195,
0.049330804497003555,
-0.013041907921433449,
-0.014995208010077477,
0.07549145817756653,
0.07369671016931534,
-0.03701895847916603,
0.058768656104803085,
0.0284618828445673,
-0.030133869498968124,
0.05094342306256294,
0.004926044959574938,
0.007145141251385212,
0.007779869716614485,
0.013551631011068821,
-0.014127780683338642,
-0.0011831925949081779,
-0.006981842219829559,
-0.03260691463947296,
-0.0035160763654857874,
0.00002957058313768357,
0.04970762878656387
] |
CuongLD/wav2vec2-large-xlsr-vietnamese | [
"pytorch",
"jax",
"wav2vec2",
"automatic-speech-recognition",
"vi",
"dataset:common_voice, infore_25h",
"arxiv:2006.11477",
"arxiv:2006.13979",
"transformers",
"audio",
"speech",
"xlsr-fine-tuning-week",
"license:apache-2.0",
"model-index"
] | automatic-speech-recognition | {
"architectures": [
"Wav2Vec2ForCTC"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8 | null | ---
language: vi
datasets:
- common_voice, infore_25h
metrics:
- wer
tags:
- audio
- automatic-speech-recognition
- speech
- xlsr-fine-tuning-week
license: apache-2.0
model-index:
- name: Cuong-Cong XLSR Wav2Vec2 Large 53
results:
- task:
name: Speech Recognition
type: automatic-speech-recognition
dataset:
name: Common Voice vi
type: common_voice
args: vi
metrics:
- name: Test WER
type: wer
value: 58.63
---
# Wav2Vec2-Large-XLSR-53-Vietnamese
Fine-tuned [facebook/wav2vec2-large-xlsr-53](https://huggingface.co/facebook/wav2vec2-large-xlsr-53) on Vietnamese using the [Common Voice](https://huggingface.co/datasets/common_voice), [Infore_25h dataset](https://files.huylenguyen.com/25hours.zip) (Password: BroughtToYouByInfoRe)
When using this model, make sure that your speech input is sampled at 16kHz.
## Usage
The model can be used directly (without a language model) as follows:
```python
import torch
import torchaudio
from datasets import load_dataset
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
test_dataset = load_dataset("common_voice", "vi", split="test[:2%]")
processor = Wav2Vec2Processor.from_pretrained("CuongLD/wav2vec2-large-xlsr-vietnamese")
model = Wav2Vec2ForCTC.from_pretrained("CuongLD/wav2vec2-large-xlsr-vietnamese")
resampler = torchaudio.transforms.Resample(48_000, 16_000)
# Preprocessing the datasets.
# We need to read the aduio files as arrays
def speech_file_to_array_fn(batch):
speech_array, sampling_rate = torchaudio.load(batch["path"])
batch["speech"] = resampler(speech_array).squeeze().numpy()
return batch
test_dataset = test_dataset.map(speech_file_to_array_fn)
inputs = processor(test_dataset["speech"][:2], sampling_rate=16_000, return_tensors="pt", padding=True)
with torch.no_grad():
logits = model(inputs.input_values, attention_mask=inputs.attention_mask).logits
predicted_ids = torch.argmax(logits, dim=-1)
print("Prediction:", processor.batch_decode(predicted_ids))
print("Reference:", test_dataset["sentence"][:2])
```
## Evaluation
The model can be evaluated as follows on the Vietnamese test data of Common Voice.
```python
import torch
import torchaudio
from datasets import load_dataset, load_metric
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
import re
test_dataset = load_dataset("common_voice", "vi", split="test")
wer = load_metric("wer")
processor = Wav2Vec2Processor.from_pretrained("CuongLD/wav2vec2-large-xlsr-vietnamese")
model = Wav2Vec2ForCTC.from_pretrained("CuongLD/wav2vec2-large-xlsr-vietnamese")
model.to("cuda")
chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“]'
resampler = torchaudio.transforms.Resample(48_000, 16_000)
# Preprocessing the datasets.
# We need to read the aduio files as arrays
def speech_file_to_array_fn(batch):
batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower()
speech_array, sampling_rate = torchaudio.load(batch["path"])
batch["speech"] = resampler(speech_array).squeeze().numpy()
return batch
test_dataset = test_dataset.map(speech_file_to_array_fn)
# Preprocessing the datasets.
# We need to read the aduio files as arrays
def evaluate(batch):
inputs = processor(batch["speech"], sampling_rate=16_000, return_tensors="pt", padding=True)
with torch.no_grad():
logits = model(inputs.input_values.to("cuda"), attention_mask=inputs.attention_mask.to("cuda")).logits
pred_ids = torch.argmax(logits, dim=-1)
batch["pred_strings"] = processor.batch_decode(pred_ids)
return batch
result = test_dataset.map(evaluate, batched=True, batch_size=8)
print("WER: {:2f}".format(100 * wer.compute(predictions=result["pred_strings"], references=result["sentence"])))
```
**Test Result**: 58.63 %
## Training
The Common Voice `train`, `validation`, and `Infore_25h` datasets were used for training
The script used for training can be found [here](https://drive.google.com/file/d/1AW9R8IlsapiSGh9n3aECf23t-zhk3wUh/view?usp=sharing)
=======================To here===============================>
Your model in then available under *huggingface.co/CuongLD/wav2vec2-large-xlsr-vietnamese* for everybody to use 🎉.
## How to evaluate my trained checkpoint
Having uploaded your model, you should now evaluate your model in a final step. This should be as simple as
copying the evaluation code of your model card into a python script and running it. Make sure to note
the final result on the model card **both** under the YAML tags at the very top **and** below your evaluation code under "Test Results".
## Rules of training and evaluation
In this section, we will quickly go over what data is allowed to be used as training
data, what kind of data preprocessing is allowed be used, and how the model should be evaluated.
To make it very simple regarding the first point: **All data except the official common voice `test` data set can be used as training data**. For models trained in a language that is not included in Common Voice, the author of the model is responsible to
leave a reasonable amount of data for evaluation.
Second, the rules regarding the preprocessing are not that as straight-forward. It is allowed (and recommended) to
normalize the data to only have lower-case characters. It is also allowed (and recommended) to remove typographical
symbols and punctuation marks. A list of such symbols can *e.g.* be fonud [here](https://en.wikipedia.org/wiki/List_of_typographical_symbols_and_punctuation_marks) - however here we already must be careful. We should **not** remove a symbol that
would change the meaning of the words, *e.g.* in English, we should not remove the single quotation mark `'` since it
would change the meaning of the word `"it's"` to `"its"` which would then be incorrect. So the golden rule here is to
not remove any characters that could change the meaning of a word into another word. This is not always obvious and should
be given some consideration. As another example, it is fine to remove the "Hypen-minus" sign "`-`" since it doesn't change the
meaninng of a word to another one. *E.g.* "`fine-tuning`" would be changed to "`finetuning`" which has still the same meaning.
Since those choices are not always obvious when in doubt feel free to ask on Slack or even better post on the forum, as was
done, *e.g.* [here](https://discuss.huggingface.co/t/spanish-asr-fine-tuning-wav2vec2/4586).
## Tips and tricks
This section summarizes a couple of tips and tricks across various topics. It will continously be updated during the week.
### How to combine multiple datasets into one
Check out [this](https://discuss.huggingface.co/t/how-to-combine-local-data-files-with-an-official-dataset/4685) post.
### How to effectively preprocess the data
### How to do efficiently load datasets with limited ram and hard drive space
Check out [this](https://discuss.huggingface.co/t/german-asr-fine-tuning-wav2vec2/4558/8?u=patrickvonplaten) post.
### How to do hyperparameter tuning
### How to preprocess and evaluate character based languages
## Further reading material
It is recommended that take some time to read up on how Wav2vec2 works in theory.
Getting a better understanding of the theory and the inner mechanisms of the model often helps when fine-tuning the model.
**However**, if you don't like reading blog posts/papers, don't worry - it is by no means necessary to go through the theory to fine-tune Wav2Vec2 on your language of choice.
If you are interested in learning more about the model though, here are a couple of resources that are important to better understand Wav2Vec2:
- [Facebook's Wav2Vec2 blog post](https://ai.facebook.com/blog/wav2vec-state-of-the-art-speech-recognition-through-self-supervision/)
- [Official Wav2Vec2 paper](https://arxiv.org/abs/2006.11477)
- [Official XLSR Wav2vec2 paper](https://arxiv.org/pdf/2006.13979.pdf)
- [Hugging Face Blog](https://huggingface.co/blog/fine-tune-xlsr-wav2vec2)
- [How does CTC (Connectionist Temporal Classification) work](https://distill.pub/2017/ctc/)
It helps to have a good understanding of the following points:
- How was XLSR-Wav2Vec2 pretrained? -> Feature vectors were masked and had to be predicted by the model; very similar in spirit to masked language model of BERT.
- What parts of XLSR-Wav2Vec2 are responsible for what? What is the feature extractor part used for? -> extract feature vectors from the 1D raw audio waveform; What is the transformer part doing? -> mapping feature vectors to contextualized feature vectors; ...
- What part of the model needs to be fine-tuned? -> The pretrained model **does not** include a language head to classify the contextualized features to letters. This is randomly initialized when loading the pretrained checkpoint and has to be fine-tuned. Also, note that the authors recommend to **not** further fine-tune the feature extractor.
- What data was used to XLSR-Wav2Vec2? The checkpoint we will use for further fine-tuning was pretrained on **53** languages.
- What languages are considered to be similar by XLSR-Wav2Vec2? In the official [XLSR Wav2Vec2 paper](https://arxiv.org/pdf/2006.13979.pdf), the authors show nicely which languages share a common contextualized latent space. It might be useful for you to extend your training data with data of other languages that are considered to be very similar by the model (or you).
## FAQ
- Can a participant fine-tune models for more than one language?
Yes! A participant can fine-tune models in as many languages she/he likes
- Can a participant use extra data (apart from the common voice data)?
Yes! All data except the official common voice `test data` can be used for training.
If a participant wants to train a model on a language that is not part of Common Voice (which
is very much encouraged!), the participant should make sure that some test data is held out to
make sure the model is not overfitting.
- Can we fine-tune for high-resource languages?
Yes! While we do not really recommend people to fine-tune models in English since there are
already so many fine-tuned speech recognition models in English. However, it is very much
appreciated if participants want to fine-tune models in other "high-resource" languages, such
as French, Spanish, or German. For such cases, one probably needs to train locally and apply
might have to apply tricks such as lazy data loading (check the ["Lazy data loading"](#how-to-do-lazy-data-loading) section for more details).
| [
-0.0342431403696537,
-0.02538226917386055,
0.00031419709557667375,
0.02767965756356716,
0.03898687660694122,
0.024547146633267403,
-0.00865932833403349,
-0.01121480017900467,
-0.03890709578990936,
0.04926839470863342,
0.039985693991184235,
-0.02454679273068905,
0.0008383292588405311,
0.02384345419704914,
-0.008383759297430515,
-0.04795901104807854,
-0.027644434943795204,
-0.000041121507820207626,
-0.08780144900083542,
0.004076642449945211,
0.010650734417140484,
0.03685924783349037,
-0.008626522496342659,
0.024584611877799034,
0.00020982608839403838,
0.0027391668409109116,
-0.014897756278514862,
0.012019170448184013,
0.010649298317730427,
-0.06529121845960617,
-0.007575329393148422,
-0.04326803982257843,
-0.022327272221446037,
-0.045966487377882004,
-0.016412947326898575,
-0.002259079599753022,
0.0019394104601815343,
0.0186266228556633,
0.015321789309382439,
0.04926002398133278,
-0.006927077192813158,
0.016781942918896675,
-0.002022700384259224,
-0.01055542379617691,
0.04495157301425934,
0.010626240633428097,
-0.029133480042219162,
-0.009465733543038368,
0.01139038521796465,
-0.033745478838682175,
-0.02648070827126503,
-0.06351223587989807,
-0.012620335444808006,
0.033719051629304886,
-0.015306771732866764,
-0.020133299753069878,
-0.05055597797036171,
-0.020577162504196167,
0.061597976833581924,
-0.04685147479176521,
-0.01828603260219097,
0.011290198192000389,
-0.06299949437379837,
0.017221195623278618,
0.01893567107617855,
-0.04938202351331711,
0.014077764935791492,
-0.019580816850066185,
0.013104859739542007,
-0.02533981017768383,
0.0527103915810585,
-0.018756039440631866,
0.012043594382703304,
-0.11016496270895004,
0.013189720921218395,
-0.012265048921108246,
0.027315614745020866,
0.04313969612121582,
-0.030428336933255196,
0.056789081543684006,
0.009271008893847466,
0.00949734728783369,
0.03292470425367355,
-0.03833548352122307,
0.005556838121265173,
0.026649948209524155,
-0.04298925772309303,
0.033790577203035355,
0.00922332052141428,
0.04194733873009682,
-0.025472041219472885,
-0.05888594314455986,
-0.008413247764110565,
-0.0550108402967453,
-0.002312102122232318,
0.040292512625455856,
0.03570302203297615,
-0.012212404049932957,
0.026943037286400795,
0.040314242243766785,
0.023932136595249176,
0.037537701427936554,
-0.01905476488173008,
0.04798489809036255,
-0.028896505013108253,
0.0002362555533181876,
-0.006812007632106543,
-0.04271939769387245,
-0.03851848468184471,
0.02071192115545273,
0.037948448210954666,
-0.05076945200562477,
-0.018843315541744232,
0.04630454257130623,
0.02701801247894764,
-0.009220303036272526,
0.04255502671003342,
-0.06572061777114868,
-0.05452760308980942,
-0.05079919472336769,
0.03693925216794014,
0.020683331415057182,
0.007342757191509008,
0.004958775360137224,
-0.047433897852897644,
0.031086748465895653,
-0.03557191416621208,
-0.02050355076789856,
0.013060780242085457,
0.011647852137684822,
-0.007052542641758919,
0.04709392413496971,
0.006543336436152458,
-0.05517372861504555,
-0.007642245385795832,
0.0000860122891026549,
-0.06036388501524925,
0.03470717743039131,
0.009526481851935387,
0.07075423002243042,
-0.054595209658145905,
-0.04824594780802727,
0.016819464042782784,
0.01606372371315956,
-0.009715915657579899,
0.03769642859697342,
0.020377932116389275,
-0.025396615266799927,
-0.044294361025094986,
-0.015357501804828644,
0.05809125304222107,
-0.07777591794729233,
-0.019850540906190872,
0.07820068299770355,
-0.020431028679013252,
0.034786686301231384,
-0.018864231184124947,
0.01296854205429554,
0.02257927507162094,
-0.009177281521260738,
-0.0033901857677847147,
0.05255953222513199,
-0.0010333600221201777,
-0.037366896867752075,
-0.04046284034848213,
-0.04207088425755501,
-0.0011423249961808324,
0.08013267070055008,
-0.0031984723173081875,
-0.004197700880467892,
-0.0299588143825531,
0.022748824208974838,
0.03533801808953285,
0.04096579551696777,
-0.03588821366429329,
0.034670211374759674,
0.07679819315671921,
0.04524143040180206,
-0.030131114646792412,
0.06749597936868668,
0.019522571936249733,
-0.03013966605067253,
-0.032535016536712646,
0.006973308511078358,
0.014926250092685223,
-0.03985190391540527,
-0.004528296645730734,
0.06780030578374863,
-0.01692865416407585,
-0.04397271201014519,
-0.000756397086661309,
0.04551518335938454,
-0.0019105015089735389,
0.001623099553398788,
-0.0028665149584412575,
-0.013334278017282486,
-0.02551756240427494,
0.0377856120467186,
-0.0314091257750988,
0.0016003473429009318,
-0.0231748279184103,
-0.029829448089003563,
-0.02899259515106678,
0.020887095481157303,
0.012806601822376251,
0.058554258197546005,
-0.007100864313542843,
0.08560710400342941,
-0.03630482777953148,
0.00788495410233736,
-0.04028595983982086,
-0.018950117751955986,
-0.0203543771058321,
0.04708194360136986,
0.02255438081920147,
0.0650811418890953,
-0.014602691866457462,
-0.04462797939777374,
0.020282763987779617,
0.055555641651153564,
0.06632751226425171,
0.02058558166027069,
-0.02983556129038334,
-0.00141785794403404,
0.021148264408111572,
0.07937847077846527,
-0.07899868488311768,
-0.0341176800429821,
0.0014639664441347122,
0.007089050021022558,
-0.021742435172200203,
0.009765272960066795,
-0.02669360116124153,
0.05406918749213219,
-0.06088820844888687,
-0.0842207819223404,
0.060268301516771317,
0.0032006269320845604,
0.02608758583664894,
0.028475919738411903,
-0.02001720853149891,
-0.011383186094462872,
0.029427537694573402,
0.003788140369579196,
-0.003783879801630974,
-0.016097471117973328,
-0.004651915282011032,
0.0033578439615666866,
0.03788287937641144,
-0.04928581789135933,
0.04622776433825493,
-0.02088763192296028,
0.013260196894407272,
0.029728827998042107,
-0.05015191808342934,
0.03802219778299332,
0.043161895126104355,
-0.0043518757447600365,
-0.024236006662249565,
0.0035893318708986044,
-0.012291322462260723,
0.04403417184948921,
0.052734095603227615,
0.026252591982483864,
0.06532792001962662,
0.023710571229457855,
0.05986741930246353,
0.08216755837202072,
0.020570827648043633,
0.010339587926864624,
0.022531960159540176,
0.05742694064974785,
-0.008814084343612194,
-0.012091477401554585,
0.06813378632068634,
-0.03678309544920921,
0.02425736002624035,
-0.035747990012168884,
-0.00003262469545006752,
-0.028447225689888,
0.0030967877246439457,
0.03275833651423454,
0.0028765781316906214,
-0.011754188686609268,
0.012993533164262772,
-0.025729632005095482,
-0.004160038661211729,
0.043065041303634644,
-0.022581622004508972,
-0.035942573100328445,
0.0071562184020876884,
-0.00720843905583024,
-0.001565001904964447,
-0.0817742645740509,
-0.02499334141612053,
-0.004311852622777224,
-0.05775120109319687,
0.022674966603517532,
-0.06706160306930542,
-0.039490822702646255,
-0.0765073299407959,
-0.03843298926949501,
0.02399934083223343,
0.019916143268346786,
0.014500698074698448,
-0.05500344559550285,
-0.0007103938842192292,
-0.0674448236823082,
-0.030526768416166306,
-0.046238914132118225,
-0.03818977251648903,
-0.03512302413582802,
-0.061457015573978424,
0.04278644919395447,
0.019771000370383263,
0.046149492263793945,
-0.0021962865721434355,
-0.007400669623166323,
-0.018268393352627754,
-0.025901485234498978,
0.044750433415174484,
0.02626286819577217,
-0.04840126633644104,
-0.05069499835371971,
0.0341656431555748,
-0.022511964663863182,
0.019843056797981262,
-0.0064940317533910275,
-0.036248672753572464,
0.06977241486310959,
0.06518875807523727,
0.019976669922471046,
0.008976026438176632,
-0.027521243318915367,
-0.04114823788404465,
-0.07381647825241089,
-0.004542679991573095,
-0.04274928197264671,
-0.029282784089446068,
-0.005806120578199625,
-0.03869059681892395,
-0.005068705417215824,
-0.012027736753225327,
-0.018033893778920174,
-0.011273099109530449,
-0.020318880677223206,
0.0417335107922554,
0.05028747022151947,
0.032537925988435745,
0.03503148630261421,
-0.03347250819206238,
-0.048107560724020004,
0.06353407353162766,
0.02312391623854637,
-0.013393023051321507,
-0.08083664625883102,
-0.04304739832878113,
0.021500205621123314,
0.02315288409590721,
-0.012144346721470356,
-0.018770813941955566,
0.082901231944561,
-0.003386609721928835,
-0.0174355860799551,
0.01107401680201292,
-0.03633315861225128,
-0.02244972623884678,
-0.02865423634648323,
-0.018646683543920517,
0.0056467861868441105,
-0.07399388402700424,
0.003198437625542283,
0.0018320984672755003,
0.05026520416140556,
-0.0762973427772522,
-0.05723732337355614,
-0.008315128274261951,
0.038075342774391174,
0.03525620698928833,
-0.028109131380915642,
-0.031062664464116096,
0.0032370449043810368,
-0.04637762904167175,
-0.02573532611131668,
0.018818628042936325,
0.014361398294568062,
0.022864388301968575,
0.05688217654824257,
-0.002472830470651388,
-0.025792095810174942,
0.035366326570510864,
0.050757504999637604,
0.06848060339689255,
0.014670133590698242,
-0.03839435428380966,
0.012462041340768337,
-0.02698117308318615,
0.020801108330488205,
0.004316019359976053,
-0.008938837796449661,
-0.04727263003587723,
-0.07464698702096939,
-0.011224060319364071,
0.015409965999424458,
-0.011277034878730774,
-0.034917790442705154,
0.037079814821481705,
-0.005464376416057348,
0.01698281802237034,
0.019274046644568443,
0.028852276504039764,
0.03822849318385124,
-0.06659048795700073,
0.047627754509449005,
0.013091053813695908,
0.06187773123383522,
-0.07231062650680542,
0.004978802055120468,
-0.01612156257033348,
-0.023298345506191254,
-0.006260870024561882,
0.06622424721717834,
0.020985599607229233,
0.042006246745586395,
0.06998603790998459,
0.004995470400899649,
-0.043231699615716934,
0.05267612263560295,
0.04608626291155815,
-0.03431743010878563,
-0.051830191165208817,
0.006646634079515934,
-0.02720615826547146,
-0.03773501142859459,
0.008556447923183441,
-0.03909432142972946,
0.05051860585808754,
0.031931813806295395,
-0.021957580000162125,
-0.017873812466859818,
0.0006067299982532859,
-0.024096369743347168,
-0.015347843058407307,
-0.0245059747248888,
-0.04710192233324051,
0.014572820626199245,
-0.03895190358161926,
0.03806808218359947,
0.03645212575793266,
0.007929213345050812,
0.07392480969429016,
0.038863226771354675,
-0.03292516991496086,
-0.017054367810487747,
0.02633019909262657,
0.03864322230219841,
-0.0425189733505249,
-0.06528327614068985,
-0.0335063561797142,
0.04601240158081055,
0.023020196706056595,
-0.00348960910923779,
-0.06798365712165833,
0.007074140943586826,
0.0627853274345398,
-0.03386840596795082,
0.04690742492675781,
-0.01638546772301197,
0.03420747071504593,
0.057560693472623825,
-0.010858003981411457,
0.008620165288448334,
-0.016118047758936882,
0.012857330963015556,
-0.0041640084236860275,
0.00888880155980587,
-0.016174541786313057,
-0.032030798494815826,
-0.05138498544692993,
0.008934484794735909,
0.030999260023236275,
0.02606956660747528,
0.0306001715362072,
-0.018186697736382484,
-0.0610010027885437,
0.011530420742928982,
0.029407963156700134,
-0.0315808430314064,
0.023324862122535706,
0.030766434967517853,
0.027429649606347084,
-0.04882856085896492,
-0.01855720952153206,
-0.010884355753660202,
0.008792626671493053,
0.040672801434993744,
-0.004275344777852297,
-0.04575461894273758,
-0.035315364599227905,
0.02020566537976265,
-0.021147606894373894,
-0.04321479797363281,
-0.07287797331809998,
0.016118042171001434,
-0.022502096369862556,
-0.009617301635444164,
0.04010426625609398,
0.026985706761479378,
0.041688140481710434,
0.02567637711763382,
0.03452678769826889,
0.011297278106212616,
-0.02169886603951454,
0.04192892462015152,
-0.0386379212141037,
-0.03128742799162865,
-0.00932555552572012,
-0.026998814195394516,
-0.027415215969085693,
-0.026727665215730667,
-0.048772938549518585,
-0.0281920675188303,
-0.009459152817726135,
0.044301558285951614,
-0.025533251464366913,
-0.005137420725077391,
-0.0006550793768838048,
0.028642849996685982,
-0.03636227175593376,
-0.03471411392092705,
-0.04139009118080139,
-0.021816914901137352,
-0.052311550825834274,
-0.03992637246847153,
0.015585144981741905,
-0.0025730999186635017,
0.020600728690624237,
0.00382800679653883,
0.005818536970764399,
0.02369772456586361,
-0.0034723321441560984,
0.00394065584987402,
0.038496606051921844,
0.004320680629462004,
-0.05647844448685646,
-0.013126141391694546,
0.01507621817290783,
0.004353736061602831,
0.04762742668390274,
-0.023694274947047234,
0.01694914884865284,
0.025808146223425865,
-0.03881486877799034,
-0.018813777714967728,
0.018657201901078224,
0.045511264353990555,
-0.04653964936733246,
-0.048732317984104156,
-0.0045129237696528435,
-0.04716755822300911,
0.029732035472989082,
-0.022242112085223198,
-0.000500675814691931,
0.0195023063570261,
0.03318270295858383,
0.03812301158905029,
-0.01963580958545208,
-0.03188858926296234,
0.021653641015291214,
-0.014344499446451664,
-0.008128928020596504,
-0.06515791267156601,
0.032412875443696976,
-0.02970186248421669,
0.024346308782696724,
-0.004121692385524511,
-0.01777368225157261,
-0.05089706555008888,
0.043041523545980453,
-0.013045476749539375,
0.00411967933177948,
-0.018231239169836044,
0.02126839943230152,
-0.02057987079024315,
0.028060365468263626,
-0.026319479569792747,
0.02428412064909935,
-0.04317711666226387,
0.052905622869729996,
-0.020144708454608917,
0.0014086716109886765,
-0.017956197261810303,
-0.013910430483520031,
-0.03404436260461807,
-0.025134636089205742,
-0.006379634141921997,
-0.04941742867231369,
0.05733004957437515,
0.05089730769395828,
0.037220217287540436,
0.02496323361992836,
-0.02037225477397442,
0.019391095265746117,
0.005752976052463055,
-0.06201212480664253,
-0.0019622393883764744,
0.015204031951725483,
0.03542555868625641,
0.020705269649624825,
0.024462904781103134,
0.03748004510998726,
-0.07268036156892776,
-0.049917493015527725,
0.04523690044879913,
0.0001438875769963488,
-0.0003100413887295872,
0.022173190489411354,
0.02629675343632698,
0.05097857862710953,
0.05597243458032608,
-0.019861290231347084,
-0.00588069437071681,
-0.02896157279610634,
-0.029300158843398094,
0.024601852521300316,
0.004978538956493139,
0.016568627208471298,
0.0009967307560145855,
-0.04723113030195236,
-0.020101791247725487,
0.06406332552433014,
0.035285454243421555,
0.009066038765013218,
-0.015842223539948463,
-0.03201214596629143,
0.02274150773882866,
-0.009959529154002666,
-0.05258537456393242,
0.022884394973516464,
-0.013383099809288979,
-0.010311338119208813,
0.09219442307949066,
0.0012229090789332986,
0.011084169149398804,
0.0391680970788002,
0.024491583928465843,
-0.011365273967385292,
0.046338409185409546,
-0.0214675422757864,
0.013477136380970478,
0.03414660692214966,
-0.08357983082532883,
-0.011231174692511559,
-0.03142780810594559,
0.06421276181936264,
-0.08747972548007965,
0.03478844091296196,
0.058791644871234894,
0.005095507949590683,
0.029746903106570244,
-0.04607661813497543,
-0.043741609901189804,
0.052650511264801025,
-0.0580984391272068,
0.09621279686689377,
0.02270369417965412,
-0.04632047563791275,
0.0702141597867012,
0.017776666209101677,
-0.08275426924228668,
0.06104749068617821,
0.03899770230054855,
0.01521197147667408,
0.015733065083622932,
0.03993140906095505,
-0.058411985635757446,
-0.0034518579486757517,
-0.03289186954498291,
0.034293707460165024,
-0.06300301104784012,
0.0027615476865321398,
0.01722818613052368,
-0.037259478121995926,
-0.029545975849032402,
0.024045417085289955,
-0.025027558207511902,
-0.02787739597260952,
0.017949260771274567,
-0.056845761835575104,
-0.05556841939687729,
-0.022300321608781815,
0.03507138043642044,
-0.05081558972597122,
-0.00784305389970541,
-0.04463956505060196,
-0.005902367644011974,
0.016954075545072556,
-0.003039783565327525,
-0.03045530617237091,
-0.032255619764328,
0.010589959099888802,
-0.07110211998224258,
-0.04379431903362274,
0.042372431606054306,
0.0010614485945552588,
-0.02564421109855175,
0.053536929190158844,
0.0011292464332655072,
0.014005693607032299,
0.03294005244970322,
0.02280987985432148,
0.0317004919052124,
-0.0689472109079361,
-0.02131529711186886,
0.010754397138953209,
0.015069831162691116,
0.007961953990161419,
-0.005476402118802071,
0.04826132208108902,
0.033932920545339584,
-0.0038338424637913704,
0.02173491194844246,
-0.02312583290040493,
-0.03068995662033558,
0.028766170144081116,
-0.03821858391165733,
0.02572675235569477,
0.008934172801673412,
-0.04738159105181694,
-0.03408116102218628,
0.013970335945487022,
-0.0009353269706480205,
0.05438933148980141,
-0.043268799781799316,
0.008961019106209278,
0.03755482658743858,
-0.038957297801971436,
-0.03806617110967636,
-0.06902645528316498,
-0.03315926715731621,
-0.034943100064992905,
0.03364436328411102,
0.029098212718963623,
-0.055157311260700226,
0.021301839500665665,
-0.04942385107278824,
-0.0594886876642704,
0.00007752771489322186,
0.013935047201812267,
-0.0374024361371994,
0.0551072396337986,
0.038688719272613525,
-0.04341337829828262,
0.03299250081181526,
0.046101029962301254,
-0.022247375920414925,
0.04468899592757225,
0.010420436970889568,
0.0023725335486233234,
0.06016547605395317,
0.01487082801759243,
-0.044675588607788086,
-0.03772876411676407,
-0.08807399123907089,
-0.041409652680158615,
-0.019532328471541405,
-0.024592174217104912,
0.04569675028324127
] |
CurtisBowser/DialoGPT-medium-sora-two | [
"pytorch",
"conversational"
] | conversational | {
"architectures": null,
"model_type": null,
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 0 | 2021-11-04T03:17:16Z | ---
tags:
- conversational
---
# Sora DialoGPT Model | [
-0.03821440786123276,
0.010551516897976398,
0.02408463880419731,
0.015316860750317574,
0.012959228828549385,
0.01033023837953806,
-0.003469393588602543,
0.03675059229135513,
-0.023534327745437622,
0.013051777146756649,
0.03533075004816055,
-0.0382862389087677,
0.014320850372314453,
0.026052067056298256,
-0.045372795313596725,
-0.025807911530137062,
-0.028384776785969734,
-0.005703851580619812,
-0.034910425543785095,
-0.019985735416412354,
0.046338412910699844,
0.014576667919754982,
-0.0215708389878273,
0.022151397541165352,
-0.005881252232939005,
0.02887079492211342,
-0.015313463285565376,
-0.0046482267789542675,
0.024219825863838196,
-0.024797670543193817,
0.014859586954116821,
-0.04239986091852188,
-0.024319173768162727,
-0.03998172655701637,
-0.018723638728260994,
-0.04423273727297783,
0.027094004675745964,
-0.013075278140604496,
-0.00931073073297739,
0.04388941824436188,
-0.025454826653003693,
-0.0058348472230136395,
0.008063765242695808,
-0.03858845308423042,
0.06060117855668068,
-0.011066348291933537,
-0.04221295565366745,
-0.021182414144277573,
0.014743488281965256,
-0.03734038770198822,
-0.032717686146497726,
-0.0768994688987732,
-0.06069977208971977,
-0.016462918370962143,
0.019003236666321754,
-0.06961911916732788,
-0.06776350736618042,
-0.019971655681729317,
0.09440109133720398,
-0.01672656089067459,
-0.006052862852811813,
0.003879833733662963,
-0.08025369048118591,
0.00958408135920763,
0.02160758152604103,
-0.06212024763226509,
0.010142102837562561,
-0.045330554246902466,
0.016366535797715187,
-0.038206782191991806,
0.05780106782913208,
-0.05145426467061043,
0.007423245348036289,
-0.08518415689468384,
-0.023458661511540413,
-0.0013768248027190566,
0.04577163979411125,
0.06377869844436646,
-0.03514713793992996,
0.06034038960933685,
0.045680951327085495,
0.006479213945567608,
0.053601350635290146,
0.006571329198777676,
-0.029367167502641678,
0.053497880697250366,
-0.04658595845103264,
-0.0012465057661756873,
0.0024565488565713167,
0.016670886427164078,
-0.019093116745352745,
-0.05443244054913521,
-0.017218539491295815,
-0.013567588292062283,
0.0060663060285151005,
0.055624883621931076,
0.021668197587132454,
-0.0340486504137516,
0.024827558547258377,
0.03608193248510361,
0.017797062173485756,
0.042935457080602646,
-0.033529359847307205,
0.0363306924700737,
-0.00880030170083046,
0.023888010531663895,
0.02381489984691143,
-0.021109139546751976,
-0.03360334783792496,
0.02269386500120163,
-0.0008721499470993876,
-0.053473785519599915,
-0.023955851793289185,
0.037540338933467865,
0.006030492950230837,
-0.007799217011779547,
0.04950053617358208,
-0.025657720863819122,
-0.02500934898853302,
-0.06407726556062698,
0.04202921316027641,
-0.013182939030230045,
-0.011507571674883366,
-0.002957487478852272,
-0.04190390557050705,
-0.007453708443790674,
-0.03787986561655998,
-0.010951763018965721,
-0.009617643430829048,
-0.00022318644914776087,
0.028407417237758636,
0.02488851174712181,
-0.036239951848983765,
-0.0638207420706749,
0.011832392774522305,
0.029452182352542877,
-0.08805330842733383,
0.0003302135446574539,
0.03357437252998352,
0.09599777311086655,
-0.07637911289930344,
-0.03390394151210785,
-0.013790260069072247,
0.02036028914153576,
-0.026808438822627068,
-0.01035295706242323,
0.0018085020128637552,
-0.0010475283488631248,
-0.04280073568224907,
-0.02274339273571968,
0.02470059134066105,
-0.050435248762369156,
-0.008053643628954887,
0.05045444890856743,
0.002111368579789996,
0.02155476063489914,
-0.00889892689883709,
0.002744093770161271,
-0.008293063379824162,
-0.029558004811406136,
-0.055795662105083466,
0.042371559888124466,
-0.021167414262890816,
-0.04522072896361351,
-0.04402049630880356,
-0.03085886314511299,
0.01606575772166252,
0.06387031823396683,
0.01310794148594141,
-0.020424632355570793,
-0.015034289099276066,
0.038923632353544235,
0.07024897634983063,
0.035071179270744324,
-0.0029961697291582823,
0.01687433198094368,
0.051565371453762054,
0.028337376192212105,
-0.033931914716959,
0.07991252094507217,
0.009952864609658718,
-0.0303664430975914,
-0.04967248812317848,
-0.018098266795277596,
0.03835751488804817,
-0.025258006528019905,
0.021277539432048798,
0.03915673494338989,
-0.0429626889526844,
-0.0229081679135561,
-0.0002461854601278901,
0.050110675394535065,
-0.02566533535718918,
0.005682210437953472,
-0.026288319379091263,
-0.02428385242819786,
-0.03519537299871445,
0.028008120134472847,
-0.033865075558423996,
-0.007857718504965305,
-0.03908354043960571,
-0.00466711213812232,
0.032692793756723404,
0.0071576680056750774,
0.008089575916528702,
0.04150368645787239,
-0.010358607396483421,
0.0640261322259903,
-0.03779628500342369,
0.02006710134446621,
-0.0397845022380352,
-0.02313065156340599,
-0.038616154342889786,
0.032637182623147964,
0.022755315527319908,
0.039542682468891144,
-0.03655887022614479,
-0.03900450840592384,
0.028388431295752525,
0.06409512460231781,
0.02655784972012043,
0.028129540383815765,
-0.02487749606370926,
-0.004874699749052525,
0.02995011769235134,
0.03543892502784729,
-0.031094415113329887,
0.015100489370524883,
0.009714167565107346,
0.022875819355249405,
-0.024449380114674568,
-0.02884577214717865,
-0.042809244245290756,
0.007457207888364792,
-0.041795048862695694,
-0.05730658397078514,
0.0399804562330246,
0.0360463485121727,
-0.013057821430265903,
0.03819518908858299,
-0.006595149170607328,
-0.012454175390303135,
0.03638472035527229,
0.0146481329575181,
-0.0024971305392682552,
-0.09273537248373032,
0.009887547232210636,
0.019918393343687057,
0.09168656915426254,
-0.04704859107732773,
0.010963323526084423,
0.00993098970502615,
0.01714247651398182,
0.022426201030611992,
-0.028058582916855812,
0.043813545256853104,
0.048428330570459366,
0.04961758479475975,
-0.028654610738158226,
0.03712574392557144,
0.007829317823052406,
0.028904980048537254,
0.06290353834629059,
-0.013130689039826393,
0.05688842758536339,
-0.0015449643833562732,
0.02043246291577816,
0.05578107386827469,
0.01737280562520027,
-0.0206014234572649,
0.023739146068692207,
0.07287432253360748,
-0.00870103482156992,
0.036033082753419876,
0.043480344116687775,
-0.00039022715645842254,
0.0028450649697333574,
-0.034381378442049026,
-0.025249535217881203,
-0.003944668918848038,
-0.02321784570813179,
0.06696925312280655,
-0.0009202256333082914,
-0.021831875666975975,
-0.0023131822235882282,
-0.011125863529741764,
0.005180065054446459,
0.05767899379134178,
-0.0011150416685268283,
-0.01706775091588497,
0.01091680396348238,
-0.01805376261472702,
0.015947675332427025,
-0.049107395112514496,
-0.03766411915421486,
-0.021504543721675873,
-0.06349556148052216,
-0.004894042853266001,
-0.08973820507526398,
-0.026615755632519722,
-0.06062818691134453,
-0.02347760833799839,
0.05721320956945419,
0.012602505274116993,
0.0343434140086174,
-0.0022761032450944185,
0.008915629237890244,
-0.019968295469880104,
-0.06188346445560455,
-0.046635739505290985,
-0.03640057519078255,
0.00009909406071528792,
-0.03892062231898308,
0.027875283733010292,
0.027770938351750374,
0.048543334007263184,
0.005664992146193981,
-0.027015453204512596,
-0.03310704976320267,
-0.027383005246520042,
0.04457344859838486,
0.018693599849939346,
-0.04493167623877525,
-0.03210164234042168,
0.0014505168655887246,
0.005368642508983612,
-0.00879739224910736,
-0.028311066329479218,
-0.04711611941456795,
0.06946834921836853,
0.04452642798423767,
0.017849773168563843,
0.015215042978525162,
-0.005255431868135929,
-0.028592176735401154,
-0.019236374646425247,
-0.06854145973920822,
-0.03462104871869087,
0.00211915816180408,
-0.02673797309398651,
-0.04450462758541107,
-0.026530958712100983,
-0.040422260761260986,
-0.017671843990683556,
0.0008908137097023427,
0.018462244421243668,
0.046830009669065475,
0.02349638007581234,
0.030784085392951965,
0.023056363686919212,
-0.01831231638789177,
-0.010292618535459042,
0.04083537682890892,
-0.016507811844348907,
-0.008526181802153587,
-0.06393751502037048,
-0.03584689274430275,
0.035604193806648254,
-0.0038954473566263914,
-0.006457173731178045,
-0.0070780315436422825,
0.032696809619665146,
0.028961673378944397,
-0.007185750640928745,
0.0311142411082983,
-0.06034335121512413,
-0.0051102773286402225,
-0.044658225029706955,
-0.029311174526810646,
-0.04615609347820282,
-0.0329560823738575,
-0.007480279542505741,
-0.010356185957789421,
0.037686754018068314,
-0.08273440599441528,
-0.02745397761464119,
-0.03201211988925934,
0.020141389220952988,
0.03738218918442726,
-0.003652891842648387,
-0.05435407906770706,
-0.011635370552539825,
-0.035627614706754684,
-0.028209829702973366,
-0.0010645167203620076,
-0.006808018311858177,
-0.0010491125285625458,
0.03247513994574547,
0.02191832661628723,
-0.021666601300239563,
0.05191006138920784,
0.012707403860986233,
0.06841576844453812,
0.04789052531123161,
-0.02401934377849102,
0.030757484957575798,
-0.018266335129737854,
0.034112103283405304,
0.0025501633062958717,
-0.030844418331980705,
-0.0508602075278759,
-0.09980600327253342,
-0.046726975589990616,
0.02610771544277668,
-0.016626786440610886,
0.009869205765426159,
0.030240247026085854,
-0.04163650795817375,
-0.0020697505678981543,
-0.00947660207748413,
0.04041726887226105,
0.05553247034549713,
-0.04348800703883171,
0.058494046330451965,
0.017548372969031334,
0.018817584961652756,
-0.0562550388276577,
0.0012491444358602166,
-0.0562986321747303,
-0.018539108335971832,
-0.00316293234936893,
0.05074167251586914,
0.015323473140597343,
0.06420015543699265,
0.07160717248916626,
0.030277123674750328,
-0.02909291908144951,
0.04804430902004242,
0.06735386699438095,
-0.013827516697347164,
-0.04076121374964714,
-0.01500225905328989,
-0.009186617098748684,
-0.030699918046593666,
-0.009547099471092224,
-0.035433001816272736,
0.026481106877326965,
0.04782049357891083,
-0.008222697302699089,
-0.003992770798504353,
0.009216695092618465,
-0.04292051121592522,
-0.025713743641972542,
-0.071701280772686,
-0.004636112600564957,
-0.0017195171676576138,
-0.02070874534547329,
0.047587811946868896,
0.04682743549346924,
0.01501268707215786,
0.059927552938461304,
0.017376815900206566,
-0.03077881596982479,
-0.05072980374097824,
0.03481104224920273,
0.021270647644996643,
-0.04331325739622116,
-0.05129730701446533,
-0.04872504249215126,
0.03317998722195625,
0.04144174978137016,
-0.03148543834686279,
-0.08735468238592148,
0.013104042038321495,
0.05046267434954643,
-0.04252435639500618,
0.06206964701414108,
-0.0077109928242862225,
0.059472840279340744,
0.024900143966078758,
0.010800959542393684,
0.055578310042619705,
-0.0768112763762474,
0.02904115989804268,
-0.024430453777313232,
0.012370339594781399,
-0.055041756480932236,
-0.0519605353474617,
-0.06499772518873215,
0.03980176895856857,
0.01465588714927435,
0.014373721554875374,
0.013125949539244175,
-0.04448242485523224,
-0.03554452583193779,
-0.0035989985335618258,
0.035978738218545914,
-0.023363417014479637,
0.013612747192382812,
0.026437053456902504,
0.052419260144233704,
-0.06423324346542358,
-0.0058764745481312275,
0.0055733113549649715,
0.026552915573120117,
0.018969768658280373,
-0.00797867588698864,
-0.04074724391102791,
-0.002632622141391039,
0.02903885766863823,
-0.03830728307366371,
-0.03972743824124336,
-0.086213119328022,
0.023863112553954124,
-0.032619547098875046,
-0.03281983360648155,
0.07319813221693039,
0.06864646077156067,
0.057786185294389725,
0.07254599779844284,
-0.0003992159909103066,
0.05453071743249893,
-0.03571821376681328,
0.007090975064784288,
-0.03367968648672104,
-0.020332377403974533,
-0.013430598191916943,
-0.08045478910207748,
-0.029813237488269806,
-0.035200826823711395,
-0.03135430067777634,
-0.03135344013571739,
0.008154910057783127,
0.013202982023358345,
-0.02014881558716297,
0.0007350001251325011,
0.008210409432649612,
0.010233977809548378,
-0.02870035357773304,
-0.029975851997733116,
0.004727584309875965,
-0.016694076359272003,
-0.07885225117206573,
-0.05945591256022453,
0.012793696485459805,
-0.030682465061545372,
0.0008958899416029453,
0.001575579633936286,
0.02118164300918579,
0.048815302550792694,
-0.014413416385650635,
-0.022485824301838875,
0.018302785232663155,
0.027172891423106194,
-0.02530023269355297,
-0.021258404478430748,
0.01037767343223095,
0.02012176625430584,
0.029083145782351494,
-0.02819003351032734,
0.03286832198500633,
0.010925214737653732,
-0.0608326755464077,
-0.02109433338046074,
0.02194237895309925,
0.02429773472249508,
-0.0819043442606926,
-0.017498457804322243,
-0.03060157783329487,
-0.033701103180646896,
0.00880593340843916,
-0.050387345254421234,
-0.013060052879154682,
-0.015438518486917019,
0.033338386565446854,
0.03541272506117821,
-0.0015696065966039896,
-0.03724280744791031,
0.00411528255790472,
-0.0071745365858078,
0.01230060774832964,
-0.06944360584020615,
0.03575090691447258,
-0.03468259796500206,
0.012320921756327152,
-0.008663233369588852,
0.009930284693837166,
-0.04468723013997078,
0.04027543216943741,
-0.009960777126252651,
0.00364222121424973,
0.00596656184643507,
-0.022655287757515907,
0.0031999831553548574,
0.06315085291862488,
0.01593819260597229,
-0.005705625284463167,
-0.04466531053185463,
0.0764990970492363,
-0.040753915905952454,
0.00679726991802454,
0.005048470105975866,
-0.016969142481684685,
-0.033507175743579865,
0.0008304469520226121,
0.008448231965303421,
-0.06771498918533325,
0.01707865111529827,
0.04533345624804497,
0.02424396015703678,
0.03206520155072212,
-0.012082637287676334,
0.007824505679309368,
0.03343845531344414,
-0.052900634706020355,
-0.029773762449622154,
-0.0013444869546219707,
0.006108286790549755,
0.0224550012499094,
0.06236100569367409,
0.018670838326215744,
-0.06315402686595917,
-0.019260695204138756,
0.01731097139418125,
0.020068688318133354,
0.011080280877649784,
0.004135098308324814,
0.04545806348323822,
0.044320158660411835,
0.07055003196001053,
-0.012224574573338032,
0.004396796226501465,
0.022549299523234367,
-0.011567756533622742,
-0.026177965104579926,
-0.0038846097886562347,
-0.018816646188497543,
-0.002670484595000744,
-0.02815479226410389,
-0.03385436534881592,
0.06975496560335159,
-0.001584848272614181,
0.000701356097124517,
-0.012263014912605286,
-0.0440547913312912,
0.05574924498796463,
-0.0069339461624622345,
-0.04389103129506111,
-0.009160161018371582,
0.04558742418885231,
-0.020299842581152916,
0.03363709896802902,
-0.030486982315778732,
0.013490370474755764,
0.04908962547779083,
0.026106052100658417,
0.012425350025296211,
0.01026233658194542,
-0.013681508600711823,
-0.002480361144989729,
0.012917137704789639,
-0.049369972199201584,
-0.01657472923398018,
-0.031778063625097275,
0.06994927674531937,
-0.045053500682115555,
0.0654485896229744,
0.02818984165787697,
0.04970429092645645,
0.004701153840869665,
-0.03974849730730057,
-0.04205960035324097,
-0.02029215171933174,
-0.027909526601433754,
0.07560981810092926,
-0.01653832197189331,
-0.0497475229203701,
0.05739963799715042,
0.04028807953000069,
-0.08569607883691788,
0.03335615620017052,
0.04450322687625885,
0.038389820605516434,
0.03343270346522331,
0.05244961008429527,
-0.04985060542821884,
0.01968006044626236,
-0.03324844688177109,
0.012439271435141563,
-0.030443551018834114,
-0.011634507216513157,
-0.02091234177350998,
-0.042637329548597336,
0.0010691575007513165,
0.02836557663977146,
-0.028804801404476166,
0.009102537296712399,
0.01860600709915161,
-0.025006096810102463,
-0.06008683517575264,
-0.0077796392142772675,
0.041078832000494,
0.003781744511798024,
-0.010570996440947056,
-0.026734888553619385,
0.023581158369779587,
0.0394822396337986,
-0.008434142917394638,
-0.06962305307388306,
0.017164994031190872,
-0.002980013145133853,
-0.07199709862470627,
-0.0420202910900116,
0.058443766087293625,
0.02487908862531185,
-0.021511733531951904,
0.001149168238043785,
0.03895094618201256,
0.023712478578090668,
0.026831557974219322,
-0.010588125325739384,
-0.002697650110349059,
-0.07439597696065903,
-0.0008486439473927021,
0.015384969301521778,
0.015064703300595284,
0.0005285501247271895,
-0.007069030776619911,
0.034822676330804825,
0.09169265627861023,
0.04757403954863548,
0.010721332393586636,
-0.056616272777318954,
-0.029742266982793808,
0.00838959589600563,
-0.040565650910139084,
0.05317603051662445,
-0.0017451440216973424,
-0.06330683082342148,
-0.021849079057574272,
-0.031541891396045685,
-0.008777588605880737,
0.03209005668759346,
-0.024807356297969818,
0.022586103528738022,
0.019763369113206863,
-0.006059863138943911,
-0.035418227314949036,
-0.08160790055990219,
-0.05554831400513649,
-0.0018118098378181458,
0.02256777323782444,
0.028445839881896973,
-0.06315791606903076,
0.015461592935025692,
-0.021572040393948555,
0.0009451472433283925,
0.0695599615573883,
-0.017033571377396584,
-0.007210821378976107,
0.06685417890548706,
0.0655839815735817,
-0.05207144096493721,
0.06857705861330032,
0.03091694787144661,
-0.031955521553754807,
0.060477714985609055,
0.0038414651062339544,
0.02794700115919113,
0.006805953104048967,
0.01921091228723526,
-0.017099464312195778,
-0.011232726275920868,
-0.022237960249185562,
-0.025649400427937508,
0.005620849318802357,
-0.00626717135310173,
0.05675563961267471
] |
CurtisBowser/DialoGPT-medium-sora | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 7 | 2021-10-20T23:52:19Z | ---
tags:
- conversational
---
# Sora DialoGPT Model
| [
-0.03821440786123276,
0.010551516897976398,
0.02408463880419731,
0.015316860750317574,
0.012959228828549385,
0.01033023837953806,
-0.003469393588602543,
0.03675059229135513,
-0.023534327745437622,
0.013051777146756649,
0.03533075004816055,
-0.0382862389087677,
0.014320850372314453,
0.026052067056298256,
-0.045372795313596725,
-0.025807911530137062,
-0.028384776785969734,
-0.005703851580619812,
-0.034910425543785095,
-0.019985735416412354,
0.046338412910699844,
0.014576667919754982,
-0.0215708389878273,
0.022151397541165352,
-0.005881252232939005,
0.02887079492211342,
-0.015313463285565376,
-0.0046482267789542675,
0.024219825863838196,
-0.024797670543193817,
0.014859586954116821,
-0.04239986091852188,
-0.024319173768162727,
-0.03998172655701637,
-0.018723638728260994,
-0.04423273727297783,
0.027094004675745964,
-0.013075278140604496,
-0.00931073073297739,
0.04388941824436188,
-0.025454826653003693,
-0.0058348472230136395,
0.008063765242695808,
-0.03858845308423042,
0.06060117855668068,
-0.011066348291933537,
-0.04221295565366745,
-0.021182414144277573,
0.014743488281965256,
-0.03734038770198822,
-0.032717686146497726,
-0.0768994688987732,
-0.06069977208971977,
-0.016462918370962143,
0.019003236666321754,
-0.06961911916732788,
-0.06776350736618042,
-0.019971655681729317,
0.09440109133720398,
-0.01672656089067459,
-0.006052862852811813,
0.003879833733662963,
-0.08025369048118591,
0.00958408135920763,
0.02160758152604103,
-0.06212024763226509,
0.010142102837562561,
-0.045330554246902466,
0.016366535797715187,
-0.038206782191991806,
0.05780106782913208,
-0.05145426467061043,
0.007423245348036289,
-0.08518415689468384,
-0.023458661511540413,
-0.0013768248027190566,
0.04577163979411125,
0.06377869844436646,
-0.03514713793992996,
0.06034038960933685,
0.045680951327085495,
0.006479213945567608,
0.053601350635290146,
0.006571329198777676,
-0.029367167502641678,
0.053497880697250366,
-0.04658595845103264,
-0.0012465057661756873,
0.0024565488565713167,
0.016670886427164078,
-0.019093116745352745,
-0.05443244054913521,
-0.017218539491295815,
-0.013567588292062283,
0.0060663060285151005,
0.055624883621931076,
0.021668197587132454,
-0.0340486504137516,
0.024827558547258377,
0.03608193248510361,
0.017797062173485756,
0.042935457080602646,
-0.033529359847307205,
0.0363306924700737,
-0.00880030170083046,
0.023888010531663895,
0.02381489984691143,
-0.021109139546751976,
-0.03360334783792496,
0.02269386500120163,
-0.0008721499470993876,
-0.053473785519599915,
-0.023955851793289185,
0.037540338933467865,
0.006030492950230837,
-0.007799217011779547,
0.04950053617358208,
-0.025657720863819122,
-0.02500934898853302,
-0.06407726556062698,
0.04202921316027641,
-0.013182939030230045,
-0.011507571674883366,
-0.002957487478852272,
-0.04190390557050705,
-0.007453708443790674,
-0.03787986561655998,
-0.010951763018965721,
-0.009617643430829048,
-0.00022318644914776087,
0.028407417237758636,
0.02488851174712181,
-0.036239951848983765,
-0.0638207420706749,
0.011832392774522305,
0.029452182352542877,
-0.08805330842733383,
0.0003302135446574539,
0.03357437252998352,
0.09599777311086655,
-0.07637911289930344,
-0.03390394151210785,
-0.013790260069072247,
0.02036028914153576,
-0.026808438822627068,
-0.01035295706242323,
0.0018085020128637552,
-0.0010475283488631248,
-0.04280073568224907,
-0.02274339273571968,
0.02470059134066105,
-0.050435248762369156,
-0.008053643628954887,
0.05045444890856743,
0.002111368579789996,
0.02155476063489914,
-0.00889892689883709,
0.002744093770161271,
-0.008293063379824162,
-0.029558004811406136,
-0.055795662105083466,
0.042371559888124466,
-0.021167414262890816,
-0.04522072896361351,
-0.04402049630880356,
-0.03085886314511299,
0.01606575772166252,
0.06387031823396683,
0.01310794148594141,
-0.020424632355570793,
-0.015034289099276066,
0.038923632353544235,
0.07024897634983063,
0.035071179270744324,
-0.0029961697291582823,
0.01687433198094368,
0.051565371453762054,
0.028337376192212105,
-0.033931914716959,
0.07991252094507217,
0.009952864609658718,
-0.0303664430975914,
-0.04967248812317848,
-0.018098266795277596,
0.03835751488804817,
-0.025258006528019905,
0.021277539432048798,
0.03915673494338989,
-0.0429626889526844,
-0.0229081679135561,
-0.0002461854601278901,
0.050110675394535065,
-0.02566533535718918,
0.005682210437953472,
-0.026288319379091263,
-0.02428385242819786,
-0.03519537299871445,
0.028008120134472847,
-0.033865075558423996,
-0.007857718504965305,
-0.03908354043960571,
-0.00466711213812232,
0.032692793756723404,
0.0071576680056750774,
0.008089575916528702,
0.04150368645787239,
-0.010358607396483421,
0.0640261322259903,
-0.03779628500342369,
0.02006710134446621,
-0.0397845022380352,
-0.02313065156340599,
-0.038616154342889786,
0.032637182623147964,
0.022755315527319908,
0.039542682468891144,
-0.03655887022614479,
-0.03900450840592384,
0.028388431295752525,
0.06409512460231781,
0.02655784972012043,
0.028129540383815765,
-0.02487749606370926,
-0.004874699749052525,
0.02995011769235134,
0.03543892502784729,
-0.031094415113329887,
0.015100489370524883,
0.009714167565107346,
0.022875819355249405,
-0.024449380114674568,
-0.02884577214717865,
-0.042809244245290756,
0.007457207888364792,
-0.041795048862695694,
-0.05730658397078514,
0.0399804562330246,
0.0360463485121727,
-0.013057821430265903,
0.03819518908858299,
-0.006595149170607328,
-0.012454175390303135,
0.03638472035527229,
0.0146481329575181,
-0.0024971305392682552,
-0.09273537248373032,
0.009887547232210636,
0.019918393343687057,
0.09168656915426254,
-0.04704859107732773,
0.010963323526084423,
0.00993098970502615,
0.01714247651398182,
0.022426201030611992,
-0.028058582916855812,
0.043813545256853104,
0.048428330570459366,
0.04961758479475975,
-0.028654610738158226,
0.03712574392557144,
0.007829317823052406,
0.028904980048537254,
0.06290353834629059,
-0.013130689039826393,
0.05688842758536339,
-0.0015449643833562732,
0.02043246291577816,
0.05578107386827469,
0.01737280562520027,
-0.0206014234572649,
0.023739146068692207,
0.07287432253360748,
-0.00870103482156992,
0.036033082753419876,
0.043480344116687775,
-0.00039022715645842254,
0.0028450649697333574,
-0.034381378442049026,
-0.025249535217881203,
-0.003944668918848038,
-0.02321784570813179,
0.06696925312280655,
-0.0009202256333082914,
-0.021831875666975975,
-0.0023131822235882282,
-0.011125863529741764,
0.005180065054446459,
0.05767899379134178,
-0.0011150416685268283,
-0.01706775091588497,
0.01091680396348238,
-0.01805376261472702,
0.015947675332427025,
-0.049107395112514496,
-0.03766411915421486,
-0.021504543721675873,
-0.06349556148052216,
-0.004894042853266001,
-0.08973820507526398,
-0.026615755632519722,
-0.06062818691134453,
-0.02347760833799839,
0.05721320956945419,
0.012602505274116993,
0.0343434140086174,
-0.0022761032450944185,
0.008915629237890244,
-0.019968295469880104,
-0.06188346445560455,
-0.046635739505290985,
-0.03640057519078255,
0.00009909406071528792,
-0.03892062231898308,
0.027875283733010292,
0.027770938351750374,
0.048543334007263184,
0.005664992146193981,
-0.027015453204512596,
-0.03310704976320267,
-0.027383005246520042,
0.04457344859838486,
0.018693599849939346,
-0.04493167623877525,
-0.03210164234042168,
0.0014505168655887246,
0.005368642508983612,
-0.00879739224910736,
-0.028311066329479218,
-0.04711611941456795,
0.06946834921836853,
0.04452642798423767,
0.017849773168563843,
0.015215042978525162,
-0.005255431868135929,
-0.028592176735401154,
-0.019236374646425247,
-0.06854145973920822,
-0.03462104871869087,
0.00211915816180408,
-0.02673797309398651,
-0.04450462758541107,
-0.026530958712100983,
-0.040422260761260986,
-0.017671843990683556,
0.0008908137097023427,
0.018462244421243668,
0.046830009669065475,
0.02349638007581234,
0.030784085392951965,
0.023056363686919212,
-0.01831231638789177,
-0.010292618535459042,
0.04083537682890892,
-0.016507811844348907,
-0.008526181802153587,
-0.06393751502037048,
-0.03584689274430275,
0.035604193806648254,
-0.0038954473566263914,
-0.006457173731178045,
-0.0070780315436422825,
0.032696809619665146,
0.028961673378944397,
-0.007185750640928745,
0.0311142411082983,
-0.06034335121512413,
-0.0051102773286402225,
-0.044658225029706955,
-0.029311174526810646,
-0.04615609347820282,
-0.0329560823738575,
-0.007480279542505741,
-0.010356185957789421,
0.037686754018068314,
-0.08273440599441528,
-0.02745397761464119,
-0.03201211988925934,
0.020141389220952988,
0.03738218918442726,
-0.003652891842648387,
-0.05435407906770706,
-0.011635370552539825,
-0.035627614706754684,
-0.028209829702973366,
-0.0010645167203620076,
-0.006808018311858177,
-0.0010491125285625458,
0.03247513994574547,
0.02191832661628723,
-0.021666601300239563,
0.05191006138920784,
0.012707403860986233,
0.06841576844453812,
0.04789052531123161,
-0.02401934377849102,
0.030757484957575798,
-0.018266335129737854,
0.034112103283405304,
0.0025501633062958717,
-0.030844418331980705,
-0.0508602075278759,
-0.09980600327253342,
-0.046726975589990616,
0.02610771544277668,
-0.016626786440610886,
0.009869205765426159,
0.030240247026085854,
-0.04163650795817375,
-0.0020697505678981543,
-0.00947660207748413,
0.04041726887226105,
0.05553247034549713,
-0.04348800703883171,
0.058494046330451965,
0.017548372969031334,
0.018817584961652756,
-0.0562550388276577,
0.0012491444358602166,
-0.0562986321747303,
-0.018539108335971832,
-0.00316293234936893,
0.05074167251586914,
0.015323473140597343,
0.06420015543699265,
0.07160717248916626,
0.030277123674750328,
-0.02909291908144951,
0.04804430902004242,
0.06735386699438095,
-0.013827516697347164,
-0.04076121374964714,
-0.01500225905328989,
-0.009186617098748684,
-0.030699918046593666,
-0.009547099471092224,
-0.035433001816272736,
0.026481106877326965,
0.04782049357891083,
-0.008222697302699089,
-0.003992770798504353,
0.009216695092618465,
-0.04292051121592522,
-0.025713743641972542,
-0.071701280772686,
-0.004636112600564957,
-0.0017195171676576138,
-0.02070874534547329,
0.047587811946868896,
0.04682743549346924,
0.01501268707215786,
0.059927552938461304,
0.017376815900206566,
-0.03077881596982479,
-0.05072980374097824,
0.03481104224920273,
0.021270647644996643,
-0.04331325739622116,
-0.05129730701446533,
-0.04872504249215126,
0.03317998722195625,
0.04144174978137016,
-0.03148543834686279,
-0.08735468238592148,
0.013104042038321495,
0.05046267434954643,
-0.04252435639500618,
0.06206964701414108,
-0.0077109928242862225,
0.059472840279340744,
0.024900143966078758,
0.010800959542393684,
0.055578310042619705,
-0.0768112763762474,
0.02904115989804268,
-0.024430453777313232,
0.012370339594781399,
-0.055041756480932236,
-0.0519605353474617,
-0.06499772518873215,
0.03980176895856857,
0.01465588714927435,
0.014373721554875374,
0.013125949539244175,
-0.04448242485523224,
-0.03554452583193779,
-0.0035989985335618258,
0.035978738218545914,
-0.023363417014479637,
0.013612747192382812,
0.026437053456902504,
0.052419260144233704,
-0.06423324346542358,
-0.0058764745481312275,
0.0055733113549649715,
0.026552915573120117,
0.018969768658280373,
-0.00797867588698864,
-0.04074724391102791,
-0.002632622141391039,
0.02903885766863823,
-0.03830728307366371,
-0.03972743824124336,
-0.086213119328022,
0.023863112553954124,
-0.032619547098875046,
-0.03281983360648155,
0.07319813221693039,
0.06864646077156067,
0.057786185294389725,
0.07254599779844284,
-0.0003992159909103066,
0.05453071743249893,
-0.03571821376681328,
0.007090975064784288,
-0.03367968648672104,
-0.020332377403974533,
-0.013430598191916943,
-0.08045478910207748,
-0.029813237488269806,
-0.035200826823711395,
-0.03135430067777634,
-0.03135344013571739,
0.008154910057783127,
0.013202982023358345,
-0.02014881558716297,
0.0007350001251325011,
0.008210409432649612,
0.010233977809548378,
-0.02870035357773304,
-0.029975851997733116,
0.004727584309875965,
-0.016694076359272003,
-0.07885225117206573,
-0.05945591256022453,
0.012793696485459805,
-0.030682465061545372,
0.0008958899416029453,
0.001575579633936286,
0.02118164300918579,
0.048815302550792694,
-0.014413416385650635,
-0.022485824301838875,
0.018302785232663155,
0.027172891423106194,
-0.02530023269355297,
-0.021258404478430748,
0.01037767343223095,
0.02012176625430584,
0.029083145782351494,
-0.02819003351032734,
0.03286832198500633,
0.010925214737653732,
-0.0608326755464077,
-0.02109433338046074,
0.02194237895309925,
0.02429773472249508,
-0.0819043442606926,
-0.017498457804322243,
-0.03060157783329487,
-0.033701103180646896,
0.00880593340843916,
-0.050387345254421234,
-0.013060052879154682,
-0.015438518486917019,
0.033338386565446854,
0.03541272506117821,
-0.0015696065966039896,
-0.03724280744791031,
0.00411528255790472,
-0.0071745365858078,
0.01230060774832964,
-0.06944360584020615,
0.03575090691447258,
-0.03468259796500206,
0.012320921756327152,
-0.008663233369588852,
0.009930284693837166,
-0.04468723013997078,
0.04027543216943741,
-0.009960777126252651,
0.00364222121424973,
0.00596656184643507,
-0.022655287757515907,
0.0031999831553548574,
0.06315085291862488,
0.01593819260597229,
-0.005705625284463167,
-0.04466531053185463,
0.0764990970492363,
-0.040753915905952454,
0.00679726991802454,
0.005048470105975866,
-0.016969142481684685,
-0.033507175743579865,
0.0008304469520226121,
0.008448231965303421,
-0.06771498918533325,
0.01707865111529827,
0.04533345624804497,
0.02424396015703678,
0.03206520155072212,
-0.012082637287676334,
0.007824505679309368,
0.03343845531344414,
-0.052900634706020355,
-0.029773762449622154,
-0.0013444869546219707,
0.006108286790549755,
0.0224550012499094,
0.06236100569367409,
0.018670838326215744,
-0.06315402686595917,
-0.019260695204138756,
0.01731097139418125,
0.020068688318133354,
0.011080280877649784,
0.004135098308324814,
0.04545806348323822,
0.044320158660411835,
0.07055003196001053,
-0.012224574573338032,
0.004396796226501465,
0.022549299523234367,
-0.011567756533622742,
-0.026177965104579926,
-0.0038846097886562347,
-0.018816646188497543,
-0.002670484595000744,
-0.02815479226410389,
-0.03385436534881592,
0.06975496560335159,
-0.001584848272614181,
0.000701356097124517,
-0.012263014912605286,
-0.0440547913312912,
0.05574924498796463,
-0.0069339461624622345,
-0.04389103129506111,
-0.009160161018371582,
0.04558742418885231,
-0.020299842581152916,
0.03363709896802902,
-0.030486982315778732,
0.013490370474755764,
0.04908962547779083,
0.026106052100658417,
0.012425350025296211,
0.01026233658194542,
-0.013681508600711823,
-0.002480361144989729,
0.012917137704789639,
-0.049369972199201584,
-0.01657472923398018,
-0.031778063625097275,
0.06994927674531937,
-0.045053500682115555,
0.0654485896229744,
0.02818984165787697,
0.04970429092645645,
0.004701153840869665,
-0.03974849730730057,
-0.04205960035324097,
-0.02029215171933174,
-0.027909526601433754,
0.07560981810092926,
-0.01653832197189331,
-0.0497475229203701,
0.05739963799715042,
0.04028807953000069,
-0.08569607883691788,
0.03335615620017052,
0.04450322687625885,
0.038389820605516434,
0.03343270346522331,
0.05244961008429527,
-0.04985060542821884,
0.01968006044626236,
-0.03324844688177109,
0.012439271435141563,
-0.030443551018834114,
-0.011634507216513157,
-0.02091234177350998,
-0.042637329548597336,
0.0010691575007513165,
0.02836557663977146,
-0.028804801404476166,
0.009102537296712399,
0.01860600709915161,
-0.025006096810102463,
-0.06008683517575264,
-0.0077796392142772675,
0.041078832000494,
0.003781744511798024,
-0.010570996440947056,
-0.026734888553619385,
0.023581158369779587,
0.0394822396337986,
-0.008434142917394638,
-0.06962305307388306,
0.017164994031190872,
-0.002980013145133853,
-0.07199709862470627,
-0.0420202910900116,
0.058443766087293625,
0.02487908862531185,
-0.021511733531951904,
0.001149168238043785,
0.03895094618201256,
0.023712478578090668,
0.026831557974219322,
-0.010588125325739384,
-0.002697650110349059,
-0.07439597696065903,
-0.0008486439473927021,
0.015384969301521778,
0.015064703300595284,
0.0005285501247271895,
-0.007069030776619911,
0.034822676330804825,
0.09169265627861023,
0.04757403954863548,
0.010721332393586636,
-0.056616272777318954,
-0.029742266982793808,
0.00838959589600563,
-0.040565650910139084,
0.05317603051662445,
-0.0017451440216973424,
-0.06330683082342148,
-0.021849079057574272,
-0.031541891396045685,
-0.008777588605880737,
0.03209005668759346,
-0.024807356297969818,
0.022586103528738022,
0.019763369113206863,
-0.006059863138943911,
-0.035418227314949036,
-0.08160790055990219,
-0.05554831400513649,
-0.0018118098378181458,
0.02256777323782444,
0.028445839881896973,
-0.06315791606903076,
0.015461592935025692,
-0.021572040393948555,
0.0009451472433283925,
0.0695599615573883,
-0.017033571377396584,
-0.007210821378976107,
0.06685417890548706,
0.0655839815735817,
-0.05207144096493721,
0.06857705861330032,
0.03091694787144661,
-0.031955521553754807,
0.060477714985609055,
0.0038414651062339544,
0.02794700115919113,
0.006805953104048967,
0.01921091228723526,
-0.017099464312195778,
-0.011232726275920868,
-0.022237960249185562,
-0.025649400427937508,
0.005620849318802357,
-0.00626717135310173,
0.05675563961267471
] |
CurtisBowser/DialoGPT-small-sora | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 7 | 2021-10-20T20:22:23Z | ---
tags:
- conversational
---
# Sora DialoGPT Model | [
-0.03821440786123276,
0.010551516897976398,
0.02408463880419731,
0.015316860750317574,
0.012959228828549385,
0.01033023837953806,
-0.003469393588602543,
0.03675059229135513,
-0.023534327745437622,
0.013051777146756649,
0.03533075004816055,
-0.0382862389087677,
0.014320850372314453,
0.026052067056298256,
-0.045372795313596725,
-0.025807911530137062,
-0.028384776785969734,
-0.005703851580619812,
-0.034910425543785095,
-0.019985735416412354,
0.046338412910699844,
0.014576667919754982,
-0.0215708389878273,
0.022151397541165352,
-0.005881252232939005,
0.02887079492211342,
-0.015313463285565376,
-0.0046482267789542675,
0.024219825863838196,
-0.024797670543193817,
0.014859586954116821,
-0.04239986091852188,
-0.024319173768162727,
-0.03998172655701637,
-0.018723638728260994,
-0.04423273727297783,
0.027094004675745964,
-0.013075278140604496,
-0.00931073073297739,
0.04388941824436188,
-0.025454826653003693,
-0.0058348472230136395,
0.008063765242695808,
-0.03858845308423042,
0.06060117855668068,
-0.011066348291933537,
-0.04221295565366745,
-0.021182414144277573,
0.014743488281965256,
-0.03734038770198822,
-0.032717686146497726,
-0.0768994688987732,
-0.06069977208971977,
-0.016462918370962143,
0.019003236666321754,
-0.06961911916732788,
-0.06776350736618042,
-0.019971655681729317,
0.09440109133720398,
-0.01672656089067459,
-0.006052862852811813,
0.003879833733662963,
-0.08025369048118591,
0.00958408135920763,
0.02160758152604103,
-0.06212024763226509,
0.010142102837562561,
-0.045330554246902466,
0.016366535797715187,
-0.038206782191991806,
0.05780106782913208,
-0.05145426467061043,
0.007423245348036289,
-0.08518415689468384,
-0.023458661511540413,
-0.0013768248027190566,
0.04577163979411125,
0.06377869844436646,
-0.03514713793992996,
0.06034038960933685,
0.045680951327085495,
0.006479213945567608,
0.053601350635290146,
0.006571329198777676,
-0.029367167502641678,
0.053497880697250366,
-0.04658595845103264,
-0.0012465057661756873,
0.0024565488565713167,
0.016670886427164078,
-0.019093116745352745,
-0.05443244054913521,
-0.017218539491295815,
-0.013567588292062283,
0.0060663060285151005,
0.055624883621931076,
0.021668197587132454,
-0.0340486504137516,
0.024827558547258377,
0.03608193248510361,
0.017797062173485756,
0.042935457080602646,
-0.033529359847307205,
0.0363306924700737,
-0.00880030170083046,
0.023888010531663895,
0.02381489984691143,
-0.021109139546751976,
-0.03360334783792496,
0.02269386500120163,
-0.0008721499470993876,
-0.053473785519599915,
-0.023955851793289185,
0.037540338933467865,
0.006030492950230837,
-0.007799217011779547,
0.04950053617358208,
-0.025657720863819122,
-0.02500934898853302,
-0.06407726556062698,
0.04202921316027641,
-0.013182939030230045,
-0.011507571674883366,
-0.002957487478852272,
-0.04190390557050705,
-0.007453708443790674,
-0.03787986561655998,
-0.010951763018965721,
-0.009617643430829048,
-0.00022318644914776087,
0.028407417237758636,
0.02488851174712181,
-0.036239951848983765,
-0.0638207420706749,
0.011832392774522305,
0.029452182352542877,
-0.08805330842733383,
0.0003302135446574539,
0.03357437252998352,
0.09599777311086655,
-0.07637911289930344,
-0.03390394151210785,
-0.013790260069072247,
0.02036028914153576,
-0.026808438822627068,
-0.01035295706242323,
0.0018085020128637552,
-0.0010475283488631248,
-0.04280073568224907,
-0.02274339273571968,
0.02470059134066105,
-0.050435248762369156,
-0.008053643628954887,
0.05045444890856743,
0.002111368579789996,
0.02155476063489914,
-0.00889892689883709,
0.002744093770161271,
-0.008293063379824162,
-0.029558004811406136,
-0.055795662105083466,
0.042371559888124466,
-0.021167414262890816,
-0.04522072896361351,
-0.04402049630880356,
-0.03085886314511299,
0.01606575772166252,
0.06387031823396683,
0.01310794148594141,
-0.020424632355570793,
-0.015034289099276066,
0.038923632353544235,
0.07024897634983063,
0.035071179270744324,
-0.0029961697291582823,
0.01687433198094368,
0.051565371453762054,
0.028337376192212105,
-0.033931914716959,
0.07991252094507217,
0.009952864609658718,
-0.0303664430975914,
-0.04967248812317848,
-0.018098266795277596,
0.03835751488804817,
-0.025258006528019905,
0.021277539432048798,
0.03915673494338989,
-0.0429626889526844,
-0.0229081679135561,
-0.0002461854601278901,
0.050110675394535065,
-0.02566533535718918,
0.005682210437953472,
-0.026288319379091263,
-0.02428385242819786,
-0.03519537299871445,
0.028008120134472847,
-0.033865075558423996,
-0.007857718504965305,
-0.03908354043960571,
-0.00466711213812232,
0.032692793756723404,
0.0071576680056750774,
0.008089575916528702,
0.04150368645787239,
-0.010358607396483421,
0.0640261322259903,
-0.03779628500342369,
0.02006710134446621,
-0.0397845022380352,
-0.02313065156340599,
-0.038616154342889786,
0.032637182623147964,
0.022755315527319908,
0.039542682468891144,
-0.03655887022614479,
-0.03900450840592384,
0.028388431295752525,
0.06409512460231781,
0.02655784972012043,
0.028129540383815765,
-0.02487749606370926,
-0.004874699749052525,
0.02995011769235134,
0.03543892502784729,
-0.031094415113329887,
0.015100489370524883,
0.009714167565107346,
0.022875819355249405,
-0.024449380114674568,
-0.02884577214717865,
-0.042809244245290756,
0.007457207888364792,
-0.041795048862695694,
-0.05730658397078514,
0.0399804562330246,
0.0360463485121727,
-0.013057821430265903,
0.03819518908858299,
-0.006595149170607328,
-0.012454175390303135,
0.03638472035527229,
0.0146481329575181,
-0.0024971305392682552,
-0.09273537248373032,
0.009887547232210636,
0.019918393343687057,
0.09168656915426254,
-0.04704859107732773,
0.010963323526084423,
0.00993098970502615,
0.01714247651398182,
0.022426201030611992,
-0.028058582916855812,
0.043813545256853104,
0.048428330570459366,
0.04961758479475975,
-0.028654610738158226,
0.03712574392557144,
0.007829317823052406,
0.028904980048537254,
0.06290353834629059,
-0.013130689039826393,
0.05688842758536339,
-0.0015449643833562732,
0.02043246291577816,
0.05578107386827469,
0.01737280562520027,
-0.0206014234572649,
0.023739146068692207,
0.07287432253360748,
-0.00870103482156992,
0.036033082753419876,
0.043480344116687775,
-0.00039022715645842254,
0.0028450649697333574,
-0.034381378442049026,
-0.025249535217881203,
-0.003944668918848038,
-0.02321784570813179,
0.06696925312280655,
-0.0009202256333082914,
-0.021831875666975975,
-0.0023131822235882282,
-0.011125863529741764,
0.005180065054446459,
0.05767899379134178,
-0.0011150416685268283,
-0.01706775091588497,
0.01091680396348238,
-0.01805376261472702,
0.015947675332427025,
-0.049107395112514496,
-0.03766411915421486,
-0.021504543721675873,
-0.06349556148052216,
-0.004894042853266001,
-0.08973820507526398,
-0.026615755632519722,
-0.06062818691134453,
-0.02347760833799839,
0.05721320956945419,
0.012602505274116993,
0.0343434140086174,
-0.0022761032450944185,
0.008915629237890244,
-0.019968295469880104,
-0.06188346445560455,
-0.046635739505290985,
-0.03640057519078255,
0.00009909406071528792,
-0.03892062231898308,
0.027875283733010292,
0.027770938351750374,
0.048543334007263184,
0.005664992146193981,
-0.027015453204512596,
-0.03310704976320267,
-0.027383005246520042,
0.04457344859838486,
0.018693599849939346,
-0.04493167623877525,
-0.03210164234042168,
0.0014505168655887246,
0.005368642508983612,
-0.00879739224910736,
-0.028311066329479218,
-0.04711611941456795,
0.06946834921836853,
0.04452642798423767,
0.017849773168563843,
0.015215042978525162,
-0.005255431868135929,
-0.028592176735401154,
-0.019236374646425247,
-0.06854145973920822,
-0.03462104871869087,
0.00211915816180408,
-0.02673797309398651,
-0.04450462758541107,
-0.026530958712100983,
-0.040422260761260986,
-0.017671843990683556,
0.0008908137097023427,
0.018462244421243668,
0.046830009669065475,
0.02349638007581234,
0.030784085392951965,
0.023056363686919212,
-0.01831231638789177,
-0.010292618535459042,
0.04083537682890892,
-0.016507811844348907,
-0.008526181802153587,
-0.06393751502037048,
-0.03584689274430275,
0.035604193806648254,
-0.0038954473566263914,
-0.006457173731178045,
-0.0070780315436422825,
0.032696809619665146,
0.028961673378944397,
-0.007185750640928745,
0.0311142411082983,
-0.06034335121512413,
-0.0051102773286402225,
-0.044658225029706955,
-0.029311174526810646,
-0.04615609347820282,
-0.0329560823738575,
-0.007480279542505741,
-0.010356185957789421,
0.037686754018068314,
-0.08273440599441528,
-0.02745397761464119,
-0.03201211988925934,
0.020141389220952988,
0.03738218918442726,
-0.003652891842648387,
-0.05435407906770706,
-0.011635370552539825,
-0.035627614706754684,
-0.028209829702973366,
-0.0010645167203620076,
-0.006808018311858177,
-0.0010491125285625458,
0.03247513994574547,
0.02191832661628723,
-0.021666601300239563,
0.05191006138920784,
0.012707403860986233,
0.06841576844453812,
0.04789052531123161,
-0.02401934377849102,
0.030757484957575798,
-0.018266335129737854,
0.034112103283405304,
0.0025501633062958717,
-0.030844418331980705,
-0.0508602075278759,
-0.09980600327253342,
-0.046726975589990616,
0.02610771544277668,
-0.016626786440610886,
0.009869205765426159,
0.030240247026085854,
-0.04163650795817375,
-0.0020697505678981543,
-0.00947660207748413,
0.04041726887226105,
0.05553247034549713,
-0.04348800703883171,
0.058494046330451965,
0.017548372969031334,
0.018817584961652756,
-0.0562550388276577,
0.0012491444358602166,
-0.0562986321747303,
-0.018539108335971832,
-0.00316293234936893,
0.05074167251586914,
0.015323473140597343,
0.06420015543699265,
0.07160717248916626,
0.030277123674750328,
-0.02909291908144951,
0.04804430902004242,
0.06735386699438095,
-0.013827516697347164,
-0.04076121374964714,
-0.01500225905328989,
-0.009186617098748684,
-0.030699918046593666,
-0.009547099471092224,
-0.035433001816272736,
0.026481106877326965,
0.04782049357891083,
-0.008222697302699089,
-0.003992770798504353,
0.009216695092618465,
-0.04292051121592522,
-0.025713743641972542,
-0.071701280772686,
-0.004636112600564957,
-0.0017195171676576138,
-0.02070874534547329,
0.047587811946868896,
0.04682743549346924,
0.01501268707215786,
0.059927552938461304,
0.017376815900206566,
-0.03077881596982479,
-0.05072980374097824,
0.03481104224920273,
0.021270647644996643,
-0.04331325739622116,
-0.05129730701446533,
-0.04872504249215126,
0.03317998722195625,
0.04144174978137016,
-0.03148543834686279,
-0.08735468238592148,
0.013104042038321495,
0.05046267434954643,
-0.04252435639500618,
0.06206964701414108,
-0.0077109928242862225,
0.059472840279340744,
0.024900143966078758,
0.010800959542393684,
0.055578310042619705,
-0.0768112763762474,
0.02904115989804268,
-0.024430453777313232,
0.012370339594781399,
-0.055041756480932236,
-0.0519605353474617,
-0.06499772518873215,
0.03980176895856857,
0.01465588714927435,
0.014373721554875374,
0.013125949539244175,
-0.04448242485523224,
-0.03554452583193779,
-0.0035989985335618258,
0.035978738218545914,
-0.023363417014479637,
0.013612747192382812,
0.026437053456902504,
0.052419260144233704,
-0.06423324346542358,
-0.0058764745481312275,
0.0055733113549649715,
0.026552915573120117,
0.018969768658280373,
-0.00797867588698864,
-0.04074724391102791,
-0.002632622141391039,
0.02903885766863823,
-0.03830728307366371,
-0.03972743824124336,
-0.086213119328022,
0.023863112553954124,
-0.032619547098875046,
-0.03281983360648155,
0.07319813221693039,
0.06864646077156067,
0.057786185294389725,
0.07254599779844284,
-0.0003992159909103066,
0.05453071743249893,
-0.03571821376681328,
0.007090975064784288,
-0.03367968648672104,
-0.020332377403974533,
-0.013430598191916943,
-0.08045478910207748,
-0.029813237488269806,
-0.035200826823711395,
-0.03135430067777634,
-0.03135344013571739,
0.008154910057783127,
0.013202982023358345,
-0.02014881558716297,
0.0007350001251325011,
0.008210409432649612,
0.010233977809548378,
-0.02870035357773304,
-0.029975851997733116,
0.004727584309875965,
-0.016694076359272003,
-0.07885225117206573,
-0.05945591256022453,
0.012793696485459805,
-0.030682465061545372,
0.0008958899416029453,
0.001575579633936286,
0.02118164300918579,
0.048815302550792694,
-0.014413416385650635,
-0.022485824301838875,
0.018302785232663155,
0.027172891423106194,
-0.02530023269355297,
-0.021258404478430748,
0.01037767343223095,
0.02012176625430584,
0.029083145782351494,
-0.02819003351032734,
0.03286832198500633,
0.010925214737653732,
-0.0608326755464077,
-0.02109433338046074,
0.02194237895309925,
0.02429773472249508,
-0.0819043442606926,
-0.017498457804322243,
-0.03060157783329487,
-0.033701103180646896,
0.00880593340843916,
-0.050387345254421234,
-0.013060052879154682,
-0.015438518486917019,
0.033338386565446854,
0.03541272506117821,
-0.0015696065966039896,
-0.03724280744791031,
0.00411528255790472,
-0.0071745365858078,
0.01230060774832964,
-0.06944360584020615,
0.03575090691447258,
-0.03468259796500206,
0.012320921756327152,
-0.008663233369588852,
0.009930284693837166,
-0.04468723013997078,
0.04027543216943741,
-0.009960777126252651,
0.00364222121424973,
0.00596656184643507,
-0.022655287757515907,
0.0031999831553548574,
0.06315085291862488,
0.01593819260597229,
-0.005705625284463167,
-0.04466531053185463,
0.0764990970492363,
-0.040753915905952454,
0.00679726991802454,
0.005048470105975866,
-0.016969142481684685,
-0.033507175743579865,
0.0008304469520226121,
0.008448231965303421,
-0.06771498918533325,
0.01707865111529827,
0.04533345624804497,
0.02424396015703678,
0.03206520155072212,
-0.012082637287676334,
0.007824505679309368,
0.03343845531344414,
-0.052900634706020355,
-0.029773762449622154,
-0.0013444869546219707,
0.006108286790549755,
0.0224550012499094,
0.06236100569367409,
0.018670838326215744,
-0.06315402686595917,
-0.019260695204138756,
0.01731097139418125,
0.020068688318133354,
0.011080280877649784,
0.004135098308324814,
0.04545806348323822,
0.044320158660411835,
0.07055003196001053,
-0.012224574573338032,
0.004396796226501465,
0.022549299523234367,
-0.011567756533622742,
-0.026177965104579926,
-0.0038846097886562347,
-0.018816646188497543,
-0.002670484595000744,
-0.02815479226410389,
-0.03385436534881592,
0.06975496560335159,
-0.001584848272614181,
0.000701356097124517,
-0.012263014912605286,
-0.0440547913312912,
0.05574924498796463,
-0.0069339461624622345,
-0.04389103129506111,
-0.009160161018371582,
0.04558742418885231,
-0.020299842581152916,
0.03363709896802902,
-0.030486982315778732,
0.013490370474755764,
0.04908962547779083,
0.026106052100658417,
0.012425350025296211,
0.01026233658194542,
-0.013681508600711823,
-0.002480361144989729,
0.012917137704789639,
-0.049369972199201584,
-0.01657472923398018,
-0.031778063625097275,
0.06994927674531937,
-0.045053500682115555,
0.0654485896229744,
0.02818984165787697,
0.04970429092645645,
0.004701153840869665,
-0.03974849730730057,
-0.04205960035324097,
-0.02029215171933174,
-0.027909526601433754,
0.07560981810092926,
-0.01653832197189331,
-0.0497475229203701,
0.05739963799715042,
0.04028807953000069,
-0.08569607883691788,
0.03335615620017052,
0.04450322687625885,
0.038389820605516434,
0.03343270346522331,
0.05244961008429527,
-0.04985060542821884,
0.01968006044626236,
-0.03324844688177109,
0.012439271435141563,
-0.030443551018834114,
-0.011634507216513157,
-0.02091234177350998,
-0.042637329548597336,
0.0010691575007513165,
0.02836557663977146,
-0.028804801404476166,
0.009102537296712399,
0.01860600709915161,
-0.025006096810102463,
-0.06008683517575264,
-0.0077796392142772675,
0.041078832000494,
0.003781744511798024,
-0.010570996440947056,
-0.026734888553619385,
0.023581158369779587,
0.0394822396337986,
-0.008434142917394638,
-0.06962305307388306,
0.017164994031190872,
-0.002980013145133853,
-0.07199709862470627,
-0.0420202910900116,
0.058443766087293625,
0.02487908862531185,
-0.021511733531951904,
0.001149168238043785,
0.03895094618201256,
0.023712478578090668,
0.026831557974219322,
-0.010588125325739384,
-0.002697650110349059,
-0.07439597696065903,
-0.0008486439473927021,
0.015384969301521778,
0.015064703300595284,
0.0005285501247271895,
-0.007069030776619911,
0.034822676330804825,
0.09169265627861023,
0.04757403954863548,
0.010721332393586636,
-0.056616272777318954,
-0.029742266982793808,
0.00838959589600563,
-0.040565650910139084,
0.05317603051662445,
-0.0017451440216973424,
-0.06330683082342148,
-0.021849079057574272,
-0.031541891396045685,
-0.008777588605880737,
0.03209005668759346,
-0.024807356297969818,
0.022586103528738022,
0.019763369113206863,
-0.006059863138943911,
-0.035418227314949036,
-0.08160790055990219,
-0.05554831400513649,
-0.0018118098378181458,
0.02256777323782444,
0.028445839881896973,
-0.06315791606903076,
0.015461592935025692,
-0.021572040393948555,
0.0009451472433283925,
0.0695599615573883,
-0.017033571377396584,
-0.007210821378976107,
0.06685417890548706,
0.0655839815735817,
-0.05207144096493721,
0.06857705861330032,
0.03091694787144661,
-0.031955521553754807,
0.060477714985609055,
0.0038414651062339544,
0.02794700115919113,
0.006805953104048967,
0.01921091228723526,
-0.017099464312195778,
-0.011232726275920868,
-0.022237960249185562,
-0.025649400427937508,
0.005620849318802357,
-0.00626717135310173,
0.05675563961267471
] |
CyberMuffin/DialoGPT-small-ChandlerBot | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 9 | null | ---
tags:
- conversational
---
# Chandler Bot DialoGPT model | [
-0.04403332620859146,
0.019270170480012894,
0.009445112198591232,
0.03499000892043114,
0.02521936595439911,
0.01693403720855713,
-0.012815504334867,
0.016955949366092682,
-0.01465130690485239,
0.01691165380179882,
0.035869497805833817,
-0.02683061733841896,
0.013609603978693485,
0.03344103693962097,
-0.043206751346588135,
-0.013050355948507786,
-0.029775476083159447,
-0.01063051912933588,
-0.018393436446785927,
-0.029139429330825806,
0.022257618606090546,
-0.0006566260126419365,
-0.017932049930095673,
0.010666978545486927,
-0.0008921536500565708,
0.02674061246216297,
-0.0031033509876579046,
0.015188477002084255,
0.019482657313346863,
-0.023813024163246155,
0.01608569361269474,
-0.04874057322740555,
-0.026471592485904694,
-0.01982303149998188,
-0.02978542074561119,
-0.03340180963277817,
0.02777647040784359,
-0.010474402457475662,
-0.011004654690623283,
0.03845318406820297,
-0.021757835522294044,
-0.029432576149702072,
0.018996000289916992,
-0.0340009480714798,
0.07924049347639084,
0.00794223416596651,
-0.041552335023880005,
0.0013035801239311695,
0.020083896815776825,
-0.02420511655509472,
-0.03259984403848648,
-0.0561215840280056,
-0.06076137721538544,
-0.016638098284602165,
0.0073090833611786366,
-0.06252513825893402,
-0.06162697449326515,
-0.02794964425265789,
0.1045047789812088,
-0.012600027956068516,
-0.018513934686779976,
0.0007285667234100401,
-0.06557519733905792,
-0.0004066961701028049,
0.02674245834350586,
-0.06494097411632538,
0.018144741654396057,
-0.056346792727708817,
0.008321906439960003,
-0.03653845191001892,
0.06017650291323662,
-0.03749671205878258,
0.01776156760752201,
-0.07148110866546631,
-0.008950956165790558,
-0.00793392863124609,
0.05143339931964874,
0.06858986616134644,
-0.032655272632837296,
0.0456165075302124,
0.042369544506073,
0.008505605161190033,
0.0762711688876152,
-0.006177210249006748,
-0.02634926699101925,
0.04319753497838974,
-0.06122041866183281,
-0.0037428352516144514,
0.00045591319212689996,
0.024658365175127983,
-0.0376446507871151,
-0.06542504578828812,
-0.03411223366856575,
-0.0026708554942160845,
0.006497637834399939,
0.042737893760204315,
0.036704543977975845,
-0.031216787174344063,
0.02017449401319027,
0.04457016661763191,
0.02029889076948166,
0.045037686824798584,
-0.019374853000044823,
0.044683925807476044,
-0.0030639588367193937,
0.015432612970471382,
0.011984097771346569,
-0.0218252781778574,
-0.05881774052977562,
0.027138182893395424,
0.0025799742434173822,
-0.05526551231741905,
-0.025500265881419182,
0.04526571184396744,
0.013374889269471169,
-0.008589333854615688,
0.053973399102687836,
-0.03663771599531174,
-0.02332875318825245,
-0.05288957804441452,
0.06139771267771721,
-0.012150595895946026,
-0.005968161858618259,
-0.0034765005111694336,
-0.04526848345994949,
-0.00019152768072672188,
-0.03894609212875366,
-0.01772552914917469,
0.009297733195126057,
0.0024432174395769835,
0.022201281040906906,
0.04273253306746483,
-0.04589806869626045,
-0.060025542974472046,
-0.0026339166797697544,
0.0514528825879097,
-0.06292549520730972,
0.009321002289652824,
0.03276226669549942,
0.10260247439146042,
-0.08175940066576004,
-0.03805577754974365,
-0.0046819825656712055,
0.02117796055972576,
-0.03425166755914688,
-0.011968940496444702,
0.0044855778105556965,
0.007750578224658966,
-0.04401816427707672,
-0.01708459109067917,
0.03968028351664543,
-0.057756755501031876,
-0.008207673206925392,
0.04603149741888046,
0.012190531007945538,
0.034079182893037796,
-0.026995643973350525,
0.0015058622229844332,
-0.00042230033432133496,
-0.03559349477291107,
-0.07497534900903702,
0.03571762889623642,
-0.013894209638237953,
-0.039386264979839325,
-0.031338080763816833,
-0.032901741564273834,
0.007301578763872385,
0.08309263736009598,
0.015023763291537762,
-0.023840568959712982,
-0.016993310302495956,
0.03867344558238983,
0.06233906000852585,
0.039938926696777344,
-0.022271376103162766,
0.02722536399960518,
0.062408119440078735,
0.017949197441339493,
-0.03411151096224785,
0.06071591377258301,
0.010950762778520584,
-0.03208155184984207,
-0.02872719243168831,
-0.029277246445417404,
0.027119936421513557,
-0.025856081396341324,
0.024701695889234543,
0.049841348081827164,
-0.043517161160707474,
-0.04237999767065048,
0.014048418961465359,
0.045342061668634415,
-0.02040443755686283,
0.006902611348778009,
-0.024771712720394135,
-0.023887870833277702,
-0.027056962251663208,
0.032235220074653625,
-0.031048016622662544,
-0.011040516197681427,
-0.027050599455833435,
-0.011661918833851814,
0.02877800725400448,
-0.009825833141803741,
0.018542669713497162,
0.04552580788731575,
-0.02147887833416462,
0.06017153710126877,
-0.04613126441836357,
0.02389262057840824,
-0.04328974336385727,
-0.014549381099641323,
-0.014750764705240726,
0.04223234951496124,
0.00768702570348978,
0.04757251217961311,
-0.0463235005736351,
-0.05720970034599304,
0.03784196823835373,
0.042605433613061905,
0.042660702019929886,
0.0200793519616127,
-0.023538649082183838,
-0.004896268714219332,
0.013388634659349918,
0.04236388951539993,
-0.04448571056127548,
-0.0027427994646131992,
0.006230886559933424,
0.020750172436237335,
-0.02561859041452408,
-0.02417195402085781,
-0.044066086411476135,
-0.00022274085495155305,
-0.05045121908187866,
-0.06753028184175491,
0.053195204585790634,
0.026750406250357628,
0.012470983900129795,
0.03411554545164108,
0.00271535012871027,
-0.02460300363600254,
0.038341086357831955,
0.0096324123442173,
-0.0067327613942325115,
-0.09978216141462326,
0.001172975287772715,
0.04716387763619423,
0.07515207678079605,
-0.042566053569316864,
0.018258744850754738,
0.02642728202044964,
0.01555592194199562,
0.02199842780828476,
-0.019184164702892303,
0.044184546917676926,
0.045293956995010376,
0.04488620534539223,
-0.018147796392440796,
0.040982674807310104,
-0.0065032001584768295,
0.026621831580996513,
0.05075787752866745,
-0.013977027498185635,
0.07158494740724564,
-0.015987887978553772,
0.02161409892141819,
0.06002058833837509,
0.02583111636340618,
0.0031481583137065172,
0.01177988387644291,
0.07679329067468643,
-0.0008405525586567819,
0.04097696766257286,
0.049614109098911285,
-0.007543568033725023,
0.006309029646217823,
-0.05772202089428902,
-0.012745676562190056,
0.00024711922742426395,
-0.0401870533823967,
0.06649515777826309,
0.010697741992771626,
-0.0174334067851305,
-0.002637153957039118,
-0.011371801607310772,
0.0017502295086160302,
0.059308040887117386,
0.0030481028370559216,
-0.03326191380620003,
0.0024931752122938633,
-0.027116505429148674,
0.026407016441226006,
-0.06040305271744728,
-0.03083040937781334,
-0.024864817038178444,
-0.04855291545391083,
-0.012173200957477093,
-0.09171729534864426,
-0.04508672282099724,
-0.05668032541871071,
-0.022431597113609314,
0.05418785288929939,
0.0167048629373312,
0.015608490444719791,
-0.005481583531945944,
0.013346768915653229,
-0.02067803032696247,
-0.05835620313882828,
-0.05509026348590851,
-0.02496717870235443,
-0.013095689006149769,
-0.03579861298203468,
0.04017644375562668,
0.04361623898148537,
0.044566236436367035,
-0.013455868698656559,
-0.02837884984910488,
-0.059100329875946045,
-0.01941104047000408,
0.051156990230083466,
0.02083776146173477,
-0.041336894035339355,
-0.04576929658651352,
0.018151814118027687,
0.00928516872227192,
-0.002270682482048869,
-0.015915876254439354,
-0.04642937332391739,
0.07225525379180908,
0.049848295748233795,
-0.014048994518816471,
0.018672458827495575,
-0.014018869027495384,
-0.03467623144388199,
-0.02891392447054386,
-0.04992716386914253,
-0.030748337507247925,
-0.008969657123088837,
-0.026479283347725868,
-0.04182254895567894,
-0.028976067900657654,
-0.05473940819501877,
-0.018531758338212967,
-0.0030507424380630255,
0.009413450956344604,
0.02302887849509716,
0.031719841063022614,
0.026826664805412292,
0.023317428305745125,
-0.014203816652297974,
-0.008934074081480503,
0.0477888286113739,
-0.03459533303976059,
-0.010077745653688908,
-0.06877977401018143,
-0.03297962620854378,
0.04106131196022034,
0.009256038814783096,
0.0028395347762852907,
-0.01685602217912674,
0.026447465643286705,
0.041498176753520966,
-0.00223540049046278,
0.030757121741771698,
-0.07235714793205261,
0.0023869636934250593,
-0.04567187651991844,
-0.03964976593852043,
-0.04527970403432846,
-0.036204684525728226,
-0.01647448167204857,
-0.010777108371257782,
0.031703319400548935,
-0.08134420961141586,
-0.02553560771048069,
-0.01868484355509281,
0.009031412191689014,
0.052242789417505264,
-0.0032194540835916996,
-0.057123299688100815,
-0.00612659053876996,
-0.022607356309890747,
-0.013979583978652954,
0.01361020840704441,
-0.016115425154566765,
0.007292661815881729,
0.02533997967839241,
0.025074908509850502,
-0.003758670063689351,
0.052355945110321045,
0.010360063053667545,
0.05948156863451004,
0.050116702914237976,
-0.030745364725589752,
0.014391287229955196,
-0.026626264676451683,
0.0350964292883873,
-0.0035427664406597614,
-0.03964799642562866,
-0.028494054451584816,
-0.10851792991161346,
-0.041113823652267456,
0.02429908700287342,
-0.02735208347439766,
0.008212319575250149,
0.037314802408218384,
-0.049372609704732895,
-0.011504068039357662,
-0.005501023959368467,
0.0406552329659462,
0.0428067222237587,
-0.028988920152187347,
0.07017897069454193,
0.017670240253210068,
0.031820863485336304,
-0.05048093944787979,
-0.017936130985617638,
-0.060540731996297836,
-0.00879376009106636,
-0.0013168512377887964,
0.04676854610443115,
0.020864004269242287,
0.06239877641201019,
0.08330834656953812,
0.046717170625925064,
-0.04351414740085602,
0.0542752631008625,
0.07158626616001129,
-0.0166145209223032,
-0.03259270638227463,
-0.0026990610640496016,
-0.011068395338952541,
-0.020684892311692238,
-0.011331879533827305,
-0.036409202963113785,
0.024621644988656044,
0.043169643729925156,
-0.007456849794834852,
0.010551629588007927,
0.009793226607143879,
-0.03450562432408333,
-0.016069810837507248,
-0.07634634524583817,
-0.01736626587808132,
-0.010099626146256924,
-0.010604886338114738,
0.04858606681227684,
0.03873534873127937,
0.023558346554636955,
0.06914027780294418,
0.011361880227923393,
-0.013864430598914623,
-0.04132525250315666,
0.03774053603410721,
0.030799176543951035,
-0.032838400453329086,
-0.052990783005952835,
-0.04333382472395897,
0.017770487815141678,
0.03470991924405098,
-0.03494506701827049,
-0.07875509560108185,
0.005740917753428221,
0.047942303121089935,
-0.02998574636876583,
0.06151267886161804,
-0.006148010026663542,
0.037686415016651154,
0.030026767402887344,
0.010378428734838963,
0.053267352283000946,
-0.0699727013707161,
0.017769094556570053,
-0.018769629299640656,
0.010410672053694725,
-0.05024084076285362,
-0.06253194808959961,
-0.06021212786436081,
0.02556973323225975,
0.03000159189105034,
0.015760233625769615,
0.019753839820623398,
-0.04046781361103058,
-0.04477529972791672,
-0.0019457496237009764,
0.03714226186275482,
-0.012096193619072437,
0.01193175558000803,
0.027948766946792603,
0.05763495713472366,
-0.061876583844423294,
-0.002071137772873044,
0.019894614815711975,
0.013181204907596111,
0.02504509501159191,
-0.010429426096379757,
-0.03286457061767578,
-0.019788432866334915,
0.027966555207967758,
-0.03660804405808449,
-0.005641050636768341,
-0.08240438997745514,
0.026602521538734436,
-0.021614504978060722,
-0.030121268704533577,
0.06816711276769638,
0.06566280871629715,
0.06636251509189606,
0.06597711145877838,
-0.01583978533744812,
0.04265682026743889,
-0.02778642438352108,
0.012646795250475407,
-0.0415804497897625,
-0.038839634507894516,
-0.0005676087457686663,
-0.08462264388799667,
-0.019470147788524628,
-0.03688932582736015,
-0.0348692387342453,
-0.03360715135931969,
0.007788632530719042,
0.011092969216406345,
-0.017292004078626633,
-0.011687561869621277,
0.0129594337195158,
0.012454391457140446,
-0.029925484210252762,
-0.023638157173991203,
-0.016342807561159134,
-0.012333691120147705,
-0.07150678336620331,
-0.06215228512883186,
0.008107198402285576,
-0.04022087901830673,
0.003306895960122347,
-0.00346308178268373,
0.017838764935731888,
0.04778246209025383,
-0.008102972991764545,
-0.027696674689650536,
0.020844031125307083,
0.03178916871547699,
-0.027367647737264633,
-0.01306468341499567,
0.012213589623570442,
0.0159719530493021,
0.019250668585300446,
-0.017789144068956375,
0.03200999274849892,
0.010834664106369019,
-0.05129743739962578,
-0.029445292428135872,
0.039911117404699326,
0.011482668109238148,
-0.0733688473701477,
-0.006558189168572426,
-0.03504651039838791,
-0.03066685050725937,
0.025222282856702805,
-0.0493965707719326,
-0.03266923874616623,
-0.014199275523424149,
0.04645635932683945,
0.026974676176905632,
-0.005503201857209206,
-0.028757596388459206,
-0.004912733566015959,
-0.01727288030087948,
0.01235396508127451,
-0.053150683641433716,
0.020142046734690666,
-0.03503132984042168,
0.0030439470428973436,
-0.010464015416800976,
0.019913258031010628,
-0.02738446183502674,
0.05176357552409172,
-0.018823467195034027,
-0.012526179663836956,
0.0036611815448850393,
-0.006596613209694624,
-0.0017022390384227037,
0.046735916286706924,
0.005930048879235983,
0.01551656611263752,
-0.04974760487675667,
0.0700397714972496,
-0.055688243359327316,
0.015459507703781128,
-0.009649471379816532,
-0.021346552297472954,
-0.02125091291964054,
0.00570830050855875,
0.013211507350206375,
-0.05181867629289627,
0.028417393565177917,
0.023165054619312286,
0.03558021038770676,
0.03954482823610306,
-0.0029199642594903708,
0.002431676024571061,
0.017087170854210854,
-0.05880722776055336,
-0.028059644624590874,
-0.004258439410477877,
0.015321990475058556,
0.018183941021561623,
0.05997983366250992,
0.032060589641332626,
-0.054427940398454666,
-0.024494120851159096,
0.02174215205013752,
0.014608965255320072,
0.012790885753929615,
0.006624222733080387,
0.035069916397333145,
0.05902276188135147,
0.04948750138282776,
0.0014080883702263236,
-0.01247351337224245,
0.03182052820920944,
-0.00881144404411316,
-0.014162755571305752,
-0.005189972463995218,
0.0033653206191956997,
-0.0012884328607469797,
-0.036100149154663086,
-0.034101467579603195,
0.06003813445568085,
-0.01707032322883606,
-0.0066625396721065044,
-0.017322378233075142,
-0.04613666608929634,
0.04995820298790932,
-0.014638167805969715,
-0.042885635048151016,
-0.008597439154982567,
0.025607094168663025,
-0.022438272833824158,
0.040634747594594955,
-0.019851697608828545,
0.01349613070487976,
0.05391735956072807,
0.02789967507123947,
0.009081060998141766,
0.017933737486600876,
-0.020326461642980576,
0.015144423581659794,
0.01029532216489315,
-0.05045631527900696,
-0.016734855249524117,
-0.03261203691363335,
0.07482495903968811,
-0.044371746480464935,
0.060995735228061676,
0.027676241472363472,
0.05064060911536217,
0.018783366307616234,
-0.05484633892774582,
-0.028509870171546936,
-0.035389408469200134,
-0.03270050883293152,
0.06632277369499207,
-0.011501419357955456,
-0.04647177830338478,
0.06855906546115875,
0.04996897280216217,
-0.07230093330144882,
0.03664189577102661,
0.038538094609975815,
0.03901979327201843,
0.017697034403681755,
0.03581353276968002,
-0.04411381110548973,
0.0145814074203372,
-0.027371898293495178,
0.0018215985037386417,
-0.038195956498384476,
-0.00791778415441513,
-0.02273811772465706,
-0.05463879927992821,
-0.003600451396778226,
0.023443419486284256,
-0.02231837809085846,
0.01040959544479847,
0.013226400129497051,
-0.02477065660059452,
-0.053513895720243454,
0.0030326638370752335,
0.012327836826443672,
-0.015398180112242699,
-0.0029709101654589176,
-0.021748481318354607,
0.013044916093349457,
0.040956009179353714,
-0.012478173710405827,
-0.05562549829483032,
0.00537150539457798,
-0.0021667596884071827,
-0.0702742263674736,
-0.050900641828775406,
0.07521871477365494,
0.01376568153500557,
-0.005185745190829039,
-0.008940290659666061,
0.02278006449341774,
0.02667137049138546,
0.019577493891119957,
0.0017428862629458308,
-0.000293660064926371,
-0.06885190308094025,
0.0077334679663181305,
0.03186244145035744,
-0.0014779596822336316,
0.010734140872955322,
-0.0038136602379381657,
0.039815597236156464,
0.09068194776773453,
0.03836486116051674,
0.003916738089174032,
-0.05394904688000679,
-0.031861163675785065,
0.005243313033133745,
-0.033232346177101135,
0.04212278500199318,
-0.0008724213694222271,
-0.0511409193277359,
-0.03136094659566879,
-0.03224217891693115,
0.026155687868595123,
0.03905452415347099,
-0.034834060817956924,
0.024423588067293167,
0.046811074018478394,
0.004925837740302086,
-0.030284743756055832,
-0.10027575492858887,
-0.0399475023150444,
-0.01690787449479103,
0.03366561979055405,
0.03972431644797325,
-0.06461047381162643,
0.01261595357209444,
-0.03420335799455643,
-0.0077369324862957,
0.059899669140577316,
-0.0017562705324962735,
-0.015887515619397163,
0.05584956705570221,
0.06478403508663177,
-0.0362912118434906,
0.052914656698703766,
0.026714885607361794,
-0.030053114518523216,
0.04765651747584343,
0.0028413773979991674,
0.0284903384745121,
0.02179882861673832,
0.02976546809077263,
-0.025600912049412727,
-0.008790894411504269,
-0.016376245766878128,
-0.0321144163608551,
-0.005972772371023893,
-0.00016402002074755728,
0.05354080721735954
] |
D3xter1922/electra-base-discriminator-finetuned-cola | [
"pytorch",
"tensorboard",
"electra",
"text-classification",
"dataset:glue",
"transformers",
"generated_from_trainer",
"license:apache-2.0",
"model-index"
] | text-classification | {
"architectures": [
"ElectraForSequenceClassification"
],
"model_type": "electra",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 68 | null | ---
license: apache-2.0
tags:
- generated_from_trainer
datasets:
- glue
metrics:
- matthews_correlation
model-index:
- name: electra-base-discriminator-finetuned-cola
results:
- task:
name: Text Classification
type: text-classification
dataset:
name: glue
type: glue
args: cola
metrics:
- name: Matthews Correlation
type: matthews_correlation
value: 0.6824089073723449
---
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# electra-base-discriminator-finetuned-cola
This model is a fine-tuned version of [google/electra-base-discriminator](https://huggingface.co/google/electra-base-discriminator) on the glue dataset.
It achieves the following results on the evaluation set:
- Loss: 0.6367
- Matthews Correlation: 0.6824
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 5
### Training results
| Training Loss | Epoch | Step | Validation Loss | Matthews Correlation |
|:-------------:|:-----:|:----:|:---------------:|:--------------------:|
| 0.4139 | 1.0 | 535 | 0.4137 | 0.6381 |
| 0.2452 | 2.0 | 1070 | 0.4887 | 0.6504 |
| 0.17 | 3.0 | 1605 | 0.5335 | 0.6757 |
| 0.1135 | 4.0 | 2140 | 0.6367 | 0.6824 |
| 0.0817 | 5.0 | 2675 | 0.6742 | 0.6755 |
### Framework versions
- Transformers 4.15.0
- Pytorch 1.10.0+cu111
- Datasets 1.17.0
- Tokenizers 0.10.3
| [
-0.03114551492035389,
0.005954730790108442,
0.0026762427296489477,
0.025295395404100418,
0.05516350269317627,
0.03348400443792343,
-0.026413723826408386,
-0.010371626354753971,
-0.05146178603172302,
0.0474366620182991,
0.038422200828790665,
-0.0036929610650986433,
0.01969101093709469,
0.02737237885594368,
-0.03807631880044937,
-0.015059693716466427,
-0.029455343261361122,
-0.01851094886660576,
-0.022167058661580086,
-0.017102906480431557,
-0.002830516779795289,
-0.017254650592803955,
-0.013768362812697887,
0.013033749535679817,
-0.021414147689938545,
0.007404247298836708,
-0.015045451931655407,
0.013309819623827934,
0.05103021487593651,
-0.05502929165959358,
0.0048104384914040565,
-0.07685864716768265,
-0.036803290247917175,
-0.01928628236055374,
-0.014069133438169956,
0.002999535296112299,
0.009858054108917713,
0.00803614966571331,
0.018170155584812164,
0.06080939993262291,
0.00014752609422430396,
0.006446124520152807,
-0.01046820729970932,
-0.03726990148425102,
0.04915214329957962,
0.0007450334378518164,
-0.023474792018532753,
-0.01898750476539135,
0.03301399201154709,
-0.013751997612416744,
-0.06300710886716843,
-0.059437260031700134,
-0.027623211964964867,
0.020760679617524147,
-0.015348694287240505,
-0.026374749839305878,
-0.05071058124303818,
0.023951886221766472,
0.042200300842523575,
-0.038665708154439926,
-0.03845173120498657,
0.03664024919271469,
-0.07068470120429993,
0.007301335223019123,
0.02194095030426979,
-0.03740483894944191,
-0.008393512107431889,
-0.03602943941950798,
0.02738068625330925,
-0.017789317294955254,
0.07235155254602432,
-0.017917955294251442,
0.03583141043782234,
-0.07056151330471039,
-0.021790089085698128,
0.0033014200162142515,
0.010008706711232662,
0.04371211305260658,
-0.03649921715259552,
0.04336611554026604,
0.038110990077257156,
0.0030122376047074795,
0.03171398863196373,
-0.012533972039818764,
0.00748865632340312,
0.005130752921104431,
-0.06157251074910164,
0.0063066864386200905,
0.053797390311956406,
0.018614789471030235,
-0.03678031265735626,
-0.04347439110279083,
-0.04016666114330292,
-0.03360681235790253,
0.0021990628447383642,
0.03620627894997597,
0.02399265207350254,
0.0040501756593585014,
0.04981386661529541,
0.017354393377900124,
0.02815353125333786,
0.029396524652838707,
-0.04092525318264961,
0.06568332016468048,
-0.023860028013586998,
-0.005125930067151785,
0.0020361801143735647,
-0.005985547322779894,
-0.04891552776098251,
0.010656841099262238,
0.02071874774992466,
-0.01217369269579649,
-0.040964044630527496,
0.050272319465875626,
-0.008013472892343998,
-0.009910066612064838,
0.051401328295469284,
-0.03755069524049759,
-0.03985144570469856,
-0.046154316514730453,
0.04648572579026222,
0.02242717519402504,
0.015126446262001991,
0.006028041709214449,
-0.03574734553694725,
-0.001580893760547042,
-0.006163555663079023,
-0.040778983384370804,
-0.0397581122815609,
0.013573751784861088,
0.005807796027511358,
0.06103641912341118,
0.007099110633134842,
-0.056996285915374756,
0.0005433038459159434,
0.0271149892359972,
-0.04556294158101082,
0.045825570821762085,
0.03401757776737213,
0.12445349991321564,
-0.07188700884580612,
-0.05199335142970085,
0.023289212957024574,
0.02269008755683899,
-0.02208789810538292,
0.024234551936388016,
-0.005551446694880724,
-0.04311640188097954,
-0.012794461101293564,
-0.004153035115450621,
0.05767221376299858,
-0.060869358479976654,
-0.0034917613957077265,
0.08185529708862305,
-0.01073102280497551,
0.025979822501540184,
-0.04146280139684677,
-0.012682911939918995,
0.004504023119807243,
-0.018931718543171883,
-0.015179107896983624,
0.02362053096294403,
0.006780671421438456,
-0.008533244021236897,
-0.03885295242071152,
-0.0513375923037529,
-0.014887915924191475,
0.10624098032712936,
-0.0073984358459711075,
-0.025056878104805946,
-0.02796807512640953,
0.02544482611119747,
0.06460670381784439,
0.02247215248644352,
-0.03825110197067261,
0.046752750873565674,
0.07512644678354263,
0.03785880282521248,
-0.025399168953299522,
0.024637628346681595,
0.01704505644738674,
-0.0021721681114286184,
-0.04709891602396965,
0.0022881701588630676,
-0.010059639811515808,
-0.05752312391996384,
0.028899425640702248,
-0.009323607198894024,
0.024288931861519814,
-0.05174923315644264,
-0.0568070188164711,
0.06772196292877197,
-0.010741407051682472,
-0.009280594065785408,
-0.0035828175023198128,
-0.01048059482127428,
-0.05564434826374054,
0.040001749992370605,
-0.01667100377380848,
0.010845845565199852,
-0.027762243524193764,
-0.05687476322054863,
0.046553079038858414,
-0.014703094027936459,
0.01643148995935917,
0.044387489557266235,
0.0029493540059775114,
0.08211645483970642,
-0.03793158382177353,
0.015573793090879917,
-0.04114767909049988,
-0.044409073889255524,
0.008758550509810448,
0.05142892152070999,
0.04309587553143501,
0.06330718100070953,
-0.004023255780339241,
-0.03066912479698658,
0.023708174005150795,
0.06141503155231476,
0.02995331399142742,
0.004980545025318861,
-0.025650260969996452,
-0.014481031335890293,
0.030763883143663406,
0.04732256755232811,
-0.06313468515872955,
-0.02434494160115719,
0.026452435180544853,
0.042595550417900085,
-0.0017163895536214113,
0.010100065730512142,
-0.017993414774537086,
0.031783927232027054,
-0.06467518955469131,
-0.054734256118535995,
0.04064004495739937,
0.01723642088472843,
-0.004815042018890381,
-0.0016356045380234718,
-0.0073179989121854305,
-0.0026432930026203394,
0.017179572954773903,
0.02043175883591175,
0.004615888465195894,
-0.06722798943519592,
0.021736524999141693,
0.03394346311688423,
0.04610482603311539,
-0.05527380481362343,
0.04971165582537651,
-0.022981826215982437,
0.004118966404348612,
0.03255696967244148,
-0.04556829109787941,
0.040253110229969025,
0.054605916142463684,
0.02146150730550289,
-0.008691494353115559,
0.01706579141318798,
0.022718939930200577,
0.024806465953588486,
0.006699159275740385,
-0.0008914102800190449,
0.07599081844091415,
-0.020106878131628036,
0.04649852216243744,
0.07684537023305893,
0.010781067423522472,
0.02066982164978981,
0.043374523520469666,
0.0816255584359169,
0.027755720540881157,
-0.010526863858103752,
0.0406026653945446,
-0.07815591990947723,
0.032051295042037964,
-0.035092469304800034,
0.004292084835469723,
-0.03393450379371643,
0.0074995229952037334,
0.05744122341275215,
0.043588921427726746,
-0.008224970661103725,
0.002119646407663822,
0.017283525317907333,
-0.00995208416134119,
0.02369554527103901,
-0.009064455516636372,
-0.0035316278226673603,
-0.03508579730987549,
0.002474893582984805,
-0.02053050510585308,
-0.06732894480228424,
-0.04235826060175896,
-0.0006838843110017478,
-0.0365634560585022,
-0.02759394980967045,
-0.08201082795858383,
-0.01951783150434494,
-0.08252660185098648,
-0.03360734507441521,
0.041472017765045166,
0.016447851434350014,
0.008439293131232262,
-0.04284913092851639,
-0.01541891135275364,
-0.045575741678476334,
-0.050422005355358124,
-0.04848923161625862,
-0.04514124244451523,
-0.05790835618972778,
-0.05362032726407051,
0.04294987767934799,
0.03535795211791992,
0.02812296897172928,
-0.0029648924246430397,
0.013947384431958199,
-0.010411121882498264,
-0.0271545872092247,
0.042045436799526215,
0.05714435502886772,
-0.024134498089551926,
-0.028411492705345154,
0.0325588583946228,
-0.016331711784005165,
0.0036636358126997948,
-0.0066733392886817455,
-0.038433510810136795,
0.0858088955283165,
0.05545385554432869,
0.023291921243071556,
-0.0029415932949632406,
0.0035579942632466555,
-0.05345790833234787,
-0.048833999782800674,
-0.031038349494338036,
-0.04426862671971321,
-0.012487680651247501,
-0.06186910718679428,
-0.031815361231565475,
-0.0224599726498127,
-0.04233473539352417,
0.00016512513684574515,
-0.007789944298565388,
-0.011046069674193859,
0.011728794313967228,
0.025240477174520493,
0.023591142147779465,
0.02146172523498535,
-0.02023693174123764,
-0.04278320074081421,
0.03535591438412666,
0.02277781441807747,
0.0019577040802687407,
-0.0820344015955925,
-0.023152437061071396,
0.030837759375572205,
-0.0002967224863823503,
-0.011846939101815224,
-0.022081805393099785,
0.07123889774084091,
0.02102472633123398,
0.0013589819427579641,
0.017700882628560066,
-0.04378412291407585,
-0.000985765247605741,
-0.004621312487870455,
-0.0011319750919938087,
-0.003546625841408968,
-0.031179849058389664,
-0.021289492025971413,
-0.00926740001887083,
0.05309059098362923,
-0.08172464370727539,
-0.048167649656534195,
-0.007789527997374535,
0.03367708623409271,
0.0754818320274353,
0.006323289591819048,
-0.03178951516747475,
-0.0053869285620749,
-0.05311312898993492,
-0.011993909254670143,
0.044480692595243454,
0.024681927636265755,
-0.003017148934304714,
0.0466286726295948,
0.021918049082159996,
-0.015180778689682484,
0.03899327293038368,
0.02838040702044964,
0.05820287764072418,
0.021623877808451653,
-0.046661633998155594,
0.011014622636139393,
-0.023383134976029396,
0.03698575496673584,
-0.022253554314374924,
-0.004024254158139229,
-0.028741762042045593,
-0.09466684609651566,
-0.026246536523103714,
0.0026645793113857508,
-0.0054530855268239975,
-0.024988370016217232,
0.022675635293126106,
-0.013867768459022045,
-0.009723047725856304,
-0.007015031762421131,
0.023325279355049133,
0.03228972479701042,
-0.026450354605913162,
0.07985198497772217,
-0.0029832785949110985,
0.011918445117771626,
-0.06485539674758911,
-0.0005133356316946447,
-0.035728923976421356,
-0.0299523938447237,
0.022048095241189003,
0.037906598299741745,
-0.02249513566493988,
0.05690174922347069,
0.05955220386385918,
0.027043353766202927,
-0.03224501758813858,
0.04874061793088913,
0.06727337092161179,
-0.030347738415002823,
-0.060038063675165176,
-0.004869353026151657,
0.002290125470608473,
-0.025225365534424782,
-0.0022626176942139864,
-0.03333413228392601,
0.05613816902041435,
0.05548675358295441,
-0.004285110626369715,
-0.007454667240381241,
-0.005895203445106745,
-0.012229242362082005,
-0.034555982798337936,
-0.07769627124071121,
-0.04792390763759613,
-0.013608263805508614,
-0.03397683799266815,
0.006667480804026127,
0.06828716397285461,
0.02986942231655121,
0.05971229448914528,
0.039476439356803894,
-0.03152022883296013,
-0.014447515830397606,
0.01901313289999962,
0.017323344945907593,
-0.03022599220275879,
-0.07010757923126221,
-0.04726963862776756,
0.03528060391545296,
0.03293940797448158,
0.008765366859734058,
-0.058861929923295975,
0.007909794338047504,
0.040402114391326904,
-0.04335486888885498,
0.04202691465616226,
0.02382679656147957,
0.035157281905412674,
0.06988653540611267,
-0.002631773939356208,
0.04210490360856056,
-0.03837483748793602,
-0.006427041720598936,
-0.0026217910926789045,
0.030788278207182884,
-0.015391305088996887,
-0.04241187125444412,
-0.03421259671449661,
0.029447834938764572,
0.06084819138050079,
0.042358413338661194,
0.024607354775071144,
-0.009072591550648212,
-0.0454983189702034,
-0.005690240301191807,
0.03820093348622322,
-0.03641388565301895,
0.002365236869081855,
0.03838784620165825,
0.032563209533691406,
-0.060516078025102615,
-0.03138851374387741,
-0.02825823798775673,
-0.018581777811050415,
0.002714709844440222,
0.009004302322864532,
-0.042240507900714874,
-0.058974407613277435,
0.03819844499230385,
0.02058272622525692,
-0.024017203599214554,
-0.08789050579071045,
0.05055432394146919,
-0.007000572048127651,
-0.016055835410952568,
0.04445578530430794,
0.02233506552875042,
0.04069545865058899,
0.056476037949323654,
0.028015105053782463,
0.01327795535326004,
-0.021374300122261047,
0.0388614684343338,
-0.03526751324534416,
-0.013464286923408508,
0.005354196764528751,
-0.0564628541469574,
-0.0345904566347599,
-0.012363757006824017,
-0.030227504670619965,
-0.04554115980863571,
-0.03844403848052025,
0.019728388637304306,
-0.00752134108915925,
-0.02896592952311039,
-0.012642051093280315,
0.03085876815021038,
-0.014865165576338768,
-0.020549627020955086,
-0.04812680184841156,
-0.03443123400211334,
-0.08004484325647354,
-0.05700474977493286,
0.02927912399172783,
-0.012718565762043,
0.036151472479104996,
0.014978118240833282,
0.006452267523854971,
0.010646538808941841,
0.006480798590928316,
-0.02360955812036991,
0.017577799037098885,
-0.009553756564855576,
-0.02910168655216694,
-0.03027474321424961,
0.005738334730267525,
0.018928242847323418,
0.03552038222551346,
-0.009482277557253838,
0.027241652831435204,
-0.0016819395823404193,
-0.008285515010356903,
0.0005313809961080551,
0.02956264466047287,
0.013944564387202263,
-0.053050607442855835,
-0.044531311839818954,
-0.011973008513450623,
-0.03985919803380966,
0.023596854880452156,
-0.026064211502671242,
-0.014462826773524284,
0.00694027217105031,
0.016719136387109756,
0.03492224961519241,
0.0064152381382882595,
-0.01069596130400896,
0.0026261168532073498,
-0.032774917781353,
0.03924330323934555,
-0.04121851176023483,
0.04488221928477287,
-0.04428575187921524,
0.012811391614377499,
-0.03556514158844948,
0.019826192408800125,
-0.04179656505584717,
0.05551164597272873,
-0.010621394030749798,
-0.014528082683682442,
0.008653976954519749,
0.06469330936670303,
-0.04874354228377342,
0.02544824779033661,
0.0014726880472153425,
0.03426751121878624,
-0.035246558487415314,
0.051985058933496475,
-0.05151601508259773,
-0.0035531523171812296,
-0.03554874658584595,
0.009252571500837803,
-0.03846240043640137,
0.0004616443475242704,
-0.03566185384988785,
-0.030956357717514038,
0.024726608768105507,
0.03478088229894638,
0.025111200287938118,
0.039715059101581573,
-0.008091033436357975,
0.0030542267486453056,
0.0142555246129632,
-0.040735628455877304,
-0.013575125485658646,
0.00392620824277401,
-0.013447262346744537,
-0.0029866814147681,
0.05425519496202469,
0.020199179649353027,
-0.046149399131536484,
-0.07368238270282745,
0.08125518262386322,
0.02380741573870182,
0.009702673181891441,
0.00025986175751313567,
0.043406981974840164,
0.02300870604813099,
0.01920151896774769,
-0.04911356791853905,
-0.003908863756805658,
-0.008359218947589397,
-0.035472169518470764,
0.029767775908112526,
-0.008870207704603672,
0.03350299224257469,
0.004326811525970697,
-0.0473569892346859,
0.0013527763076126575,
0.05687909573316574,
0.015452316962182522,
0.018533535301685333,
-0.008611117489635944,
-0.05283646285533905,
0.032590482383966446,
0.014461389742791653,
-0.057224903255701065,
-0.011630423367023468,
0.01870325766503811,
-0.025563998147845268,
0.049194835126399994,
-0.003123932285234332,
-0.001161626074463129,
0.061676912009716034,
0.02650049515068531,
-0.006077945232391357,
0.03004591353237629,
-0.03532537817955017,
0.013154739513993263,
0.04286428540945053,
-0.08479402959346771,
-0.017339011654257774,
-0.053604334592819214,
0.07513277977705002,
-0.05719752609729767,
0.03888147324323654,
0.04022722691297531,
-0.0033465924207121134,
0.01314972247928381,
-0.043603651225566864,
-0.05253998190164566,
0.028732217848300934,
-0.040581315755844116,
0.05447126179933548,
0.008881008252501488,
-0.07006286829710007,
0.05433695763349533,
0.02169981226325035,
-0.06260370463132858,
0.04110310971736908,
0.013420121744275093,
0.05931442230939865,
0.025116320699453354,
0.03393067419528961,
-0.04098675400018692,
0.02104398049414158,
-0.029423104599118233,
0.037939250469207764,
-0.05246318504214287,
-0.021666301414370537,
0.014571991749107838,
-0.02500184066593647,
-0.026077965274453163,
0.0487951785326004,
-0.014912011101841927,
-0.01574834994971752,
0.04491916298866272,
-0.03846967965364456,
-0.05851968750357628,
0.020638033747673035,
0.01035862322896719,
-0.02013080008327961,
-0.02488287165760994,
-0.02856380119919777,
0.027096396312117577,
0.022007403895258904,
-0.004871940705925226,
-0.033153168857097626,
-0.04042312130331993,
0.04617403820157051,
-0.060582492500543594,
-0.014708253554999828,
0.04050714150071144,
-0.005109116900712252,
-0.034739039838314056,
0.022486332803964615,
0.035681724548339844,
0.00401048269122839,
0.02026747539639473,
-0.025636879727244377,
0.024054018780589104,
-0.045215457677841187,
-0.024713197723031044,
0.01873953267931938,
-0.011077727191150188,
0.03639286756515503,
0.0018566212384030223,
0.0409933403134346,
0.040143828839063644,
-0.0024398337118327618,
0.009175645187497139,
-0.02705490216612816,
-0.03486381471157074,
0.0169820673763752,
-0.042852774262428284,
0.02543281391263008,
-0.003951395396143198,
-0.035526569932699203,
-0.04204382747411728,
-0.00932351779192686,
-0.03495142608880997,
0.00797718483954668,
-0.05598997697234154,
0.004248553421348333,
0.038300804793834686,
-0.02260853536427021,
-0.040646955370903015,
-0.0976703017950058,
-0.029149435460567474,
-0.03218603506684303,
-0.01565883681178093,
0.028149113059043884,
-0.02697000280022621,
0.02187737450003624,
-0.02041626162827015,
-0.05219025909900665,
0.04944802448153496,
0.02835904248058796,
-0.03584124147891998,
0.05998018756508827,
0.028829118236899376,
-0.051450151950120926,
0.013590632937848568,
0.02877732925117016,
-0.04052875190973282,
-0.009297022596001625,
0.010139641351997852,
0.04350088909268379,
0.023186398670077324,
0.011719467118382454,
-0.059873513877391815,
-0.015865786001086235,
-0.0721026062965393,
-0.03549868240952492,
-0.0697212815284729,
0.0036481814458966255,
0.06961576640605927
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.