Skip to content

Latest commit

 

History

History

README.md

基于lstm的languag model

写在前面

建立基于lstm的language model 并且利用深度学习语言模型进行模拟写作。

实现细节

本文使用的训练模型主要是基于字符,预测过程中按照字符一个个预测。

模拟结果

经过20次循环训练写出的模拟文本如下

 48 The ravthe ball, as it's^M
 49 absorbed to her, but they will not be of his own faith about a constance^M
 50 in all harm, so such a fashionable sarrices and more information and say that^M
 51 his house with a portrait of some picture to him. He would be, as she had^M
 52 belonged that it was in her husband, and was at the soul that they asked^M
 53 for her. A shooting official person in that princess stood in the comprosien^M
 54 in the day of the calalisy with her. An understanded the single^M
 55 coust of her brother. She served all the backs of his forting the^M
 56 mistake to ask that her husband's faither and himself. There was^M
 57 nongen in the man and staying asked him to their people, and he was not^M
 58 seemed to her than ever, and to the same time were sore feeling. And^M
 59 so is to himself at the children. The peasant saw that this would be seen^M
 60 itself. The marsh and an impression which had taken always had taken, and^M
 61 the point of his husband, and the mother was all the story in the marder.^M
 62 ^M
 63 All, that she went on to the solation was needed, and that she heard his^M
 64 conviction, and asked him in her husband's face with such, she was thought out^M
 65 which he had said, help, too, all the match of this triumph and himself.^M
 66 Anda in his face he was not interested and take an end in a leaves of^M
 67 them.^M
 68 ^M
 69 She had been atlition about this tendarness, that it was a particularly^M
 70 painting. He had no minute; the dined attention. But that he should be^M
 71 complying to stay that would not be disluke that it had buelt of as it^M
 72 would be already to be the family and his brother. He saw in the man with^M
 73 a still place. "Yes, you will sead to me to the bush of the mind, and^M
 74 is no one of the work, while the peasants are almost in her to see. I^M
 75 saw anything in the party from the same indeed," said Levin, stronger triling^M
 76 and was a little attempted to her sharis the day of her haid, and her^M
 77 hands. "You could not have any mind was the consciousness of the secold^M
 78 professir. What does her take on the mother."^M
 79 ^M
 80 And a little gettle of a second, a cross, with his forgetten that had^M
 81 all an unexpected, was to see the people, while his friends were^M
 82 commedded by taking a contrasy, and a strange starting children, started^M
 83 away from him who had breoked on the door, at all again, the meadow, who^M
 84 was not an interest to take her. Anyand time together strokes with the^M
 85 conversation in spites.^M
 86 ^M
 87 The partitular of a tries was treated again, and any horror, and he flung^M
 88 away with the stair was the changing health or his hat, and all the^M
 89 driven of the children's words, with a little children, and she had been^M
 90 thinking of all of as to him."^M
 91 ^M
 92 "Yes, but I don't know. You know whith was sen in myself to her, and that^M
 93 they was the fine and children?" she said in his strong which which was^M
 94 still with a change.^M
 95 ^M
 96 "You won't see. There's no one women with minutes and trust.^M
 97 ^M
 98 In the commint of the difference of the money of her first articulation^M
 99 to say she." He saw with which she had begun strutgling, and was not^M
100 tears of such a picturing head on the money of this supper to a such a^M
101 face were so little immediately, and answering how he would have been^M
102 too and to do whether they did anything. He felt asleep, he went up, he^M
103 higher, shouted out of his friends, that there came out her all how^M
104 things shirt of a conversation in her soul, and this was^M
105 confusion and walking about him. And shirt in the steps on agitation,^M
106 which he had been a court to his back to borre that had been discultively,^M
107 and have to say to such as to him at her shame of the wealness, and that^M
108 he had seen by the channe, but the same stalling hand with horror of^M
109 cares too happy to a shoulder of whom he called to him and, she saw her,^M
110 he starter and walked away, bus that if he should not control the same^M
111 conversation.^M
112 ^M
113 "What are you some family in these?"^M
114 ^M
115 "I am not so frighten, which is in this meaning of those thousand, what^M

可以看到,其中单词拼写的正确率还是很高的,文章的格式也基本模拟出来了。