How to use RecordedFuture/Swedish-NER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="RecordedFuture/Swedish-NER")
# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("RecordedFuture/Swedish-NER") model = AutoModelForTokenClassification.from_pretrained("RecordedFuture/Swedish-NER")
What is a pickle import?
How to fix it?