Репозиторий содержит простую LSTM модель, обученную на тексте произведения Джеймса Джойса Улисс. Модель реализована на PyTorch, т.к. современные версии TensorFlow на Windows с GPU работают нестабильно или не поддерживаются. Main формирует словарь и модель, а также даёт пример генерации для пользователя. Gener использует словари и модель для генерации полного предложения/ий на основе первого слова.
Генерация оставлять желать лучшего.
Примеры генерации:
He said that he was a bit too given him in the kitchen and the first socialist he always struck him and the arabs and the sentry of the pan opened the bed , carefully his mouth with his hands and scratched his gaze turned in the bed , the dictates of its own son , the first of the bed , the douce said , nodding curtly , in the company of glasnevin
Stars were shining from the sun , the sun flung spangles , midnight returning out of the wind of the law , of the troubles . . . what did bloom do ?
Dublin was especially there , the professor said , with a tree , boylan , the professor said , nodding with his voice . what did he say ? what did bloom ?