cfilt/HiNER-collapsed
Updated • 186
How to use FriendOfHumanity/collapsed_xlm_r_large_finetuned_ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="FriendOfHumanity/collapsed_xlm_r_large_finetuned_ner") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("FriendOfHumanity/collapsed_xlm_r_large_finetuned_ner")
model = AutoModelForTokenClassification.from_pretrained("FriendOfHumanity/collapsed_xlm_r_large_finetuned_ner")