Token Classification
Transformers
ONNX
Safetensors
bert
subtitles
live-captioning
text-compression
llmlingua-2
deletion-only
Instructions to use marcosremar2/ucast-subtitle-compressor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use marcosremar2/ucast-subtitle-compressor with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="marcosremar2/ucast-subtitle-compressor")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("marcosremar2/ucast-subtitle-compressor") model = AutoModelForTokenClassification.from_pretrained("marcosremar2/ucast-subtitle-compressor", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download benchmark/items.json from marcosremar2/ucast-subtitle-compressor: direct link, hf CLI and curl.
- Browser
- Download file 2.93 kB
-
https://huggingface.co/marcosremar2/ucast-subtitle-compressor/resolve/main/benchmark/items.json
- Command line
-
hf download hf://marcosremar2/ucast-subtitle-compressor/benchmark/items.json
-
curl -L -o items.json https://huggingface.co/marcosremar2/ucast-subtitle-compressor/resolve/main/benchmark/items.json
2.93 kB
| [ | |
| {"id":"pt1","lang":"pt","text":"Bom, então, o que a gente viu no último trimestre foi que as vendas cresceram doze por cento. E isso, isso foi principalmente por causa do mercado do Nordeste. A gente abriu três lojas novas em Recife e em Fortaleza.","keep":["12|doze","Nordeste","três|3","Recife","Fortaleza"]}, | |
| {"id":"pt2","lang":"pt","text":"A reunião com a diretoria ficou para quinta-feira, dia vinte. Quem não puder ir tem que avisar a Beatriz até terça. Ela vai mandar a pauta por e-mail.","keep":["quinta","20|vinte","Beatriz","terça"]}, | |
| {"id":"pt3","lang":"pt","text":"Eu queria fazer uma pergunta para vocês. Quantos aqui já usaram inteligência artificial no trabalho? Levantem a mão, por favor.","keep":["inteligência artificial|IA","trabalho","mão|?"]}, | |
| {"id":"pt4","lang":"pt","text":"O projeto não vai ser cancelado. Ele só vai atrasar uns dois meses, porque o fornecedor da China não entregou as peças. Mas o orçamento continua o mesmo.","keep":["não","cancel","dois|2","China","orçamento"]}, | |
| {"id":"fr1","lang":"fr","text":"Alors, euh, je voulais commencer par remercier tout le monde d'être venu. Aujourd'hui on va parler du climat à Marseille. En dix ans, la température moyenne a augmenté de deux degrés.","keep":["Marseille","dix|10","deux|2","degré"]}, | |
| {"id":"fr2","lang":"fr","text":"Le budget de la mairie a été voté hier soir. Il prévoit quarante millions d'euros pour les écoles. L'opposition a voté contre.","keep":["quarante|40","million","école","opposition","contre"]}, | |
| {"id":"fr3","lang":"fr","text":"Je ne suis pas d'accord avec ce que vient de dire Monsieur Dubois. Les chiffres montrent le contraire. Le chômage a baissé de trois pour cent cette année.","keep":["pas|ne","Dubois","trois|3","chômage","bais"]}, | |
| {"id":"en1","lang":"en","text":"So, um, the main thing I want you to remember is this. Our app now supports sixteen languages. And next month we're adding Japanese and Korean.","keep":["sixteen|16","Japanese","Korean","next month"]}, | |
| {"id":"en2","lang":"en","text":"The server went down at three in the morning. Nobody noticed until eight, when customers started calling. We lost about five hours of orders.","keep":["three|3","eight|8","five|5","orders"]}, | |
| {"id":"en3","lang":"en","text":"Doctor Takahashi will not be joining us today. She is sick. Her talk about Kubernetes moves to Friday afternoon.","keep":["Takahashi","not","Kubernetes","Friday"]}, | |
| {"id":"es1","lang":"es","text":"Bueno, pues, la verdad es que el proyecto empezó en dos mil diecinueve. Al principio éramos solo cuatro personas. Hoy somos más de doscientas en seis países.","keep":["2019|diecinueve","cuatro|4","doscientas|200","seis|6"]}, | |
| {"id":"pt5","lang":"pt","text":"Isso aqui é importante. Não desliguem o computador durante a atualização. Ela leva uns quinze minutos e reinicia sozinha no final.","keep":["não","deslig","quinze|15","reinicia"]} | |
| ] | |