Instructions to use ericntay/clinical_bert_ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ericntay/clinical_bert_ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ericntay/clinical_bert_ft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ericntay/clinical_bert_ft") model = AutoModelForTokenClassification.from_pretrained("ericntay/clinical_bert_ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Done
Browse filesFiles changed (12)
- .gitignoreAdded+1
- config.jsonAdded+95
- pytorch_model.binAdded+3
- runs/Jul11_10-45-15_87a95fb9f6c9/1657536394.7879772/events.out.tfevents.1657536394.87a95fb9f6c9.76.1Added+3
- runs/Jul11_10-45-15_87a95fb9f6c9/events.out.tfevents.1657536394.87a95fb9f6c9.76.0Added+3
- runs/Jul11_11-05-10_87a95fb9f6c9/1657537539.358535/events.out.tfevents.1657537539.87a95fb9f6c9.76.3Added+3
- runs/Jul11_11-05-10_87a95fb9f6c9/events.out.tfevents.1657537539.87a95fb9f6c9.76.2Added+3
- special_tokens_map.jsonAdded+7
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+15
- training_args.binAdded+3
- vocab.txtAdded
1checkpoint-*/1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495{ "_name_or_path": "emilyalsentzer/Bio_ClinicalBERT", "architectures": [ "BertForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "O", "1": "B-Gene_or_gene_product", "2": "I-Gene_or_gene_product", "3": "B-Cancer", "4": "I-Cancer", "5": "B-Cell", "6": "I-Cell", "7": "B-Organism", "8": "B-Simple_chemical", "9": "I-Simple_chemical", "10": "B-Multi-tissue_structure", "11": "I-Multi-tissue_structure", "12": "B-Organ", "13": "B-Organism_subdivision", "14": "B-Tissue", "15": "I-Tissue", "16": "B-Immaterial_anatomical_entity", "17": "B-Organism_substance", "18": "I-Organism_substance", "19": "I-Organism", "20": "I-Organism_subdivision", "21": "B-Cellular_component", "22": "I-Immaterial_anatomical_entity", "23": "I-Cellular_component", "24": "B-Pathological_formation", "25": "I-Pathological_formation", "26": "I-Organ", "27": "B-Amino_acid", "28": "I-Amino_acid", "29": "B-Anatomical_system", "30": "I-Anatomical_system", "31": "B-Developing_anatomical_structure", "32": "I-Developing_anatomical_structure" }, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "B-Amino_acid": 27, "B-Anatomical_system": 29, "B-Cancer": 3, "B-Cell": 5, "B-Cellular_component": 21, "B-Developing_anatomical_structure": 31, "B-Gene_or_gene_product": 1, "B-Immaterial_anatomical_entity": 16, "B-Multi-tissue_structure": 10, "B-Organ": 12, "B-Organism": 7, "B-Organism_subdivision": 13, "B-Organism_substance": 17, "B-Pathological_formation": 24, "B-Simple_chemical": 8, "B-Tissue": 14, "I-Amino_acid": 28, "I-Anatomical_system": 30, "I-Cancer": 4, "I-Cell": 6, "I-Cellular_component": 23, "I-Developing_anatomical_structure": 32, "I-Gene_or_gene_product": 2, "I-Immaterial_anatomical_entity": 22, "I-Multi-tissue_structure": 11, "I-Organ": 26, "I-Organism": 19, "I-Organism_subdivision": 20, "I-Organism_substance": 18, "I-Pathological_formation": 25, "I-Simple_chemical": 9, "I-Tissue": 15, "O": 0 }, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "position_embedding_type": "absolute", "torch_dtype": "float32", "transformers_version": "4.20.1", "type_vocab_size": 2, "use_cache": true, "vocab_size": 28996}123version https://git-lfs.github.com/spec/v1oid sha256:829571053ea9c416ba76a1ee69094fa32c3df17f7625cacb3127d26a07a9c35esize 431050673123version https://git-lfs.github.com/spec/v1oid sha256:9cd9d482167f93e4283f7864d113168c05fbea84992d37783f3a48f2f16f125dsize 5317123version https://git-lfs.github.com/spec/v1oid sha256:767d37b9e62980497446ab85a5c8ee5276926850a3b61f2d9e56488519f3f909size 7307123version https://git-lfs.github.com/spec/v1oid sha256:b85b2f719ce576d8f2fb81341252bb4cb9f939b9eb44d46f15ef290545fa0a5asize 5317123version https://git-lfs.github.com/spec/v1oid sha256:ec69c3643f6443d19b3ec2385b1e41651939260fe176f9ae3247b3d56f8a97b5size 106261234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}123456789101112131415{ "cls_token": "[CLS]", "do_basic_tokenize": true, "do_lower_case": true, "mask_token": "[MASK]", "name_or_path": "emilyalsentzer/Bio_ClinicalBERT", "never_split": null, "pad_token": "[PAD]", "sep_token": "[SEP]", "special_tokens_map_file": null, "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "BertTokenizer", "unk_token": "[UNK]"}123version https://git-lfs.github.com/spec/v1oid sha256:7aec1da95bf0c604f799d78370626641d2b5cf097f7b560d54755e2d74726adfsize 3311.gitignoreAdded+1
config.jsonAdded+95
pytorch_model.binAdded+3
runs/Jul11_10-45-15_87a95fb9f6c9/1657536394.7879772/events.out.tfevents.1657536394.87a95fb9f6c9.76.1Added+3
runs/Jul11_10-45-15_87a95fb9f6c9/events.out.tfevents.1657536394.87a95fb9f6c9.76.0Added+3
runs/Jul11_11-05-10_87a95fb9f6c9/1657537539.358535/events.out.tfevents.1657537539.87a95fb9f6c9.76.3Added+3
runs/Jul11_11-05-10_87a95fb9f6c9/events.out.tfevents.1657537539.87a95fb9f6c9.76.2Added+3
special_tokens_map.jsonAdded+7
tokenizer.jsonAdded
tokenizer_config.jsonAdded+15
training_args.binAdded+3
vocab.txtAdded