Instructions to use yongsun-yoon/deberta-v3-base-open-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yongsun-yoon/deberta-v3-base-open-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="yongsun-yoon/deberta-v3-base-open-ner")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("yongsun-yoon/deberta-v3-base-open-ner") model = AutoModelForTokenClassification.from_pretrained("yongsun-yoon/deberta-v3-base-open-ner") - Notebooks
- Google Colab
- Kaggle
Open Named Entity Recognition (English)
You can read the details in this post.
from transformers import pipeline
nlp = pipeline('token-classification', 'yongsun-yoon/deberta-v3-base-open-ner', aggregation_strategy='simple')
text = 'Heat the olive oil in a frying pan, add the onion and cook for 5 minutes until softened and starting to turn golden. Set aside.'
entity_type = 'ingredient'
input_text = f'{text}{nlp.tokenizer.sep_token}{entity_type}' # [SEP]
nlp(input_text) # olive oil, onion
- Downloads last month
- 3