A R Karthika
commited on
Commit
•
f41d9cf
1
Parent(s):
6ab7ae7
Update README.md
Browse filesThis model generates a revised version of inputted text with the goal of containing fewer grammatical errors. It was trained with Happy Transformer using a dataset called JFLEG and also with custom dataset. Here's a full article on how to train a similar model.
USAGE:
pip install happytransformer
from happytransformer import HappyTextToText, TTSettings
happy_tt = HappyTextToText("T5", "Karthika03/T5_Grammer_Nova")
args = TTSettings(num_beams=5, min_length=1)
# Add the prefix "grammar: " before each input
result = happy_tt.generate_text("grammar: This sentences has has bads grammar.", args=args)
print(result.text) # This sentence has bad grammar.