CN110673840B - 一种基于标签图嵌入技术的自动代码生成方法及系统 - Google Patents
一种基于标签图嵌入技术的自动代码生成方法及系统 Download PDFInfo
- Publication number
- CN110673840B CN110673840B CN201910898025.0A CN201910898025A CN110673840B CN 110673840 B CN110673840 B CN 110673840B CN 201910898025 A CN201910898025 A CN 201910898025A CN 110673840 B CN110673840 B CN 110673840B
- Authority
- CN
- China
- Prior art keywords
- sequence
- natural language
- dimensional
- target code
- nodes
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 159
- 238000005516 engineering process Methods 0.000 title claims abstract description 27
- 239000013598 vector Substances 0.000 claims abstract description 111
- 238000003062 neural network model Methods 0.000 claims abstract description 20
- 238000012549 training Methods 0.000 claims abstract description 20
- 238000013528 artificial neural network Methods 0.000 claims abstract description 14
- 239000012634 fragment Substances 0.000 claims description 32
- 230000007246 mechanism Effects 0.000 claims description 17
- 230000015654 memory Effects 0.000 claims description 16
- 230000008569 process Effects 0.000 claims description 16
- 230000006403 short-term memory Effects 0.000 claims description 14
- 230000007787 long-term memory Effects 0.000 claims description 12
- 230000006870 function Effects 0.000 claims description 11
- 238000007781 pre-processing Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 8
- 230000002776 aggregation Effects 0.000 claims description 7
- 238000004220 aggregation Methods 0.000 claims description 7
- 239000011159 matrix material Substances 0.000 claims description 7
- 238000004458 analytical method Methods 0.000 claims description 6
- 230000008859 change Effects 0.000 claims description 6
- 238000013135 deep learning Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 238000013507 mapping Methods 0.000 description 3
- 230000002123 temporal effect Effects 0.000 description 3
- 238000001994 activation Methods 0.000 description 2
- 230000004931 aggregating effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000008450 motivation Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/33—Intelligent editors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Devices For Executing Special Programs (AREA)
- Machine Translation (AREA)
Abstract
Description
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910898025.0A CN110673840B (zh) | 2019-09-23 | 2019-09-23 | 一种基于标签图嵌入技术的自动代码生成方法及系统 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910898025.0A CN110673840B (zh) | 2019-09-23 | 2019-09-23 | 一种基于标签图嵌入技术的自动代码生成方法及系统 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110673840A CN110673840A (zh) | 2020-01-10 |
CN110673840B true CN110673840B (zh) | 2022-10-11 |
Family
ID=69077512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910898025.0A Active CN110673840B (zh) | 2019-09-23 | 2019-09-23 | 一种基于标签图嵌入技术的自动代码生成方法及系统 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110673840B (zh) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111625276B (zh) * | 2020-05-09 | 2023-04-21 | 山东师范大学 | 基于语义与语法信息融合的代码摘要生成方法及系统 |
CN111966818B (zh) * | 2020-07-26 | 2024-03-08 | 复旦大学 | 一种基于深度学习的交互式api代码片段推荐方法 |
CN112230905B (zh) * | 2020-10-29 | 2022-06-21 | 中国人民解放军国防科技大学 | 一种结合深度学习与后向切片的程序自动生成方法 |
CN112255962A (zh) * | 2020-10-30 | 2021-01-22 | 浙江佳乐科仪股份有限公司 | 基于人工智能的plc编程系统 |
CN112764738A (zh) * | 2021-01-19 | 2021-05-07 | 山东师范大学 | 基于多视图程序特征的代码自动生成方法及系统 |
CN113157255B (zh) * | 2021-03-22 | 2022-07-05 | 成都淞幸科技有限责任公司 | 一种面向语法树解码器的代码生成方法 |
CN113064633A (zh) * | 2021-03-26 | 2021-07-02 | 山东师范大学 | 一种代码摘要自动生成方法及系统 |
CN113238797B (zh) * | 2021-04-16 | 2024-10-15 | 山东师范大学 | 基于分层对比学习的代码特征提取方法及系统 |
CN113342318B (zh) * | 2021-04-19 | 2022-06-10 | 山东师范大学 | 基于多视图代码特征的细粒度代码自动生成方法及系统 |
CN113886520B (zh) * | 2021-08-26 | 2024-05-14 | 广东工业大学 | 一种基于图神经网络的代码检索方法、系统及计算机可读存储介质 |
CN113849162B (zh) * | 2021-09-28 | 2024-04-02 | 哈尔滨工业大学 | 一种利用模型驱动和深度神经网络相结合的代码生成方法 |
CN116700684B (zh) * | 2022-09-30 | 2024-04-12 | 荣耀终端有限公司 | 一种代码生成方法和终端 |
CN116884503B (zh) * | 2023-09-06 | 2023-12-26 | 北京齐碳科技有限公司 | 序列和后验矩阵的处理方法、装置和计算设备 |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102360291B (zh) * | 2011-10-07 | 2013-11-13 | 云南爱迪科技有限公司 | 面向服务的基于业务规则引擎的业务规则设计方法 |
CN103827855A (zh) * | 2011-10-27 | 2014-05-28 | 诺基亚公司 | 用于在网络内容订阅中应用的网络内容结构建模的方法和设备 |
US10074041B2 (en) * | 2015-04-17 | 2018-09-11 | Nec Corporation | Fine-grained image classification by exploring bipartite-graph labels |
US20170212829A1 (en) * | 2016-01-21 | 2017-07-27 | American Software Safety Reliability Company | Deep Learning Source Code Analyzer and Repairer |
WO2018015963A1 (en) * | 2016-07-21 | 2018-01-25 | Ramot At Tel-Aviv University Ltd. | Method and system for comparing sequences |
US11062179B2 (en) * | 2017-11-02 | 2021-07-13 | Royal Bank Of Canada | Method and device for generative adversarial network training |
CN108446540B (zh) * | 2018-03-19 | 2022-02-25 | 中山大学 | 基于源代码多标签图神经网络的程序代码抄袭类型检测方法与系统 |
CN110018820B (zh) * | 2019-04-08 | 2022-08-23 | 浙江大学滨海产业技术研究院 | 一种基于深度强化学习的Graph2Seq自动生成Java代码注释的方法 |
CN110162297A (zh) * | 2019-05-07 | 2019-08-23 | 山东师范大学 | 一种源代码段自然语言描述自动生成方法及系统 |
-
2019
- 2019-09-23 CN CN201910898025.0A patent/CN110673840B/zh active Active
Also Published As
Publication number | Publication date |
---|---|
CN110673840A (zh) | 2020-01-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110673840B (zh) | 一种基于标签图嵌入技术的自动代码生成方法及系统 | |
CN111160008B (zh) | 一种实体关系联合抽取方法及系统 | |
CN109960506B (zh) | 一种基于结构感知的代码注释生成方法 | |
CN113064586B (zh) | 一种基于抽象语法树增广图模型的代码补全方法 | |
WO2019233112A1 (zh) | 一种软件源代码的向量化表征方法 | |
CN109492113B (zh) | 一种面向软件缺陷知识的实体、关系联合抽取方法 | |
CN111191002B (zh) | 一种基于分层嵌入的神经代码搜索方法及装置 | |
CN110569033B (zh) | 一种数字化交易类智能合约基础代码生成方法 | |
CN113868432B (zh) | 一种用于钢铁制造企业的知识图谱自动构建方法和系统 | |
CN113342318B (zh) | 基于多视图代码特征的细粒度代码自动生成方法及系统 | |
CN117475038B (zh) | 一种图像生成方法、装置、设备及计算机可读存储介质 | |
CN118606440B (zh) | 知识图谱与规则约束相结合的数据智能分析方法及系统 | |
CN111625276A (zh) | 基于语义与语法信息融合的代码摘要生成方法及系统 | |
CN116661805B (zh) | 代码表示的生成方法和装置、存储介质及电子设备 | |
CN112306494A (zh) | 一种基于卷积和循环神经网络的代码分类及聚类方法 | |
CN112214608A (zh) | 基于知识推理的文本生成方法、介质、装置和计算设备 | |
CN112764738A (zh) | 基于多视图程序特征的代码自动生成方法及系统 | |
WO2023226292A1 (zh) | 从文本中进行关系抽取的方法、关系抽取模型及介质 | |
CN115543437B (zh) | 一种代码注释生成方法和系统 | |
US12223271B2 (en) | Text processing method, device and storage medium | |
CN112162775A (zh) | 一种基于Transformer和混合代码表示的Java代码注释自动生成方法 | |
CN110807335A (zh) | 基于机器学习的翻译方法、装置、设备及存储介质 | |
CN115268868B (zh) | 一种基于有监督学习的智能源码转换方法 | |
CN116069931A (zh) | 层级标签文本分类方法、系统、设备及存储介质 | |
CN115525263A (zh) | 代码补全模型的训练方法、代码补全方法和装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240130 Address after: 518000 West New City Mansion, Shennan Middle Road, Futian District, Shenzhen, Guangdong 501 Patentee after: Hu Qin Country or region after: China Address before: No.88, Wenhua East Road, Lixia District, Jinan City, Shandong Province Patentee before: SHANDONG NORMAL University Country or region before: China |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240510 Address after: B113, Comprehensive Building, 3rd Branch of Leibai Zhongcheng Life Science Park, No. 22 Jinxiu East Road, Jinsha Community, Kengzi Street, Pingshan District, Shenzhen City, Guangdong Province, 518000 Patentee after: Shenzhen Datong Information Technology Co.,Ltd. Country or region after: China Address before: 518000 West New City Mansion, Shennan Middle Road, Futian District, Shenzhen, Guangdong 501 Patentee before: Hu Qin Country or region before: China |