abstract |
The present invention is a method for automatically generating Java function annotations based on program analysis: first, a large number of open source projects on GitHub are collected, and Java function information and calling relationships are extracted based on program analysis technology to form a training data set; The network technology trains a function-to-annotation translation model, which can automatically generate annotations for functions, with obvious effects; effectively solve the scarcity, irregularity, inconsistency and other problems of existing function annotations in the current project, and improve code readability performance and maintainability. |