surrey-nlp/PLOD-filtered
Viewer • Updated • 161k • 161 • 1
How to use cccmatthew/surrey-gp30 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="cccmatthew/surrey-gp30") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("cccmatthew/surrey-gp30")
model = AutoModelForTokenClassification.from_pretrained("cccmatthew/surrey-gp30")# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="cccmatthew/surrey-gp30")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("cccmatthew/surrey-gp30")
model = AutoModelForTokenClassification.from_pretrained("cccmatthew/surrey-gp30")
# Gated model: Login with a HF token with gated access permission hf auth login