CN117130593A - Code processing method, system and electronic equipment - Google Patents

Code processing method, system and electronic equipment Download PDF

Info

Publication number
CN117130593A
CN117130593A CN202311031204.7A CN202311031204A CN117130593A CN 117130593 A CN117130593 A CN 117130593A CN 202311031204 A CN202311031204 A CN 202311031204A CN 117130593 A CN117130593 A CN 117130593A
Authority
CN
China
Prior art keywords
code
code processing
information
terminal
input
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.)
Pending
Application number
CN202311031204.7A
Other languages
Chinese (zh)
Inventor
张明
朱大治
薛增奎
胡凡
余欣
刘聪
胡国平
刘庆峰
吴晓如
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
iFlytek Co Ltd
Original Assignee
iFlytek Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by iFlytek Co Ltd filed Critical iFlytek Co Ltd
Priority to CN202311031204.7A priority Critical patent/CN117130593A/en
Publication of CN117130593A publication Critical patent/CN117130593A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a code processing method, a system and electronic equipment, wherein the method comprises the following steps: receiving code processing input under a terminal code processing interface; scene intention analysis is carried out on code processing input to obtain target intention, and information to be processed is extracted from a terminal code processing interface based on the target intention; the method comprises the steps of sending information to be processed to a server side, enabling the server side to generate prompt sentences carrying the information to be processed, sending the prompt sentences to a code model, and enabling the code model to conduct code processing based on the prompt sentences to obtain a code processing result; and receiving a code processing result returned by the server and displaying the code processing result under a terminal code processing interface. The code processing method, the device, the system, the electronic equipment and the storage medium provided by the invention can rapidly and accurately obtain the code processing result, and avoid the problems of increased workload and lower code processing efficiency caused by manually processing the code by depending on research personnel in the traditional method.

Description

Code processing method, system and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a code processing method, a system, and an electronic device.
Background
With the development of computer technology, code development is increasingly complicated, and efficient code processing has been increasingly emphasized. The code processing comprises code generation, code complementation, code modification, code error correction, code interpretation, code test and the like.
At present, a plurality of research and development personnel are relied on to manually process codes, so that the workload is large, and the code processing efficiency is low. For example, when code completion is performed, research personnel search for corresponding completion codes from related open source websites through crawler technology, so as to perform code completion, and the search is time-consuming and has low efficiency.
Disclosure of Invention
The invention provides a code processing method, a system and electronic equipment, which are used for solving the defect of low code processing efficiency in the prior art.
The invention provides a code processing method, which is applied to a terminal and comprises the following steps:
receiving code processing input under a terminal code processing interface;
scene intention analysis is carried out on the code processing input to obtain target intention, and information to be processed is extracted from the terminal code processing interface based on the target intention;
the information to be processed is sent to a server, so that the server generates a prompt statement carrying the information to be processed, the prompt statement is sent to a code model, and the code model carries out code processing based on the prompt statement to obtain a code processing result;
And receiving the code processing result returned by the server and displaying the code processing result under the terminal code processing interface.
According to the code processing method provided by the invention, the information to be processed is extracted from the terminal code processing interface based on the target intention, and the method comprises the following steps:
and generating the information to be processed based on the code processing input corresponding to the input text in the terminal code processing interface and the target intention under the condition that the target intention is code generation.
According to the code processing method provided by the invention, the information to be processed is extracted from the terminal code processing interface based on the target intention, and the method comprises the following steps:
extracting input text and the above text corresponding to the code processing input in the terminal code processing interface under the condition that the target is intended to be code complement;
and generating the information to be processed based on the input text, the above text and the target intention.
According to the code processing method provided by the invention, the information to be processed is extracted from the terminal code processing interface based on the target intention, and the method comprises the following steps:
extracting an input text corresponding to the code processing input from a question-answer area of the terminal code processing interface and extracting a code to be modified corresponding to the code processing input from a code editing area of the terminal code processing interface when the target is intended to be code modification;
And generating the information to be processed based on the input text, the code to be modified and the target intention.
According to the code processing method provided by the invention, the generating the information to be processed based on the input text, the code to be modified and the target intention comprises the following steps:
extracting a context code associated with the code to be modified from the code editing area;
and generating the information to be processed based on the context code, the input text, the code to be modified and the target intention.
According to the code processing method provided by the invention, the information to be processed is extracted from the terminal code processing interface based on the target intention, and the method comprises the following steps:
extracting the code processing input corresponding target code from a code editing area of the terminal code processing interface in the case that the target is intended to be any one of code interpretation, code testing and code error correction;
and generating the information to be processed based on the code processing input corresponding target code and the target intention.
According to the code processing method provided by the invention, scene intention analysis is carried out on the code processing input to obtain target intention, and the method comprises at least one of the following steps:
Performing scene intention analysis on semantic information of an input text corresponding to the code processing input to obtain a target intention;
determining the target intention based on the control function of the control corresponding to the code processing input;
and determining the target intention based on the cursor position of the cursor corresponding to the code processing input.
According to the code processing method provided by the invention, under a terminal code processing interface, code processing input is received, and the method comprises the following steps:
receiving code processing input in a text form in a question-answer area of the terminal code processing interface;
and/or the number of the groups of groups,
and receiving code processing input in a text form, a control point touch form and a cursor displacement form in a code editing area of the terminal code processing interface.
The invention also provides a code processing method which is applied to the server and comprises the following steps:
receiving information to be processed sent by a terminal, wherein the information to be processed is obtained by analyzing scene intention of code processing input under a terminal code processing interface by the terminal, obtaining target intention and extracting the target intention from the terminal code processing interface based on the target intention;
generating a prompt statement carrying the information to be processed based on the information to be processed;
Sending the prompt statement to a code model so that the code model carries out code processing based on the prompt statement and returns a code processing result;
and sending the code processing result to the terminal so that the terminal can be displayed under the terminal code processing interface.
According to the code processing method provided by the invention, the information to be processed carries the target intention;
the generating a prompt statement carrying the information to be processed based on the information to be processed includes:
determining a prompt statement template corresponding to the target intention;
and filling the prompt statement template based on the information to be processed to obtain the prompt statement.
According to the code processing method provided by the invention, the filling of the prompt statement template based on the information to be processed to obtain the prompt statement comprises the following steps:
and filling at least one of codes, target intentions and input texts in the information to be processed into corresponding positions in the prompt sentence template to obtain the prompt sentence.
The invention also provides a code processing device which is arranged on the terminal and comprises:
the input receiving unit is used for receiving code processing input under the terminal code processing interface;
The intention analysis unit is used for analyzing scene intention of the code processing input to obtain target intention, and extracting information to be processed from the terminal code processing interface based on the target intention;
the information sending unit is used for sending the information to be processed to a server side so that the server side generates a prompt statement carrying the information to be processed, sending the prompt statement to a code model, and enabling the code model to perform code processing based on the prompt statement to obtain a code processing result;
and the result receiving unit is used for receiving the code processing result returned by the server and displaying the code processing result under the terminal code processing interface.
The invention also provides a code processing device which is arranged at the server and comprises:
the information receiving unit is used for receiving information to be processed, which is sent by the terminal, wherein the information to be processed is obtained by the terminal through analyzing scene intention of code processing input under a terminal code processing interface, obtaining target intention and extracting the target intention from the terminal code processing interface based on the target intention;
the sentence generating unit is used for generating a prompt sentence carrying the information to be processed based on the information to be processed;
The statement sending unit is used for sending the prompt statement to a code model so that the code model carries out code processing based on the prompt statement and returns a code processing result;
and the result sending unit is used for sending the code processing result to the terminal so as to enable the terminal to be displayed under the terminal code processing interface.
The invention also provides a code processing system, which comprises: the system comprises a terminal, a server and a code model, wherein the code model is obtained based on large language model training, and the code model is used for carrying out code processing on input code processing input.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing any of the code processing methods described above when executing the computer program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a code processing method as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a code processing method as described in any of the above.
According to the code processing method, the system and the electronic equipment, the target intention is obtained by analyzing the scene intention of the code processing input, and the information to be processed is extracted from the terminal code processing interface based on the target intention, so that the server can generate the prompt statement carrying the information to be processed, the code model can process the code based on the prompt statement, a code processing result is obtained rapidly and accurately, and the problems of increased workload and lower code processing efficiency caused by relying on manual code processing of research and development personnel in the traditional method are avoided.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a code processing method according to the present invention;
FIG. 2 is a flowchart of an embodiment of step 120 in the code processing method according to the present invention;
FIG. 3 is a flow chart of an embodiment of step 122a in the code processing method provided by the present invention;
FIG. 4 is a second flowchart of the step 120 of the code processing method according to the present invention;
FIG. 5 is a schematic diagram of a question-answering area of a terminal code processing interface provided by the invention;
FIG. 6 is a schematic diagram of a code editing area of a terminal code processing interface provided by the present invention;
FIG. 7 is a second flow chart of the code processing method according to the present invention;
FIG. 8 is a schematic diagram of a code processing apparatus according to the present invention;
FIG. 9 is a second schematic diagram of a code processing apparatus according to the present invention;
FIG. 10 is a schematic diagram of a code processing system provided by the present invention;
fig. 11 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
At present, when code processing is carried out, a developer is manually relied on to carry out the code processing, so that the workload of the developer is greatly increased, and the code processing efficiency is lower. For example, when code generation and code completion are performed, research and development personnel search for corresponding completion codes from related open source websites through crawler technology to perform code completion. When the code is modified, a developer manually positions the code to be modified, and the code is modified by relying on the code knowledge of the developer. In performing code correction, a developer needs to traverse each code and rely on knowledge of the code to perform code correction. In doing the code interpretation, the developer needs to traverse each code and rely on the knowledge of the code to manually add the corresponding code interpretation. When the code test is carried out, the research personnel need to manually generate corresponding test cases and manually load the test cases to carry out the code test.
Therefore, in the code processing process, the developer needs to perform complicated and complicated operations, the workload is large, and the code processing efficiency is low.
In this regard, the present invention provides a code processing method. Fig. 1 is a schematic flow chart of a code processing method provided by the present invention, as shown in fig. 1, the method is applied to a terminal, and includes the following steps:
And 110, receiving code processing input under a terminal code processing interface.
Here, the terminal code processing interface may be understood as an interface provided on the terminal to interact with the user for code processing. The terminal code processing interface can be provided with a dialog box, buttons corresponding to different input modes such as handwriting input, keyboard input, voice input and the like can be arranged in the dialog box, and a user can further realize the input mode of corresponding code processing input by selecting the corresponding buttons.
For example, in the case where the user selects "handwriting input", the user can process the input by handwriting the code on the dialog box. In the case where the user selects the "keyboard in" button, the user can input a code processing input in the dialog box through the keyboard. In the case where the user selects "voice input", the user can process the input through a voice input code.
Further, code processing input may be understood as code processing related information generated by a user in text form, control click form, and cursor displacement form on a terminal code processing interface in the presence of code processing requirements.
For example, the user inputs text "i want to develop an application function similar to finger pinch trajectory point tracking of over-the-air handwriting" under the terminal code processing interface, please provide an implementation idea ", and the input text may be input for code processing.
For example, the user selects the code a under the terminal code processing interface and clicks the code error correction control, and then "the code error correction control corresponding to the click code a" can be used as the code processing input.
For example, the user shifts the cursor to the end of function 1 under the terminal code processing interface, and then "the cursor is shifted to the end of function 1" may be used as the code processing input.
And 120, analyzing scene intention of the code processing input to obtain target intention, and extracting information to be processed from a terminal code processing interface based on the target intention.
Specifically, the scene intention parsing may be extracting a corresponding scene intention from the code processing input, and the extracted scene intention is a target intention. The target intent may include, among other things, code generation, code completion, code modification, code error correction, code interpretation, code testing, and the like.
Alternatively, in the case where the code processing input is in text form, scene intention analysis may be performed based on semantic information of the code processing input to obtain the target intention. For example, when the code processing is input as "generating a code for detecting key points and contours on a hand region and displaying the key points", scene intention analysis is performed based on semantic information input by the code processing, and the target intention is "code generation".
Alternatively, in the case where the code processing input is in the form of a control tap, the target intent may be determined based on the control function to which the tap control corresponds. For example, the code processing input is "the code error correction control corresponding to the point touch code a", and since the control function of the code error correction control is "code error correction", the corresponding target is intended to be "code error correction".
Alternatively, in the case where the code processing input is in the form of cursor displacement, the target intention may be determined based on the cursor position of the corresponding cursor. For example, the code processing input is "cursor displacement to the end of function 1", and since the cursor is located at the end of function 1 and the code at the end of function 1 is not written out, the corresponding target intention can be resolved to be "code complement".
In addition, the information to be processed can be understood as input information corresponding to the corresponding code processing under the target intention. The information to be processed may include a target intention, a text corresponding to the target intention in the terminal code processing interface, a code, and the like.
For example, the code processing input is "code to generate and display key points and contours on the hand region", the corresponding target is intended to be "code generation", and the corresponding information to be processed may be "code to generate and display key points and contours on the hand region & code generation".
For example, the code processing input is "the code error correction control corresponding to the point touch code a", the corresponding target is intended to be "code error correction", and the corresponding information to be processed may be "code a & code error correction".
For example, the code processing input is "code interpretation of code B", the corresponding target is intended to be "code interpretation", and the corresponding information to be processed may be "code interpretation of code B & code interpretation".
And 130, sending the information to be processed to a server side so that the server side generates a prompt statement carrying the information to be processed, sending the prompt statement to a code model, and enabling the code model to perform code processing based on the prompt statement to obtain a code processing result.
Specifically, the prompt sentence may be a text obtained by filling the information to be processed into a prompt sentence template, and the prompt sentence may be a text obtained by regularizing the information to be processed into a standard input form according to the prompt sentence template. The information to be processed may be a prompt text.
For example, the information to be processed is "generate n test cases, and code test is performed on code C", then the corresponding prompt statement template may be { "query": "you are a senior code developer, please describe [ sample ] and code implementation [ code ] according to the following requirements, generate corresponding [ num ] test cases and executable codes", "answer": "test cases and running codes" }, then "generate n test cases" in the information to be processed, code test "fill [ sample ] field for code C," fill [ code ] field for "code C," fill [ num ] field for "n", and further obtain the corresponding prompt statement.
In some specific embodiments, the prompt sentence can be input into a pre-constructed code model, and the code model performs code processing based on the prompt sentence to obtain a code processing result; the code model is obtained based on sample prompt sentences and corresponding sample code processing results, and can be obtained based on pre-training models such as BERT model (Bidirectional Encoder Representations from Transformers), XLnet model (extremu Multi-label Learning Network), ROBERTa model (Robustly Optimized BERT approach), T5 model (Text-to-Text Transfer Transformer) and the like.
Here, the code model may be a large-scale model deployed in a chat robot having a humanoid character, for example, an IFlytek Spark model (IFlytek Spark), and the chat robot deployed with the code model can perform a conversation with a user by understanding and learning a language of the human, and can also have a real humanoid communication capability by interacting with the user according to a context of the conversation, and in addition, has a human capability, for example, editing, translation, search, and the like.
And 140, receiving a code processing result returned by the server and displaying the code processing result under a terminal code processing interface.
Specifically, after receiving the code processing result returned by the code model, the server may analyze the code processing result into natural language, and send the analyzed code processing result to the terminal, and display the code processing result under the terminal code processing interface of the terminal.
According to the code processing method provided by the embodiment of the invention, the target intention is obtained by analyzing the scene intention of the code processing input, and the information to be processed is extracted from the terminal code processing interface based on the target intention, so that the server can generate the prompt statement carrying the information to be processed, the code model can process the code based on the prompt statement, the code processing result is obtained rapidly and accurately, and the problems of workload increase and lower code processing efficiency caused by relying on manual code processing of research and development personnel in the traditional method are avoided.
Based on the above embodiment, extracting information to be processed from a terminal code processing interface based on a target intention includes:
in the case where the target intention is code generation, information to be processed is generated based on the code processing input of the corresponding input text in the terminal code processing interface and the target intention.
In particular, if the target is intended for code generation, the code handling input is typically in text form, i.e. the input text may be understood as code handling input in text form. The code generation refers to generating a complete code according to the input text corresponding to the code processing input.
In some embodiments, text splicing can be performed on the input text and the target intention, and the spliced text is used as information to be processed. Where symbol concatenation (e.g., symbol & splice) may be employed when text is entered and the target is intended for text splicing.
For example, the code processing inputs "code for generating and detecting the key points and the outline on the hand region" and displaying the key points ", the corresponding target is intended to be" code generation ", the corresponding input text is" code for generating and detecting the key points and the outline on the hand region and displaying the key points ", and the corresponding information to be processed may be" code for generating and detecting the key points and the outline on the hand region and displaying the key points & code generation ".
In addition, in the case that the target is intended for code generation, the code model can learn a large number of code samples and language specifications, so that the code model can generate corresponding program codes according to natural language descriptions of the input corresponding to the code processing input text, thereby helping research and development personnel to more efficiently create and realize codes.
Based on any of the above embodiments, extracting information to be processed from a terminal code processing interface based on a target intention includes:
Extracting a code to process an input text and a text corresponding to the input text in a terminal code processing interface under the condition that the target is intended to be code complement;
based on the input text, the above text, and the target intent, information to be processed is generated.
Specifically, code completion refers to code predictive continuation of an input text. If the target is intended to be code-completed, the code processing input may be in text form, control click form, or cursor displacement form. In the case that the code processing input is in a text form, the input text may be the code processing input in a text form, and the above text may be a code text having a greater degree of association with the input text; under the condition that the code processing input is in a control point touch mode, the input text can be a text circled by the control point touch, and the above text can be a code text with a larger association degree with the input text; in the case that the code processing input is in the form of cursor displacement, the input text may be a text corresponding to the current position of the cursor, and the above text may be a code text associated with the input text to a greater extent.
In some embodiments, text splicing can be performed on the input text, the text above and the target intention, and the spliced text is used as information to be processed. Where symbol concatenation (e.g., symbol & splice) may be employed when text is entered, text above, and text is intended for target.
For example, the code processing input is "code complement to function 1", the corresponding target is intended to be "code complement", the corresponding input text is "code complement to function 1", the corresponding above text is "code text associated with function 1 above", and the corresponding information to be processed may be "code complement to function 1 & code text associated with function 1 above & code complement to function 1 above".
In addition, under the condition that the target is intended to be code complement, the code model can predict and generate possible code fragments according to codes and language specifications corresponding to the text, so that the coding speed and accuracy of research personnel can be improved, and input errors and redundancy are reduced.
Based on any of the above embodiments, fig. 2 is one of the flow diagrams of the implementation of step 120 in the code processing method provided by the present invention, as shown in fig. 2, the extracting, in step 120, information to be processed from a terminal code processing interface based on a target intention includes:
121a, extracting a code processing input corresponding input text from a question-answer area of a terminal code processing interface and extracting a code processing input corresponding code to be modified from a code editing area of the terminal code processing interface under the condition that the target is intended to be code modification;
Step 122a, generating the information to be processed based on the input text, the code to be modified and the target intention.
Specifically, the terminal code processing interface may include a question and answer area and a code editing area. The question and answer area is used for receiving code processing input in a text form, and the code editing area is used for receiving code processing input in a text form, a control point touch form and a cursor displacement form. The input text refers to text for describing the code modification content, and the code to be modified refers to the code to be modified pointed to in the input text.
In the case where the target is intended for code modification, the input text corresponding to the code processing input typically contains code information to be modified, so that the code corresponding to the code processing input can be extracted from the code editing area based on the input text.
For example, the input text corresponding to the code processing input is "please change the color of the track in the code a to blue, the tracks are connected by lines", and the code to be modified is "code a" according to the semantic information of the input text, so that the "code a" can be extracted from the code editing area.
In some embodiments, text splicing can be performed on the input text, the code to be modified and the target intention, and the spliced text is used as information to be processed. The text input, the code to be modified, and the target intention may be spliced by using symbol (e.g., symbol & splice).
For example, the code processing inputs the corresponding input text as "please change the color of the track in the code a to blue, the track is connected by a line", the corresponding target is intended to be "code modification", the corresponding input text as "please change the color of the track in the code a to blue, the track is connected by a line", the code to be modified is "code a", and the corresponding information to be processed may be "please change the color of the track in the code a to blue, the track is connected by a line & the code a & the code modification".
In addition, when the target is intended to be code modification, the code model can modify the code to be modified according to the code and language specification corresponding to the code to be modified and the input text describing the modification content, so that the code modification speed of the research personnel can be improved.
Based on any of the above embodiments, fig. 3 is a schematic flow chart of an embodiment of step 122a in the code processing method provided by the present invention, and as shown in fig. 3, step 122a includes:
step 1221a, extracting context codes associated with the code to be modified from the code editing area;
step 1222a, generating information to be processed based on the context code, and the input text, the code to be modified, and the target intent.
Based on any of the above embodiments, fig. 4 is a second flowchart of an implementation of step 120 in the code processing method provided by the present invention, as shown in fig. 4, the extracting, in step 120, information to be processed from a terminal code processing interface based on a target intention includes:
step 121b, extracting code processing input corresponding target codes from the code editing area of the terminal code processing interface in the case that the target is intended to be any one of code interpretation, code testing and code error correction;
step 122b, generating information to be processed based on the code processing input corresponding target code and target intention.
Specifically, the code interpretation refers to explaining the content of the target code, the code test refers to generating corresponding test codes for the target code by using a pointer, and the code error correction refers to error correction optimization for the content of the target code. If the target is intended to be any of code interpretation, code testing, and code correction, the code processing input may be any of text form, control click form, or cursor displacement form. The code processing input typically includes object code information, such as a function name of the object code.
In some embodiments, text may be spliced for the target code and the target intention, and the spliced text may be used as the information to be processed. Where symbol concatenation (e.g., symbol & splice) may be employed when the object code and object are intended for text splicing.
Furthermore, where the target is intended to be a code interpretation, the code model may understand and interpret the meaning and logic of the program code. The code model can provide explanation, annotation and document of related codes by learning a large number of code examples and language specifications in the code library, so that the research and development personnel can be helped to understand and debug the complex code segments.
In the case where the target is intended to be a code test, the code model may automatically generate and run unit tests of the code. The code model can automatically generate proper test codes according to given test cases and code specifications, and execute tests to verify the correctness of the codes, so that the method can help research and development personnel to improve the robustness and maintainability of the codes.
In the case where the target is intended for code error correction, the code model may detect and fix errors and problems in the code. The code model may analyze the syntax, structure, and semantics of the code and identify potential errors or inefficient writing, thereby providing repair suggestions and hints to help the developer improve the quality and reliability of the code.
Based on any of the above embodiments, performing scene intent analysis on the code processing input to obtain a target intent, including at least one of:
carrying out scene intention analysis on semantic information of an input text corresponding to code processing input to obtain target intention;
determining a target intention based on a control function of a control corresponding to code processing input;
and determining the target intention based on the cursor position of the cursor corresponding to the code processing input.
In particular, the forms of code processing input may include text forms, control click forms, and cursor displacement forms.
Under the condition that the code processing input is in a text form, scene intention analysis can be performed based on semantic information input by the code processing input, and target intention is obtained. For example, when the code processing is input as "generating a code for detecting key points and contours on a hand region and displaying the key points", scene intention analysis is performed based on semantic information input by the code processing, and the target intention is "code generation".
In the case where the code processing input is in the form of a control tap, the target intent may be determined based on the control function to which the tap control corresponds. For example, the code processing input is "the code error correction control corresponding to the point touch code a", and since the control function of the code error correction control is "code error correction", the corresponding target is intended to be "code error correction".
In the case where the code processing input is in the form of cursor displacement, the target intent may be determined based on the cursor position of the corresponding cursor. For example, the code processing input is "cursor displacement to the end of function 1", and since the cursor is located at the end of function 1 and the code at the end of function 1 is not written out, the corresponding target intention can be resolved to be "code complement".
Based on any of the above embodiments, under the terminal code processing interface, receiving a code processing input includes:
receiving code processing input in a text form in a question-answer area of a terminal code processing interface;
and/or the number of the groups of groups,
and receiving code processing input in a text form, a control point touch form and a cursor displacement form in a code editing area of a terminal code processing interface.
Fig. 5 is a schematic diagram of a question-answer area of a terminal code processing interface provided by the present invention, as shown in fig. 5, in the question-answer area, a user may input a code processing input "i: code interpretation+defadd_todo () …", at this time, the terminal receives the code processing input, and after a service end returns a code processing result, the question-answer area displays a code processing result "AICODE: this piece of code is an implementation … "of the simple to-do add function. It follows that the question and answer area in the terminal code processing interface may provide a dialogue interaction window to provide a code class expertise question and answer function. The question and answer area is generally used for performing interaction of code processing such as code interpretation, code error correction and code test.
In addition, in the code editing area, the user can input code processing input in a text form, a control point touch form and a cursor displacement form, and after the service end returns the code processing result, the code processing result is displayed at the corresponding position of the code editing area.
Fig. 6 is a schematic diagram of a code editing area of a terminal code processing interface provided in the present invention, as shown in fig. 6, a code is displayed in the code editing area, when a code error correction is required to be performed on a code corresponding to "# display command prompt", the "# display command prompt" can be selected, and a code error correction control is touched, so that the code editing area displays error correction information (such as adding comments in error codes) of the code corresponding to "# display command prompt".
Therefore, the code editing area of the terminal code processing interface can generate code suggestions in an immersive mode in the programming process, and the improvement of coding efficiency is facilitated. The terminal code processing interface is generally used for performing interaction of code processing such as code generation, code complement, code modification and the like.
Based on any of the above embodiments, fig. 7 is a second flowchart of a code processing method provided by the present invention, as shown in fig. 7, the method is applied to a server, and includes the following steps:
Step 710, receiving information to be processed sent by a terminal, wherein the information to be processed is obtained by analyzing scene intention of code processing input under a terminal code processing interface by the terminal, obtaining target intention and extracting the target intention from the terminal code processing interface based on the target intention;
step 720, generating a prompt statement carrying the information to be processed based on the information to be processed;
step 730, sending the prompt statement to the code model so that the code model performs code processing based on the prompt statement and returns a code processing result;
and 740, transmitting the code processing result to the terminal so that the terminal can display the code processing result under a terminal code processing interface.
Here, the terminal code processing interface may be understood as an interface provided on the terminal to interact with the user for code processing. The terminal code processing interface can be provided with a dialog box, buttons corresponding to different input modes such as handwriting input, keyboard input, voice input and the like can be arranged in the dialog box, and a user can further realize the input mode of corresponding code processing input by selecting the corresponding buttons.
Further, code processing input may be understood as code processing related information generated by a user in text form, control click form, and cursor displacement form on a terminal code processing interface in the presence of code processing requirements.
For example, the user inputs text "i want to develop an application function similar to finger pinch trajectory point tracking of over-the-air handwriting" under the terminal code processing interface, please provide an implementation idea ", and the input text may be input for code processing.
For example, the user selects the code a under the terminal code processing interface and clicks the code error correction control, and then "the code error correction control corresponding to the click code a" can be used as the code processing input.
For example, the user shifts the cursor to the end of function 1 under the terminal code processing interface, and then "the cursor is shifted to the end of function 1" may be used as the code processing input.
The scene intention parsing may be extracting a corresponding scene intention from the code processing input, the extracted scene intention being the target intention. The information to be processed can be understood as input information corresponding to the corresponding code processing under the target intention. The information to be processed may include a target intention, a text corresponding to the target intention in the terminal code processing interface, a code, and the like. The target intent may include code generation, code completion, code modification, code error correction, code interpretation, code testing, and the like.
The prompt sentence can be a text obtained by filling the information to be processed into a prompt sentence template, and the prompt sentence can be also understood as a text obtained by regulating the information to be processed into a standard input form according to the prompt sentence template. The information to be processed may be a prompt text.
In some specific embodiments, the prompt sentence can be input into a pre-constructed code model, and the code model performs code processing based on the prompt sentence to obtain a code processing result; the code model is obtained through training based on sample prompt sentences and corresponding sample code processing results.
After the server receives the code processing result returned by the code model, the code processing result can be analyzed into natural language, and the analyzed code processing result is sent to the terminal and displayed under the terminal code processing interface of the terminal.
According to the code processing method provided by the embodiment of the invention, scene intention analysis is carried out on code processing input through the terminal to obtain target intention, and information to be processed is extracted from the terminal code processing interface based on the target intention, so that a server side can generate a prompt statement carrying the information to be processed, a code model can carry out code processing based on the prompt statement, a code processing result is obtained rapidly and accurately, and the problems of workload increase and lower code processing efficiency caused by relying on manual code processing of research personnel in the traditional method are avoided.
Based on any of the above embodiments, the information to be processed carries a target intention;
based on the information to be processed, generating a prompt statement carrying the information to be processed, including:
determining a prompt statement template corresponding to the target intention;
and filling the prompt statement template based on the information to be processed to obtain the prompt statement.
Specifically, the prompt sentence is a text obtained by filling the information to be processed into a prompt sentence template, and the prompt sentence can be understood as a text obtained by regularizing the information to be processed into a standard input form according to the prompt sentence template. The information to be processed may be a prompt text.
In addition, the prompt sentence templates corresponding to different target intentions are different, after the server receives the information to be processed, the corresponding prompt sentence templates are determined based on the target intentions carried in the information to be processed, and then the prompt sentence templates can be filled based on the information to be processed, so that the prompt sentence is obtained.
For example, the information to be processed is "generate n test cases, and code test is performed on code C", then the corresponding prompt statement template may be { "query": "you are a senior code developer, please describe [ sample ] and code implementation [ code ] according to the following requirements, generate corresponding [ num ] test cases and executable codes", "answer": "test cases and running codes" }, then "generate n test cases" in the information to be processed, code test "fill [ sample ] field for code C," fill [ code ] field for "code C," fill [ num ] field for "n", and further obtain the corresponding prompt statement.
Based on any of the above embodiments, based on the information to be processed, filling the alert sentence template to obtain the alert sentence, including:
filling at least one of codes, target intentions and input texts in the information to be processed into corresponding positions in the prompt sentence template to obtain the prompt sentence.
Specifically, different target intents correspond to different prompt sentence templates, and contents required to be filled in the different prompt sentence templates are different. For example, in the case that the target is intended to be code generation, the content to be filled in the code generation corresponding prompt sentence template may be input text, and further, the input text in the information to be processed may be filled in the corresponding position. For another example, in the case that the target is intended to be code modification, the content required to be filled in by the code modification corresponding to the prompt sentence template may be code and input text, and then the code and text in the information to be processed may be filled in the corresponding position.
The code processing apparatus provided by the present invention will be described below, and the code processing apparatus described below and the code processing method described above may be referred to correspondingly to each other.
Based on any of the above embodiments, fig. 8 is a schematic structural diagram of a code processing apparatus according to the present invention, and as shown in fig. 8, the apparatus is mounted on a terminal, and includes:
An input receiving unit 810 for receiving a code processing input under a terminal code processing interface;
the intention analyzing unit 820 is used for analyzing scene intention of the code processing input to obtain target intention, and extracting information to be processed from the terminal code processing interface based on the target intention;
the information sending unit 830 is configured to send information to be processed to a server, so that the server generates a prompt sentence carrying the information to be processed, sends the prompt sentence to a code model, and makes the code model perform code processing based on the prompt sentence to obtain a code processing result;
and the result receiving unit 840 is configured to receive the code processing result returned by the server, and display the code processing result in the terminal code processing interface.
Based on any of the above embodiments, the intent resolution unit 820 is configured to:
in the case where the target intention is code generation, information to be processed is generated based on the code processing input of the corresponding input text in the terminal code processing interface and the target intention.
Based on any of the above embodiments, the intent resolution unit 820 includes:
the first extraction unit is used for extracting the input text and the above text corresponding to the code processing input in the terminal code processing interface under the condition that the target is intended to be code complement;
And the first generation unit is used for generating information to be processed based on the input text, the text and the target intention.
Based on any of the above embodiments, the intent resolution unit 820 includes:
the second extraction unit is used for extracting an input text corresponding to code processing input from a question-answer area of the terminal code processing interface and extracting a code processing input corresponding to a code to be modified from a code editing area of the terminal code processing interface under the condition that the target is intended to be code modification;
and the second generation unit is used for generating information to be processed based on the input text, the code to be modified and the target intention.
Based on any one of the above embodiments, the second generating unit includes:
a third extraction unit for extracting a context code associated with the code to be modified from the code editing region;
and a third generating unit for generating information to be processed based on the context code, and the input text, the code to be modified, and the target intention.
Based on any of the above embodiments, the intent resolution unit 820 includes:
a fourth extraction unit for extracting a code processing input corresponding target code from a code editing area of the terminal code processing interface in the case where the target is intended to be any one of code interpretation, code testing, and code error correction;
And the fourth generation unit is used for generating information to be processed based on the code processing input corresponding target code and the target intention.
Based on any of the above embodiments, performing scene intent analysis on the code processing input to obtain a target intent, including at least one of:
carrying out scene intention analysis on semantic information of an input text corresponding to code processing input to obtain target intention;
determining a target intention based on a control function of a control corresponding to code processing input;
and determining the target intention based on the cursor position of the cursor corresponding to the code processing input.
Based on any of the above embodiments, the input receiving unit 810 includes:
receiving code processing input in a text form in a question-answer area of a terminal code processing interface;
and/or the number of the groups of groups,
and receiving code processing input in a text form, a control point touch form and a cursor displacement form in a code editing area of a terminal code processing interface.
Based on any of the above embodiments, fig. 9 is a second schematic structural diagram of a code processing apparatus according to the present invention, as shown in fig. 9, the apparatus is installed on a server, and includes:
the information receiving unit 910 is configured to receive information to be processed sent by the terminal, where the information to be processed is obtained by the terminal analyzing a scene intention of a code processing input under a code processing interface of the terminal, obtaining a target intention, and extracting the target intention from the code processing interface of the terminal based on the target intention;
A sentence generating unit 920, configured to generate a prompt sentence carrying information to be processed based on the information to be processed;
a statement transmitting unit 930 configured to transmit the hint statement to the code model, so that the code model performs code processing based on the hint statement, and returns a code processing result;
and a result transmitting unit 940 for transmitting the code processing result to the terminal so that the terminal is displayed under the terminal code processing interface.
Based on any of the above embodiments, the information to be processed carries a target intention;
the sentence generating unit 920 includes:
the template determining unit is used for determining a prompt statement template corresponding to the target intention;
and the filling unit is used for filling the prompt statement template based on the information to be processed to obtain the prompt statement.
Based on any of the above embodiments, the filling unit is configured to:
filling at least one of codes, target intentions and input texts in the information to be processed into corresponding positions in the prompt sentence template to obtain the prompt sentence.
Based on any of the above embodiments, fig. 10 is a schematic structural diagram of a code processing system provided in the present invention, as shown in fig. 10, the system includes: the terminal 1010, the server 1020 and the code model 1030 are obtained by training a code model based on a large language model, and the code model is used for performing code processing on the input code processing input. The large-scale language model can be constructed based on pre-training models such as BERT model, XLnet model, ROBERTa model, T5 model and the like.
In some embodiments, the code processing system performs the following code processing procedure:
the terminal 1010 receives a code processing input sent by a user, performs scene intention analysis on the code processing input to obtain a target intention, and extracts information to be processed from a terminal code processing interface based on the target intention. The code processing input carries the identity information of the user, and the extracted information to be processed also carries the identity information of the user.
The terminal 1010 sends the information to be processed to the server 1020, and the server 1020 performs authority verification based on the identity information of the user carried in the information to be processed, and in the case that the authority verification passes, the server 1020 generates a prompt sentence carrying the information to be processed based on the information to be processed and sends the prompt sentence to the code model 1030.
The code model 1030 performs code processing based on the hint statement to obtain a code processing result, and sends the code processing result to the server 1020.
The server 1020 parses the code processing result into a natural language, and sends the parsed code processing result to the terminal 1020, so that the terminal 1020 displays the parsed code processing result in the terminal code processing interface.
Fig. 11 is a schematic structural diagram of an electronic device according to the present invention, and as shown in fig. 11, the electronic device may include: a processor 1110, a memory 1120, a communication interface (Communications Interface) 1130, and a communication bus 1140, wherein the processor 1110, the memory 1120, and the communication interface 1130 communicate with each other via the communication bus 1140. Processor 1110 may invoke logic instructions in memory 1120 to perform a code processing method on the terminal side, the method comprising: receiving code processing input under a terminal code processing interface; scene intention analysis is carried out on the code processing input to obtain target intention, and information to be processed is extracted from the terminal code processing interface based on the target intention; the information to be processed is sent to a server side, so that the server side generates a prompt statement carrying the information to be processed, the prompt statement is sent to a code model, and the code model carries out code processing based on the prompt statement to obtain a code processing result; and receiving the code processing result returned by the server and displaying the code processing result under the terminal code processing interface.
Or, executing a code processing method of a server side, wherein the method comprises the following steps: receiving information to be processed sent by a terminal, wherein the information to be processed is obtained by analyzing scene intention of code processing input under a terminal code processing interface by the terminal, obtaining target intention and extracting the target intention from the terminal code processing interface based on the target intention; generating a prompt statement carrying the information to be processed based on the information to be processed; sending the prompt statement to a code model so that the code model carries out code processing based on the prompt statement and returns a code processing result; and sending the code processing result to the terminal so that the terminal can be displayed under the terminal code processing interface.
Further, the logic instructions in the memory 1120 described above may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the terminal-side code processing method provided by the above methods, the method comprising: receiving code processing input under a terminal code processing interface; scene intention analysis is carried out on the code processing input to obtain target intention, and information to be processed is extracted from the terminal code processing interface based on the target intention; the information to be processed is sent to a server side, so that the server side generates a prompt statement carrying the information to be processed, the prompt statement is sent to a code model, and the code model carries out code processing based on the prompt statement to obtain a code processing result; and receiving the code processing result returned by the server and displaying the code processing result under the terminal code processing interface.
Or, executing a code processing method of a server side, wherein the method comprises the following steps: receiving information to be processed sent by a terminal, wherein the information to be processed is obtained by analyzing scene intention of code processing input under a terminal code processing interface by the terminal, obtaining target intention and extracting the target intention from the terminal code processing interface based on the target intention; generating a prompt statement carrying the information to be processed based on the information to be processed; sending the prompt statement to a code model so that the code model carries out code processing based on the prompt statement and returns a code processing result; and sending the code processing result to the terminal so that the terminal can be displayed under the terminal code processing interface.
In still another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the above-provided terminal-side code processing methods, the method comprising: receiving code processing input under a terminal code processing interface; scene intention analysis is carried out on the code processing input to obtain target intention, and information to be processed is extracted from the terminal code processing interface based on the target intention; the information to be processed is sent to a server side, so that the server side generates a prompt statement carrying the information to be processed, the prompt statement is sent to a code model, and the code model carries out code processing based on the prompt statement to obtain a code processing result; and receiving the code processing result returned by the server and displaying the code processing result under the terminal code processing interface.
Or, executing a code processing method of a server side, wherein the method comprises the following steps: receiving information to be processed sent by a terminal, wherein the information to be processed is obtained by analyzing scene intention of code processing input under a terminal code processing interface by the terminal, obtaining target intention and extracting the target intention from the terminal code processing interface based on the target intention; generating a prompt statement carrying the information to be processed based on the information to be processed; sending the prompt statement to a code model so that the code model carries out code processing based on the prompt statement and returns a code processing result; and sending the code processing result to the terminal so that the terminal can be displayed under the terminal code processing interface.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (13)

1. A code processing method applied to a terminal, comprising:
receiving code processing input under a terminal code processing interface;
scene intention analysis is carried out on the code processing input to obtain target intention, and information to be processed is extracted from the terminal code processing interface based on the target intention;
the information to be processed is sent to a server, so that the server generates a prompt statement carrying the information to be processed, the prompt statement is sent to a code model, and the code model carries out code processing based on the prompt statement to obtain a code processing result;
And receiving the code processing result returned by the server and displaying the code processing result under the terminal code processing interface.
2. The code processing method according to claim 1, wherein the extracting information to be processed from the terminal code processing interface based on the target intention includes:
and generating the information to be processed based on the code processing input corresponding to the input text in the terminal code processing interface and the target intention under the condition that the target intention is code generation.
3. The code processing method according to claim 1, wherein the extracting information to be processed from the terminal code processing interface based on the target intention includes:
extracting input text and the above text corresponding to the code processing input in the terminal code processing interface under the condition that the target is intended to be code complement;
and generating the information to be processed based on the input text, the above text and the target intention.
4. The code processing method according to claim 1, wherein the extracting information to be processed from the terminal code processing interface based on the target intention includes:
Extracting an input text corresponding to the code processing input from a question-answer area of the terminal code processing interface and extracting a code to be modified corresponding to the code processing input from a code editing area of the terminal code processing interface when the target is intended to be code modification;
and generating the information to be processed based on the input text, the code to be modified and the target intention.
5. The code processing method according to claim 4, wherein the generating the information to be processed based on the input text, the code to be modified, and the target intention includes:
extracting a context code associated with the code to be modified from the code editing area;
and generating the information to be processed based on the context code, the input text, the code to be modified and the target intention.
6. The code processing method according to claim 1, wherein the extracting information to be processed from the terminal code processing interface based on the target intention includes:
extracting the code processing input corresponding target code from a code editing area of the terminal code processing interface in the case that the target is intended to be any one of code interpretation, code testing and code error correction;
And generating the information to be processed based on the code processing input corresponding target code and the target intention.
7. The code processing method according to any one of claims 1 to 5, wherein the scene intention parsing of the code processing input to obtain a target intention includes at least one of:
performing scene intention analysis on semantic information of an input text corresponding to the code processing input to obtain a target intention;
determining the target intention based on the control function of the control corresponding to the code processing input;
and determining the target intention based on the cursor position of the cursor corresponding to the code processing input.
8. The code processing method according to any one of claims 1 to 5, wherein receiving code processing input under a terminal code processing interface comprises:
receiving code processing input in a text form in a question-answer area of the terminal code processing interface;
and/or the number of the groups of groups,
and receiving code processing input in a text form, a control point touch form and a cursor displacement form in a code editing area of the terminal code processing interface.
9. A code processing method applied to a server, comprising:
Receiving information to be processed sent by a terminal, wherein the information to be processed is obtained by analyzing scene intention of code processing input under a terminal code processing interface by the terminal, obtaining target intention and extracting the target intention from the terminal code processing interface based on the target intention;
generating a prompt statement carrying the information to be processed based on the information to be processed;
sending the prompt statement to a code model so that the code model carries out code processing based on the prompt statement and returns a code processing result;
and sending the code processing result to the terminal so that the terminal can be displayed under the terminal code processing interface.
10. The code processing method according to claim 9, wherein the information to be processed carries a target intention;
the generating a prompt statement carrying the information to be processed based on the information to be processed includes:
determining a prompt statement template corresponding to the target intention;
and filling the prompt statement template based on the information to be processed to obtain the prompt statement.
11. The code processing method according to claim 10, wherein the filling the hint statement template based on the information to be processed to obtain the hint statement includes:
And filling at least one of codes, target intentions and input texts in the information to be processed into corresponding positions in the prompt sentence template to obtain the prompt sentence.
12. A code processing system, comprising: the system comprises a terminal, a server and a code model, wherein the code model is obtained based on large language model training, and the code model is used for carrying out code processing on input code processing input.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the code processing method of any of claims 1 to 11 when the computer program is executed by the processor.
CN202311031204.7A 2023-08-14 2023-08-14 Code processing method, system and electronic equipment Pending CN117130593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311031204.7A CN117130593A (en) 2023-08-14 2023-08-14 Code processing method, system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311031204.7A CN117130593A (en) 2023-08-14 2023-08-14 Code processing method, system and electronic equipment

Publications (1)

Publication Number Publication Date
CN117130593A true CN117130593A (en) 2023-11-28

Family

ID=88850063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311031204.7A Pending CN117130593A (en) 2023-08-14 2023-08-14 Code processing method, system and electronic equipment

Country Status (1)

Country Link
CN (1) CN117130593A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117555720A (en) * 2024-01-11 2024-02-13 腾讯科技(深圳)有限公司 Code repairing method, device, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117555720A (en) * 2024-01-11 2024-02-13 腾讯科技(深圳)有限公司 Code repairing method, device, equipment and medium
CN117555720B (en) * 2024-01-11 2024-04-26 腾讯科技(深圳)有限公司 Code repairing method, device, equipment and medium

Similar Documents

Publication Publication Date Title
US11537793B2 (en) System for providing intelligent part of speech processing of complex natural language
US10977155B1 (en) System for providing autonomous discovery of field or navigation constraints
Madnani iBLEU: Interactively debugging and scoring statistical machine translation systems
EP4113357A1 (en) Method and apparatus for recognizing entity, electronic device and storage medium
US11907665B2 (en) Method and system for processing user inputs using natural language processing
CN117130593A (en) Code processing method, system and electronic equipment
Madi et al. A proposed Arabic grammatical error detection tool based on deep learning
CN115803734A (en) Natural language enrichment using action interpretation
CN108932225A (en) For natural language demand to be converted into the method and system of semantic modeling language statement
KR20200071413A (en) Machine learning data generating apparatus, apparatus and method for analyzing errors in source code
CN117130589A (en) Code processing method, apparatus, all-in-one machine and computer program product
CN115438678B (en) Machine translation method, device, electronic equipment and storage medium
CN116861242A (en) Language perception multi-language pre-training and fine tuning method based on language discrimination prompt
CN111158648A (en) Interactive help system development method based on live-action semantic understanding and platform thereof
CN116451646A (en) Standard draft detection method, system, electronic equipment and storage medium
CN113627197B (en) Text intention recognition method, device, equipment and storage medium
CN114298032A (en) Text punctuation detection method, computer device and storage medium
CN112528651A (en) Intelligent correction method, system, electronic equipment and storage medium
CN112732868A (en) Answer analysis method for answers, electronic device and storage medium
CN117539438B (en) Software development method
CN116910646B (en) Method for classifying internal link objectives of knowledge units in SO website
JP7426493B2 (en) Auxiliary processing methods, equipment, electronic equipment, storage media and programs for software development
CN110955433B (en) Automatic deployment script generation method and device
US20230135536A1 (en) Method and Apparatus for Processing Table
Wang et al. The Construction of a Shared Resource Base for Teaching Chinese Culture under the Architecture of Disciplinary Knowledge Mapping

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