Re:Checking Code Style with Neural Networks (2017)
by nayname on Thursday August 23, 2018 @04:42AM
(#17825604)
Seq2seq translator (which trains to translate from one human language to another) is not a good architecture to learn computer code.
[ Parent
| on HN ]
Re:Checking Code Style with Neural Networks (2017)
by andyonthewings on Thursday August 23, 2018 @06:33AM
(#17826065)
What can be used instead?
Re:Checking Code Style with Neural Networks (2017)
by nayname on Thursday August 23, 2018 @07:07AM
(#17826212)
Another thing I like is NPI - https://arxiv.org/pdf/1511.06279.pdf. At the end, you can find NPI vs Seq2Seq charts
Re:Checking Code Style with Neural Networks (2017)
by nayname on Thursday August 23, 2018 @06:59AM
(#17826173)
It would be easier not to represent computer code as a string of sentences, but to get some semantic structure from it. One way is to use a syntax tree - https://openreview.net/forum?id=rkxY-sl0W