Show HN: Neural network that impersonates writers
1–10 of 33 posts
Re: Show HN: Neural network that impersonates writers
#2For comparison with Andrej Karpathy's RNN code (http://karpathy.github.io/2015/05/21/rnn-effectiveness/) training on the "HarryPotter(xxlarge).txt" (76K) file using the default hyperparameters and a batch size of 25 gets me:
> But Atfa the loom proset! No contarin — mibll,’s just pucking to live
> note left them hard and fitther, clooked of course little happered to
> trige on the fistpened. Their knew Harry mear from the shind-beas
> eveided, at Uncle Vernon’s thepped to spept were pelled and beadn
> Harry, distine dy use. Harry had in a amalout, into the fish sfary door.
The difference here is tokenizing on words vs letters: the RNN code is trying to learn the structure of English from completely zero whereas the code here gets to work with well-formed words from the beginning. But otherwise, the results in the linked post are about as silly semantically: > Input: "Harry don't look"
> Output: "Harry don't look , incredibly that a year for been parents in .
> followers , Harry , and Potter was been curse . Harry was up a year ,
> Harry was been curse "
EDIT: Updated the RNN output text. Was sampling from a checkpoint file for a different input corpus. Got confused by the long similar-looking filenames. Doesn't change the overall point though.Re: Show HN: Neural network that impersonates writers
#3Re: Show HN: Neural network that impersonates writers
#4The output seems to me around the level a Markov chain might produce. Karpathy's RNN code produces much, much better results[1].
I wonder if manually extracting features and training the RNN on that is a mistake? RNN's tend to work well on text because they encode understanding of the parse tree themselves.
Re: Show HN: Neural network that impersonates writers
#5Have you considered the copyright on the Harry Potter training data?
Re: Show HN: Neural network that impersonates writers
#6Re: Show HN: Neural network that impersonates writers
#7Have you considered the copyright on the Harry Potter training data?
fair use - education
Anyway, there are countries that don't have a fair use policy. So in this countries your repository could not legally be used.
IMHO, this is an unnecessary use of copyrighted material when there are thousands of equally well suited texts that have fallen out of copyright.
Re: Show HN: Neural network that impersonates writers
#8Fun hack. If anything, it highlights how compelling deep learning and RNNs are: no messing with NLP, no messing with building other features or adding up classifiers, etc. The manual feature engineering means it might work better on a smaller dataset, but even then probably not. For comparison with Andrej Karpathy's RNN code ( http://karpathy.github.io/2015/05/21/rnn-effectiveness/ ) training on the "HarryPotter(xxla…
It is learning phrases like so that you need the and that's the one from scratch. This version looks better at first glance because it is using correctly spelled words, but it repeatedly makes syntactic errors like for been/was been.
Re: Show HN: Neural network that impersonates writers
#9Re: Show HN: Neural network that impersonates writers
#10Earlier quoted context omitted.
fair use - education
I would still be cautious. There is no need to use exactly this text. Anyway, there are countries that don't have a fair use policy. So in this countries your repository could not legally be used. IMHO, this is an unnecessary use of copyrighted material when there are thousands of equally well suited texts that have fallen out of copyright.