Instructions to use AlexMaclean/sentence-compression with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("AlexMaclean/sentence-compression") model = AutoModelForTokenClassification.from_pretrained("AlexMaclean/sentence-compression", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download vocab.json from AlexMaclean/sentence-compression: direct link, hf CLI and curl.
- Browser
- Download file 899 kB
-
https://huggingface.co/AlexMaclean/sentence-compression/resolve/44c7d7a16c54be9b67854a2aba684ee675e73b63/vocab.json
- Command line
-
hf download hf://AlexMaclean/sentence-compression@44c7d7a16c54be9b67854a2aba684ee675e73b63/vocab.json
-
curl -L -o vocab.json https://huggingface.co/AlexMaclean/sentence-compression/resolve/44c7d7a16c54be9b67854a2aba684ee675e73b63/vocab.json
899 kB
File too large to display, you can check the raw version instead.