Source file processing method and device, equipment, medium and program product
By obtaining and processing source file fragments of the target page, and using the source file processing language model to automatically process the source file problem, solving the problem of inefficient source file debugging in the existing technology, and achieving a more efficient development process.
Patent Information
- Application Number
- CN202311518410.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-14
- Publication Date
- 2025-05-23
AI Technical Summary
In the prior art, the method of repairing source files by repeatedly searching logs leads to a long process of debugging the source file and the repair efficiency is too slow. Especially when the project volume is large, the problem of quickly locate the source file, resulting in a long development time and low development efficiency.
A source file processing method is adopted to obtain the source file fragment selected in the source file corresponding to the target page, determine the processing prompt information, and use the source file processing language model to perform processing operations on the source file fragments, obtain the source file processing file, and display it to solve the source file problem.
By automatically processing source file problems, we avoid repeated artificial debugging, significantly shorten development time, improve development efficiency, and handle source file problems more accurately.
Smart Images

Figure CN120029878A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a source file processing method, apparatus, device, medium, and program product. Background Art
[0002] At present, low-code platforms in various fields have been established and mature. Most developers can complete related script development work only on the browser. For current developers to solve source file problems (for example, code bugs) in source files, the usual method is: first, locate the source file problem by searching the log. Then, for the source file problem, manually repair the source file. Finally, check whether the repaired source file runs normally, and repeat the repair of the source file problem.
[0003] However, the inventors have found that when the above method is used to solve the source file problem, the following technical problems often occur:
[0004] The repetitive method of repeatedly searching for logs to repair source files takes a long time to debug source files, and the repair efficiency is too slow. When the project workload is large, many logs are generated, and the source files cannot be quickly located, resulting in long development time and low development efficiency.
[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0007] Some embodiments of the present disclosure propose source file processing methods, devices, equipment, media and program products to solve the technical problems mentioned in the above background technology section.
[0008] In a first aspect, some embodiments of the present disclosure provide a source file processing method, including: obtaining a source file fragment selected from a source file corresponding to a target page; determining processing prompt information corresponding to the above-mentioned source file fragment; using a source file processing language model, performing a processing operation corresponding to the above-mentioned processing prompt information on the above-mentioned source file fragment to obtain a source file processing file; in response to determining that the above-mentioned source file processing file represents that there is a problem with the source file fragment, displaying the source file processing fragment included in the source file processing file.
[0009] Optionally, the above-mentioned use of the source file processing language model to perform the processing operation corresponding to the above-mentioned processing prompt information on the above-mentioned source file fragment to obtain a source file processing file includes: calling the source file processing interface corresponding to the above-mentioned source file processing language model to perform the processing operation corresponding to the above-mentioned processing prompt information on the above-mentioned source file fragment to obtain the source file processing file, wherein the above-mentioned source file processing interface has a corresponding source file processing plug-in.
[0010] Optionally, the above-mentioned display of the source file processing fragment included in the source file processing file includes: determining the page position of the above-mentioned source file fragment in the above-mentioned target page; and displaying the above-mentioned source file processing fragment in the page area corresponding to the above-mentioned page position in the above-mentioned target page in the form of a window.
[0011] Optionally, the method further includes: in response to determining that replacement information for the source file processing segment is received, replacing the source file segment in the source file with the source file processing segment.
[0012] Optionally, after displaying the source file processing fragment in the page area corresponding to the above-mentioned page position in the above-mentioned target page in the form of a window, the above-mentioned method also includes: in response to receiving click information for the remaining page areas, closing the window corresponding to the above-mentioned source file processing fragment, wherein the above-mentioned remaining page areas are the areas in the page area corresponding to the above-mentioned target page except the above-mentioned page area.
[0013] Optionally, the above-mentioned processing prompt information is error correction prompt information; and the above-mentioned use of the source file processing language model to perform the processing operation corresponding to the above-mentioned processing prompt information on the above-mentioned source file fragment to obtain a source file processing file includes: using the above-mentioned source file processing language model to perform source file error correction processing on the above-mentioned source file fragment to obtain a source file error correction file as the above-mentioned source file processing file.
[0014] Optionally, the above-mentioned processing prompt information is filling prompt information; and the above-mentioned use of the source file processing language model to perform the processing operation corresponding to the above-mentioned processing prompt information on the above-mentioned source file fragment to obtain a source file processing file, including: using the above-mentioned source file processing language model to perform source file filling processing on the above-mentioned source file fragment to obtain a source file filling file as the above-mentioned source file processing file.
[0015] In a second aspect, some embodiments of the present disclosure provide a source file processing device, comprising: an acquisition unit, configured to acquire a source file fragment selected from a source file displayed on a target page; a determination unit, configured to determine processing prompt information corresponding to the above-mentioned source file fragment; an execution unit, configured to use a source file processing language model to perform a processing operation corresponding to the above-mentioned processing prompt information on the above-mentioned source file fragment to obtain a source file processing file; and a display unit, configured to display the source file processing fragment included in the source file processing file in response to determining that the above-mentioned source file processing file represents that there is a program problem in the source file fragment.
[0016] Optionally, the execution unit can be configured to: call the source file processing interface corresponding to the above-mentioned source file processing language model to perform the processing operation corresponding to the above-mentioned processing prompt information on the above-mentioned source file fragment to obtain a source file processing file, wherein the above-mentioned source file processing interface has a corresponding source file processing plug-in.
[0017] Optionally, the display unit may be configured to: determine the page position of the source file fragment in the target page; and display the source file processing fragment in a page area corresponding to the page position in the target page in a window form.
[0018] Optionally, the device further includes: in response to determining that replacement information for the source file processing segment is received, replacing the source file segment in the source file with the source file processing segment.
[0019] Optionally, the display unit may be configured to: in response to receiving click information for remaining page areas, close the window corresponding to the source file processing fragment, wherein the remaining page areas are areas other than the above page area in the page area corresponding to the target page.
[0020] Optionally, the processing prompt information is error correction prompt information; and the execution unit may be configured to: utilize the source file processing language model to perform source file error correction processing on the source file fragment to obtain a source file error correction file as the source file processing file.
[0021] Optionally, the processing prompt information is filling prompt information; and the execution unit can be configured to: use the source file processing language model to perform source file filling processing on the source file fragment to obtain a source file filling file as the source file processing file.
[0022] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.
[0023] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner in the first aspect is implemented.
[0024] In a fifth aspect, some embodiments of the present disclosure provide a computer program product, including a computer program, which implements the method described in any implementation manner in the above-mentioned first aspect when executed by a processor.
[0025] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the source file processing method of some embodiments of the present disclosure, the development time is greatly saved, the development efficiency is improved, and a more accurate source file can be obtained. Specifically, the reason for the low development time and development efficiency of the relevant source files is that the source file debugging process is long and the repair efficiency is too slow for the repetitive way of repeatedly searching for logs to repair the source files. And when the project engineering volume is large, there are many logs generated, and the source file cannot be quickly located, resulting in a long development time and low development efficiency. Based on this, the source file processing method of some embodiments of the present disclosure first obtains the source file fragment selected from the source file corresponding to the target page as the subsequent source file content to be processed. Then, the processing prompt information corresponding to the above source file fragment is determined to clarify how to process the source file content to be processed, so that the processing of the source file fragment is more targeted. Then, using the source file processing language model, the processing operation corresponding to the above processing prompt information is performed on the above source file fragment to obtain the source file processing file. Here, the source file processing language model is used to perform corresponding processing operations on the source file fragment, avoiding repeated debugging of the source file by humans, and realizing automatic processing of source file problems. And when the project workload is large, it is also possible to efficiently and accurately implement the corresponding processing of the source file, which greatly shortens the development time and improves the development efficiency. Finally, in response to determining that the source file processing file represents that there is a problem with the source file segment, the source file processing segment included in the source file processing file is displayed. In summary, by using the source file processing language model, the problems encountered by the source file can be automatically and accurately processed, which greatly improves the development efficiency and shortens the development time. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0027] Figure 1 is a schematic diagram of an application scenario of a source file processing method according to some embodiments of the present disclosure;
[0028] Figure 2 is a flow chart of some embodiments of the source file processing method according to the present disclosure;
[0029] Figure 3 are flow charts of other embodiments of the source file processing method according to the present disclosure;
[0030] Figure 4 is a schematic diagram of the structure of some embodiments of the source file processing device according to the present disclosure;
[0031] Figure 5 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0032] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0033] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0034] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0035] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0036] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0037] With regard to the collection, storage, and use of files (such as source files) involved in this disclosure, before executing the corresponding operations, the relevant organizations or individuals shall fulfill their obligations, including conducting file security impact assessments, fulfilling the obligation to inform the file subject, and obtaining the authorization and consent of the file subject in advance.
[0038] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0039] Figure 1 It is a schematic diagram of an application scenario of the source file processing method according to some embodiments of the present disclosure.
[0040] exist Figure 1 In the application scenario, first, the electronic device 101 can obtain a source file segment 104 selected from a source file 103 corresponding to the target page 102.
[0041] In this application scenario, the source file 103 may be:
[0042]
[0043] The source document fragment 104 may be: “SELECT m.*,,***** AS m”.
[0044] Then, the electronic device 101 may determine the processing prompt information 105 corresponding to the source file segment 104. In this application scenario, the processing prompt information 105 may be "perform source file processing on the selected source file". Furthermore, the electronic device 101 may use the source file processing language model 106 to perform the processing operation corresponding to the processing prompt information 105 on the source file segment 105, and obtain a source file processing file 107. Finally, in response to determining that the source file processing file 107 indicates that there is a problem with the source file segment 104, the electronic device 101 may display the source file processing segment included in the source file processing file 107.
[0045] It should be noted that the electronic device 101 can be hardware or software. When the electronic device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or it can be implemented as a single server or a single terminal device. When the electronic device is embodied as software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, for example, or it can be implemented as a single software or software module. No specific limitation is made here.
[0046] It should be understood that Figure 1 The number of electronic devices in the embodiment is only for illustration. Any number of electronic devices may be provided according to implementation requirements.
[0047] Continue to refer Figure 2 , shows a process 200 of some embodiments of the source file processing method according to the present disclosure. The source file processing method comprises the following steps:
[0048] Step 201 : obtaining a source file segment selected from a source file corresponding to a target page.
[0049] In some embodiments, the execution body of the above source file processing method (for example Figure 1 The electronic device 101 shown) can obtain a source file fragment selected from a source file corresponding to a target page through a wired connection or a wireless connection. Among them, the target page can be an extended front-end page. In practice, the extended front-end page includes: an extension name, an extension identifier, an extension version number, and an extended description information. The extension name can represent the functions that can be implemented. The extension version number can represent the version iteration information. The extended description information can be information that allows users to quickly understand the operations required for the extension and the returned results. The source file can be the code that is currently being debugged. The source file fragment can be a part of the code in the corresponding code in the source file. Specifically, the source file fragment can be a part of the code selected by the relevant user from the corresponding code of the source file through the mouse and pre-parsed using JavaScript.
[0050] Step 202: Determine processing prompt information corresponding to the source file segment.
[0051] In some embodiments, the execution subject may determine the processing prompt information corresponding to the source file segment. The processing prompt information may be prompt information for processing the source file segment. In practice, the processing prompt information may be information in various forms. For example, the processing prompt information may be processing prompt information in text form or processing prompt information in voice form. Here, the processing prompt information may be prompt information selected or generated by the relevant user.
[0052] Step 203: using the source file processing language model, execute the processing operation corresponding to the processing prompt information on the source file segment to obtain a source file processing file.
[0053] In some embodiments, the execution subject may utilize a source file processing language model to perform the processing operation corresponding to the processing prompt information on the source file fragment to obtain a source file processing file. The source file processing language model may be a language model for processing source files. The source file processing language model may be a pre-trained neural network model. For example, the source file processing language model may be a GPT (Generative Pre-Trained Transformer) model. The source file processing file may be a file of the source file after processing the source file fragment. The source file processing file includes: a source file processing fragment. The source file processing fragment may be a source file fragment after processing the source file fragment. In addition, the source file processing file may also include: reply information on whether there is a logical problem in the source file fragment.
[0054] As an example, the execution subject may directly input the source file segment and the processing prompt information into the source file processing language model to generate a source file processing file.
[0055] In some optional implementations of some embodiments, the execution subject may call the source file processing interface corresponding to the source file processing language model to perform the processing operation corresponding to the processing prompt information on the source file fragment to obtain a source file processing file. The source file processing interface has a corresponding source file processing plug-in. In practice, the source file processing interface may be a GPT-API (Application Programming Interface). The source file processing plug-in may be a plug-in designed for the source file processing language model to process source files.
[0056] In some optional implementations of some embodiments, the processing prompt information is fill prompt information. The fill prompt information may be prompt information for performing fill processing on the source file segment. In practice, the fill processing may be code filling.
[0057] Optionally, the execution subject may utilize the source file processing language model to perform source file filling processing on the source file segment to obtain a source file filling file as the source file processing file.
[0058] Step 204 , in response to determining that the source file processing file represents that there is a problem with the source file segment, the source file processing segment included in the source file processing file is displayed.
[0059] In some embodiments, in response to determining that the source file processing file represents a problem with the source file segment, the execution subject may display the source file processing segment included in the source file processing file. The problem may be a problem that represents that the source file segment cannot run normally. For example, the problem may be a logic problem or a source file format problem.
[0060] In some optional implementations of some embodiments, the above-mentioned displaying of the source file processing fragments included in the source file processing file may include the following steps:
[0061] In the first step, the execution subject may determine the page position of the source file segment on the target page. For example, the source file segment is at the center of the target page, that is, the page position is the center position.
[0062] In the second step, the execution subject may display the source file processing fragment in a page area corresponding to the page position in the target page in the form of a window, wherein the window form may be a pop-up window.
[0063] Optionally, after the "second step", the steps further include:
[0064] In response to receiving click information for the remaining page areas, the execution subject may close the window corresponding to the source file processing segment, wherein the remaining page areas are areas other than the page area in the page area corresponding to the target page.
[0065] In some optional implementations of some embodiments, after step 204, the steps further include:
[0066] In response to determining that replacement information for the source file processing segment is received, the execution entity may replace the source file segment in the source file with the source file processing segment.
[0067] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the source file processing method of some embodiments of the present disclosure, the development time is greatly saved, the development efficiency is improved, and a more accurate source file can be obtained. Specifically, the reason for the low development time and development efficiency of the relevant source files is that the source file debugging process is long and the repair efficiency is too slow for the repetitive way of repeatedly searching for logs to repair the source files. And when the project engineering volume is large, there are many logs generated, and the source file cannot be quickly located, resulting in a long development time and low development efficiency. Based on this, the source file processing method of some embodiments of the present disclosure first obtains the source file fragment selected from the source file corresponding to the target page as the subsequent source file content to be processed. Then, the processing prompt information corresponding to the above source file fragment is determined to clarify how to process the source file content to be processed, so that the processing of the source file fragment is more targeted. Then, using the source file processing language model, the processing operation corresponding to the above processing prompt information is performed on the above source file fragment to obtain the source file processing file. Here, the source file processing language model is used to perform corresponding processing operations on the source file fragment, avoiding repeated debugging of the source file by humans, and realizing automatic processing of source file problems. And when the project workload is large, it is also possible to efficiently and accurately implement the corresponding processing of the source file, which greatly shortens the development time and improves the development efficiency. Finally, in response to determining that the source file processing file represents that there is a problem with the source file segment, the source file processing segment included in the source file processing file is displayed. In summary, by using the source file processing language model, the problems encountered by the source file can be automatically and accurately processed, which greatly improves the development efficiency and shortens the development time.
[0068] Further references Figure 3 , shows a process 300 of another embodiment of the source file processing method according to the present disclosure. The source file processing method comprises the following steps:
[0069] Step 301: Obtain a source file segment selected from a source file corresponding to a target page.
[0070] Step 302: Determine processing prompt information corresponding to the source file segment.
[0071] Step 303: Use the source file processing language model to perform source file error correction processing on the source file segment to obtain a source file error correction file as the source file processing file.
[0072] In some embodiments, an execution entity (e.g. Figure 1The electronic device 101 shown can use the above source file processing language model to perform source file error correction processing on the above source file segment to obtain a source file error correction file as the above source file processing file. The error correction prompt information can be prompt information for correcting the problem of the source file segment. In practice, the problem correction can be a code logic correction or a code form problem correction.
[0073] Step 304: in response to determining that the source file processing file indicates that there is a problem with the source file segment, the source file processing segment included in the source file processing file is displayed.
[0074] In some embodiments, the specific implementation of steps 301-302 and 304 and the technical effects thereof can be referred to in Figure 2 The steps 201-202 and 204 in the corresponding embodiment are not described in detail here.
[0075] from Figure 3 It can be seen that Figure 2 Compared with the description of some corresponding embodiments, Figure 3 The process 300 of the source file processing method in some corresponding embodiments can accurately and efficiently implement error correction processing of the source file for the above-mentioned source file fragment by utilizing the above-mentioned source file processing language model according to the error correction prompt information.
[0076] Further references Figure 4 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a source file processing device. These device embodiments are similar to Figure 2 Corresponding to the method embodiments shown, the source file processing device can be specifically applied to various electronic devices.
[0077] like Figure 4 As shown, a source file processing device 400 includes: an acquisition unit 401, a determination unit 402, an execution unit 403 and a display unit 404. The acquisition unit 401 is configured to acquire a source file segment selected from a source file displayed on a target page; the determination unit 402 is configured to determine processing prompt information corresponding to the source file segment; the execution unit 403 is configured to use a source file processing language model to perform a processing operation corresponding to the processing prompt information on the source file segment to obtain a source file processing file; the display unit 404 is configured to display the source file processing segment included in the source file processing file in response to determining that the source file processing file indicates that the source file segment has a program problem.
[0078] In some optional implementations of some embodiments, the execution unit 403 can be further configured to: call the source file processing interface corresponding to the above-mentioned source file processing language model to perform the processing operation corresponding to the above-mentioned processing prompt information on the above-mentioned source file fragment to obtain a source file processing file, wherein the above-mentioned source file processing interface has a corresponding source file processing plug-in.
[0079] In some optional implementations of some embodiments, the display unit 404 can be further configured to: determine the page position of the above-mentioned source file fragment in the above-mentioned target page; and display the above-mentioned source file processing fragment in the page area corresponding to the above-mentioned page position in the above-mentioned target page in the form of a window.
[0080] In some optional implementations of some embodiments, the apparatus 400 further includes a replacement unit (not shown in the figure). The replacement unit may be configured to: in response to determining that replacement information for the source file processing segment is received, replace the source file segment in the source file with the source file processing segment.
[0081] In some optional implementations of some embodiments, the apparatus 400 further includes a closing unit (not shown in the figure). The closing unit may be configured to close the window corresponding to the source file processing segment in response to receiving click information for the remaining page area, wherein the remaining page area is the area other than the page area in the page area corresponding to the target page.
[0082] In some optional implementations of some embodiments, the above-mentioned processing prompt information is error correction prompt information; and the execution unit 403 can be further configured to: use the above-mentioned source file processing language model to perform source file error correction processing on the above-mentioned source file fragment to obtain a source file error correction file as the above-mentioned source file processing file.
[0083] In some optional implementations of some embodiments, the above-mentioned processing prompt information is filling prompt information; and the execution unit 403 can be further configured to: use the above-mentioned source file processing language model to perform source file filling processing on the above-mentioned source file fragment to obtain a source file filling file as the above-mentioned source file processing file.
[0084] It is understandable that the units recorded in the source file processing device 400 and the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the source file processing device 400 and the units included therein, and will not be described in detail here.
[0085] Reference below Figure 5, which shows an electronic device (eg, Figure 1 Schematic diagram of the structure of the electronic device 101)500. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0086] like Figure 5 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory 502 or a program loaded from a storage device 508 to a random access memory 503. Various programs and data required for the operation of the electronic device 500 are also stored in the random access memory 503. The processing device 501, the read-only memory 502, and the random access memory 503 are connected to each other via a bus 504. An input / output interface 505 is also connected to the bus 504.
[0087] Typically, the following devices may be connected to the input / output interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 5 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0088] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the read-only memory 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0089] It should be noted that the computer-readable medium in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0090] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0091] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains a source file segment selected from a source file corresponding to a target page; determines processing prompt information corresponding to the source file segment; uses a source file processing language model to perform a processing operation corresponding to the processing prompt information on the source file segment to obtain a source file processing file; and in response to determining that the source file processing file indicates that there is a problem with the source file segment, displays the source file processing segment included in the source file processing file.
[0092] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0093] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0094] The units described in some embodiments of the present disclosure may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes an acquisition unit, a determination unit, an execution unit, and a presentation unit. The names of these units do not constitute limitations on the units themselves in certain circumstances, for example, the acquisition unit may also be described as "a unit for acquiring a source file fragment selected from a source file presented by a target page".
[0095] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0096] Some embodiments of the present disclosure further provide a computer program product, including a computer program, which implements any of the above-mentioned source file processing methods when executed by a processor.
[0097] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A source file processing method, include: Get the source file fragment selected from the source file corresponding to the target page; Determine processing prompt information corresponding to the source file segment; Using a source file processing language model, executing a processing operation corresponding to the processing prompt information on the source file segment to obtain a source file processing file; In response to determining that the source file processing file indicates that there is a problem with the source file segment, the source file processing segment included in the source file processing file is displayed.
2. The method according to claim 1, in, The using the source file processing language model to perform the processing operation corresponding to the processing prompt information on the source file segment to obtain a source file processing file includes: The source file processing interface corresponding to the source file processing language model is called to perform the processing operation corresponding to the processing prompt information on the source file segment to obtain a source file processing file, wherein the source file processing interface has a corresponding source file processing plug-in.
3. The method according to claim 1, in, The displaying of the source file processing fragments included in the source file processing file includes: Determine the page position of the source file segment on the target page; The source file processing fragment is displayed in a page area corresponding to the page position in the target page in a window form.
4. The method according to claim 1, in, The method further comprises: In response to determining that replacement information for the source file processing segment is received, the source file segment in the source file is replaced with the source file processing segment.
5. The method according to claim 3, in, After displaying the source file processing fragment in a page area corresponding to the page position in the target page in the form of a window, the method further includes: In response to receiving click information for remaining page areas, closing the window corresponding to the source file processing segment, wherein the remaining page areas are areas other than the page area in the page area corresponding to the target page.
6. The method according to claim 1, in, The processing prompt information is error correction prompt information; as well as The using the source file processing language model to perform the processing operation corresponding to the processing prompt information on the source file segment to obtain a source file processing file includes: The source file processing language model is used to perform source file error correction processing on the source file segment to obtain a source file error correction file as the source file processing file.
7. The method according to claim 1, in, The processing prompt information is filling prompt information; as well as The using the source file processing language model to perform the processing operation corresponding to the processing prompt information on the source file segment to obtain a source file processing file includes: The source file processing language model is used to perform source file filling processing on the source file segment to obtain a source file filling file as the source file processing file.
8. A source file processing device, include: An acquisition unit, configured to acquire a source file segment selected from a source file displayed on a target page; A determination unit, configured to determine processing prompt information corresponding to the source file segment; an execution unit, configured to use a source file processing language model to execute a processing operation corresponding to the processing prompt information on the source file segment to obtain a source file processing file; The display unit is configured to display the source file processing segment included in the source file processing file in response to determining that the source file processing file indicates that the source file segment has a program problem.
9. An electronic device, include: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, in, When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.