Instructions to use uaritm/uk-cardio-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- spaCy
How to use uaritm/uk-cardio-ner with spaCy:
!pip install https://huggingface.co/uaritm/uk-cardio-ner/resolve/main/uk-cardio-ner-any-py3-none-any.whl # Using spacy.load(). import spacy nlp = spacy.load("uk-cardio-ner") # Importing as module. import uk-cardio-ner nlp = uk-cardio-ner.load() - Notebooks
- Google Colab
- Kaggle
| { | |
| "lang":"uk", | |
| "name":"pipeline", | |
| "version":"0.0.0", | |
| "spacy_version":">=3.8.14,<3.9.0", | |
| "description":"", | |
| "author":"", | |
| "email":"", | |
| "url":"", | |
| "license":"", | |
| "spacy_git_version":"0069cf9", | |
| "vectors":{ | |
| "width":0, | |
| "vectors":0, | |
| "keys":0, | |
| "name":null, | |
| "mode":"default" | |
| }, | |
| "labels":{ | |
| "transformer":[ | |
| ], | |
| "ner":[ | |
| "DOSE", | |
| "DRUG", | |
| "DUR", | |
| "FREQ" | |
| ] | |
| }, | |
| "pipeline":[ | |
| "transformer", | |
| "ner" | |
| ], | |
| "components":[ | |
| "transformer", | |
| "ner" | |
| ], | |
| "disabled":[ | |
| ], | |
| "performance":{ | |
| "ents_f":0.9021017699, | |
| "ents_p":0.91015625, | |
| "ents_r":0.8941885965, | |
| "ents_per_type":{ | |
| "DRUG":{ | |
| "p":0.949725777, | |
| "r":0.9445454545, | |
| "f":0.9471285324 | |
| }, | |
| "DOSE":{ | |
| "p":0.931211499, | |
| "r":0.8962450593, | |
| "f":0.9133937563 | |
| }, | |
| "FREQ":{ | |
| "p":0.8752783964, | |
| "r":0.8618421053, | |
| "f":0.8685082873 | |
| }, | |
| "DUR":{ | |
| "p":0.857605178, | |
| "r":0.8493589744, | |
| "f":0.8534621578 | |
| } | |
| }, | |
| "transformer_loss":8136.2398830827, | |
| "ner_loss":9768.5185546875 | |
| } | |
| } |