Information processing system, information processing apparatus, control method, and program
The system addresses the challenge of unintelligible AI-generated program descriptions by using two AI models to add comments and generate explanatory text, resulting in clearer program explanations.
Patent Information
- Application Number
- PCT/JP2025/017934
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-05
- Filing Date
- 2025-05-16
- Publication Date
- 2025-12-11
AI Technical Summary
Existing AI systems, such as ChatGPT, generate program descriptions focusing on identifiers, making them difficult for users to understand.
An information processing system that utilizes two AI models to add comments to source program information, generating explanatory text that is easier for users to comprehend by adding comments to the source program and then using a second AI to create explanatory text based on the commented source program.
The system produces program descriptions that are more understandable for users by reducing the prominence of identifiers and providing explanations in human-readable language.
Smart Images

Figure JP2025017934_11122025_PF_FP_ABST
Abstract
Description
Information processing system, information processing device, control method and program
[0001] The present disclosure relates to an information processing system, an information processing device, a control method, and a program.
[0002] Conventionally, devices and systems for supporting the creation of program descriptions have been known. For example, Patent Document 1 discloses a program documentation creation device that supports the creation of program documentation, converting input information for a program into text describing operation details and inserting the converted text into the documentation.
[0003] Japanese Patent Application Publication No. 10-69381
[0004] The device described in Patent Document 1 creates a manual containing text describing operation details converted based on input information for a program, but is unable to create a manual containing text describing the processing details of the program itself. Meanwhile, in recent years, it has become possible to input program source code into so-called artificial intelligence (AI) and have it output a description of the processing details. However, existing AI generators, such as ChatGPT (registered trademark), tend to focus on identifiers in the source code and output descriptions that include the identifiers. Therefore, such descriptions are likely to be difficult for users to understand.
[0005] The present disclosure has been made in consideration of the above-described circumstances, and aims to obtain a program description that is easy for users to understand.
[0006] In order to achieve the above-mentioned object, the information processing system of the present disclosure comprises an information acquisition unit that acquires source program information, which is information indicating the source program of a program; a first control unit that controls a first artificial intelligence to input the source program information acquired by the information acquisition unit and generate commented source program information, which is information in which comments on the processing content of the program are added to the source program indicated by the source program information; and a second control unit that controls a second artificial intelligence to input the commented source program information generated by the first control unit and acquire explanatory text information, which is information indicating an explanatory text of the processing content of the program based on the commented source program of the processing content indicated by the commented source program information.
[0007] According to the present disclosure, an information processing system can input source program information into a first artificial intelligence to generate commented source program information in which comments on processing content are added to a source program indicated by the source program information, and then input the commented source program information into a second artificial intelligence to obtain the generated explanatory text information. As a result, the information processing system according to the present disclosure can obtain an explanatory text for a program that is easier for a user to understand than an information processing system that does not input the commented source program information generated by inputting source program information into the first artificial intelligence into the second artificial intelligence to obtain explanatory text information.
[0008] FIG. 1 is an overall explanatory diagram of an information processing system according to an embodiment; FIG. 2 is a functional configuration diagram of an information processing system; FIG. 3 is a block diagram showing the hardware configuration of a user terminal and a server device; FIG. 4 is a display example of source program information and comment assignment instruction information; FIG. 5 is a display example of commented source program information; FIG. 6 is a display example of commented source program information and description generation instruction information; FIG. 7 is a display example of description information;
[0009] Hereinafter, an information processing system, an information processing device, a control method, and a program according to embodiments of the present disclosure will be described in detail with reference to the drawings. Note that the same or corresponding parts in the drawings are denoted by the same reference numerals.
[0010] (Regarding Information Processing System 1 According to an Embodiment) An information processing system 1 according to an embodiment of the present disclosure is a system that uses artificial intelligence to generate explanatory text for a program created by a user. As shown in FIG. 1 , the information processing system 1 includes a user terminal 100 as an example of an information processing device that is a terminal used by a user. The user terminal 100 is capable of transmitting and receiving information to and from a server device 200 as an example of an explanatory text generation device that generates explanatory text information, which is information indicating an explanatory text for a program, via the Internet as an example of a communication network, for example.
[0011] In the information processing system 1, first, the user terminal 100 transmits source program information, which is information indicating the source program of a program generated by the user, to the server device 200. The server device 200 then generates explanatory text information based on the received source program information and transmits it to the user terminal 100, which then displays the received explanatory text information.
[0012] Note that the description format of a "source program" in this disclosure includes not only character data but also graphic data. Therefore, "source program information" in this disclosure is not limited to character data such as source code written in a programming language such as C, ST, FORTRAN, or COBOL, but may also be graphic data such as a ladder diagram written in a ladder programming language.
[0013] (Regarding the User Terminal 100 According to the Embodiment) The user terminal 100 is a computer device such as a personal computer (PC) or a tablet terminal used by a user. As shown in Fig. 2, the user terminal 100 includes an information generating unit 110 as an example of an information acquiring unit that generates information, an information transmitting / receiving unit 120 as an example of a first control unit and a second control unit that transmit and receive information, and an information display unit 130 as an example of an information output unit that displays information.
[0014] (Regarding the Server Device 200 According to the Embodiment) The server device 200 is a computer device that functions as an external server, such as a database server or a cloud server, of the information processing system 1. The server device 200 includes an information storage unit 210 that stores information, an information transmission / reception unit 220 that transmits and receives information, and an inference unit 230 that performs inference using artificial intelligence.
[0015] (Hardware Configuration of User Terminal 100 According to the Embodiment) As shown in Fig. 3, the user terminal 100 includes a control unit 51 that executes processing in accordance with a control program 59. The control unit 51 includes processing circuits such as a CPU (Central Processing Unit) and a GPU (Graphics Processing Unit). The control unit 51 functions as the information generation unit 110 shown in Fig. 2 in accordance with the control program 59.
[0016] 3, the user terminal 100 includes a main memory unit 52 into which a control program 59 is loaded and which is used as a work area for the control unit 51. The main memory unit 52 includes a volatile memory such as a RAM (Random Access Memory).
[0017] The user terminal 100 also includes an external storage unit 53 that stores a control program 59 in advance. The external storage unit 53 supplies the information stored by this program to the control unit 51 in accordance with instructions from the control unit 51, and stores data supplied from the control unit 51. The external storage unit 53 includes a non-volatile memory such as a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0018] The user terminal 100 also includes an operation unit 54 that is operated by the user. Input information is supplied to the control unit 51 via the operation unit 54. The operation unit 54 includes information input components such as a keyboard, a mouse, and a touch panel.
[0019] The user terminal 100 also includes a display unit 55 that displays information input via the operation unit 54 and information output by the control unit 51. The display unit 55 includes a display device such as an LCD (Liquid Crystal Display) or an organic EL (Electro-Luminescence) display. The display unit 55 functions as the information display unit 130 shown in FIG. 2 .
[0020] 3, the user terminal 100 includes a transmitting / receiving unit 56 for transmitting and receiving information. The transmitting / receiving unit 56 includes information communication components such as a communication network terminal device for connecting to a network and a wireless communication device. The transmitting / receiving unit 56 functions as the information transmitting / receiving unit 120 shown in FIG. 2.
[0021] 3, in the user terminal 100, the main memory unit 52, the external memory unit 53, the operation unit 54, the display unit 55, and the transmission / reception unit 56 are all connected to the control unit 51 via the internal bus 50. The user terminal 100 realizes the functions of the above-mentioned units 110 to 130 shown in FIG. 2 by the control unit 51 using the main memory unit 52, the external memory unit 53, the operation unit 54, the display unit 55, and the transmission / reception unit 56 as resources. For example, the user terminal 100 executes an information generation step performed by the information generation unit 110, an information transmission step as an example of a first control step and a second control step performed by the information transmission / reception unit 120, and an information display step as an example of an information output step performed by the information display unit 130.
[0022] (Hardware Configuration of Server Device 200 According to the Embodiment) As shown in Fig. 3, like the user terminal 100, the server device 200 also includes a control unit 51, a main memory unit 52, an external memory unit 53, an operation unit 54, a display unit 55, and a transmission / reception unit 56. The control unit 51 functions as the inference unit 230 shown in Fig. 2 in accordance with a control program 59. The external memory unit 53 functions as an information storage unit 210, and the transmission / reception unit 56 functions as an information transmission / reception unit 220.
[0023] 3, similarly to the user terminal 100, the server device 200 also realizes the functions of the above-mentioned units 210 to 230 shown in Fig. 2 by the control unit 51 using the main memory unit 52, the external memory unit 53, the operation unit 54, the display unit 55, and the transmission / reception unit 56 as resources. For example, the server device 200 executes an information storage step performed by the information storage unit 210, an information transmission / reception step performed by the information transmission / reception unit 220, and an inference step performed by the inference unit 230.
[0024] (Details of the Functional Configuration of the Server Device 200 According to the Embodiment) The information storage unit 210 stores a generation AI as an example of a first artificial intelligence and a second artificial intelligence. That is, in the present embodiment, the first artificial intelligence and the second artificial intelligence are the same artificial intelligence. Note that the generation AI may be a trained model or artificial intelligence configured as a large language model (LLM) that outputs information on a selected required function when information instructing function selection is input. For example, the generation AI may be configured using algorithms such as Transformer, Bidirectional Encoder Representations from Transformers (BERT), or Generative Pre-Training (GPT), or may be configured by combining multiple algorithms including these.
[0025] The information transmitting / receiving unit 220 can receive comment assignment instruction information, which is information instructing the user to assign a comment describing the processing content to the source program indicated by the source program information, along with source program information from the user terminal 100. For example, as shown in Fig. 4A, the information transmitting / receiving unit 220 can receive comment assignment instruction information, which is text information such as "Please assign a comment to the program below. Please replace identifiers with Japanese that makes their meaning and function easy to understand and indicate them in the comment," and source program information, which is text information such as "SAMPLE SECTION. A000. (...omitted...) A999. EXIT."
[0026] The information transmitting / receiving unit 220 can also receive explanatory text generation instruction information from the user terminal 100 along with commented source program information, which will be described later. The commented source program information is information in which comments on processing content have been added to the source program indicated by the source program information. The explanatory text generation instruction information is information that instructs the generation of explanatory text based on the commented source program on the processing content indicated by the commented source program information.
[0027] 5A, the information transmitting and receiving unit 220 can receive explanatory text generation instruction information, which is text information such as "Please provide an outline of the following program in three lines. Please replace identifiers with Japanese that makes their meanings and functions easy to understand." The information transmitting and receiving unit 220 can also receive commented source program information, which is text information such as "SAMPLE SECTION. * Start of sample section A000. * Start of section A000 (...omitted...) A999. EXIT. * End of section A999, end of program," together with the explanatory text generation instruction information.
[0028] The information transmitting / receiving unit 220 can also receive from the user terminal 100, together with source program information, comment-added explanation generation instruction information, which is information instructing the user to add comments describing the processing content to the source program indicated by the source program information and then generate an explanation based on the commented source program. For example, as shown in FIG. 6, the information transmitting / receiving unit 220 can receive comment-adding instruction information, which is text information such as "Please add comments to the program below, and then output an explanation of the processing content based on the comments. Please replace identifiers with Japanese that makes their meanings and functions easy to understand and indicate them in the comments." The information transmitting / receiving unit 220 can also receive source program information, which is text information such as "SAMPLE SECTION. A000. (...omitted...) A999. EXIT.", together with the above-mentioned comment-adding instruction information.
[0029] The inference unit 230 performs inference based on the source program information using the generation AI, and generates explanatory text information as a product of the inference. First, the inference unit 230 acquires the generation AI stored in the information storage unit 210, inputs the source program information into the generation AI, and causes the generation AI to output commented source program information, thereby generating commented source program information.
[0030] Here, when the information transmitting / receiving unit 220 receives comment adding instruction information along with the source program information, the inference unit 230 inputs the source program information and the comment adding instruction information to the generation AI to cause it to output commented source program information. On the other hand, when the information transmitting / receiving unit 220 receives commented explanation generation instruction information along with the source program information, the inference unit 230 inputs the source program information and the commented explanation generation instruction information to the generation AI to cause it to output commented source program information.
[0031] As a result, for example, as shown in FIG. 4B , the inference unit 230 generates commented source program information, which is text information such as "``COBOL SAMPLE SECTION. * Start of sample section A000. * Start of section A000 (...omitted...) A999. EXIT. * End of section A999, end of program ```` The above program contains COBOL code, and comments are added to each line to provide explanations. The meanings and functions of identifiers (PROGNO, SPLTBL, FL1, FL2, GETDATE, MM, YY4M, YY, READ) are briefly explained in Japanese within the comments."
[0032] Next, the inference unit 230 generates explanatory text information by inputting commented source program information to the generation AI and causing it to output explanatory text information. Here, when the information transmitting and receiving unit 220 receives explanatory text generation instruction information along with the commented source program information, the inference unit 230 inputs the commented source program information and explanatory text generation instruction information to the generation AI and causes it to output explanatory text information. On the other hand, when the information transmitting and receiving unit 220 receives commented explanatory text generation instruction information along with the source program information, the inference unit 230 inputs commented source program information and commented explanatory text generation instruction information to the generation AI and causes it to output explanatory text information.
[0033] As a result, for example, as shown in FIG. 5B, the inference unit 230 generates explanatory text information, which is text information such as, "The outline of this program is as follows: 1. The program sets specific constants in the sample section, opens an input / output file, and gets the date. 2. It evaluates whether the current month is less than 4, and based on that, calculates the previous year or the current year and assigns it to a variable. 3. Finally, it calls the READ routine, and at the end of the section, the program ends."
[0034] When the information transmitting / receiving unit 220 receives the source program information and the comment assignment instruction information, it transmits the commented source program information generated by the inference unit 230 to the user terminal 100. When the information transmitting / receiving unit 220 receives the commented source program information and the instruction information to generate an explanation, or when the information transmitting / receiving unit 220 receives the source program information and the instruction information to generate an explanation after adding a comment, it transmits the explanation information generated by the inference unit 230 to the user terminal 100.
[0035] (Regarding the user terminal 100 according to the embodiment) The information generating unit 110 generates information such as the above-mentioned source program information, comment assignment instruction information, commented source program information, and commented explanation generation instruction information in response to input by the user using the operation unit 54. The information generating unit 110 generates the above-mentioned information by acquiring information displayed in an information display field 310 of a program explanation generation screen 300, which will be described later.
[0036] The information transmitting and receiving unit 120 transmits comment addition instruction information or comment-added explanation generation instruction information as instruction information together with the source program information to the server device 200. Specifically, if the user wishes to obtain explanation information after previously acquiring commented source program information, the information transmitting and receiving unit 120 transmits comment addition instruction information together with the source program information to the server device 200. On the other hand, if the user wishes to obtain explanation information without acquiring commented source program information, the information transmitting and receiving unit 120 transmits comment-added explanation generation instruction information together with the source program information to the server device 200.
[0037] When the information transmitting / receiving unit 120 has transmitted the source program information and the comment addition instruction information, it receives the commented source program information from the server device 200. In this case, the information transmitting / receiving unit 120 transmits the commented source program information and the explanation generation instruction information to the server device 200. Furthermore, when the information transmitting / receiving unit 120 has transmitted the commented source program information and the explanation generation instruction information to the server device 200, or when it has transmitted the source program information and the commented explanation generation instruction information to the server device 200, it receives the explanation information from the server device 200.
[0038] The information display unit 130 displays a program description generation screen 300 shown in Figures 4A, 4B, 5A, 5B, and 6. As shown in Figures 4A, 4B, 5A, 5B, and 6, the program description generation screen 300 includes an information display field 310 that displays information, and a send button 320 that is operated when transmitting the information displayed in the information display field 310 to the server device 200.
[0039] 4A , when the information transmitting / receiving unit 120 transmits comment-adding instruction information together with source program information, the information display unit 130 displays the source program information and comment-adding instruction information to be transmitted in the information display field 310. Therefore, the user can transmit the source program information and comment-adding instruction information to the server device 200 by pressing the transmit button 320 using the operation unit 54.
[0040] 4B , when the information transmitting / receiving unit 120 receives commented source program information, the information display unit 130 displays the received commented source program information in the information display field 310. Also, as shown in FIG. 5A , when the information transmitting / receiving unit 120 transmits explanation generation instruction information together with the commented source program information, the information display unit 130 displays the commented source program information and explanation generation instruction information to be transmitted in the information display field 310. Thus, the user can transmit the commented source program information and explanation generation instruction information to the server device 200 by pressing the transmit button 320 using the operation unit 54.
[0041] 5B , when the information transmitting / receiving unit 120 receives explanatory text information, the information display unit 130 displays the received explanatory text information in the information display field 310. Also, as shown in FIG. 6 , when the information transmitting / receiving unit 120 transmits comment-added explanatory text generation instruction information together with source program information, the information display unit 130 displays the source program information to be transmitted and the comment-added explanatory text generation instruction information in the information display field 310. Therefore, the user can transmit the source program information and the comment-added explanatory text generation instruction information to the server device 200 by pressing the transmit button 320 using the operation unit 54.
[0042] (Regarding the Program Description Acquisition Process According to the Embodiment) Next, the operation of the user terminal 100 to acquire a program description will be described using a flowchart. When the user terminal 100 accepts an operation of pressing the send button 320 on the program description generation screen 300, it starts executing the program description acquisition process shown in FIG. 7. First, the information generation unit 110 generates source program information and instruction information, either comment-adding instruction information or comment-added explanation generation instruction information (step S101). For example, the information generation unit 110 generates this information by acquiring the source program information and instruction information displayed in the information display field 310 of the program description generation screen 300 through input by the user using the operation unit 54.
[0043] After generating the information, the information transmitting / receiving unit 120 inputs the source program information and any of the above-mentioned instruction information to the server device 200 (step S102), and receives the information from the server device 200 to obtain the information generated by the generation AI (step S103). After receiving the information, the information display unit 130 displays the information received from the server device 200 to output the information generated by the generation AI (step S104). After displaying the information, the user terminal 100 determines whether the displayed information is explanatory text information (step S105). If the information is explanatory text information (step S105; Y), the user terminal 100 terminates the processing.
[0044] On the other hand, if the information is not explanatory text information (step S105; N), i.e., if the information is commented source program information, the information generating unit 110 generates explanatory text generation instruction information (step S106). For example, after receiving another operation of pressing the send button 320, the information generating unit 110 acquires the commented source program information and explanatory text generation instruction information displayed in the information display field 310 of the program explanatory text generation screen 300 through input by the user using the operation unit 54, thereby generating the explanatory text generation instruction information. After generating the information, the information transmitting / receiving unit 120 transmits the explanatory text generation instruction information together with the commented source program information to the server device 200, thereby inputting this information into the generation AI again (step S107), and then receives the explanatory text information from the server device 200, thereby acquiring the explanatory text information generated by the generation AI (step S108). After receiving the information, the information display unit 130 outputs the explanatory text information generated by the generation AI by displaying the explanatory text information received from the server device 200 (step S109), and the user terminal 100 terminates the processing.
[0045] (Regarding the program description generation process according to the embodiment) Next, the operation of the server device 200 to generate a description will be described using a flowchart. When the information transmitting / receiving unit 220 of the server device 200 receives source program information from the user terminal 100, the server device 200 starts executing the program description generation process shown in Fig. 8. First, the server device 200 determines whether the information transmitting / receiving unit 220 has received comment assignment instruction information together with the source program information from the user terminal 100 (step S201).
[0046] When comment-adding instruction information is received together with source program information from the user terminal 100 (step S201; Y), the inference unit 230 generates comment-added source program information by inputting the source program information and comment-adding instruction information into the generation AI obtained from the information storage unit 210 and having it output comment-added source program information (step S202).
[0047] After generating the information, the information transmitting / receiving unit 220 transmits the commented source program information to the user terminal 100 (step S203), and receives the commented source program information and the instruction information for generating an explanatory text from the user terminal 100 (step S204). After receiving the information, the inference unit 230 generates the explanatory text by inputting the commented source program information and the instruction information for generating an explanatory text into the generation AI and causing the AI to output the explanatory text (step S205).
[0048] On the other hand, if comment-adding instruction information is not received from the user terminal 100 along with the source program information (step S201; N), that is, if comment-added explanation generation instruction information is received from the user terminal 100 along with the source program information, the inference unit 230 generates comment-added source program information by inputting the source program information and comment-added explanation generation instruction information into the generation AI and having it output comment-added source program information (step S206).
[0049] After generating the information, the inference unit 230 generates the explanatory text information by inputting the commented source program information and the commented explanatory text generation instruction information to the generation AI and outputting the explanatory text information (step S207). After generating the explanatory text information, the information transmitting / receiving unit 220 transmits the explanatory text information to the user terminal 100 (step S208), and the server device 200 ends the processing.
[0050] As described above, according to information processing system 1 of the present embodiment, in user terminal 100, information generation unit 110 generates source program information by acquiring source program information displayed in information display field 310 of program description generation screen 300. Furthermore, information transmission / reception unit 120 transmits the source program information to server device 200, inputs the source program information to a first artificial intelligence to generate commented source program information, and receives from server device 200 explanatory text information generated by inputting the generated commented source program information to a second artificial intelligence. Then, information display unit 130 outputs the explanatory text information by displaying the explanatory text information in information display field 310 of program description generation screen 300.
[0051] By doing this, the server device 200 can input source program information to the first artificial intelligence to generate commented source program information in which comments on the processing content are added to the source program indicated by the source program information, and then input the commented source program information to the second artificial intelligence to generate explanatory text information.
[0052] Here, consider a case where source program information is input to the generation AI and explanatory text information is generated directly without generating commented source program information, as in a conventional information processing system. In this case, in the conventional information processing system, the generation AI outputs explanatory text information indicating explanatory text that includes many identifiers in the source program indicated by the source program information.
[0053] For example, as shown in FIG. 9A, a conventional generation AI receives the same description generation instruction information as the comment-added description generation instruction information of the present embodiment shown in FIG. 5A and the same source program information as the source program information of the present embodiment shown in FIG. 4A. As a result, as shown in FIG. 9B, the conventional generation AI outputs the following text: "The outline of this program is as follows: 1. Set the program number "AA123" as the program number (PROGNO) of the contingency table (SPLTBL) and open the input file (FL1) and the output file (FL2). 2. Call a subroutine (GETDATE) to obtain the date. If the current month (MM) is less than 4, subtract 1 from the year (YY) to calculate the new year (YY4M). 3. Execute a process called READ and finally terminate the program (EXIT). Japanese explanation of the identifier: - PROGNO (program number): Program identification field in the contingency table (SPLTBL). (...omitted...)"
[0054] Therefore, the description shown in the description information shown in Figure 9B generated by the conventional generation AI has prominent identifiers such as "AA123," "PROGNO," "FL1," etc., making it difficult for users to understand. In contrast, the description shown in the description information shown in Figure 5B acquired by the user terminal 100 according to this embodiment does not include identifiers and is closer to the expressions used by humans.
[0055] As a result, the information processing system 1 according to this embodiment can generate program descriptions that are easier for users to understand than an information processing system that does not input commented source program information generated by inputting source program information into a first artificial intelligence and then inputting the commented source program information into a second artificial intelligence to generate description information.
[0056] Furthermore, according to the information processing system 1 of this embodiment, the information transmitting and receiving unit 220 in the server device 200 can receive comment-adding instruction information along with source program information from the user terminal 100. When the information generating unit 110 of the user terminal 100 generates this information and the information transmitting and receiving unit 120 transmits this information to the server device 200, the information transmitting and receiving unit 120 receives commented source program information generated by inputting the source program information and the comment-adding instruction information to the first artificial intelligence. Thereafter, when the information generating unit 110 generates explanation generation instruction information, the information transmitting and receiving unit 120 transmits the commented source program information and the explanation generation instruction information to the server device 200. Then, the information transmitting and receiving unit 120 receives explanation information generated by inputting the commented source program information and the explanation generation instruction information to the second artificial intelligence.
[0057] In this way, the user can obtain commented source program information from the server device 200 and check the contents of the comments that have been added to the source program indicated by the commented source program information by the server device 200. In addition, in this way, the user can transmit the commented source program information generated by the server device 200 together with the explanation generation instruction information back to the server device 200 to have the server device 200 generate explanation information, thereby obtaining an explanation of the program that is easy for the user to understand.
[0058] Furthermore, according to the information processing system 1 of this embodiment, the information transmitting and receiving unit 220 in the server device 200 can receive commented-explanation generation instruction information along with source program information from the user terminal 100. When the information generating unit 110 of the user terminal 100 generates this information and the information transmitting and receiving unit 120 transmits this information to the server device 200, the information transmitting and receiving unit 120 inputs the source program information and the commented-explanation generation instruction information to the first artificial intelligence to generate commented source program information. Then, the information transmitting and receiving unit 120 receives explanation information generated by inputting the commented-source program information and the commented-explanation generation instruction information to the second artificial intelligence.
[0059] In this way, the user can generate explanatory text information based on the commented source program information without having to obtain the commented source program information from the server device 200, and can obtain an explanatory text for the program that is easy for the user to understand.
[0060] Furthermore, verification experiments by the inventor have revealed that by doing so, the explanatory text indicated by the explanatory text information tends to be a sentence in which identifiers stand out slightly more than explanatory text indicated by explanatory text information generated by inputting source program information and comment assignment instruction information into a first artificial intelligence to generate commented source program information, and then inputting the commented source program information and explanatory text generation instruction information into a second artificial intelligence. As a result, the user can obtain an explanatory text for the program that is easier to understand than conventional information processing systems and that allows the user to grasp identifiers in the source program to a certain extent.
[0061] Furthermore, according to the information processing system 1 of this embodiment, the server device 200 determines whether it has received comment-adding instruction information or comment-after-explanation-generation instruction information as instruction information together with the source program information from the user terminal 100.
[0062] In this way, the user can select between comment-adding instruction information and comment-added explanation generation instruction information as instruction information to be sent to the server device 200 along with the source program information. As a result, the user can choose whether to acquire commented source program information as progress information before explanation information is generated from the server device 200. In addition, in this way, the user can choose whether to acquire a program explanation that is easy for the user to understand because the number of identifiers in the source program is reduced, or a program explanation that allows the user to grasp the identifiers to a certain extent.
[0063] In particular, according to the information processing system 1 of the present embodiment, the first artificial intelligence and the second artificial intelligence are the same generation AI, so that the server device 200 can generate commented source program information using the generation AI, which is a single artificial intelligence, and then generate explanatory text information.
[0064] Furthermore, according to the information processing system 1 of this embodiment, the comment-adding instruction information shown in Fig. 4A, the explanation generation instruction information shown in Fig. 5A, and the comment-added explanation generation instruction information shown in Fig. 6 include instruction information to indicate in the comment and explanation on the premise that "identifiers should be replaced with Japanese words whose meanings and functions are easy to understand." In other words, each of the above-mentioned instruction information includes information indicating an instruction to replace identifiers included in the source program with words whose meanings are easy for the user to understand.
[0065] By doing this, the information processing system 1 according to this embodiment can more easily generate program descriptions that are easier for users to understand than an information processing system in which each instruction information does not include information indicating an instruction to replace identifiers with words that the user can understand.
[0066] (Modification) In this embodiment, as shown in FIG. 4A , the source program indicated by the source program information does not have any comments added to it. However, this is not limited to this. For example, the source program indicated by the source program information may have comments added by the user. In this case, the source code indicated by the commented source code information includes not only the comments added by the user in the original source program but also comments added by the generation AI. In this case, the generation AI may output commented source code information based on the source code indicated by the input source code information and the comments previously added to the source code by the user.
[0067] In this embodiment, the user acquires the program's explanatory text information by using the user terminal 100 to transmit source program information to the server device 200, which serves as an external server of the information processing system 1, and receiving explanatory text information generated and transmitted from the server device 200. However, this is not limiting. For example, the server device 200 may be an internal server of the information processing system 1, and the information processing system 1 may be configured to include the user terminal 100 and the server device 200. Furthermore, for example, the user terminal 100 may include all of the functions of the server device 200.
[0068] In the present embodiment, the information transmitting / receiving unit 220 of the server device 200 is configured to receive comment assignment instruction information along with source program information from the user terminal 100, but this is not limiting. For example, the information transmitting / receiving unit 220 may be configured to receive comment assignment instruction information and explanation generation instruction information along with source program information from the user terminal 100. In this case, the inference unit 230 may input the source program information and comment assignment instruction information to the generation AI to generate commented source program information, and then input the commented source program information and explanation generation instruction information to the generation AI to generate explanation information. In this manner, the server device 200 can omit the processes of steps S203 and S204 shown in FIG. 8.
[0069] In this embodiment, the information transmitting and receiving unit 220 of the server device 200 is configured to receive both the comment-adding instruction information and the comment-added explanation generation instruction information as instruction information together with the source program information from the user terminal 100. However, this is not limited to this. For example, the information transmitting and receiving unit 220 may be configured to receive only either the comment-adding instruction information or the comment-added explanation generation instruction information as instruction information together with the source program information from the user terminal 100. In this manner, the server device 200 can omit the processing of step S201 shown in FIG. 8.
[0070] 4A and the description generation instruction information shown in FIG. 5A preferably include information instructing the user to replace identifiers included in the source program with words that the user can understand, as in this embodiment, but are not limited to this. For example, either the comment assignment instruction information or the description generation instruction information may include information instructing the user to replace identifiers with words that the user can understand.
[0071] As in this embodiment, it is preferable that the comment-adding instruction information shown in Figure 4A, the explanation generation instruction information shown in Figure 5A, and the explanation generation instruction information after comment-adding shown in Figure 6 include information indicating an instruction to replace identifiers included in the source program with words that the user can understand, but these instruction information do not necessarily have to include information indicating an instruction to replace identifiers with words that the user can understand.
[0072] In this embodiment, the first artificial intelligence and the second artificial intelligence are the same generation AI, but this is not limited to this, and for example, the first artificial intelligence and the second artificial intelligence may be composed of two different types of generation AI.
[0073] In this embodiment, the user terminal 100 directly transmits and receives information to and from the server device 200, but this is not limiting. For example, the user terminal 100 may indirectly transmit and receive information to and from the server device 200 via an intermediary server (not shown). In this case, the intermediary server may be an internal device, serving as an example of an information processing device included in the information processing system 1, or may be an external device to the information processing system 1.
[0074] In this case, the intermediary server described above must include at least an information transmission / reception unit similar to the information transmission / reception unit 120 of the user terminal 100, and be able to transmit and receive information to and from the user terminal 100 and the server device 200. In this case, the information transmission / reception unit of the intermediary server, as an example of an information acquisition unit, receives source program information from the user terminal 100. Furthermore, the information transmission / reception unit of the intermediary server, as an example of a first control unit and a second control unit, transmits source program information to the server device 200, inputs the source program information to the generation AI to generate commented source program information, and receives from the server device 200 explanatory text information generated by inputting the generated commented source program information to the generation AI. Then, the information transmission / reception unit of the intermediary server, as an example of an information output unit, transmits explanatory text information to the user terminal 100.
[0075] The core processing components of the user terminal 100 and server device 200, which include the control unit 51, main memory unit 52, external memory unit 53, operation unit 54, transmission / reception unit 56, and internal bus 50, can be realized using an ordinary computer system rather than a dedicated system. For example, a computer program for executing the above operations may be stored and distributed on a computer-readable recording medium, such as a flexible disk or DVD-ROM (Read-Only Memory), and the user terminal 100 and server device 200 that execute the above processing may be configured by installing the computer program on a computer. Alternatively, the user terminal 100 and server device 200 may be configured by storing the computer program in a storage device of a server device on a communication network and downloading it into an ordinary computer system.
[0076] In addition, when the functions of the user terminal 100 and the server device 200 are realized by sharing the functions of an OS (Operating System) and an application program, or when the functions are realized by collaboration between the OS and an application program, only the application program portion may be stored on a recording medium or storage device.
[0077] It is also possible to superimpose a computer program on a carrier wave and provide it via a communication network. For example, the computer program may be posted on a bulletin board system (BBS) on the communication network and provided via the network. The computer program may then be started and executed under the control of an OS in the same way as other application programs, thereby performing the above-mentioned processing.
[0078] The present disclosure allows various embodiments and modifications without departing from the broad spirit and scope of the present disclosure. Furthermore, the above-described embodiments are intended to explain the present disclosure and do not limit the scope of the present disclosure. In other words, the scope of the present disclosure is defined by the claims, not the embodiments. Various modifications made within the scope of the claims and the meaning of equivalent disclosures are considered to be within the scope of the present disclosure.
[0079] This application is based on Japanese Patent Application No. 2024-91227, filed on June 5, 2024. The entire specification, claims, and drawings of Japanese Patent Application No. 2024-91227 are incorporated herein by reference.
[0080] Various aspects of the present disclosure are summarized below as appendices.
[0081] (Supplementary Note 1) An information processing system comprising: an information acquisition unit that acquires source program information, which is information indicating a source program of a program; a first control unit that controls a first artificial intelligence to input the source program information acquired by the information acquisition unit and generate commented source program information, which is information in which comments on the processing content of the program are added to the source program indicated by the source program information; a second control unit that controls a second artificial intelligence to input the commented source program information generated by the first control unit and acquire explanatory text information, which is information indicating an explanatory text of the processing content of the program based on a commented source program of the processing content indicated by the commented source program information; and an information output unit that outputs the explanatory text information acquired by the second control unit. (Supplementary Note 2) The information processing system described in Supplementary Note 1, wherein the information acquisition unit acquires, together with the source program information, comment assignment instruction information which is information instructing the source program indicated by the source program information to be assigned a comment on processing content; the first control unit controls the acquisition of the commented source program information generated by inputting the source program information acquired by the information acquisition unit and the comment assignment instruction information into the first artificial intelligence; after the first control unit acquires the commented source program information, the information acquisition unit acquires explanation generation instruction information which is information instructing the generation of the explanation based on a commented source program of processing content indicated by the commented source program information; and the second control unit acquires the explanation information by inputting the commented source program information acquired by the first control unit and the explanation generation instruction information acquired by the information acquisition unit into the second artificial intelligence. (Appendix 3) The information processing system described in Appendix 2, wherein at least one of the instruction information of the comment assignment instruction information and the instruction information of the description generation instruction information includes information indicating an instruction to replace an identifier included in the source program with a word whose meaning can be understood by the user.(Supplementary Note 4) The information processing system according to any one of Supplementary Notes 1 to 3, wherein the information acquisition unit acquires, together with the source program information, commented-explanation generation instruction information which is information instructing the generation of the explanation based on the commented source program after adding a comment on processing content to the source program indicated by the source program information, the first control unit controls the first artificial intelligence to input the source program information acquired by the information acquisition unit and the commented-explanation generation instruction information to generate the commented source program information, and the second control unit acquires the explanation information by inputting the commented source program information generated by the first control unit and the commented-explanation generation instruction information acquired by the information acquisition unit to the second artificial intelligence. (Supplementary Note 5) The information processing system according to Supplementary Note 1, wherein the first artificial intelligence and the second artificial intelligence are the same. (Supplementary Note 6) An information processing system described in any one of Supplementary Notes 1 to 5, further comprising: a server device including an information storage unit that stores the first artificial intelligence and the second artificial intelligence, and an inference unit that performs inference using the first artificial intelligence and the second artificial intelligence; and a user terminal used by a user, including the information acquisition unit, the first control unit, and the second control unit. (Supplementary Note 7) An information processing system comprising: an information acquisition unit that acquires source program information, which is information indicating a source program of a program; a first control unit that controls the first artificial intelligence to input the source program information acquired by the information acquisition unit to acquire commented source program information, which is information in which comments on the processing content of the program have been added to the source program indicated by the source program information; and a second control unit that controls the second artificial intelligence to input the commented source program information acquired by the first control unit to acquire explanatory text information, which is information indicating an explanatory text of the processing content of the program based on the commented source program of the processing content indicated by the commented source program information.(Supplementary Note 8) A control method including: a source program information acquisition step in which a computer acquires source program information, which is information indicating a source program of a program; a first control step in which the computer controls a first artificial intelligence to input the source program information acquired in the information acquisition step to acquire commented source program information, which is information in which comments on the processing content of the program have been added to the source program indicated by the source program information; and a second control step in which the computer controls a second artificial intelligence to input the commented source program information acquired by the first control unit to acquire explanatory text information, which is information indicating an explanatory text of the processing content of the program based on the commented source program of the processing content indicated by the commented source program information. (Supplementary Note 9) A program that causes a computer to function as: an information acquisition unit that acquires source program information, which is information indicating the source program of a program; a first control unit that controls a first artificial intelligence to input the source program information acquired by the information acquisition unit and acquire commented source program information, which is information in which comments on the processing content of the program have been added to the source program indicated by the source program information; and a second control unit that controls a second artificial intelligence to input the commented source program information acquired by the first control unit and acquire explanatory text information, which is information indicating an explanatory text on the processing content of the program based on the commented source program of the processing content indicated by the commented source program information.
[0082] 1...information processing system, 50...internal bus, 51...control unit, 52...main memory unit, 53...external memory unit, 54...operation unit, 55...display unit, 56...transmission / reception unit, 59...control program, 100...user terminal, 110...information generation unit, 120, 220...information transmission / reception unit, 130...information display unit, 200...server device, 210...information storage unit, 230...inference unit, 300...program description generation screen, 310...information display column, 320...send button.
Claims
1. An information processing system comprising: an information acquisition unit that acquires source program information, which is information indicating the source program of a program; a first control unit that controls a first artificial intelligence to input the source program information acquired by the information acquisition unit and generate commented source program information, which is information in which comments on the processing content of the program have been added to the source program indicated by the source program information; a second control unit that controls a second artificial intelligence to input the commented source program information generated by the first control unit and acquire explanatory text information, which is information indicating an explanatory text of the processing content of the program based on the commented source program of the processing content indicated by the commented source program information; and an information output unit that outputs the explanatory text information acquired by the second control unit.
2. The information processing system described in claim 1, wherein the information acquisition unit acquires, together with the source program information, comment assignment instruction information which is information instructing the source program indicated by the source program information to be assigned a comment on processing content; the first control unit controls the acquisition of the commented source program information generated by inputting the source program information acquired by the information acquisition unit and the comment assignment instruction information into the first artificial intelligence; after the first control unit acquires the commented source program information, the information acquisition unit acquires explanation generation instruction information which is information instructing the generation of the explanation based on a commented source program of processing content indicated by the commented source program information; and the second control unit acquires the explanation information by inputting the commented source program information acquired by the first control unit and the explanation generation instruction information acquired by the information acquisition unit into the second artificial intelligence.
3. The information processing system of claim 2, wherein at least one of the instruction information for adding a comment and the instruction information for generating an explanatory text includes information indicating an instruction to replace an identifier contained in the source program with a word whose meaning can be understood by the user.
4. The information processing system described in any one of claims 1 to 3, wherein the information acquisition unit acquires, together with the source program information, commented-explanation generation instruction information, which is information instructing the source program indicated by the source program information to be added with a comment on the processing content and then generate the explanation based on the commented source program, the source program information being added with a comment on the processing content; the first control unit controls the first artificial intelligence to input the source program information acquired by the information acquisition unit and the commented-explanation generation instruction information to generate the commented source program information; and the second control unit inputs the commented-source program information generated by the first control unit and the commented-explanation generation instruction information acquired by the information acquisition unit to the second artificial intelligence to acquire the explanation information.
5. The information processing system according to claim 1, wherein the first artificial intelligence and the second artificial intelligence are the same.
6. An information processing device comprising: an information acquisition unit that acquires source program information, which is information indicating the source program of a program; a first control unit that controls a first artificial intelligence to input the source program information acquired by the information acquisition unit and generate commented source program information, which is information in which comments on the processing content of the program are added to the source program indicated by the source program information; and a second control unit that controls a second artificial intelligence to input the commented source program information generated by the first control unit and acquire explanatory text information, which is information indicating an explanatory text of the processing content of the program based on the commented source program of the processing content indicated by the commented source program information.
7. A control method comprising: a source program information acquisition step in which a computer acquires source program information, which is information indicating the source program of a program; a first control step in which the computer controls a first artificial intelligence to input the source program information acquired in the information acquisition step to generate commented source program information, which is information in which comments on the processing content of the program have been added to the source program indicated by the source program information; and a second control step in which the computer controls a second artificial intelligence to input the commented source program information generated in the first control step to acquire explanatory text information, which is information indicating an explanatory text of the processing content of the program based on the commented source program of the processing content indicated by the commented source program information.
8. A program that causes a computer to function as: an information acquisition unit that acquires source program information, which is information indicating the source program of a program; a first control unit that controls a first artificial intelligence to input the source program information acquired by the information acquisition unit and generate commented source program information, which is information in which comments on the processing content of the program have been added to the source program indicated by the source program information; and a second control unit that controls a second artificial intelligence to input the commented source program information generated by the first control unit and acquire explanatory text information, which is information indicating an explanatory text on the processing content of the program based on the commented source program of the processing content indicated by the commented source program information.
Citation Information
Patent Citations
Method and device for preparing manual for computer program
JP1994242934A
Method and device for generating comment sentence of computer program
JP2001005650A
Analysis program, analysis method, and information processing apparatus
JP2022156575A
Text generation system
WO2024237143A1