Instructions to use CKris21/en_proposal_ner_trf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- spaCy
How to use CKris21/en_proposal_ner_trf with spaCy:
!pip install https://huggingface.co/CKris21/en_proposal_ner_trf/resolve/main/en_proposal_ner_trf-any-py3-none-any.whl # Using spacy.load(). import spacy nlp = spacy.load("en_proposal_ner_trf") # Importing as module. import en_proposal_ner_trf nlp = en_proposal_ner_trf.load() - Notebooks
- Google Colab
- Kaggle
|
Download README.md from CKris21/en_proposal_ner_trf: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/CKris21/en_proposal_ner_trf/resolve/main/README.md
- Command line
-
hf download hf://CKris21/en_proposal_ner_trf/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/CKris21/en_proposal_ner_trf/resolve/main/README.md
1.05 kB
| language: en | |
| library_name: spacy | |
| pipeline_tag: token-classification | |
| tags: | |
| - spacy | |
| - token-classification | |
| - ner | |
| extra_gated_prompt: "Access is granted to collaborators of the NER-FOR-PROPOSAL-GRAPHRAG project." | |
| # en_proposal_ner_trf | |
| spaCy NER pipeline (`roberta-base` transformer + NER) for user queries about | |
| research proposals, used by | |
| [NER-FOR-PROPOSAL-GRAPHRAG](https://github.com/xhris12/NER-FOR-PROPOSAL-GRAPHRAG). | |
| Labels: `CAREER_STAGE`, `COUNTRY`, `DEPARTMENT`, `FRAMEWORK`, `INFRA_KEYWORD`, | |
| `KEYWORD`, `NATIONALITY`, `ORG`, `ORG_TYPE`, `PERSON`, `PROJECT_NAME_FRAGMENT`, | |
| `PROPOSAL`, `SEARCH_PHRASE`, `TOPIC`. | |
| ## Usage | |
| Requires `spacy>=3.8.16,<3.9` and `spacy-transformers>=1.4,<1.5`, plus access | |
| to this repo and a Hugging Face token (`hf auth login` or `HF_TOKEN`). | |
| ```python | |
| import spacy | |
| from huggingface_hub import snapshot_download | |
| nlp = spacy.load(snapshot_download("CKris21/en_proposal_ner_trf")) | |
| doc = nlp("Proposals by Maria Rossi under Horizon Europe") | |
| print([(ent.text, ent.label_) for ent in doc.ents]) | |
| ``` | |