Upload folder using huggingface_hub c75fff0
Anonymous commited on
How to use Cyber-ThreaD/DeBERTa-APTNER with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Cyber-ThreaD/DeBERTa-APTNER") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Cyber-ThreaD/DeBERTa-APTNER")
model = AutoModelForTokenClassification.from_pretrained("Cyber-ThreaD/DeBERTa-APTNER")