Transformers
PyTorch
Safetensors
English
t5
text2text-generation
sentence correction
text-generation-inference
Instructions to use KES/T5-KES with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KES/T5-KES with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("KES/T5-KES") model = AutoModelForSeq2SeqLM.from_pretrained("KES/T5-KES", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -42,9 +42,9 @@ arguments = TTSettings(num_beams=4, min_length=1)
|
|
| 42 |
sentence = "Wat iz your nam"
|
| 43 |
|
| 44 |
correction = model.generate_text("grammar: "+sentence, args=arguments)
|
| 45 |
-
if(
|
| 46 |
-
|
| 47 |
|
| 48 |
-
print(
|
| 49 |
|
| 50 |
```
|
|
|
|
| 42 |
sentence = "Wat iz your nam"
|
| 43 |
|
| 44 |
correction = model.generate_text("grammar: "+sentence, args=arguments)
|
| 45 |
+
if(correction.text.find(" .")):
|
| 46 |
+
correction.text=result.text.replace(" .", ".")
|
| 47 |
|
| 48 |
+
print(correction.text) # Correction: "What is your name?".
|
| 49 |
|
| 50 |
```
|