Journal of Jilin University Science Edition ›› 2022, Vol. 60 ›› Issue (5): 1097-1102.

Previous Articles     Next Articles

Recommended Tag Method for npm Packages Based on Word Vector

SUN Kai1, LIU Xuantong2, ZHANG Li3, LIU Huaxiao1, WANG Yu1, GAO Shanquan1   

  1. 1. College of Computer Science and Technology, Jilin University, Changchun 130012, China;
    2. Department of English, China Foreign Affairs University, Beijing 100037, China;
    3. College of Information Technology, Baicheng Medical College, Baicheng 137000, Jilin Province, China
  • Received:2021-06-12 Online:2022-09-26 Published:2022-09-26

Abstract: Aiming at the problem  of the imperfect tagging mechanism in the open source npm (node package manager) community, we proposed a method to automatically recommend tags for open source third-party library npm packages. Firstly,  according to the association relationship between existing tags in the npm community, the tags were clustered  and a tag library was  established  while solving the problem of tag synonyms. Secondly,  the word vector technology was used to calculate the semantic correlation degree between the Readme document of the npm package and the tags in the tag library. Finally, the tags were sorted according to  the degree of correlation to generate a tag recommendation list and complete the tag recommendation. The experimental results show that this method can effectively recommend tags for npm packages, and the accuracy rate of Recall@3 is 49.1%, Recall@5 is 56.3%, and Recall@10 is 66.9%.

Key words: tag recommendation, npm package, word vector

CLC Number: 

  • TP311