Instructions to use AlexMaclean/sentence-compression-roberta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlexMaclean/sentence-compression-roberta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="AlexMaclean/sentence-compression-roberta")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("AlexMaclean/sentence-compression-roberta") model = AutoModelForTokenClassification.from_pretrained("AlexMaclean/sentence-compression-roberta", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download vocab.json from AlexMaclean/sentence-compression-roberta: direct link, hf CLI and curl.
- Browser
- Download file 899 kB
-
https://huggingface.co/AlexMaclean/sentence-compression-roberta/resolve/main/vocab.json
- Command line
-
hf download hf://AlexMaclean/sentence-compression-roberta/vocab.json
-
curl -L -o vocab.json https://huggingface.co/AlexMaclean/sentence-compression-roberta/resolve/main/vocab.json
899 kB
File too large to display, you can check the raw version instead.