arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2607.06505cs.SEcs.AIcs.DB
收藏

使用北美行业分类系统(NAICS)对GitHub仓库进行行业分类

Industry Classification of GitHub Repositories Using the North American Industry Classification System (NAICS)

Kevin Xu, Alexander Quispe

AI总结:

研究利用北美行业分类系统对GitHub仓库进行行业分类,提出结合多种技术的检索与验证管道生成标签,构建NAICS-GH语料库,测试表明标签精度高,还对预训练编码器进行基准测试,相关数据和代码开源。

摘要:

GitHub拥有数亿个公共仓库,但该平台没有从仓库到标准化行业部门的原生映射。这种差距限制了有关创新地理、开源生产的产业构成以及新技术在经济部门间扩散的实证研究。我们提出了NAICS-GH,这是一个公开的语料库,包含从覆盖美国、欧盟和澳大利亚的源库中抽取的6588个GitHub仓库,每个仓库都用北美行业分类系统(NAICS 2022)的两位数部门进行标记。标签由一个检索与验证管道生成,该管道结合了BAAI/bge-large-en嵌入、FAISS检索和GPT-4.1评分标准。该管道将约137万个源仓库缩小到31178个候选仓库-部门对,并保留了6588个得分至少为8的高置信度标签。对2421个仓库的人工验证随机样本进行测试,发布的标签精度达到96.98%,威尔逊95%置信区间为[96.23, 97.59]。我们在发布的语料库上对六个预训练编码器进行了基准测试;RoBERTa-large在20%的留出测试集上达到了86.45%的F1值和86.35%的准确率。数据集、羊角面包元数据、管道代码、提示和微调后的检查点在CC-BY-4.0和MIT许可下发布。

英文摘要:

GitHub hosts hundreds of millions of public repositories, but the platform exposes no native mapping from repositories to standardized industry sectors. This gap limits empirical work on the geography of innovation, the industrial composition of open-source production, and the diffusion of new technologies across economic sectors. We present NAICS-GH, a publicly released corpus of 6,588 GitHub repositories drawn from source pools covering the United States, the European Union, and Australia, each labeled with a 2-digit sector from the North American Industry Classification System (NAICS 2022). Labels are produced by a retrieve-and-verify pipeline that combines BAAI/bge-large-en embeddings, FAISS retrieval, and GPT-4.1 rubric scoring. The pipeline narrows about 1.37 million source repositories to 31,178 candidate repository-sector pairs and retains 6,588 high-confidence labels with score at least 8. Re-running the retrieval pipeline end to end reproduces the candidate set to within 0.03 percent. On a 2,421-repository human-validated random sample, the released labels attain 96.98 percent precision, with Wilson 95 percent confidence interval [96.23, 97.59]. We benchmark six pretrained encoders on the released corpus; RoBERTa-large reaches 86.45 percent F1 and 86.35 percent accuracy on a held-out 20 percent test set. The dataset, Croissant metadata, pipeline code, prompts, and fine-tuned checkpoint are released under CC-BY-4.0 and MIT licenses.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑