How to use cointegrated/rubert-tiny2-sentence-compression with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="cointegrated/rubert-tiny2-sentence-compression")
# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("cointegrated/rubert-tiny2-sentence-compression") model = AutoModelForTokenClassification.from_pretrained("cointegrated/rubert-tiny2-sentence-compression")
The community tab is the place to discuss and collaborate with the HF community!