Views
No views yet
1from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, AutoConfig
2mname = "toloka/t5-large-for-text-aggregation"
3tokenizer = AutoTokenizer.from_pretrained(mname)
4model = AutoModelForSeq2SeqLM.from_pretrained(mname)
5
6input = "samplee text | sampl text | sample textt"
7input_ids = tokenizer.encode(input, return_tensors="pt")
8outputs = model.generate(input_ids)
9decoded = tokenizer.decode(outputs[0], skip_special_tokens=True)
10print(decoded) # sample texttrain-clean, dev-clean and dev-other parts of the CrowdSpeech dataset that was introduced in [our paper](https://openreview.net/forum?id=3_hgF1NAXU7&referrer=%5BAuthor%20Console%5D(%2Fgroup%3Fid%3DNeurIPS.cc%2F2021%2FTrack%2FDatasets_and_Benchmarks%2FRound1%2FAuthors%23your-submissions).| Dataset | Split | WER |
|---|---|---|
| CrowdSpeech | test-clean | 4.99 |
| CrowdSpeech | test-other | 10.61 |
1@inproceedings{Pletenev:21,
2 author = {Pletenev, Sergey},
3 title = {{Noisy Text Sequences Aggregation as a Summarization Subtask}},
4 year = {2021},
5 booktitle = {Proceedings of the 2nd Crowd Science Workshop: Trust, Ethics, and Excellence in Crowdsourced Data Management at Scale},
6 pages = {15--20},
7 address = {Copenhagen, Denmark},
8 issn = {1613-0073},
9 url = {http://ceur-ws.org/Vol-2932/short2.pdf},
10 language = {english},
11}1@misc{pavlichenko2021vox,
2 title={Vox Populi, Vox DIY: Benchmark Dataset for Crowdsourced Audio Transcription},
3 author={Nikita Pavlichenko and Ivan Stelmakh and Dmitry Ustalov},
4 year={2021},
5 eprint={2107.01091},
6 archivePrefix={arXiv},
7 primaryClass={cs.SD}
8}