Downloads · 30 days
3
2% of all-time downloads
KemiOm/poetry-rhyme-best
poetry-rhyme-best is a machine learning model from KemiOm. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as cc-by-sa-4.0.
KemiOm/poetry-rhyme-best is a LoRA-adapted google/flan-t5-large model that predicts the rhyme phonology ending for a single poetic line.
Downloads · 30 days
3
2% of all-time downloads
All-time downloads
132
Public
Parameters
783M
3.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.1 GB · 100%
From the Hugging Face model README
KemiOm/poetry-rhyme-best is a LoRA-adapted google/flan-t5-large model that predicts the rhyme phonology ending for a single poetic line.
Given one input line, the model outputs only the line-final rhyme phonology in ARPAbet-style phones.
Tired Nature's sweet restorer, balmy Sleep!IY1 P
This is a line-level labeling task (not stanza generation and not full combined-structure prediction).A short phonological ending sequence, e.g.:
IY1 PEY1 ZOW1AY1 N DThe rhyme-only training set uses:
input: poetic line texttarget: rhyme phonology string only
Example:input: He, like the world, his ready visit paystarget: EY1 Zgoogle/flan-t5-large5.05e-05 (round2 setting)82384128r): 32640.05q,k,v,o42from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model_id = "KemiOm/poetry-rhyme-best"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
line = "Tired Nature's sweet restorer, balmy Sleep!"
inputs = tokenizer(line, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=12, do_sample=False)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
# expected format: "IY1 P"