arXiv:2505.11026cs.CLcs.AI2025-05ACL被引 2

首个俄语代码注释数据集,提升俄语代码可读性。

StRuCom: A Novel Dataset of Structured Code Comments in Russian

  • 结合真实与合成数据构建俄语代码注释库
  • 在15.3万条数据上微调模型,性能显著提升
  • 适合从事俄语编程或代码生成研究者

文档字符串格式的结构化代码注释对代码理解与维护至关重要,但现有机器学习模型在俄语上的表现远逊于英语。为弥补这一差距,我们提出了StRuCom——首个大规模俄语代码文档数据集(含15.3万条样本)。该数据集融合了来自俄语GitHub仓库的真实人工注释与合成生成的注释,通过自动化验证确保符合Python、Java、JavaScript、C#和Go等语言标准。在StRuCom上微调Qwen2.5-Coder模型(0.5B-7B参数),在chrf++和BERTScore指标上均取得统计显著提升。

原文摘要 · Abstract (English)

Structured code comments in docstring format are essential for code comprehension and maintenance, but existing machine learning models for their generation perform poorly for Russian compared to English. To bridge this gap, we present StRuCom - the first large-scale dataset (153K examples) specifically designed for Russian code documentation. Unlike machine-translated English datasets that distort terminology (e.g., technical loanwords vs. literal translations) and docstring structures, StRuCom combines human-written comments from Russian GitHub repositories with synthetically generated ones, ensuring compliance with Python, Java, JavaScript, C#, and Go standards through automated validation. Fine-tuning Qwen2.5-Coder models (0.5B-7B) on StRuCom shows statistically significant improvements of chrf++ and BERTScore over baseline models.

代码生成俄语数据集自然语言处理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。