4 ms·
I've been playing around in this area for a while and I think there is a lot of potential - although I'm not sure code search is the ultimate expression of how
by nl 8y ago
I've been playing around in this area for a while and I think there is a lot of potential - although I'm not sure code search is the ultimate expression of how this should be used.
There's another interesting paper called code2vec[1]. Code2vec uses the AST of a code snippet and builds an embedding of those rather than dealing with is as just a sequence of tokens which some earlier attempts do.
This paper does the same, which is nice.
Code2vec (at least the demo at [2] which I think is the same thing) is extremely sensitive to variable names. I'm not sure if that is a bug or if they are including that in their embedding.
If people have specific things they'd like to do if they had a tool which had deep understanding of the intent of code I'd be pretty interested to hear about it. Contact details in my profile, or reply here.
[1] https://arxiv.org/abs/1803.09473 https://arxiv.org/abs/1803.09473
[2] https://code2vec.com/ https://code2vec.com/
- fullstackchris 8y agoAnother cool paper along a similar thread is DLPaper2Code: Auto-generation of Code from Deep Learning Research Papers (https://arxiv.org/abs/1711.03543 https://arxiv.org/abs/1711.03543). I see opportunities with tools like this in the form of apps and/or SaaS, IF a team is willing to put thousands of hours into a top quality way to make the machine learning super user friendly. The only comparable product of such a nature I've seen is deepl.com/translator (translator better than google translate which leverages deep learning - don't trust me? go try it)