Downloads · 30 days
21
5% of all-time downloads
renix-codex/formal-lang-rxcx-model
formal-lang-rxcx-model is a text generation model from renix-codex. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is fine-tuned from T5-base for formal language correction and text formalization.
Downloads · 30 days
21
5% of all-time downloads
All-time downloads
421
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
This model is fine-tuned from T5-base for formal language correction and text formalization.
from transformers import AutoModelForSeq2SeqGeneration, AutoTokenizer
model = AutoModelForSeq2SeqGeneration.from_pretrained("renix-codex/formal-lang-rxcx-model")
tokenizer = AutoTokenizer.from_pretrained("renix-codex/formal-lang-rxcx-model")
# Example usage
text = "make formal: hey whats up"
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs)
formal_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
| Informal Input | Formal Output |
|---|---|
| "hey whats up" | "Hello, how are you?" |
| "gonna be late for meeting" | "I will be late for the meeting." |
| "this is kinda cool" | "This is quite impressive." |
The model was trained on the Grammarly/COEDIT dataset with the following specifications:
Apache License 2.0
@misc{formal-lang-rxcx-model,
author = {renix-codex},
title = {Formal Language T5 Model},
year = {2024},
publisher = {HuggingFace},
journal = {HuggingFace Model Hub},
url = {https://huggingface.co/renix-codex/formal-lang-rxcx-model}
}
Model developed by renix-codex
This model is intended to assist in formal writing while maintaining the original meaning of the text. Users should be aware that:
Initial Release - February 2024