Define the task and data
Collect a licensed corpus of poems, decide output length and prompt format, and define success metrics such as human preference and diversity.
Generate poetic text. Assess output quality.
Poetry generation trains a model to produce short, stylistically coherent lines or stanzas given a prompt. Key challenges include preserving metre and imagery, avoiding repetition, and ensuring outputs respect copyright and content safety.
Learning concept · Not a validated service
Poetry generation trains a model to produce short, stylistically coherent lines or stanzas given a prompt. Key challenges include preserving metre and imagery, avoiding repetition, and ensuring outputs respect copyright and content safety.
A proposed application: assist creative writers with draft lines or alternative phrasings while keeping a human editor in control. This extension is not implemented by the supplied starter.
Collect a licensed corpus of poems, decide output length and prompt format, and define success metrics such as human preference and diversity.
Cleanline breaks and preserve stanza structure; use a tokenizer suited for poetic punctuation and rare words.
Fine-tune a small autoregressive model (or train an LSTM baseline) and track perplexity and sample quality over checkpoints.
Use human evaluations for creativity and coherence, plus automatic checks for repetition, plagiarism and offensive content.
The supplied starter creates a small numeric array of seed_examples, computes their centroid and covariance, draws five synthetic multivariate-normal samples clipped to [0,1], and prints them. It does not load text, tokenise, or run any language model or generation routine.
centroid = seed_examples.mean(axis=0)
covariance = np.cov(seed_examples.T) + np.eye(seed_examples.shape[1]) * 0.01
synthetic_samples = rng.multivariate_normal(centroid, covariance, size=5)
synthetic_samples = np.clip(synthetic_samples, 0, 1)
print(PROJECT_NAME)
print("Synthetic samples:")
print(np.round(synthetic_samples, 3))The starter works with small numeric vectors and multivariate-normal sampling; it contains no text data, tokenizer, language model, training loop or inference for poetry. It therefore cannot demonstrate poetry generation quality, metrics like perplexity, or any language-specific failure modes.
Proposed extension: fine-tune a small autoregressive model on a licensed poem corpus to produce short lines from prompts, and surface multiple candidates for a human editor to choose or edit.
This is a potential application pathway, not a delivered product. The supplied starter does not implement this service or validate it with real users.
Networkers Home runs this topic inside its AI Engineer Course, with placement support and hands-on labs.