YAML Metadata Warning:The pipeline tag "text2text-generation" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other

Humanize Text Model (Lynote)

A lightweight bilingual (English/Chinese) humanizer: two small T5-seq2seq checkpoints in one repository that rewrite AI-flavored prose into more natural, human-flavored prose.

  • en/ — fine-tuned google-t5/t5-small (English)
  • zh/ — fine-tuned uer/t5-small-chinese-cluecorpussmall (Chinese)

What it does

  • Removes high-confidence AI clichés and formulaic phrases (e.g. "it is important to note that", "moreover", "值得注意的是", "降本增效").
  • Keeps already-human prose nearly untouched (identity learning).
  • Preserves numbers, URLs, file paths, code and quoted text (protected with PROTECTED_N placeholders during generation, restored afterwards).
  • Routes automatically by language (CJK ratio detection).

What it is NOT

This is a writing-quality aid, not a tool for evading AI detectors. Detector scores are probabilistic, and no humanizer can guarantee that text will be classified as human. Please use it responsibly: do not use it to misrepresent authorship in academic, legal, or disciplinary contexts.

Quickstart

pip install transformers torch
from humanize import Humanizer  # the wrapper bundled in this repo

h = Humanizer()  # loads this repo (en/ and zh/ sub-checkpoints)
print(h.humanize(
    "It is important to note that this robust solution serves as a "
    "testament to our commitment. Moreover, we leverage cutting-edge "
    "technology."
))
print(h.humanize("值得注意的是,我们通过赋能团队来实现降本增效。"))

Raw transformers usage (no wrapper):

from transformers import T5ForConditionalGeneration, T5Tokenizer

model = T5ForConditionalGeneration.from_pretrained("Danny-Lynote/humanize-text-model/en")
tokenizer = T5Tokenizer.from_pretrained("Danny-Lynote/humanize-text-model/en")
inputs = tokenizer("It is important to note that this is robust.", return_tensors="pt")
print(tokenizer.decode(model.generate(**inputs, max_length=128)[0], skip_special_tokens=True))

For Chinese use the zh/ sub-checkpoint with BertTokenizer.

Training data

The corpus is generated deterministically from the editing principles of the Lynote reference projects (humanize-text, humanize-text-skill, humanizer-lite):

  1. AI → human: formulaic clause combinations rewritten by a conservative rule engine,
  2. human → human (identity): clean prose unchanged, so the model learns not to rewrite good text,
  3. mixed: clean prose with one injected cliché that must be removed,
  4. protected spans: examples with URLs, numbers, code and quotes.

Reproduce:

python scripts/build_dataset.py --out data   # 14.7k pairs (en + zh)
python scripts/train.py --lang en --epochs 3  # -> checkpoints/humanize-text-model/en
python scripts/train.py --lang zh --epochs 3  # -> checkpoints/humanize-text-model/zh
python scripts/evaluate.py                    # benchmark on held-out test
pytest tests/                                 # full test suite

Evaluation (held-out test, 500 AI->human + all identity/protected pairs)

Metric Value
Corpus BLEU vs rule reference 99.2
Cliché removal rate 100.0% (435/435)
Identity stability (clean prose, n=67) 73.1%
Protected-span preservation (n=253) 96.8%
Throughput (MPS) ~218 chars/s

Limitations

  • Trained on synthetic text; real-world inputs may need light post-editing.
  • One checkpoint per language (English / Chinese); other languages are not specifically trained.
  • Long inputs are truncated to 256 tokens.
  • It is a conservative editor: it will not add stylistic richness that is absent from the source text.

License

MIT. Base models: google-t5/t5-small (Apache-2.0) and uer/t5-small-chinese-cluecorpussmall (Apache-2.0).

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Danny-Lynote/humanize-text-model

Finetuned
(2323)
this model