Downloads · 30 days
37
28% of all-time downloads
elizaveta-dev/T5-REF-CORRUPT-EN
T5-REF-CORRUPT-EN is a text generation model from elizaveta-dev. Use it when you need the model to write or continue text. It is set up for transformers.
pipelinetag: text-generation language: en libraryname: transformers tags: - t5 - grammar-correction - text-generation ---
Downloads · 30 days
37
28% of all-time downloads
All-time downloads
132
Public
Parameters
223M
892 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors892 MB · 100%
From the Hugging Face model README
pipeline_tag: text-generation language: en library_name: transformers tags:
Objective: This model corrects errors in academic referencing. For example:
Input (wrong sentence): According to Smith & Peterson 2016 56, the translation reveals patterns that suggest underlying semantic shifts
Output (clean sentence): According to Smith and Peterson (2016: 56), the translation reveals patterns that suggest underlying semantic shifts.
Model Details:
Usage Cases: Error correction of academic references according to CTS guidelines.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model_id = "elizaveta-dev/T5-REF-CORRUPT-EN"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
text = "According to Smith & Peterson 2016 56, the translation reveals patterns that suggest underlying semantic shifts."
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
The model can perform automatic corrections of various referencing errors, including:
Example of mistake: (Lopez 2018; Chen 2012) found that cultural context strongly influences translation strategies.
Example of correction: Lopez (2018) and Chen (2012) found that cultural context strongly influences translation strategies.
Example of mistake: This topic has been widely researched Baker (2006).
Example of correction: This topic has been widely researched (Baker 2006).
Example of mistake: The concept of functional equivalence was analyzed by Baker & Green (2007).
Example of correction: The concept of functional equivalence was analyzed by Baker and Green (2007).
Example of mistake: Previous research (Müller, Schmidt 2001) highlights challenges in literary translation.
Example of correction: Previous research (Müller & Schmidt 2001) highlights challenges in literary translation.
Example of mistake: According to Williams, translation theory continues to evolve (2011: 77).
Example of correction: According to Williams (2011: 77), translation theory continues to evolve.
Example of mistake: As Lee (2009) explains, equivalence is central in translation (Lee 2009).
Example of correction: As Lee (2009) explains, equivalence is central in translation.