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

Code file query method and device

A code file and query method technology, which is applied in the direction of program control devices, special data processing applications, instruments, etc., can solve the problems of reduced query accuracy and low accuracy

Active Publication Date: 2015-07-29
NEC CORP
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the above method of querying code files only extracts text features according to the text information included in the code files, and the accuracy of feature extraction is low, which reduces the query accuracy.

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
  • Code file query method and device
  • Code file query method and device
  • Code file query method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0079] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0080] figure 1 It is a flow chart of a code file query method provided by an embodiment of the present invention, see figure 1 , the method includes:

[0081] 101. Based on the historical query word vector applied in the historical query process, and the conversion matrix constructed by the text feature vector and code feature vector of each code file in the code base, the query word vector and the code feature vector of each code file The conv...

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 a code file query method and device and belongs to the technical field of data processing. The method comprises converting current query term vectors and code characteristic vectors of all code files based on historical query term vectors and a transfer matrix formed by textual characteristic vectors and code characteristic vectors of all code files, wherein the code characteristic vectors are determined according to code file code blocks; calculating the similarity between all the code files and the query terms according to current query term vectors, transformed query term vectors and transformed code characteristic vectors of all the code files and textual characteristic vectors of all the code files to obtain code file query results. By means of the method and the device, the effect of the code file structure on semantics is considered, contents and structures of the cold files are fully dug, the characteristic extraction accuracy is improved, and during the code file query, the similarity is calculated based on the textual characteristic vectors and the code characteristic vectors, and accordingly, the query accuracy is improved.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a code file query method and device. Background technique [0002] The code base of a software system is generally composed of a large number of code files. In order to maintain the software system, it is necessary to query the code files related to the query words from the code base according to some given query words, so as to perform targeted maintenance. [0003] To this end, a paper by GiulianoAntoniol, Gerardo Canfora, Gerardo Casazza, Andrea De Lucia, and Ettore Merlo, published in IEEE Transactions on Software Engineering (the journal IEEE Transactions on Software Engineering) Vol. 28, No. 10, October 2002, entitled In the paper "Recovering Traceability Links between Code and Documentation", a method of querying code files is proposed, which specifically includes the following steps: extracting the text features of the code files according to the text information ...

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): G06F17/30G06F9/44
Inventor 刘博邬亮
Owner NEC CORP
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