Pages

Thursday, September 21, 2017

Can an Artificial Intelligence generate Sanskrit Mantra?

Can an Artificial Intelligence produce Sanskrit Mantras

Below is the result of training an Artificial Intelligence (AI) on a small 200kb data set on Sanskrit Durga mantras from Sanskrit Documents.
https://sanskritdocuments.org/doc_devii/

Configuration
- Recurrent Neural Network
- 2 Hidden Layers / 128 Neurons
- Input Size - 32 [one-hot]

Output after 1.5 hours training

OM shiShTAyai namaH |
OM gRRihItAyutahastakaryai namaH |
OM jumpaTA lalitAlavimohitAyai namaH |
OM haMsamantrabhakShivahyAyai namaH |
OM upAsyAyai namaH |
OM haMsabIjAM mahAsinyanAshinI |
phAlalAyai namaH |
OM makodhAyai namaH |
OM santAnAM mahAmogiH sahA.a.armiNyai namaH |

Observations:
a. It recognizes letters, words and sentences.
b. It has recognized the pattern OM X namaH
c. It has recognized the dative (chaturthi vibhakti) before namaH (ex: upAsyAyai)
d. it has generated new words - which are meaningless but Sanskrit sounding and semantically/ grammatically/ structurally quite correct
e. Larger dataset and more training is required.

Note: I had earlier used a Markov chain generator - but RNN in my opinion is much superior. Markov generators being statistical can do only so much.

Question: Can an Artificial Intelligence generate Sanskrit Mantra?

After 1.5 hours it produces Sanskrit like Mantra. Is it not likely that after sufficient training one specific configuration of weights could mimic "divine inspiration" / "Rishi state" and render meaningful inspired mantras? It is an intriguing possibility.

Image: http://www.extremetech.com/wp-content/uploads/2015/07/neural-net-head.jpg

No comments:

Post a Comment