Instructions to use nitinyadav/continual_learning_ner_task1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- spaCy
How to use nitinyadav/continual_learning_ner_task1 with spaCy:
!pip install https://huggingface.co/nitinyadav/continual_learning_ner_task1/resolve/main/continual_learning_ner_task1-any-py3-none-any.whl # Using spacy.load(). import spacy nlp = spacy.load("continual_learning_ner_task1") # Importing as module. import continual_learning_ner_task1 nlp = continual_learning_ner_task1.load() - Notebooks
- Google Colab
- Kaggle
|
Download README.md from nitinyadav/continual_learning_ner_task1: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/nitinyadav/continual_learning_ner_task1/resolve/main/README.md
- Command line
-
hf download hf://nitinyadav/continual_learning_ner_task1/README.md
-
curl -L -o README.md https://huggingface.co/nitinyadav/continual_learning_ner_task1/resolve/main/README.md
1.01 kB
| tags: | |
| - spacy | |
| - token-classification | |
| - named-entity-recognition | |
| - medical-ner | |
| library_name: spacy | |
| pipeline_tag: token-classification | |
| language: en | |
| license: mit | |
| # Medical NER Model - medical-ner-task1 | |
| This model is trained to recognize medical entities including treatments, chronic diseases, cancers, and allergies. | |
| ## Model Details | |
| - Task: Named Entity Recognition | |
| - Framework: spaCy | |
| - Entity Types: TREATMENT, CHRONIC DISEASE, CANCER, ALLERGY, OTHER | |
| ## Usage | |
| ```python | |
| import spacy | |
| nlp = spacy.load("nitinyadav/continual_learning_ner_task1") | |
| doc = nlp("Patient has been diagnosed with Type 2 Diabetes") | |
| for ent in doc.ents: | |
| print(ent.text, ent.label_) | |
| ``` | |
| ## Entity Labels | |
| - TREATMENT: Medical treatments and procedures | |
| - CHRONIC DISEASE: Long-term medical conditions | |
| - CANCER: Cancer-related conditions | |
| - ALLERGY: Allergic conditions | |
| - OTHER: Other medical entities | |
| ## Training Data | |
| This model was trained on medical text data with annotated entities. | |