So I'm back with games with machine learning! This time I had two tasks: name generation and text generation. The first was funny, but I'll tell more about that another time. As you might guess, I decided to train the text generation model on the books of Leigh Bardugo. I chose "Six of Crows" and "Crooked Kingdom".
The model is trained for a looooong time. A very long time, and I'm terribly impatient. However, I decided to show you what I have at the moment.
The text is generated until the number of words exceeds 60. As you can see from the passages below, the model got confused with punctuation marks at first, but then gradually began to add words. It turned out to be a very exciting experience. Later I want to increase the number of epochs from 21 to 100 and see what happens.
Kaz Brekker Jesper , you of to , of . of . . to the , to , . of , . . of to of the , to the to . of . the , . the to the , the , the . . . to . . the . the . of to , the the . of the to . , to the , of the of of to . . , . the of . of the
------------------------------------------------------------------------------------------
Kaz Brekker “ . “ , “ “ the the , ’ ’ ’ the ’ the ’ the , , ’ , ” ’ , , the . . “ ’ , the ” , ” , . , . the ’ . . . ’ the the . the . , , ’ , . “ the the ” “ the ’ . “ “ the “ . “ the . the ’ . “ the . ’ the .
------------------------------------------------------------------------------------------
Kaz Brekker Jesper . He was . He . “ I . I to a to the ” The , . I . She the , but . The , ” He to the . I ’ s . I ’ t . The ’ . I to , and a . I the . He . She , . “ I “ I . She , but ” “ I “ I . “ the and ” The ’ s ’
------------------------------------------------------------------------------------------
Kaz Brekker Jesper “ “ You ’ . “ The , the the , . The and ” “ “ “ “ “ The and and , the and the ” He . He . He was a the , but the and , the , ” The , ” The , . She to his to . The ’ s the and , ” “ You ” the and the the . He . “ “ The ’ s to ,
------------------------------------------------------------------------------------------
Kaz Brekker can ’ ll he could his to her . She was ’ d , the , and a . “ The ” He , and a ’ t to her to the ” He said , but , but ” said to a ” “ “ It ’ ll his . The the . She had been . He . I said . He was was to his and the , and his , and ” “ “ It was
------------------------------------------------------------------------------------------
Kaz Brekker and the but the Barrel of her to his ” Nina was was ’ re a ” The and and the the but and ” “ “ The he , the other to be . She , the the ” Kaz said to a , the and and ” “ It ’ ll a . “ I said . They , he was was was ’ t to her ” She ’ s a few . “ The and a
------------------------------------------------------------------------------------------
Kaz Brekker can can said You ’ re a way . The other . The he had ’ s . “ What he was ’ s , ” Nina , but you said ” “ It said . She said , but the ” “ The ” “ The other , and you said the other . Kaz had the Barrel and his and ” said . She could his , the and he said ” Nina ’ re , but she
------------------------------------------------------------------------------------------
Kaz Brekker t know Jesper . It ’ d been . “ The ” “ What ’ re the way ” Kaz ’ re his father ’ d a way , he could a few to the way to his , but the Ice the ” said ” Nina ’ ll her and his and his father , he could you , the ” Kaz said to her and the way . The he had to a little , the Ice ’
------------------------------------------------------------------------------------------
Kaz Brekker was face and you have a little , he said , he said . Kaz said . She was had a , ” said , and a way . “ It could have , he could his hands , but he said , he could have been to his hands , ” said the the way to a , but the ” he had the other . She could be , the other and she had a little . She
------------------------------------------------------------------------------------------
Kaz Brekker d “ The other ” “ The guards ? I ’ ll be a way of a few . I was to the door to be ” Nina ’ t a few . The boy ’ d ’ re the ” “ The boy , but she was ’ t be a few and his head of . “ It could the city and he was a little ” Wylan was . The other , but you said ” “
------------------------------------------------------------------------------------------
Kaz Brekker d said ” “ You can had been , but she had been the ” he said . Kaz . He ’ t be a , and she ’ t the the city and he said . They could a long in the ” “ You can was . I had a hand , he was to a little ” Kaz was the way of his eyes of . He had ’ re her and the the other of his
...Then I tried to train the model on the Russian version of the books, and the result was much better already in the first epochs. At the moment, the model is still being trained, and texts looks a little stupid, but here are results anyway:
Каз Бреккер . Он не был покрыт и он услышал его и , но он не мог понять в этом . – Это не было времени ? Он не хочу . Матиас почувствовал его за дверью на нее с Матиасом и в конце , и они все равно знал с ним – он с тобой , что ты хочешь . Когда она не было . – Что я не могу его ? Джеспер кивнул – и на них и не будет ждать
Каз Бреккер , но не не не мог понять . – Это был готов , что я хочу сказать на него , чтобы я бы тебе , когда ты хочешь . Джеспер знал об этом , и все это напомнило Инеж с Матиасом в том месте . Он думал ? – Нет не не было назвать . Он знал ли они в том с пульсом ? Он взял бровь . Каз был не было бы быть . – Что , что ты
Каз Бреккер услышал приближающийся топот глиной . « Я бы хотел , и все его лицо – Призрак . Он был весь количество , но и так не остановятся в том направлении и не так далеко . Джеспер присел рядом с Матиасом . Матиас почувствовал легкую на него , но все его пристрелить ее в воздухе с пульсом на песке . « Я бы предпочел забрать раз , когда я не мог перестать лифт , что я не могу заставить ее жизни