Automatic Code Comments Generation Method Based on Convolutional Neural Network
Automatic code comment generation technology can analyze the semantic information of source code and generate corresponding natural language descriptions,which can help developers understand the program and reduce the time cost during software maintenance.Most of the existing technologies are based on the encoder and decoder model of the recurrent neural network(RNN).However,this method suffers from long-term dependency problem,which means it cannot generate high-quality comments when analyzing far-away code blocks.To solve this problem,this paper proposes an automatic code comment generation method,which uses the convolutional neural network(CNN) to alleviate the inaccurate comments information caused by the long-term dependence problem.More specifically,this paper uses two CNNs,one source-code based CNN and one AST-based CNN,to capture source code's semantic information.The experimental results indicate that,compared to the two most recent methods,DeepCom and Hybrid-DeepCom,the method proposed in this paper generates more useful code comments and takes less time to execute..
Medienart: |
E-Artikel |
---|
Erscheinungsjahr: |
2021 |
---|---|
Erschienen: |
2021 |
Enthalten in: |
Zur Gesamtaufnahme - volume:48 |
---|---|
Enthalten in: |
Jisuanji kexue - 48(2021), 12, Seite 117-124 |
Sprache: |
Chinesisch |
---|
Beteiligte Personen: |
PENG Bin, LI Zheng, LIU Yong, WU Yong-hao [VerfasserIn] |
---|
Links: |
doi.org [kostenfrei] |
---|
Themen: |
Computer software |
---|
doi: |
10.11896/jsjkx.201100090 |
---|
funding: |
|
---|---|
Förderinstitution / Projekttitel: |
|
PPN (Katalog-ID): |
DOAJ075339641 |
---|
LEADER | 01000caa a22002652 4500 | ||
---|---|---|---|
001 | DOAJ075339641 | ||
003 | DE-627 | ||
005 | 20230501173541.0 | ||
007 | cr uuu---uuuuu | ||
008 | 230228s2021 xx |||||o 00| ||chi c | ||
024 | 7 | |a 10.11896/jsjkx.201100090 |2 doi | |
035 | |a (DE-627)DOAJ075339641 | ||
035 | |a (DE-599)DOAJc426b7c3d1ee4a2295f8614aff3fc3ac | ||
040 | |a DE-627 |b ger |c DE-627 |e rakwb | ||
041 | |a chi | ||
050 | 0 | |a QA76.75-76.765 | |
050 | 0 | |a T1-995 | |
100 | 0 | |a PENG Bin, LI Zheng, LIU Yong, WU Yong-hao |e verfasserin |4 aut | |
245 | 1 | 0 | |a Automatic Code Comments Generation Method Based on Convolutional Neural Network |
264 | 1 | |c 2021 | |
336 | |a Text |b txt |2 rdacontent | ||
337 | |a Computermedien |b c |2 rdamedia | ||
338 | |a Online-Ressource |b cr |2 rdacarrier | ||
520 | |a Automatic code comment generation technology can analyze the semantic information of source code and generate corresponding natural language descriptions,which can help developers understand the program and reduce the time cost during software maintenance.Most of the existing technologies are based on the encoder and decoder model of the recurrent neural network(RNN).However,this method suffers from long-term dependency problem,which means it cannot generate high-quality comments when analyzing far-away code blocks.To solve this problem,this paper proposes an automatic code comment generation method,which uses the convolutional neural network(CNN) to alleviate the inaccurate comments information caused by the long-term dependence problem.More specifically,this paper uses two CNNs,one source-code based CNN and one AST-based CNN,to capture source code's semantic information.The experimental results indicate that,compared to the two most recent methods,DeepCom and Hybrid-DeepCom,the method proposed in this paper generates more useful code comments and takes less time to execute. | ||
650 | 4 | |a program comprehension|code comment generation|convolutional neural network|long short-term memory network | |
653 | 0 | |a Computer software | |
653 | 0 | |a Technology (General) | |
773 | 0 | 8 | |i In |t Jisuanji kexue |d Editorial office of Computer Science, 2021 |g 48(2021), 12, Seite 117-124 |w (DE-627)DOAJ078619254 |x 1002137X |7 nnns |
773 | 1 | 8 | |g volume:48 |g year:2021 |g number:12 |g pages:117-124 |
856 | 4 | 0 | |u https://doi.org/10.11896/jsjkx.201100090 |z kostenfrei |
856 | 4 | 0 | |u https://doaj.org/article/c426b7c3d1ee4a2295f8614aff3fc3ac |z kostenfrei |
856 | 4 | 0 | |u https://www.jsjkx.com/fileup/1002-137X/PDF/1002-137X-2021-12-117.pdf |z kostenfrei |
856 | 4 | 2 | |u https://doaj.org/toc/1002-137X |y Journal toc |z kostenfrei |
912 | |a GBV_USEFLAG_A | ||
912 | |a GBV_DOAJ | ||
912 | |a SSG-OLC-PHA | ||
951 | |a AR | ||
952 | |d 48 |j 2021 |e 12 |h 117-124 |