https://colab.research.google.com/drive/1fZCrdg2UiJbQv4Ff_eJZXsHzSXo1KuJC
what’s wrong with code?
Accuracy is 22%
Hey @debjanihome, everything is fine, just you forgot to pass the random seed.
np.random.seed(11)
text = generateText(“apna”,k=4,maxLen=2000)
print(text)
This will give you the lyrics which will give you 100% accuracy.
Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section.