Skip to content

alisanjari/LSTM-persian-poetry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LSTM for persian poetry

This work is based on script by Hannah Vivian Shaw cloned from this repository. The original work is done by Andrej Karpathy blog.

Besides some minor modification to the main code for trasition from English to Farsi. My main contribution is to provide a few utility function desgined to scrape the rira website. This is an excellent digital library that contains many books of classical Persian poetry of various poets.

This work is based on script by Hannah Vivian Shaw cloned from this repository. The original work is done by Andrej Karpathy blog.

Besides some minor modification to the main code for trasition from English to Farsi. My main contribution is to provide a few utility function desgined to scrape the rira website. This is an excellent digital library that contains many books of classical Persian poetry.

I first worked on this project in January of 2019, right after finishing few courses on deep learning on Coursera. Towards the end of the work and before moving to write a blog about it, I found out that Afshin Khashei has already worked on this topic has wrote this nice blog about it. Therefore, at the time, I decided to move on and posting this work. However, I recently been asked to show case my skills, and therefore have decided to put up some of my projects on github.

Here is an example of a rumi style poem generated by this model:

در ترا و هر که را یامد شدند

در عدو اندار من بعذور بند

چون ندارد شیر را آن زهر دید

از کل و اطبعت اگر چاری کشید

زانک دین را هست واناسد پدید

او نه دیدش گفت این را کار کرد

دو گمان برده که او خابر شدند

بر مر دل کشهای خود را و قدر

بند کاشت کی حمد آن بر سرست

اختلاف ما و هم شادی نهان

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages