A R Karthika commited on
Commit
f41d9cf
1 Parent(s): 6ab7ae7

Update README.md

Browse files

This 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.

Files changed (1) hide show
  1. README.md +4 -1
README.md CHANGED
@@ -1,3 +1,6 @@
1
  ---
2
  license: pddl
3
- ---
 
 
 
 
1
  ---
2
  license: pddl
3
+ language:
4
+ - en
5
+ pipeline_tag: text-classification
6
+ ---