TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Text2Code: Converts English queries into Python code

60 点作者 jernejzen将近 4 年前

5 条评论

jboggan将近 4 年前
This is neat, we did something a couple of years ago like this (but much cruder) by training off of Stack Overflow question and answer data. Actually we were trying to make a rubber ducky debugging chatbot but we didn&#x27;t clean our inputs and it started spitting out code blocks when we asked it English questions.<p>With all the fuss over Autopilot have you considered the inverse problem? I trust myself to write code but often in an unfamiliar codebase I spend the majority of the time reading and deciphering what code does. Does the inverse work very well with your training set? I&#x27;d love to highlight code on the screen and get an English approximation of what it does. That&#x27;s a truly useful helper.
trutannus将近 4 年前
These things are cool, but I find ultimately things like this end up just being a more natural language like programming language. There will generally be ways you have to phrase your query to get the algorithm to understand it. Having to make sure the interpreter can understand you, and debugging your query to me takes away all the advantage of a tool like this. You end up with syntax and keywords, all features of a language, but instead of getting them from a documentation page, you have to bash your head against the interpreter to figure them out.<p>Same thing with no-code platforms. They&#x27;re great until you have to understand why the code generator spat out something that&#x27;s throwing incomprehensible errors. For example, try debugging compiled typescript for an idea of how autogenerated code debugging works out.
评论 #27973400 未加载
评论 #27980040 未加载
Y_Y将近 4 年前
Ask it for a polynomial time factorisation algorithm.
melling将近 4 年前
I’d love to see this work with voice input
评论 #27973167 未加载
farrazzyx将近 4 年前
good