Skip to content

A poem will be generated using different Language models in Urdu language. This poem will consist of three stanzas each containing four verses.

Notifications You must be signed in to change notification settings

Bushramjad/NGrams-Poetry-Generation-Urdu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poetry-Generation-in-Urdu

We will use n-gram language modeling to generate some poetry using the spaCy library for text processing. A poem will consist of three stanzas each containing four verses where each verse consists of 7—10 words.

The generational model are trained on the provided Poetry Corpus containing poems from Faiz, Ghalib and Iqbal. We will train unigram and bigram models using this corpus.

Several online solutions are available for English that use the NLTK library. However, we will be using the spaCy library to accomplish this task!

Language Models Used

  1. Unigram Model
  2. Bigram Model
  3. Backward Bigram Model
  4. Trigram Model

About

A poem will be generated using different Language models in Urdu language. This poem will consist of three stanzas each containing four verses.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published