NLP
Collection
Dhivehi Natural Language Processing: Text analysis, translation, sentiment analysis, and language generation tools for Thaana
•
27 items
•
Updated
A GPT-2 language model trained on Dhivehi text data for text generation.
The model is trained on Dhivehi text data with the following configuration:
def simple_generate(prompt, model_path):
from grapp import DhivehiGPT2Generator
generator = DhivehiGPT2Generator(model_path)
return generator.generate_text(prompt, max_length=200)[0]
# Example usage:
result = simple_generate("ސުރުޚީ: ރާއްޖޭގެ", "alakxender/dv-articles-sm-gpt2")
print(result)
Base model
openai-community/gpt2