Instructions to use d4data/biomedical-ner-all with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use d4data/biomedical-ner-all with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="d4data/biomedical-ner-all")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("d4data/biomedical-ner-all") model = AutoModelForTokenClassification.from_pretrained("d4data/biomedical-ner-all", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
reverting to version3
Browse filesFiles changed (4)
- config.json+155-201
- pytorch_model.bin+2-2
- special_tokens_map.json+7-1
- tokenizer_config.json+15-1
15 unmodified lines1617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201213 unmodified lines1251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292306 unmodified lines23723823924024124215 unmodified lines"4": "B-Area","5": "B-Biological_attribute","6": "B-Biological_structure","7": "B-Clinical_[even](Lab_value","8": "B-Clinical_e[vent](Therapeutic_procedure","9": "B-Clinical_event","10": "B-Color","11": "B-Coreference","12": "B-Date","13": "B-Detailed_description","14": "B-Diag[no](Lab_value","15": "B-Diagnostic_[procedure](Coreference","16": "B-Diagnostic_procedure","17": "B-Disease_disorder","18": "B-Distance","19": "B-Dosage","20": "B-Duration","21": "B-Family_history","22": "B-Frequency","23": "B-Height","24": "B-History","25": "B-La[b](Sign_symptom","26": "B-Lab_value","27": "B-Mass","28": "B-Medication","29": "B-Non[b](Sign_symptom","30": "B-Non[biological](Detailed_description","31": "B-Nonbiological_location","32": "B-Occupation","33": "B-Other_entity","34": "B-Other_event","35": "B-Outcome","36": "B-Personal_[back](Biological_structure","37": "B-Personal_backg[round](Detailed_description","38": "B-Personal_backg[round](Shape","39": "B-Personal_background","40": "B-Qualitative_concept","41": "B-Quantitative_concept","42": "B-Sever[it](Coreference","43": "B-Severity","44": "B-Sex","45": "B-Shape","46": "B-Sign_[symptom](Sign_symptom","47": "B-Sign_symptom","48": "B-Su[b](Sign_symptom","49": "B-Subject","50": "B-Texture","51": "B-The[rap](Detailed_description","52": "B-Therapeutic_[procedure](Coreference","53": "B-Therapeutic_procedure","54": "B-Time","55": "B-Volume","56": "B-Weight","57": "B-[A](Lab_value","58": "I-Activity","59": "I-Administration","60": "I-Age","61": "I-Area","62": "I-Biological_attribute","63": "I-Biological_structure","64": "I-Clinical_event","65": "I-Color","66": "I-Coreference","67": "I-Date","68": "I-Detailed_description","69": "I-Diag[no](Lab_value","70": "I-Diagnostic_[procedure](Coreference","71": "I-Diagnostic_procedure","72": "I-Disease_disorder","73": "I-Distance","74": "I-Dosage","75": "I-Duration","76": "I-Family_history","77": "I-Frequency","78": "I-Height","79": "I-History","80": "I-La[b](Sign_symptom","81": "I-Lab_value","82": "I-Mass","83": "I-Medication","84": "I-Non[b](Sign_symptom","85": "I-Nonbiological_location","86": "I-Occupation","87": "I-Other_entity","88": "I-Other_event","89": "I-Outcome","90": "I-Personal_backg[round](Shape","91": "I-Personal_background","92": "I-Qualitative_concept","93": "I-Quantitative_concept","94": "I-Severity","95": "I-Shape","96": "I-Sign_[symptom](Sign_symptom","97": "I-Sign_symptom","98": "I-Subject","99": "I-Texture","100": "I-The[rap](Detailed_description","101": "I-Therapeutic_[procedure](Coreference","102": "I-Therapeutic_procedure","103": "I-Time","104": "I-Volume","105": "I-Weight","106": "I-[A](Lab_value"},"initializer_range": 0.02,"label2id": {3 unmodified lines"B-Area": 4,"B-Biological_attribute": 5,"B-Biological_structure": 6,"B-Clinical_[even](Lab_value": 7,"B-Clinical_e[vent](Therapeutic_procedure": 8,"B-Clinical_event": 9,"B-Color": 10,"B-Coreference": 11,"B-Date": 12,"B-Detailed_description": 13,"B-Diag[no](Lab_value": 14,"B-Diagnostic_[procedure](Coreference": 15,"B-Diagnostic_procedure": 16,"B-Disease_disorder": 17,"B-Distance": 18,"B-Dosage": 19,"B-Duration": 20,"B-Family_history": 21,"B-Frequency": 22,"B-Height": 23,"B-History": 24,"B-La[b](Sign_symptom": 25,"B-Lab_value": 26,"B-Mass": 27,"B-Medication": 28,"B-Non[b](Sign_symptom": 29,"B-Non[biological](Detailed_description": 30,"B-Nonbiological_location": 31,"B-Occupation": 32,"B-Other_entity": 33,"B-Other_event": 34,"B-Outcome": 35,"B-Personal_[back](Biological_structure": 36,"B-Personal_backg[round](Detailed_description": 37,"B-Personal_backg[round](Shape": 38,"B-Personal_background": 39,"B-Qualitative_concept": 40,"B-Quantitative_concept": 41,"B-Sever[it](Coreference": 42,"B-Severity": 43,"B-Sex": 44,"B-Shape": 45,"B-Sign_[symptom](Sign_symptom": 46,"B-Sign_symptom": 47,"B-Su[b](Sign_symptom": 48,"B-Subject": 49,"B-Texture": 50,"B-The[rap](Detailed_description": 51,"B-Therapeutic_[procedure](Coreference": 52,"B-Therapeutic_procedure": 53,"B-Time": 54,"B-Volume": 55,"B-Weight": 56,"B-[A](Lab_value": 57,"I-Activity": 58,"I-Administration": 59,"I-Age": 60,"I-Area": 61,"I-Biological_attribute": 62,"I-Biological_structure": 63,"I-Clinical_event": 64,"I-Color": 65,"I-Coreference": 66,"I-Date": 67,"I-Detailed_description": 68,"I-Diag[no](Lab_value": 69,"I-Diagnostic_[procedure](Coreference": 70,"I-Diagnostic_procedure": 71,"I-Disease_disorder": 72,"I-Distance": 73,"I-Dosage": 74,"I-Duration": 75,"I-Family_history": 76,"I-Frequency": 77,"I-Height": 78,"I-History": 79,"I-La[b](Sign_symptom": 80,"I-Lab_value": 81,"I-Mass": 82,"I-Medication": 83,"I-Non[b](Sign_symptom": 84,"I-Nonbiological_location": 85,"I-Occupation": 86,"I-Other_entity": 87,"I-Other_event": 88,"I-Outcome": 89,"I-Personal_backg[round](Shape": 90,"I-Personal_background": 91,"I-Qualitative_concept": 92,"I-Quantitative_concept": 93,"I-Severity": 94,"I-Shape": 95,"I-Sign_[symptom](Sign_symptom": 96,"I-Sign_symptom": 97,"I-Subject": 98,"I-Texture": 99,"I-The[rap](Detailed_description": 100,"I-Therapeutic_[procedure](Coreference": 101,"I-Therapeutic_procedure": 102,"I-Time": 103,"I-Volume": 104,"I-Weight": 105,"I-[A](Lab_value": 106,"O": 0},"max_position_embeddings": 512,6 unmodified lines"sinusoidal_pos_embds": false,"tie_weights_": true,"torch_dtype": "float32","transformers_version": "4.18.0","vocab_size": 30522}15 unmodified lines16171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697983 unmodified lines1021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831846 unmodified lines19119219319419519615 unmodified lines"4": "B-Area","5": "B-Biological_attribute","6": "B-Biological_structure","7": "B-Clinical_event","8": "B-Color","9": "B-Coreference","10": "B-Date","11": "B-Detailed_description","12": "B-Diagnostic_procedure","13": "B-Disease_disorder","14": "B-Distance","15": "B-Dosage","16": "B-Duration","17": "B-Family_history","18": "B-Frequency","19": "B-Height","20": "B-History","21": "B-Lab_value","22": "B-Mass","23": "B-Medication","24": "B-Non[biological](Detailed_description","25": "B-Nonbiological_location","26": "B-Occupation","27": "B-Other_entity","28": "B-Other_event","29": "B-Outcome","30": "B-Personal_[back](Biological_structure","31": "B-Personal_background","32": "B-Qualitative_concept","33": "B-Quantitative_concept","34": "B-Severity","35": "B-Sex","36": "B-Shape","37": "B-Sign_symptom","38": "B-Subject","39": "B-Texture","40": "B-Therapeutic_procedure","41": "B-Time","42": "B-Volume","43": "B-Weight","44": "I-Activity","45": "I-Administration","46": "I-Age","47": "I-Area","48": "I-Biological_attribute","49": "I-Biological_structure","50": "I-Clinical_event","51": "I-Color","52": "I-Coreference","53": "I-Date","54": "I-Detailed_description","55": "I-Diagnostic_procedure","56": "I-Disease_disorder","57": "I-Distance","58": "I-Dosage","59": "I-Duration","60": "I-Family_history","61": "I-Frequency","62": "I-Height","63": "I-History","64": "I-Lab_value","65": "I-Mass","66": "I-Medication","67": "I-Nonbiological_location","68": "I-Occupation","69": "I-Other_entity","70": "I-Other_event","71": "I-Outcome","72": "I-Personal_background","73": "I-Qualitative_concept","74": "I-Quantitative_concept","75": "I-Severity","76": "I-Shape","77": "I-Sign_symptom","78": "I-Subject","79": "I-Texture","80": "I-Therapeutic_procedure","81": "I-Time","82": "I-Volume","83": "I-Weight"},"initializer_range": 0.02,"label2id": {3 unmodified lines"B-Area": 4,"B-Biological_attribute": 5,"B-Biological_structure": 6,"B-Clinical_event": 7,"B-Color": 8,"B-Coreference": 9,"B-Date": 10,"B-Detailed_description": 11,"B-Diagnostic_procedure": 12,"B-Disease_disorder": 13,"B-Distance": 14,"B-Dosage": 15,"B-Duration": 16,"B-Family_history": 17,"B-Frequency": 18,"B-Height": 19,"B-History": 20,"B-Lab_value": 21,"B-Mass": 22,"B-Medication": 23,"B-Non[biological](Detailed_description": 24,"B-Nonbiological_location": 25,"B-Occupation": 26,"B-Other_entity": 27,"B-Other_event": 28,"B-Outcome": 29,"B-Personal_[back](Biological_structure": 30,"B-Personal_background": 31,"B-Qualitative_concept": 32,"B-Quantitative_concept": 33,"B-Severity": 34,"B-Sex": 35,"B-Shape": 36,"B-Sign_symptom": 37,"B-Subject": 38,"B-Texture": 39,"B-Therapeutic_procedure": 40,"B-Time": 41,"B-Volume": 42,"B-Weight": 43,"I-Activity": 44,"I-Administration": 45,"I-Age": 46,"I-Area": 47,"I-Biological_attribute": 48,"I-Biological_structure": 49,"I-Clinical_event": 50,"I-Color": 51,"I-Coreference": 52,"I-Date": 53,"I-Detailed_description": 54,"I-Diagnostic_procedure": 55,"I-Disease_disorder": 56,"I-Distance": 57,"I-Dosage": 58,"I-Duration": 59,"I-Family_history": 60,"I-Frequency": 61,"I-Height": 62,"I-History": 63,"I-Lab_value": 64,"I-Mass": 65,"I-Medication": 66,"I-Nonbiological_location": 67,"I-Occupation": 68,"I-Other_entity": 69,"I-Other_event": 70,"I-Outcome": 71,"I-Personal_background": 72,"I-Qualitative_concept": 73,"I-Quantitative_concept": 74,"I-Severity": 75,"I-Shape": 76,"I-Sign_symptom": 77,"I-Subject": 78,"I-Texture": 79,"I-Therapeutic_procedure": 80,"I-Time": 81,"I-Volume": 82,"I-Weight": 83,"O": 0},"max_position_embeddings": 512,6 unmodified lines"sinusoidal_pos_embds": false,"tie_weights_": true,"torch_dtype": "float32","transformers_version": "4.20.1","vocab_size": 30522}
123version https://git-lfs.github.com/spec/v1oid sha256:bd09191cafbd80946b97c301ee5bd56718f94276edff341d15d11d2992f2d699size 265814261123version https://git-lfs.github.com/spec/v1oid sha256:b027673a3307002bc2c34795e627691e1a0b906ee3480036fb9a5b06d269f547size 265743541
1{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}1234567{"cls_token": "[CLS]","mask_token": "[MASK]","pad_token": "[PAD]","sep_token": "[SEP]","unk_token": "[UNK]"}
1{"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "cuda": 0, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "distilbert-base-uncased", "tokenizer_class": "DistilBertTokenizer"}123456789101112131415{"cls_token": "[CLS]","cuda": 0,"do_lower_case": true,"mask_token": "[MASK]","model_max_length": 512,"name_or_path": "distilbert-base-uncased","pad_token": "[PAD]","sep_token": "[SEP]","special_tokens_map_file": null,"strip_accents": null,"tokenize_chinese_chars": true,"tokenizer_class": "DistilBertTokenizer","unk_token": "[UNK]"}
config.json+155-201
pytorch_model.bin+2-2
special_tokens_map.json+7-1
tokenizer_config.json+15-1