The invention discloses a
software defect positioning method based on text
part of speech and a program call relation. The method comprises: (1) extracting text messages of summaries and descriptions in a defect report, and increasing weights of
noun lexical items and weights of all lexical items of a summary module in the defect report according to
part of speech tags; (2) filtering out elements not required by a
source code file according to a demand parameter ran of a developer, and preprocessing the text messages of the defect report and the filtered
source code file; (3) generating a suspicious defect
source code file
list; (4) finding out a called source file through character string retrieval, and increasing a similarity value to correct an original rank; and (5) outputting a defect
source code file or a defect
source code file list corresponding to the defect report according to the demand parameter ran of the developer. According to the
software defect positioning method based on the text
part of speech and the program call relation, the text part of speech is utilized to adjust the weights of the lexical items, the program call relation is utilized to correct the similarity value, and the
source code file is filtered and a final result is output according to the demand of a
programmer, so that the purpose of improving the accuracy of defect positioning is achieved.