首页 | 本学科首页   官方微博 | 高级检索  
     

基于seq2seq模型的标签推荐方法
引用本文:刘磊,王昊,孙凯,郜山权,刘宣彤. 基于seq2seq模型的标签推荐方法[J]. 吉林大学学报(理学版), 2022, 60(2): 316-320. DOI: 10.13413/j.cnki.jdxblxb.2021219
作者姓名:刘磊  王昊  孙凯  郜山权  刘宣彤
作者单位:1. 吉林大学 计算机科学与技术学院, 长春 130012; 2. 外交学院 英语系, 北京 100037
基金项目:吉林大学博士研究生跨学科研究项目;吉林大学研究生创新基金;吉林省科研基金
摘    要:针对NPM平台上存在大量的软件包没有标签或标记不完善的问题, 提出一种基于seq2seq模型的深度学习方法为软件包推荐标签. 首先, 利用ECMAScript工具分析软件包的源码构建出包的函数调用图, 遍历函数调用图从而将软件包转换成一组具有包语义信息的函数调用序列; 其次, 训练seq2seq模型, 并将训练好的模型用于软件包的标签推荐工作, 该模型能将包的函数调用序列映射到一组预测的标签序列上, 从而完成软件包的标签推荐. 实验结果表明, 该方法能为软件包推荐一组合理的标签, 准确率达82.6%.

关 键 词:标签推荐   深度学习   程序分析   注意力模型  
收稿时间:2021-06-12

Tag Recommendation Mehtod Based on seq2seq Model
LIU Lei,WANG Hao,SUN Kai,GAO Shanquan,LIU Xuantong. Tag Recommendation Mehtod Based on seq2seq Model[J]. Journal of Jilin University: Sci Ed, 2022, 60(2): 316-320. DOI: 10.13413/j.cnki.jdxblxb.2021219
Authors:LIU Lei  WANG Hao  SUN Kai  GAO Shanquan  LIU Xuantong
Affiliation:1. College of Computer Science and Technology, Jilin University, Changchun 130012, China;2. Department of English, China Foreign Affairs University, Beijing 100037, China
Abstract:Aiming at the problem that a large number of software packages had no tags or imperfect tags on node package manager (NPM) platform, we proposed a deep learning method based on the seq2seq model to recommend tags for software packages. Firstly, we used ECMAScript tools to analyze the source code of software package, constructed function call graphs of the package, and traversed the function call graph, so as to convert the software package into a set of function call sequences with package semantic information. Secondly, we trained the seq2seq model and applied the trained model to tag recommendation of software package. The trained model could map the function call sequence of package to a group of predicted tag sequence, so as to complete the tag recommendation of software packge. The experimental results show that the method can recommend a reasonable set of tags for the software package, and the accuracy is 82.6%.
Keywords:tag recommendation   deep learning   program analysis   attention model  
本文献已被 万方数据 等数据库收录!
点击此处可从《吉林大学学报(理学版)》浏览原始摘要信息
点击此处可从《吉林大学学报(理学版)》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号