End of Training 8b4cdfd
Alex MacLean commited on
How to use AlexMaclean/sentence-compression with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="AlexMaclean/sentence-compression") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("AlexMaclean/sentence-compression")
model = AutoModelForTokenClassification.from_pretrained("AlexMaclean/sentence-compression")