This T5-based model specializes in generating coherent legal narratives from structured legal entities and relationships. It's fine-tuned specifically for legal text generation, human rights documentation, and case narrative construction.
Developed by: Lemkin AI Model type: T5 (Text-to-Text Transfer Transformer) for Legal Text Generation Base model:google/flan-t5-base Language(s): English (primary), French, Spanish License: Apache 2.0
Model Details
Architecture
Base Model: FLAN-T5 Base (instruction-tuned T5)
Parameters: 248M total parameters
Model Size: 1.0GB
Task: Text-to-text generation for legal narratives
Input Length: 512 tokens maximum
Output Length: 1024 tokens maximum
Layers: 12 encoder + 12 decoder layers
Hidden Size: 768
Attention Heads: 12
Performance Metrics
ROUGE-L Score: 0.89 (narrative coherence)
BLEU Score: 0.74 (text quality)
Legal Accuracy: 0.92 (factual consistency)
Generation Speed: ~100 tokens/second (GPU)
Throughput: ~10 narratives/second (GPU)
Capabilities
Primary Functions
Entity-to-Narrative: Convert structured legal entities into coherent prose
Relation-based Stories: Generate narratives based on legal relationships
entities=[Maria Rodriguez, Constitutional Court, freedom of expression, social media post,
criminal charges] relations=[defendant_in, violation_of, charged_with]
context=legal proceedings for online criticism
Free-Form Prompt
Generate a legal narrative about arbitrary detention of journalists during protests,
including timeline, legal violations, and international law context
Limitations and Considerations
Technical Limitations
Context Length: Limited to 512 input tokens and 1024 output tokens
Language Performance: Best on English, decreasing quality on other languages
Domain Specificity: Optimized for legal text, may not perform well on general content