Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kevinlu1248
· 3y ago · 0 comments
That's interesting, I've seen a few papers about this. I'm personally curious about editing syntax trees using language models, since it would prevent syntax errors altogether.
Comments
[–]
madeofpalk
3y ago
In my limited use, I've never seen these models (chatgpt, and github copilot) generate invalid syntax. I don't see much to improve there
I do see them generate code that fails the type checker though.
[–]
kevinlu1248
OP
3y ago
For editing code there's a decent chance of syntax errors or undefined variables since it's only modifying a subset of the code.
[–]
vladf
3y ago
Which papers?
[–]
kevinlu1248
OP
3y ago
Here's some of the papers:
https://arxiv.org/abs/1911.09983
and
https://aclanthology.org/2021.findings-acl.384.pdf