Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Annotation classification method based on decision tree

A classification method and decision tree technology, applied in the direction of instruments, software maintenance/management, program files, etc., can solve the problem of not getting researchers, and achieve the effect of clear content, cost saving, and increased comprehension.

Pending Publication Date: 2020-02-28
SOUTHEAST UNIV
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, these classifications have not received enough attention from researchers in terms of software development and software maintenance, and most research efforts on code annotations have focused on the functional description of codes.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Annotation classification method based on decision tree
  • Annotation classification method based on decision tree
  • Annotation classification method based on decision tree

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] Embodiment 1: see figure 1 — image 3 , a decision tree-based annotation classification method, the method comprising the following steps:

[0024] Step 1) annotation extraction, extract annotation from source code, comprise package annotation, class annotation, method annotation;

[0025] Step 2) Note Feature Extraction: According to the notes extracted in step 1), four types of note features are extracted, including functional features, usage features, structural features, and development features; functional features are descriptions of code functions, and this type of notes includes The function or task undertaken by the code block is specified. Structural features describe the relationship between the code block and other code blocks. The structural information contained in this technology is divided into class level and method level. The class level includes association relationship, aggregation relationship, and inheritance relationship. The method level inclu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an annotation classification method based on a decision tree. The method comprises the following steps of: 1, extracting code annotations from software, 2, extracting annotation characteristics from the annotations, 3, constructing a decision tree according to the annotation characteristics, 4, taking the annotations as input of the decision tree, and finally, dividing thecode annotations into four types of annotations, namely function annotations, structure annotations, use annotations and development annotations, and outputting the classified annotations. According to the annotation classification technology, annotations are classified into four types of contents commonly used in the software development process by using a decision tree method, and the annotationclassification output result of the method is used for relieving the problems of annotation content mixing, non-uniform format and the like in the current software development process, so that standardized management of the annotations is convenient to realize, and developers are helped to understand codes and reuse the codes.

Description

technical field [0001] The invention relates to a comment classification method based on a decision tree, belonging to the technical field of software engineering. Background technique [0002] Code comments play an important role in software development. It can help developers understand source code effectively, and it also plays a very important role in software maintenance. Reading and understanding comments is an essential activity in a developer's day-to-day tasks, and in practice, developers often spend more time reading and understanding code than editing it, partly due to the current lack of high-quality comments. An important reason that affects the quality of annotations is that the content of annotations is uncontrollable. Comments contain a variety of information, some annotations are redundant, and annotations can also lack some annotation information. [0003] There have been studies on the analysis and classification of comment content, and they classified th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/73G06K9/62
CPCG06F8/73G06F18/24323
Inventor 李必信宋启威孔祥龙王璐璐廖力周颖
Owner SOUTHEAST UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products