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

Method and system for generating API mark of tutorial clips and and computer equipment

A tagging and fragmenting technology, applied in the field of API tagging, can solve problems such as inaccurate results, manual labor intensity, and affecting the accuracy of API tags, and achieve the effect of improving accuracy

Active Publication Date: 2021-01-05
GUANGDONG UNIV OF PETROCHEMICAL TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Unsupervised method, no human intervention required, but it can produce many inaccurate results
[0006] 2). Low precision
However, code fragments are not considered when calculating semantic relevance, which affects the accuracy of API tag generation
[0007] Through the above analysis, the existing problems and defects of the prior art are: the manual labor intensity of the existing method and the low precision

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
  • Method and system for generating API mark of tutorial clips and and computer equipment
  • Method and system for generating API mark of tutorial clips and and computer equipment
  • Method and system for generating API mark of tutorial clips and and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0121] A way to generate API markup for tutorial snippets from Stack Overflow

[0122] Step 1, collect question and answer pairs from the Stack Overflow webpage, and process them into and ;

[0123] Step 1.1, collect question-answer pairs on the Stack Overflow web page, and determine that the collected content is related to the programming language (ie Java and Android) and the name of the target API library. The question-answer pair uses accepted answers and the number of answers must exceed three, Answers have to be scored over zero, and questions have a reputation score over one.

[0124] In step 1.2, all API names associated with the target tutorial are collected from the corresponding API specification website and used to build the API dictionary as a tag set.

[0125] Step 1.3, the code content is split based on spaces and punctuation marks, and the mark of the content is obtained. If the mark of the content matches the API name in the API dictionary, the pre...

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 belongs to the technical field of API marking, and discloses a method and system for generating API marks of tutorial clips and computer equipment, question and answer pairs are collected from a Stack Overflow webpage, and question and answer pairs comprise the steps of selecting more than three accepted answers, wherein the score of the answers needs to exceed zero, the reputation score of a question is higher than that of one question-answer pair, and the collected question and answer pairs into < question and answer text and mark set > and < question and answer code and mark set > formats; mark model training is carried out, and semantic relations between question and answer pairs and API marks of the question and answer pairs are captured to acquire an API mark through the training model. The technical defects of high manual labor intensity and low accuracy in a traditional method can be overcome, and the accuracy of API mark generation can be effectively improved.

Description

technical field [0001] The invention belongs to the technical field of API marking, and in particular relates to a method, a system and a computer device for generating an API marking of a tutorial fragment. Specifically a way for Stack Overflow to generate API markup for tutorial snippets. Background technique [0002] Today, application programming interfaces (APIs) can significantly speed up the software development process and improve software quality. However, understanding how to properly use an API in a given programming context can be difficult. Therefore, learning resources, such as API tutorials and Stack Overflow (SO), are very important for developers. API tutorials usually explain how to use an API in a programming context by giving detailed text descriptions and code snippets. [0003] There is clearly a semantic relationship between API and Tutorial snippets. It is hoped that the API tags of tutorial fragments can be automatically generated based on semant...

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/30G06F16/332G06F40/117G06F40/126
CPCG06F8/30G06F16/3329G06F40/117G06F40/126
Inventor 荆晓远吴迪姚永芳孔晓辉王许辉
Owner GUANGDONG UNIV OF PETROCHEMICAL TECH
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