Token Classification
GLiNER2
Safetensors
English
extractor
information-extraction
named-entity-recognition
relation-extraction
event-extraction
text-classification
Instructions to use whr778/mmbert-base-rams with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use whr778/mmbert-base-rams with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("whr778/mmbert-base-rams") # Extract entities text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday." result = extractor.extract_entities(text, ["company", "person", "product", "location"]) print(result) - Notebooks
- Google Colab
- Kaggle
Add default_schema (co-located training ontology) to config
Browse files2 unmodified lines3456782 unmodified lines"asl_gamma_neg": 4.0,"asl_gamma_pos": 1.0,"counting_layer": "count_lstm","dice_smooth": 1.0,"event_struct_loss": null,"event_struct_pos_weight": null,2 unmodified lines34567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957962 unmodified lines"asl_gamma_neg": 4.0,"asl_gamma_pos": 1.0,"counting_layer": "count_lstm","default_schema": {"events": {"artifactexistence.damagedestroy.damage": ["artifact","damager","instrument","place"],"artifactexistence.damagedestroy.destroy": ["artifact","destroyer","instrument","place"],"artifactexistence.damagedestroy.n/a": ["artifact","damagerdestroyer","instrument","place"],"conflict.attack.airstrikemissilestrike": ["attacker","instrument","place","target"],"conflict.attack.biologicalchemicalpoisonattack": ["attacker","instrument","place","target"],"conflict.attack.bombing": ["attacker","instrument","place","target"],"conflict.attack.firearmattack": ["attacker","instrument","place","target"],"conflict.attack.hanging": ["attacker","instrument","place","target"],"conflict.attack.invade": ["attacker","instrument","place","target"],"conflict.attack.n/a": ["attacker","instrument","place","target"],"conflict.attack.selfdirectedbattle": ["attacker","instrument","place","target"],"conflict.attack.setfire": ["attacker","instrument","place","target"],"conflict.attack.stabbing": ["attacker","instrument","place","target"],"conflict.attack.stealrobhijack": ["artifact","attacker","instrument","place","target"],"conflict.attack.strangling": ["attacker","instrument","place","target"],"conflict.demonstrate.marchprotestpoliticalgathering": ["demonstrator","place"],"conflict.demonstrate.n/a": ["demonstrator","place"],"conflict.yield.n/a": ["place","recipient","yielder"],"conflict.yield.retreat": ["destination","origin","retreater"],"conflict.yield.surrender": ["place","recipient","surrenderer"],"contact.collaborate.correspondence": ["participant","place"],"contact.collaborate.meet": ["participant","place"],"contact.collaborate.n/a": ["participant","place"],"contact.commandorder.broadcast": ["communicator","place","recipient"],"contact.commandorder.correspondence": ["communicator","place","recipient"],"contact.commandorder.meet": ["communicator","place","recipient"],"contact.commandorder.n/a": ["communicator","place","recipient"],"contact.commitmentpromiseexpressintent.broadcast": ["communicator","place","recipient"],"contact.commitmentpromiseexpressintent.correspondence": ["communicator","place","recipient"],"contact.commitmentpromiseexpressintent.meet": ["communicator","place","recipient"],"contact.commitmentpromiseexpressintent.n/a": ["communicator","place","recipient"],"contact.discussion.correspondence": ["participant","place"],"contact.discussion.meet": ["participant","place"],"contact.discussion.n/a": ["participant","place"],"contact.funeralvigil.meet": ["deceased","participant","place"],"contact.funeralvigil.n/a": ["deceased","participant","place"],"contact.mediastatement.broadcast": ["communicator","place","recipient"],"contact.mediastatement.n/a": ["communicator","place","recipient"],"contact.negotiate.correspondence": ["participant","place"],"contact.negotiate.meet": ["participant","place"],"contact.negotiate.n/a": ["participant","place"],"contact.prevarication.broadcast": ["communicator","place","recipient"],"contact.prevarication.correspondence": ["communicator","place","recipient"],"contact.prevarication.meet": ["communicator","place","recipient"],"contact.prevarication.n/a": ["communicator","place","recipient"],"contact.publicstatementinperson.broadcast": ["communicator","place","recipient"],"contact.publicstatementinperson.n/a": ["communicator","place","recipient"],"contact.requestadvise.broadcast": ["communicator","place","recipient"],"contact.requestadvise.correspondence": ["communicator","place","recipient"],"contact.requestadvise.meet": ["communicator","place","recipient"],"contact.requestadvise.n/a": ["communicator","place","recipient"],"contact.threatencoerce.broadcast": ["communicator","place","recipient"],"contact.threatencoerce.correspondence": ["communicator","place","recipient"],"contact.threatencoerce.meet": ["communicator","place","recipient"],"contact.threatencoerce.n/a": ["communicator","place","recipient"],"disaster.accidentcrash.accidentcrash": ["crashobject","driverpassenger","place","vehicle"],"disaster.fireexplosion.fireexplosion": ["fireexplosionobject","instrument","place"],"government.agreements.acceptagreementcontractceasefire": ["participant","place"],"government.agreements.n/a": ["participant","place"],"government.agreements.rejectnullifyagreementcontractceasefire": ["otherparticipant","place","rejecternullifier"],"government.agreements.violateagreement": ["otherparticipant","place","violator"],"government.formation.mergegpe": ["participant","place"],"government.formation.n/a": ["founder","gpe","place"],"government.formation.startgpe": ["founder","gpe","place"],"government.legislate.legislate": ["governmentbody","law","place"],"government.spy.spy": ["beneficiary","observedentity","place","spy"],"government.vote.castvote": ["ballot","candidate","place","result","voter"],"government.vote.n/a": ["ballot","candidate","place","voter"],"government.vote.violationspreventvote": ["ballot","candidate","place","preventer","voter"],"inspection.sensoryobserve.inspectpeopleorganization": ["inspectedentity","inspector","place"],"inspection.sensoryobserve.monitorelection": ["monitor","monitoredentity","place"],"inspection.sensoryobserve.n/a": ["observedentity","observer","place"],"inspection.sensoryobserve.physicalinvestigateinspect": ["inspectedentity","inspector","place"],"justice.arrestjaildetain.arrestjaildetain": ["crime","detainee","jailer","place"],"justice.initiatejudicialprocess.chargeindict": ["crime","defendant","judgecourt","place","prosecutor"],"justice.initiatejudicialprocess.n/a": ["crime","defendant","judgecourt","place","prosecutor"],"justice.initiatejudicialprocess.trialhearing": ["crime","defendant","judgecourt","place","prosecutor"],"justice.investigate.investigatecrime": ["crime","defendant","investigator","place"],"justice.investigate.n/a": ["defendant","investigator","place"],"justice.judicialconsequences.convict": ["crime","defendant","judgecourt","place"],"justice.judicialconsequences.execute": ["crime","defendant","executioner","place"],"justice.judicialconsequences.extradite": ["crime","defendant","destination","extraditer","origin"],"justice.judicialconsequences.n/a": ["crime","defendant","judgecourt","place"],"life.die.deathcausedbyviolentevents": ["instrument","killer","place","victim"],"life.die.n/a": ["place","victim"],"life.die.nonviolentdeath": ["place","victim"],"life.injure.illnessdegradationhungerthirst": ["place","victim"],"life.injure.illnessdegradationphysical": ["victim"],"life.injure.injurycausedbyviolentevents": ["injurer","instrument","place","victim"],"life.injure.n/a": ["injurer","place","victim"],"manufacture.artifact.build": ["artifact","instrument","manufacturer","place"],"manufacture.artifact.createintellectualproperty": ["artifact","instrument","manufacturer","place"],"manufacture.artifact.createmanufacture": ["artifact","instrument","manufacturer","place"],"manufacture.artifact.n/a": ["artifact","instrument","manufacturer","place"],"movement.transportartifact.bringcarryunload": ["artifact","destination","origin","transporter","vehicle"],"movement.transportartifact.disperseseparate": ["artifact","destination","origin","transporter","vehicle"],"movement.transportartifact.fall": ["artifact","destination","origin"],"movement.transportartifact.grantentry": ["artifact","destination","origin","transporter"],"movement.transportartifact.hide": ["artifact","hidingplace","origin","transporter","vehicle"],"movement.transportartifact.n/a": ["artifact","destination","origin","transporter","vehicle"],"movement.transportartifact.nonviolentthrowlaunch": ["artifact","destination","origin","transporter","vehicle"],"movement.transportartifact.prevententry": ["artifact","destination","origin","preventer","transporter"],"movement.transportartifact.preventexit": ["artifact","destination","origin","preventer","transporter"],"movement.transportartifact.receiveimport": ["artifact","destination","origin","transporter","vehicle"],"movement.transportartifact.sendsupplyexport": ["artifact","destination","origin","transporter","vehicle"],"movement.transportartifact.smuggleextract": ["artifact","destination","origin","transporter","vehicle"],"movement.transportperson.bringcarryunload": ["destination","origin","passenger","transporter","vehicle"],"movement.transportperson.disperseseparate": ["destination","origin","passenger","transporter","vehicle"],"movement.transportperson.evacuationrescue": ["destination","origin","passenger","transporter","vehicle"],"movement.transportperson.fall": ["destination","origin","passenger"],"movement.transportperson.grantentryasylum": ["destination","granter","origin","passenger","transporter"],"movement.transportperson.hide": ["hidingplace","origin","passenger","transporter","vehicle"],"movement.transportperson.n/a": ["destination","origin","passenger","transporter","vehicle"],"movement.transportperson.prevententry": ["destination","origin","passenger","preventer","transporter"],"movement.transportperson.preventexit": ["destination","origin","passenger","preventer","transporter"],"movement.transportperson.selfmotion": ["destination","origin","transporter"],"movement.transportperson.smuggleextract": ["destination","origin","passenger","transporter","vehicle"],"personnel.elect.n/a": ["candidate","place","voter"],"personnel.elect.winelection": ["candidate","place","voter"],"personnel.endposition.firinglayoff": ["employee","place","placeofemployment"],"personnel.endposition.n/a": ["employee","place","placeofemployment"],"personnel.endposition.quitretire": ["employee","place","placeofemployment"],"personnel.startposition.hiring": ["employee","place","placeofemployment"],"personnel.startposition.n/a": ["employee","place","placeofemployment"],"transaction.transaction.embargosanction": ["artifactmoney","giver","place","preventer","recipient"],"transaction.transaction.giftgrantprovideaid": ["beneficiary","giver","place","recipient"],"transaction.transaction.n/a": ["beneficiary","participant","place"],"transaction.transaction.transfercontrol": ["beneficiary","giver","place","recipient","territoryorfacility"],"transaction.transfermoney.borrowlend": ["beneficiary","giver","money","place","recipient"],"transaction.transfermoney.embargosanction": ["giver","money","place","preventer","recipient"],"transaction.transfermoney.giftgrantprovideaid": ["beneficiary","giver","money","place","recipient"],"transaction.transfermoney.n/a": ["beneficiary","giver","money","place","recipient"],"transaction.transfermoney.payforservice": ["beneficiary","giver","money","place","recipient"],"transaction.transfermoney.purchase": ["beneficiary","giver","money","place","recipient"],"transaction.transferownership.borrowlend": ["artifact","beneficiary","giver","place","recipient"],"transaction.transferownership.embargosanction": ["artifact","giver","place","preventer","recipient"],"transaction.transferownership.giftgrantprovideaid": ["artifact","beneficiary","giver","place","recipient"],"transaction.transferownership.n/a": ["artifact","beneficiary","giver","place","recipient"],"transaction.transferownership.purchase": ["artifact","beneficiary","giver","place","recipient"]}},"dice_smooth": 1.0,"event_struct_loss": null,"event_struct_pos_weight": null,
config.json+788