如何训练ML模型将文本转换为代码
寻找一个有效的示例COLAB/笔记本,以显示能够转换“短文本”的文本生成模型的培训或微调 - > “编程代码文本”。
我正在学习这个主题,并希望通过一些公共GitHub存储库进行定制指标对其进行微调。
到目前为止,我发现的只是“继续句子”或简单地从蓝色生成文本的模型。非常感谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您可以看到 codexglue Microsoft/codexglue“ rel =“ nofollow noreferrer”>存储库,我们有四个类别:
您想要
文本对代码>“文本对代码生成”任务
。 codexglue 上的基本基准测试,此任务的最佳模型之一是cotext
。cotext
支持以下编程语言:“ go”,“ java”,“ javascript”,“ php”,“ python”,“ ruby” 。您可以在预训练“ rel =” nofollow noreferrer“> huggingface”> huggingface 来自在这里
并解释如何微调此there
there 。First, You can see CodeXGLUE and their repository, we have four categories:
You want
text-to-code generation task
. Base benchmark on CodeXGLUE, one of the best models for this task isCoTexT
.CoTexT
support these programming languages : "go" ,"java", "javascript", "php", "python", "ruby". You can find the pre-trained of this model on huggingface fromhere
and explaining about how to fine-tune thishere
.