Automatic explanatory text generation device, automatic explanatory text generation method, and automatic explanatory text generation program
The automatic explanatory text generation device addresses the complexity of RPA scenarios by converting operation logs into explanatory text during execution, allowing users to understand RPA operations without specific RPA tool knowledge, enhancing accessibility and clarity.
Patent Information
- Application Number
- PCT/JP2023/008923
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-08
- Publication Date
- 2024-09-12
AI Technical Summary
Existing technologies face challenges in automatically generating explanatory text for RPA scenarios, particularly due to complex block structures and encrypted node values, making it difficult for users to understand RPA operations without specific knowledge of RPA tools and their tools' specifications.
An automatic explanatory text generation device that includes an operation log generation unit, a verb/sentence pattern/particle determination unit, and a noun assignment unit, which converts operation logs into explanatory text during RPA scenario execution, using a verb/sentence pattern/particle determination rule table and capturing image nouns to create understandable explanations.
Enables users to easily comprehend RPA scenarios by automatically generating explanatory text from operation logs, regardless of the RPA tool used, facilitating understanding without requiring detailed knowledge of RPA tools or their specifications.
Smart Images

Figure JP2023008923_12092024_PF_FP_ABST
Abstract
Description
Automatic description generation device, automatic description generation method, and automatic description generation program
[0001] The present invention relates to an automatic description generation device, an automatic description generation method, and an automatic description generation program.
[0002] There are times when you want to understand the contents of an RPA (Robotic Process Automation) scenario, such as when modifying or horizontally deploying an RPA scenario, or when identifying issues in on-site work through an RPA scenario created on-site. However, in order to directly read and understand an RPA scenario, you need knowledge of the RPA tool that created it. Furthermore, even if you have knowledge of the RPA tool, the scenario may have a complex block structure or the naming of each node, and the structure may not be easy for the reader to understand.
[0003] Therefore, there is currently a demand for technology that can automatically add explanatory text to RPA scenarios and generate explanatory text equivalent to the specifications of the RPA scenarios.
[0004] In general, there are a wide variety of RPA tools that create RPA scenarios. The values stored in an RPA scenario vary depending on the RPA tool for which an explanatory text is to be generated. Furthermore, depending on the RPA tool, the RPA scenario is encrypted, and the specifications of the RPA scenario are not disclosed to the user. Therefore, it is not always possible to directly reference the values stored in each node of the scenario, or to obtain elements necessary for a captured image of the operation screen or explanatory information.
[0005] Therefore, there is a need to develop a method for generating explanatory information from log data generated when an RPA scenario is run, regardless of the type of RPA tool.
[0006] For example, Non-Patent Document 1 discloses a technique for generating comments from pairs of source code and comments using machine learning.
[0007] Akiyoshi Takahashi, Hiromitsu Shiina, Nobuyuki Kobayashi: Automatic Generation of Program Comments Matched to Problem Statements, JSiSE Research Report, Japan Society for Information and Systems in Education, March 2019, Vol. 33, No. 7, pp. 51-55.
[0008] However, the technique disclosed in Non-Patent Document 1 has a problem in that when a sentence is automatically generated from scratch, the range of expressions is too wide, making automatic generation difficult.
[0009] This invention was made with the above circumstances in mind, and its purpose is to provide a technology that makes it easier to automatically generate explanatory text by defining the sentence patterns and expressions necessary to generate sentences required to explain each operation in an RPA scenario, and narrowing the range of expressions within a range that does not impair the purpose.
[0010] In order to solve the above problem, one aspect of the present invention is an automatic explanatory text generation device comprising: an operation log generation unit that runs an RPA scenario to generate an operation log; a rule table storage unit that stores a verb / sentence form / particle determination rule table; a verb / sentence form / particle determination unit that determines verbs, sentence forms, and particles of explanatory text that explains the operation log based on the verb / sentence form / particle determination rule table; a noun assignment unit that assigns nouns to the explanatory text based on values that represent actual inputs and that are determined from the operation log; and an output control unit that outputs the explanatory text.
[0011] According to one aspect of the present invention, an RPA scenario can be run and an operation log corresponding to operations performed during the RPA scenario can be automatically converted into explanatory text. By using the converted explanatory text, a user can easily understand the content of the RPA scenario.
[0012] FIG. 1 is a block diagram showing an example of the hardware configuration of an automatic explanatory text generation device according to an embodiment. FIG. 2 is a block diagram showing the software configuration of the automatic explanatory text generation device according to an embodiment in association with the hardware configuration shown in FIG. 1. FIG. 3 is a diagram showing an example of an actual operation screen. FIG. 4 is a diagram showing a more detailed configuration of the software configurations of the operation log acquisition control unit, verb / sentence pattern / particle determination unit, and noun extraction unit shown in FIG. 2. FIG. 5 is a diagram showing a more detailed configuration of the software configuration of the captured image noun extraction unit shown in FIG. 2. FIG. 6 is a diagram showing a more detailed configuration of the software configurations of the manual element table creation unit and matching unit shown in FIG. 2. FIG. 7 is a diagram showing a more detailed configuration of the software configuration of the manual sentence noun extraction unit shown in FIG. 2. FIG. 8 is a flowchart showing an example of the operation of the automatic explanatory text generation device to generate explanatory text that explains each node of an RPA scenario. FIG. 9 is a flowchart showing a more detailed example of the operation of step ST10. FIG. 10 is a diagram showing an example of items and outputs that can be acquired as an operation log. FIG. 11 is a flowchart showing a more detailed example of the operation of step ST20. FIG. 12 is a diagram showing an example of a verb / sentence pattern / particle determination rule table. FIG. 13 is a flowchart showing an example of the operation of step ST10 in more detail. FIG. 14 is a diagram showing an example of input values. FIG. 15 is a flowchart showing an example of the operation of step ST50 in more detail. FIG. 16 is a diagram showing an example of a captured image when a noun is determined using OCR. FIG. 17 is a flowchart showing an example of the operation of step ST70 in more detail. FIG. 18 is a flowchart showing an example of the operation of step ST701 in more detail. FIG. 19 is a diagram showing an example of rows in a manual sentence, a manual element table, and an operation log. FIG. 20 is a flowchart showing an example of the operation of step ST80 in more detail. FIG. 21 is a diagram showing an example of generating an explanatory sentence from an actual operation screen using a manual element table.
[0013] Hereinafter, embodiments of the present invention will be described with reference to the drawings. Hereinafter, elements that are identical or similar to elements already described will be designated by the same or similar reference numerals, and duplicate descriptions will generally be omitted. For example, when there are multiple identical or similar elements, a common reference numeral may be used to describe each element without distinguishing between them, or a subnumber may be used in addition to the common reference numeral to describe each element with distinction between them.
[0014] [Embodiment] (Configuration) Fig. 1 is a block diagram showing an example of the hardware configuration of an automatic explanation generation device according to an embodiment. The automatic explanation generation device 1 is a computer capable of running an RPA scenario and generating a capture image and operation log of an operation screen displayed by the running RPA scenario. The automatic explanation generation device 1 can run an RPA scenario based on input from an administrator (user) who manages the automatic explanation generation device 1. It is also possible to acquire an operation log of operations performed by the user while the RPA scenario is running.
[0015] 1 , the automatic description generation device 1 includes a control unit 10, a program storage unit 20, a data storage unit 30, a communication interface 40, an input / output interface 50, an input device 51, and an output device 52. The control unit 10, the program storage unit 20, the data storage unit 30, the communication interface 40, and the input / output interface 50 are communicatively connected to one another via a bus. The input / output interface 50 is communicatively connected to the input device 51 and the output device 52.
[0016] The control unit 10 controls the automatic description generation device 1. The control unit 10 includes a hardware processor such as a central processing unit (CPU). For example, the control unit 10 may be an integrated circuit capable of executing various programs.
[0017] The program storage unit 20 may use, as a storage medium, a combination of nonvolatile memory that can be written to and read from at any time, such as an erasable programmable read-only memory (EPROM), a hard disk drive (HDD), or a solid state drive (SSD), and a nonvolatile memory such as a read-only memory (ROM). The program storage unit 20 stores programs necessary for executing various processes. That is, the control unit 10 can realize various controls and operations by reading and executing the programs stored in the program storage unit 20.
[0018] The data storage unit 30 is a storage that uses a combination of nonvolatile memory such as a HDD or memory card that can be written to and read from at any time, and volatile memory such as a RAM (Random Access Memory), as a storage medium. The data storage unit 30 is used to store data acquired and generated in the process of the control unit 10 executing programs and performing various processes.
[0019] The communication interface 40 includes one or more wired or wireless communication modules. For example, the communication interface 40 includes a communication module that wirelessly connects to any external device via a network. The communication interface 40 may also include a wired communication module that enables direct connection to an external device without using a network. Furthermore, the communication interface 40 may also include a wireless communication module that wirelessly connects to an external device using short-range wireless technology. In other words, the communication interface 40 may be any general communication interface as long as it can communicate with an external device and send and receive various information under the control of the control unit 10.
[0020] The input / output interface 50 is connected to the input device 51, the output device 52, etc. The input / output interface 50 is an interface that enables transmission and reception of information between the input device 51, the output device 52, etc. The input / output interface 50 may be integrated with the communication interface 40. For example, the automatic explanatory text generation device 1 and at least one of the input device 51 and the output device 52, etc. may be wirelessly connected using short-range wireless technology, etc., and information may be transmitted and received using the short-range wireless technology.
[0021] The input device 51 includes, for example, a keyboard, a pointing device, etc. for inputting various information by the administrator of the automatic description generation device 1. The input device 51 may also include a reader for reading data to be stored in the program storage unit 20 or the data storage unit 30 from a memory medium such as a USB memory, or a disk device for reading such data from a disk medium.
[0022] The output device 52 includes a display that displays output data to be presented to the administrator from the automatic explanation generation device 1, a printer that prints the data, and the like.
[0023] Fig. 2 is a block diagram showing the software configuration of the automatic description generation device 1 according to the embodiment in relation to the hardware configuration shown in Fig. 1. The control unit 10 includes an operation log acquisition control unit 101, a verb / sentence pattern / particle determination unit 102, a noun assignment control unit 103, a sentence pattern determination unit 104, a captured image noun extraction unit 105, a manual element table creation control unit 106, a matching unit 107, a manual sentence noun extraction unit 108, and an output control unit 109.
[0024] The data storage unit 30 also includes an operation log storage unit 301 , a rule table storage unit 302 , a part of speech storage unit 303 , a manual storage unit 304 , and an explanation storage unit 305 .
[0025] The operation log acquisition control unit 101 is an acquisition unit that runs an RPA scenario in accordance with an RPA scenario run command from the administrator (user) of the automatic explanation generation device 1, and generates an operation log during the run. Here, the noun assigned by the noun assignment control unit 103 is a noun of the operation content of the explanation in the operation log. The noun of the operation content is a name that identifies the part that was actually operated (input) during the operation. For example, input into an address field is the input of the operation content. Here, the address is a noun of the operation location content in the explanation. The noun of the operation location is a noun that represents the location when the operation content is input. Note that the operation location may or may not be included in the explanation. Furthermore, in the following description, the noun of the operation content will be referred to as a noun (operation content), and the noun of the operation location will be referred to as a noun (operation location).
[0026] 3 is a diagram showing an example of an actual operation screen. In the example shown in FIG. 3, the noun (operation location) is "seat," and the noun (operation content) is "automatic," which is the content of the pull-down menu that was operated. In addition, when an operation location is not included, it means that "seat" or the like is not displayed on the operation screen.
[0027] The verb, sentence pattern, and particle determination unit 102 is a determination unit that determines verbs, sentence patterns, and particles for the explanatory text of the operation log based on the operation log and a verb, sentence pattern, and particle determination rule table stored in the rule table storage unit 302 described later.
[0028] The noun assignment control unit 103 is an assignment unit that assigns a noun to each line of the operation log based on an input value, which is a value that represents an actual input, acquired from the operation log.
[0029] The sentence type determination unit 104 is a determination unit that determines whether the sentence type determined by the verb / sentence type / particle determination unit 102 is outside a predetermined sentence type. Here, the predetermined sentence type is a sentence type that has only a noun (operation content), and outside the predetermined sentence type is a sentence type that has a noun (operation location) in addition to a noun (operation content). In addition, the sentence type determination unit 104 generates an explanatory text for the operation log that is in the predetermined sentence type, and stores it in the explanatory text storage unit 305, which will be described later.
[0030] The captured image noun extraction unit 105 is an extraction unit that extracts nouns from a captured image using OCR for an operation log determined to be outside a predetermined sentence pattern. The captured image noun extraction unit 105 generates an explanatory sentence for the operation log based on the extracted noun (operation location), the verb, sentence pattern, and particle determined by the verb / sentence pattern / particle determination unit 102, and the noun (operation content) assigned by the noun assignment unit 103, and stores the explanatory sentence in the explanatory sentence storage unit 305.
[0031] The manual element table creation control unit 106 is a creation unit that performs morphological analysis on the manual sentences stored in the manual storage unit 304 to extract nouns and verbs from the manual sentences and create a manual element table.
[0032] The matching unit 107 is a selection unit that performs matching based on the manual element table created by the manual element table creation control unit 106, the input value, and the verb determined by the verb / sentence pattern / particle determination unit, and selects a row in the manual element table that corresponds to the operation log.
[0033] The manual sentence noun extraction unit 108 is a determination unit that excludes the nouns assigned by the noun assignment unit from the selected row of the manual element table and determines the nouns remaining in the excluded row of the manual element table as nouns for the explanatory sentence. In addition, the manual sentence noun extraction unit 108 generates an explanatory sentence for the operation log based on the extracted nouns (operation locations), the verbs, sentence patterns, and particles determined by the verb / sentence pattern / particle determination unit 102, and the nouns (operation details) assigned by the noun assignment unit 103, and stores the explanatory sentence in the explanatory sentence storage unit 305.
[0034] Fig. 4 is a diagram showing a more detailed software configuration of the operation log acquisition control unit 101, verb / sentence pattern / particle determination unit 102, and noun assignment control unit 103 shown in Fig. 2. The operation log acquisition control unit 101 includes an RPA scenario running unit 1011, an RPA scenario stop determination unit 1012, an operation determination unit 1013, and an operation log generation unit 1014.
[0035] When the RPA scenario running unit 1011 receives an RPA scenario running command, it runs the RPA scenario stored in the data storage unit 30.
[0036] The RPA scenario stop determination unit 1012 determines whether the RPA scenario has stopped or whether a command to turn off the power of the automatic explanation generation device 1 has been received.
[0037] The operation determination unit 1013 determines whether an operation has been performed. For example, the operation determination unit 1013 determines that an operation has been performed at the timing when an operation is actually performed by the user, when the contents of the clipboard change, or when Ctrl+V is input.
[0038] The operation log generating unit 1014 stores the generated operation log in the operation log storage unit 301. For example, the operation log generating unit 1014 generates an operation log that records the operation content. The generated operation log will be described in detail later.
[0039] For example, the operation log generation unit 1104 can be realized by a technology that outputs operation details related to user PC operations for business analysis, such as the technology described in Reference 1 (Yokose Fumitaka and five others, "Business Visualization Technology Contributing to the Promotion of DX," February 2020, NTT Technical Journal, pp. 72-75) or Reference 2 (Operation Process Classification-Based Business Design Support Technology, Internet <https: / / journal.ntt.co.jp / article / 18032>, March 8, 2023). These technologies can acquire information related to user operations on GUI components of the target system, such as the operation time, operation details (mouse operation, keyboard operation, copy and paste), information about the operation location (each HTML element), and a captured image of the operation screen at the time of operation, and record this information as a log file.
[0040] The verb / sentence pattern / particle determination unit 102 includes an operation log read determination unit 1021 , a verb determination unit 1022 , and a sentence pattern / particle determination unit 1023 .
[0041] The operation log reading determination unit 1021 determines whether all operation logs have been read. First, the operation log reading determination unit 1021 attempts to read the operation logs stored in the operation log storage unit 301. For example, if the operation log reading determination unit 1021 is unable to read the operation logs from the operation log storage unit 301 as a result of the attempt, or if only operation logs that have already been read are stored, it determines that all operation logs have been read. On the other hand, if the operation logs are successfully read as a result of the attempt, the operation log reading determination unit 1021 determines that not all operation logs have been read.
[0042] The verb determination unit 1022 determines a verb for each line of the operation log included in the operation log. The verb determination unit 1022 acquires a "verb-sentence pattern-particle determination rule table" stored in the rule table storage unit. Then, for example, the verb determination unit 1022 determines a verb based on the type attribute value of HTML in the operation log, the presence or absence of copy and paste (hereinafter referred to as "copy and paste"), and the verb-sentence pattern-particle determination rule table.
[0043] The sentence pattern and particle determination unit 1023 determines the sentence pattern and particle for each line of the operation log included in the operation log. The sentence pattern and particle determination unit 1023 determines the sentence pattern and particle for each line of the operation log based on the type attribute value of the HTML, whether or not copying and pasting has occurred, and the verb, sentence pattern, and particle determination rule table.
[0044] The noun assignment control unit 103 includes a noun assignment determination unit 1031 and a noun assignment unit 1032 .
[0045] The noun assignment determination unit 1031 determines whether a noun (operation content) has been assigned to all lines. For example, the noun assignment determination unit 1031 determines whether a noun (operation content) has been assigned to each line of the operation log included in the information log.
[0046] The noun assigning unit 1032 assigns a noun to each line of the operation log. The noun assigning unit 1032 assigns an input value, which is a value that represents an actual input, as a noun (operation content).
[0047] Fig. 5 is a diagram showing a more detailed software configuration of the captured image noun extraction unit 105 shown in Fig. 2. The captured image noun extraction unit 105 includes an operation log processing determination unit 1051, an extraction range determination unit 1052, a UI part area masking unit 1053, a character string extraction unit 1054, an extraction determination unit 1055, a noun determination unit 1056, and a noun extraction determination unit 1057.
[0048] The operation log processing determination unit 1051 determines whether processing has been performed on all operation logs. The operation log processing determination unit 1051 determines whether processing has been performed on all operation logs that have been determined by the sentence type determination unit 104 to be outside the predetermined sentence type.
[0049] The extraction range determination unit 1052 determines a range for extracting nouns (operation locations) using OCR. The extraction range determination unit 1052 determines, as the extraction range, a predetermined range in the left and upward directions from the bottom right coordinate of the display position of the object to be operated in the captured image included in the operation log.
[0050] The UI part area masking unit 1053 extracts and masks UI part areas. For example, when extracting nouns (operation locations), it is unlikely that character strings included in the UI part areas will become nouns (operation locations). Therefore, in order to exclude these from the candidates for nouns (operation locations), masking is performed to prevent nouns (operation locations) from being extracted from these UI part areas. The UI part area masking unit 1053 extracts UI part areas and masks the extracted UI part areas using a technology such as that described in Reference 3 (Kato Sotaro, Yosozaki Wataru, Shinozawa Yoshihisa, Iimura Yukako, Saito Shinobu, 84th National Convention of the Information Processing Society of Japan, Extraction of UI Parts from Web Page Images, 2022, Internet <https: / / ipsj.ixsq.nii.ac.jp / ej / ?action=repository_action_common_download&item_id=220965&item_no=1&attribute_id=1&file_no=1>).
[0051] The extraction determination unit 1055 determines whether or not a character string was extracted from the extraction range. If it determines that a character string could not be extracted, the extraction determination unit 1055 outputs an operation log from which no character string was extracted to the noun extraction determination unit 1057.
[0052] The noun determining unit 1056 determines the extracted character string as a noun (operation location).
[0053] The noun extraction determination unit 1057 determines whether or not nouns (operation locations) have been extracted from all operation logs. If no operation logs have been received from the extraction determination unit 1055, the noun extraction determination unit 1057 determines that nouns (operation locations) have been extracted from all operation logs.
[0054] Fig. 6 is a diagram showing a more detailed software configuration of the manual element table creation control unit 106 and the matching unit 107 shown in Fig. 2. The manual element table creation control unit 106 includes a manual sentence processing determination unit 1061, a morphological analysis unit 1062, and a manual element table creation control unit 1063.
[0055] The manual sentence processing determination unit 1061 determines whether all manual sentences have been processed. First, the manual sentence processing determination unit 1061 acquires the manual sentences stored in the manual storage unit 304. Then, it determines whether all acquired manual sentences have been processed.
[0056] The morphological analysis unit 1062 performs morphological analysis on the sentences in the manual text and extracts nouns and verbs for each manual text. The morphological analysis method may be any commonly used method, and therefore a detailed description thereof will be omitted here.
[0057] The manual element table creation control unit 1063 creates a manual element table based on the nouns and verbs extracted by the morphological analysis unit 1062. The manual element table creation control unit 1063 stores the created manual element table in the manual storage unit 304, which will be described later.
[0058] The matching unit 107 includes an operation log processing determination unit 1071 , a similarity calculation unit 1072 , a score calculation unit 1073 , a sorting unit 1074 , an assignment unit 1075 , a threshold determination unit 1076 , and a manual element table row selection unit 1077 .
[0059] The operation log processing determination unit 1071 determines whether processing has been performed on all operation logs. The operation log processing determination unit 1051 determines whether processing has been performed on all operation logs for which it was determined that the captured image noun extraction unit was unable to extract a noun.
[0060] The similarity calculation unit 1072 calculates the similarity of the verbs. The similarity calculation unit 1072 calculates the similarity between the verb determined by the verb determination unit 1022 and the verbs in the manual element table created by the manual element table creation control unit 106. For example, the similarity calculation unit 1072 calculates the similarity using a Japanese word similarity and relevance dataset such as that disclosed in Reference 4 (The University of Electro-Communications, Japanese Word Similarity and Relevance Dataset JWSAN, Internet <http: / / www.utm.inf.uec.ac.jp / JWSAN / >, 2022 / 12 / 23).
[0061] The score calculation unit 1073 calculates the score for the combination of the operation log and the manual element table. The method for calculating the score will be described in detail later.
[0062] The sorting unit 1074 sorts the calculated scores in descending order of score.
[0063] The assigning unit 1075 assigns the scores to the array in the sorted order. The method of assignment will be described in detail later.
[0064] The threshold determination unit 1076 determines whether the score is equal to or less than a predetermined threshold.
[0065] The manual element table row selection unit 1077 selects a matching row in the manual element table based on the array. The selection method will be described in detail later.
[0066] Fig. 7 is a diagram showing a more detailed software configuration of the manual sentence noun extraction unit 108 shown in Fig. 2. The manual sentence noun extraction unit 108 includes an operation log processing determination unit 1081, a duplicate removal unit 1082, a remaining noun determination unit 1083, and a noun determination unit 1084.
[0067] The operation log processing determination unit 1081 determines whether processing has been performed on all operation logs. The operation log processing determination unit 1081 determines whether processing has been performed on all operation logs for which matching has been completed by the matching unit 107.
[0068] The duplicate elimination unit 1082 excludes nouns that are the same as the nouns (operation contents). For example, the duplicate elimination unit 1082 excludes nouns that are the same as the nouns (operation contents) assigned by the noun assignment control unit 103 from the noun elements corresponding to the matching rows of the manual element table.
[0069] The remaining noun determining unit 1083 determines whether there is one noun remaining in the row of the manual element table.
[0070] The noun determination unit 1084 determines that the noun (operation location) cannot be acquired. If there is more than one noun remaining in a row of the manual element table, i.e., if there are no or multiple nouns remaining, the noun determination unit 1084 determines that the noun (operation location) in the corresponding row of the operation log cannot be acquired. Furthermore, the noun determination unit 1084 determines the one noun remaining in the row of the manual element table as the noun (operation location). The noun determination unit 1084 generates an explanatory sentence based on the determined noun (operation location), noun (operation content), verb, particle, and sentence pattern, and stores the generated explanatory sentence in the explanatory sentence storage unit 305.
[0071] The operation log storage unit 301 is a storage unit used to store the operation log acquired by the operation log acquisition control unit 101. The rule table storage unit 302 is a storage unit used to store a verb / sentence pattern / particle determination rule table. The part-of-speech storage unit 303 is a storage unit used to store parts of speech corresponding to the explanation of the operation log, including the verb and particle determined by the verb / sentence pattern / particle determination unit 102 and the noun assigned by the noun assignment control unit 103.
[0072] The manual storage unit 304 is a storage unit used to store manual sentences and also to store manual element tables created by the manual element table creation control unit 106.
[0073] The explanation storage unit 305 is a storage unit used to store explanations of the operation log. (Operation) Figure 8 is a flowchart showing an example of the operation of the automatic explanation generation device 1 to generate explanations that explain each node of the RPA scenario. The operation of this flowchart is realized by the control unit 10 of the automatic explanation generation device 1 reading and executing a program stored in the program storage unit 20.
[0074] The operation starts when a user who is the administrator of the automatic explanation generation device 1 inputs an instruction to run an RPA scenario into the input device 51.
[0075] In step ST10, the operation log acquisition control unit 101 runs the RPA scenario and acquires an operation log and a captured image. When an RPA scenario run command is received from the user input to the input device 51 via the input / output interface 50, the operation log acquisition control unit 101 runs the RPA scenario pre-stored in the data storage unit 30. For example, the operation log acquisition control unit 101 outputs the operation content for each operation, one line at a time, to the operation log when an operation is performed, when the contents of the clipboard change, and when Ctrl+V is input. The operation log acquisition control unit 101 stores the acquired operation log in the operation log storage unit 301.
[0076] FIG. 9 is a flowchart showing an example of the operation of step ST10 in more detail. In step ST101, when the RPA scenario running unit 1011 receives an RPA scenario running command, it runs the RPA scenario stored in the data storage unit 30. For example, the RPA scenario running unit 1011 is realized by an RPA product such as Reference 5 (WinActor, Internet <https: / / winactor.com / >, March 8, 2023). Note that the RPA tool used by the RPA scenario running unit 1011 is not limited to the above and may of course be a general RPA tool (RPA product). The RPA scenario running unit 1011 outputs a signal indicating that the RPA scenario has run to the RPA scenario stop determination unit 1012.
[0077] In step ST102, the RPA scenario stop determination unit 1012 determines whether the RPA scenario has stopped or whether a command to power off the automatic explanation generation device 1 has been received. For example, the RPA scenario stop determination unit 1012 can determine whether the RPA scenario is running or stopped by monitoring the operating status of the RPA tool's process, memory usage, CPU usage, and the like. If it is not determined that the RPA scenario has stopped or a power-off command has not been received, the process proceeds to step ST103. On the other hand, if it is determined that the RPA scenario has stopped or a power-off command has been received, the process proceeds to step ST20.
[0078] In step ST103, the operation determination unit 1013 determines whether an operation has been performed. For example, the operation determination unit 1013 determines that an operation has been performed at the timing when an operation is actually performed by the user, when the contents of the clipboard change, or when Ctrl+V is input. If it is determined that an operation has been performed, the process proceeds to step ST104. On the other hand, if it is determined that an operation has not been performed, the process returns to step ST102.
[0079] In step ST104, the operation log generation unit 1014 generates an operation log. The operation log generation unit 1014 stores the generated operation log in the operation log storage unit 301. For example, the operation log generation unit 1014 outputs the operation content for each operation to the operation log, one line at a time, at the timing when an operation is performed, when the contents of the clipboard change, and when Ctrl+V is input. The operation log generation unit 1014 stores the generated operation log in the operation log storage unit 301.
[0080] Fig. 10 is a diagram showing an example of items and output that the operation log generation unit can generate as an operation log. As shown in Fig. 10, "time", "type", etc. can be acquired as operation log items, and each item is output according to its type. The type indicates that the output is, for example, date and time, character string, numeric value, etc., and the output is as shown in the output example. Also, each item is as shown in the description column.
[0081] The operation log generation unit 1014 generates the following as an operation log: the time when a change in the window state occurred, the type attribute of the GUI component to be operated, the value attribute of the GUI component to be operated, the inner text in the html, the top coordinate of the GUI component to be operated, the left coordinate of the GUI component to be operated, a captured image of the operation screen, the contents of the clipboard, whether Ctrl+V was input, the application to be operated, and the file name of the target to be operated.
[0082] For example, the operation log generation unit 1014 generates the time when a change in the window state occurred, the type attribute of the GUI component being operated, the value attribute of the GUI component being operated, the inner text in the html, the top coordinate of the GUI component being operated, and the coordinates and dimensions of the GUI component being operated.
[0083] Furthermore, the operation log generation unit 1014 acquires a captured image of the operation screen, the contents of the clipboard, whether or not Ctrl+V has been input, the name of the application being operated on, the name of the file being operated on, etc. For example, if there is a change in the clipboard, the operation log generation unit 1014 records the name of the operated file as a copy log, and if Ctrl+V has been input, it records it as a paste log. At that time (when recording), the operation log generation unit 1014 determines whether or not there has been a copy and paste based on whether or not there is a component whose value has changed. If there is a component whose value has changed, the copy and paste determination is stored as "Yes." The copy and paste determination is acquired to determine whether or not the input value has been copied and pasted from somewhere else. The operation log may be generated from any information that can be acquired from information related to the operation.
[0084] 9, the operation log continues to be generated until it is determined that the RPA scenario has stopped or until the power of the automatic explanation generation device 1 is turned off. In other words, the operation log acquisition control unit 101 normally generates multiple operation logs.
[0085] Returning to FIG. 8, in step ST20, the verb / sentence pattern / particle determination unit 102 determines a verb / sentence pattern / particle from the operation log included in the operation log.
[0086] 11 is a flowchart showing an example of the operation of step ST20 in more detail. In step ST201, the operation log reading determination unit 1021 determines whether all operation logs have been read. First, the operation log reading determination unit 1021 attempts to read the operation logs stored in the operation log storage unit 301. For example, if the operation log reading determination unit 1021 is unable to read the operation logs from the operation log storage unit 301 as a result of the attempt, or if only operation logs that have already been read are stored, it determines that all operation logs have been read. On the other hand, if the operation logs are successfully read as a result of the attempt, the operation log reading determination unit 1021 determines that not all operation logs have been read.
[0087] The operation log reading determination unit 1021 may read all of the operation logs stored in the operation log storage unit 301 at once, or may read as many operation logs as it can process (one or more operation logs at once).The operation log reading determination unit 1021 then outputs the read operation logs to the verb determination unit 1022.
[0088] In step ST202, the verb determination unit 1022 determines a verb for each line of the operation log included in the operation log. The verb determination unit 1022 acquires the "verb-sentence-form-particle determination rule table" stored in the rule table storage unit. Then, for example, the verb determination unit 1022 determines the verb based on the type attribute value of HTML in the operation log, the presence or absence of copy and paste, and the verb-sentence-form-particle determination rule table. The verb determination unit 1022 outputs information about the determined verb, the operation log, and the verb-sentence-form-particle determination rule table to the sentence pattern and particle determination unit 1023.
[0089] 12 is a diagram showing an example of a verb-sentence pattern-particle determination rule table. For example, in the operation log, the type attribute of html is "text." For example, in the example of the verb-sentence pattern-particle determination rule table in FIG. 12, if there is no copy-and-paste, the verb determination unit 1022 determines the verb to be "input"; if there is copy-and-paste, the verb determination unit 1022 determines the verb to be "transcribe."
[0090] In step ST203, the sentence pattern and particle determination unit 1023 determines the sentence pattern and particle for each line of the operation log included in the operation log. The sentence pattern and particle determination unit 1023 determines the sentence pattern and particle for each line of the operation log based on the type attribute value of HTML, the presence or absence of copy and paste, and the verb, sentence pattern, and particle determination rule table. The sentence pattern and particle determination unit 1023 outputs the verb, sentence pattern, and particle determined from the operation log and the operation log included in the operation log to the noun assignment control unit 103.
[0091] For example, sentence pattern 1 is a sentence pattern of noun (operation content) + particle + verb. Sentence pattern 2 is a sentence pattern of noun 1 (operation location) + particle 1 + noun 2 (operation content) + particle 2 + verb. Sentence pattern 3 is a sentence pattern of noun 1 (operation location) + particle 1 + noun 2 (operation location 2) + particle 2 + noun 3 (operation content) + particle 3 + verb.
[0092] If the type attribute value of html is "submit" and the presence or absence of copy and paste is No, the sentence pattern and particle determination unit 1023 determines from the verb / sentence pattern / particle determination rule table that the sentence pattern is "1" and particle 1 is "wo". If the type attribute value of html is "time" and the presence or absence of copy and paste is No, the sentence pattern and particle determination unit 1023 determines from the verb / sentence pattern / particle determination rule table that the sentence pattern is "2", particle 1 is "he", and particle 2 is "wo". Similarly, if the type attribute value of html is "email" and the presence or absence of copy and paste is Yes, the sentence pattern and particle determination unit 1023 determines from the verb / sentence pattern / particle determination rule table that the sentence pattern is "3", particle 1 is "he", particle 2 is "no", and particle 3 is "wo".
[0093] Returning to FIG. 8, in step ST30, the noun assignment control unit 103 assigns a noun (operation content) from the operation log included in the operation log.
[0094] 13 is a flowchart showing an example of the operation of step ST30 in more detail. In step ST301, the noun assignment determination unit 1031 determines whether or not nouns (operation contents) have been assigned to all lines. For example, if it is determined that nouns have been assigned to the nouns (operation contents) of each line of the operation log included in the information log, the process proceeds to step ST35. On the other hand, if it is determined that no nouns have been assigned to the nouns (operation contents) of each line of the operation log, the process proceeds to step ST302.
[0095] In step ST302, the noun assigning unit 1032 assigns a noun to each line of the operation log. The noun assigning unit 1032 assigns an input value acquired from the operation log as a noun (operation content). Here, the input value represents the actual input and is a value acquired from the innertext, value attribute, label attribute, etc. of the HTML acquired from the operation log. For example, if the operation target is a text box, the value written in the target component acquired from the innertext or value attribute value of the target component becomes the noun (operation content). Also, if the operation target is a check box or radio button, the label string of the target component acquired from the label element or innertext, etc. of the target component becomes the noun (operation content). If the operation target is a select box, the selected value acquired from the innertext or value attribute value of the target component becomes the noun (operation content). The noun assigning unit 1032 stores the operation log and the determined or extracted parts of speech (nouns (operation content), verbs, particles) in the part of speech storage unit 303 .
[0096] Fig. 14 is a diagram showing an example of input values. Fig. 14 shows that when the seat pull-down item is set to "random," this "random" becomes the input value.
[0097] Returning to FIG. 8 , in step ST35, the control unit 10 operating as a determination unit determines whether processing has been performed on all rows of the operation log. If it is determined that processing has been performed on all rows of the operation log, the processing ends. On the other hand, if it is determined that processing has not been performed on all rows of the operation log, the processing proceeds to step ST40. Note that steps ST40 to ST90, excluding ST70 described below, are executed individually for each row of the operation log. Then, the processing ends when processing has been completed on all rows of the operation log.
[0098] In step ST40, the sentence type determination unit 104 determines whether the sentence type determined by the verb / sentence type / particle determination unit 102 is an unspecified sentence type. It is difficult to obtain nouns (operation locations) from HTML sources, i.e., text logs. Therefore, the sentence type determination unit 104 determines that sentence types 2 and 3, which include nouns (operation locations), are unspecified sentence types. In this case, the sentence type determination unit 104 outputs the operation logs determined to be sentence types 2 and 3 and the parts of speech stored in the part-of-speech storage unit 303 to the captured image noun extraction unit. On the other hand, the explanation for sentence type 1 has been completed through steps ST10 to ST30 above. Therefore, for the operation logs determined to be sentence type 1, the sentence type determination unit 104 generates an explanation for the operation log using the parts of speech stored in the part-of-speech storage unit 303 and stores the generated explanation in the explanation storage unit 305. The process then proceeds to step ST90.
[0099] In step ST50, the captured image noun extraction unit 105 extracts nouns (operation locations) from the captured image using OCR.
[0100] 15 is a flowchart showing an example of the operation of step ST50 in more detail. In step ST501, the operation log processing determination unit 1051 determines whether processing has been performed on all operation logs. The operation log processing determination unit 1051 determines whether processing has been performed on all operation logs determined to be of sentence pattern 2 or sentence pattern 3 in step ST40. If it is determined that processing has been performed, the process proceeds to step ST60. On the other hand, if it is determined that processing has not been performed, the process proceeds to step ST502.
[0101] In step ST502, the extraction range determination unit 1052 uses OCR to determine the range for extracting nouns (operation locations). The extraction range determination unit 1052 determines, as the extraction range, a predetermined range to the left and above from the coordinates and dimensions of the GUI component to be operated included in the operation log, i.e., the bottom right coordinate of the display position of the object to be operated, in the captured image included in the operation log. The bottom right coordinate is used to cover the range directly above and directly to the right of the object to be operated.
[0102] In step ST503, UI part area masking unit 1053 extracts and masks UI part areas (pull-downs, check box label elements, textbooks, etc.). Using techniques such as those described in Reference 1 above, UI part area masking unit 1053 extracts UI part areas and masks the extracted UI part areas. As described above, when extracting nouns (operation locations), it is unlikely that character strings included in UI part areas will become nouns (operation locations). Therefore, in order to exclude these from candidates for nouns (operation locations), masking is performed to prevent nouns (operation locations) from being extracted from these UI part areas.
[0103] In step ST504, the character string extraction unit 1054 extracts a character string using OCR. The character string extraction unit 1054 extracts a character string in an extraction range masked for a UI part area using a general OCR technique.
[0104] In step ST505, extraction determination section 1055 determines whether or not a character string has been extracted from the extraction range. If a character string has been extracted, the process proceeds to step ST506. On the other hand, if a character string has not been extracted, the process proceeds to step ST507.
[0105] In step ST506, the noun determination unit 1056 determines the extracted character string as a noun (operation location). If multiple character strings are detected, the noun determination unit 1056 adopts the extracted character string closest to the upper left coordinate of the display position of the object to be operated as the noun (operation location). However, character strings in UI part areas such as pull-down menus are excluded by masking. The noun determination unit 1056 generates a description using the determined noun. Therefore, the noun determination unit 1056 creates a description based on the determined verb, sentence pattern, particle, and noun (operation location and operation content), and stores the created description in the description storage unit 305.
[0106] In step ST507, the extraction determination unit 1055 outputs the operation log to the noun extraction determination unit 1057. If it is determined that the character string cannot be extracted, the extraction determination unit 1055 outputs the operation log from which the character string cannot be extracted to the noun extraction determination unit 1057.
[0107] FIG. 16 shows an example of a captured image when a noun is determined using OCR. The extraction range is the dotted-line area in FIG. 16, and the pull-down menu that was operated is "Nozomi Priority." As shown in FIG. 16(a), there are three options within the extraction range: "Seat," "Automatic," and "Priority Train." Here, "Automatic" is excluded by masking because it is within the UI parts area. Next, FIG. 16(b) shows an example of an image in which the UI parts are masked. Character strings are extracted from this image using OCR. The extracted character strings are "Seat" and "Priority Train." In this case, as described above, "Priority Train," which is closest to the upper left coordinate of the operation target "Nozomi Priority," is determined as the noun (operation location).
[0108] In step ST60, the noun extraction determination unit 1057 determines whether or not nouns (operation locations) have been extracted from all operation logs. If no operation logs have been received from the extraction determination unit 1055, the noun extraction determination unit 1057 determines that nouns (operation locations) have been extracted from all operation logs. In this case, the processing proceeds to step ST90. On the other hand, if an operation log has been received from the extraction determination unit 1055, the noun extraction determination unit 1057 determines that nouns (operation locations) have not been extracted from all operation logs. In this case, the noun extraction determination unit 1057 outputs the received operation logs to the matching unit 107.
[0109] In step ST70, the manual element table creation control unit 106 and the matching unit 107 match the manual element table with the operation log. Note that the process of step ST70 is performed on the entire operation log, and is therefore executed only the first time.
[0110] 17 is a flowchart showing an example of the more detailed operation of step ST70.In step ST701, the manual element table creation control section 106 creates a manual element table.
[0111] 18 is a flowchart showing an example of the operation of step ST701 in more detail. In step ST7011, the manual sentence processing determination unit 1061 determines whether or not all manual sentences have been processed. First, the manual sentence processing determination unit 1061 acquires the manual sentences stored in the manual storage unit 304. Then, it determines whether or not all acquired manual sentences have been processed. If the processing has been performed, the process proceeds to step ST702. On the other hand, if the processing has not been performed, the process proceeds to step ST7012.
[0112] In step ST7012, the morphological analysis unit 1062 performs morphological analysis on the sentences in the manual sentences to extract nouns and verbs for each manual sentence. As described above, the morphological analysis method may be any common method, and therefore a detailed description thereof will be omitted here.
[0113] In step ST7013, the manual element table creation control unit 1063 creates a manual element table based on the nouns and verbs extracted by the morphological analysis unit 1062. The manual element table creation control unit 1063 stores the created manual element table in the manual storage unit 304.
[0114] 17 , the operation log processing determination unit 1071 determines whether processing has been performed on all operation logs. The operation log processing determination unit 1051 determines whether processing has been performed on all operation logs for which it was determined in step ST50 that no nouns could be extracted. If it is determined that processing has been performed, the process proceeds to step ST80. On the other hand, if it is determined that processing has not been performed, the process proceeds to step ST703.
[0115] In step ST703, the similarity calculation unit 1072 calculates the similarity of the verbs. The similarity calculation unit 1072 calculates the similarity between the verb determined in step ST202 and the verbs in the manual element table created in step ST701. For example, the similarity calculation unit 1072 calculates the similarity by using a Japanese word similarity / association dataset such as that disclosed in the above-mentioned Reference 4. Alternatively, the similarity calculation unit 1072 may select the similarity of verbs that is equal to or greater than a predetermined threshold.
[0116] In step ST704, the score calculation unit 1073 calculates the score p of the combination of the operation log and the manual element table. ij Here, i represents each row of the operation log, and j represents each row of the manual element table. The score calculation unit 1073 calculates the score p ij Calculate p ij =w n *s nij +w v *s vj (1) where s nij is a function that takes 1 if the input value of operation log i is included in the noun of a certain row j of the manual element table, and takes 0 if not, and s vj is the similarity (calculated in step ST703) between the verb in a certain row j of the manual element table and the verb assigned in step ST202 in the operation log i. n and w v is a weight that takes a predetermined value.
[0117] In step ST705, the sorting unit 1074 sorts the calculated score p ij Sort the scores in descending order.
[0118] In step ST706, the assignment unit 1075 assigns the values of the array M k (k=1, 2...) score p ij For example, the array M k To P ij Here, the substitution unit 1075 substitutes M k The score P substituted into ij Score p including i or j ijis not substituted. For example, P 13 <P 12 <P 21 <P 22 . . ., the substitution part is M 1 To P 13 A, M 2 To P 22 Substitute: M 1 p substituted into 13 is i=1, and the second largest is P 12 However, since i=1, P 12 is skipped, and M 2 P 22 will be substituted.
[0119] In step ST707, the threshold determination unit 1076 determines the score p ij It is determined whether the score p is equal to or less than a predetermined threshold. ij If p is greater than the predetermined threshold, the process returns to step ST705. ij array M k On the other hand, the score p ij If is equal to or smaller than the predetermined threshold, the process proceeds to step ST708.
[0120] In step ST708, the manual element table row selection unit 1077 selects the array M k For example, the manual element table row selection unit 1077 selects a matching row in the manual element table based on the array M k P is substituted into ij The pairs of i and j are selected as matching pairs of rows in the manual element table and the operation log, respectively.
[0121] Here, as another example of a method for matching each row of the manual element table with each row of the operation log, the following method may be adopted. For example, the matching unit 107 may match p ijThe j with the largest value of p is calculated, and the j corresponding to i is set as the j corresponding to i. By executing this process for all i, it is possible to determine the j corresponding to all i. This method is characterized by the fact that a row in a manual element table may match multiple log rows, which is different from the method described in steps ST703 to ST708. For example, p 13 <p 12 <p 21 <p 22 When this is the case, the first line of the operation log is 13 <p 12 Therefore, it matches the second line of the manual element table, and the second line of the operation log is p 21 <p 22 Therefore, this also matches the second line of the manual element table.
[0122] 19 is a diagram showing an example of a manual statement, a manual element table, and an operation log included in the operation log. For example, in step ST701, the manual element table creation control unit 106 creates a manual element table from the manual statement as shown in FIG. 19. Then, as described in steps ST702 to ST708, the matching unit 107 matches each row of the operation log with the manual element table and selects a matching row of the manual element table.
[0123] Returning to FIG. 8, the manual sentence noun extraction unit 108 extracts nouns (operation locations) from the matching lines of the manual.
[0124] 20 is a flowchart showing an example of the operation of step ST80 in more detail. In step ST801, the operation log processing determination unit 1081 determines whether processing has been performed on all operation logs. The operation log processing determination unit 1081 determines whether processing has been performed on all operation logs for which matching has been completed in step ST70. If it is determined that processing has been performed, the process proceeds to step ST90. On the other hand, if it is determined that processing has not been performed, the process proceeds to step ST802.
[0125] In step ST802, the de-duplication unit 1082 removes the nouns that are the same as the nouns (operation contents). For example, the de-duplication unit 1082 removes the nouns that are the same as the nouns (operation contents) assigned in step ST302 from the noun elements corresponding to the matching rows of the manual element table.
[0126] In step ST803, the remaining noun determining unit 1083 determines whether or not there is one noun remaining in the row of the manual element table. If it is determined that there is not one, the process proceeds to step ST804, and if it is determined that there is one, the process proceeds to step ST805.
[0127] In step ST804, the noun determination unit 1084 determines that the noun (operation location) cannot be acquired. If there is more than one noun remaining in the row of the manual element table, i.e., if there are no or multiple nouns remaining, the noun determination unit 1084 determines that the noun (operation location) in the corresponding row of the operation log cannot be acquired. The noun determination unit 1084 generates an explanatory sentence based on the noun (operation content), verb, particle, and sentence pattern corresponding to the operation log state in which it has been determined that the noun (operation location) cannot be acquired, and stores the generated explanatory sentence in the explanatory sentence storage unit 305.
[0128] In step ST805, the noun determination unit 1084 determines one noun remaining in the row of the manual element table as a noun (operation location). The noun determination unit 1084 generates an explanatory sentence based on the determined noun (operation location), noun (operation content), verb, particle, and sentence pattern, and stores the generated explanatory sentence in the explanatory sentence storage unit 305.
[0129] 21A and 21B are diagrams showing an example of generating an explanatory text from an actual operation screen using a manual element table. An example of an actual operation screen is shown in (a) of Fig. 21. Fig. 21A shows that the pull-down menu operated at the seat of the operation location has been selected as "automatic." The input value of the operation log at this time also shows that it is "automatic."
[0130] 21(b) shows an example of a row in the manual element table. Sentence number 5 is selected by matching, and the corresponding nouns are "seat" and "leave it to me." Since it is known in step ST302 that the noun (operation content) is "leave it to me," it is excluded, and the remaining noun is "seat." Therefore, the manual sentence noun extraction unit 108 can determine that the noun (operation location) is "seat."
[0131] Then, as shown in FIG. 21C, the manual sentence noun extraction unit 108 can select "seat is left to the discretion of the operator" as an explanatory sentence.
[0132] Returning to FIG. 8 , in step ST90, the output control unit 109 controls the display of the output device 52 to display the explanatory text. The output control unit 109 reads out the explanatory text stored in the explanatory text storage unit 305 and displays the read explanatory text on the display of the output device 52. When displaying the explanatory text, the output control unit 109 may display a captured image included in the operation log together with the explanatory text. Alternatively, the explanatory text may be displayed together with other information. Then, the process returns to step ST35.
[0133] According to the embodiment, an RPA scenario can be run and an operation log corresponding to operations performed during the RPA scenario can be automatically converted into explanatory text. By using the converted explanatory text, a user can easily understand the content of the RPA scenario.
[0134] [Other Embodiments] In the above embodiment, the operations of steps ST20 to ST80 are performed for all operation logs at once, but they may also be performed sequentially for each operation log. That is, the automatic explanation generation device may read one operation log to generate an explanation, and then read the next operation log and generate an explanation.
[0135] Furthermore, the techniques described in the above embodiments can be stored as a program (software means) that can be executed by a computer on a storage medium such as a magnetic disk (e.g., a floppy disk, a hard disk, etc.), an optical disk (e.g., a CD-ROM, a DVD, an MO, etc.), or a semiconductor memory (e.g., a ROM, a RAM, a flash memory, etc.), and can also be distributed by transmitting it via a communication medium. The program stored on the medium also includes a configuration program that configures the software means (including not only execution programs but also tables and data structures) that the computer executes. The computer that realizes this device loads the program stored on the storage medium and, in some cases, configures the software means using the configuration program, and executes the above-mentioned processing by controlling the operation of this software means. Note that the term "storage medium" as used herein is not limited to storage media for distribution, but also includes storage media such as magnetic disks and semiconductor memories installed inside the computer or in devices connected via a network.
[0136] In short, this invention is not limited to the above-described embodiments, and various modifications can be made in the implementation stage without departing from the spirit of the invention. Furthermore, the embodiments may be implemented in combination as appropriate as possible, and in such cases, the combined effects can be obtained. Furthermore, the above-described embodiments include inventions at various stages, and various inventions can be extracted by appropriately combining the disclosed multiple constituent elements.
[0137] DESCRIPTION OF SYMBOLS 1... Automatic explanatory text generation device 10... Control unit 101... Operation log acquisition control unit 1011... RPA scenario running unit 1012... RPA scenario stop determination unit 1013... Operation determination unit 1014... Operation log generation unit 102... Verb / sentence pattern / particle determination unit 1021... Operation log reading determination unit 1022... Verb determination unit 1023... Sentence pattern / particle determination unit 103... Noun assignment control unit 1031... Noun assignment determination unit 1032... Noun assignment unit 104... Sentence pattern determination unit 105... Captured image noun extraction unit 1051... Operation log processing determination unit 1052... Extraction range determination unit 1053... UI part area masking unit 1054... Character string extraction unit 1055... Extraction determination unit 1056... Noun determination unit 1057... Noun extraction determination unit 106... Manual element table creation control unit DESCRIPTION OF SYMBOLS 1061...Manual sentence processing determination unit 1062...Morphological analysis unit 1063...Manual element table creation control unit 107...Matching unit 1071...Operation log processing determination unit 1072...Similarity calculation unit 1073...Score calculation unit 1074...Sorting unit 1075...Substitution unit 1076...Threshold value determination unit 1077...Manual element table row selection unit 108...Manual sentence noun extraction unit 1081...Operation log processing determination unit 1082...Duplicate elimination unit 1083...Remaining noun determination unit 1084...Noun determination unit 109...Output control unit 20...Program storage unit 30...Data storage unit 301...Operation log storage unit 302...Rule table storage unit 303...Part of speech storage unit 304...Manual storage unit 305...Explanatory sentence storage unit 40...Communication interface 50...Input / output interface 51...Input device 52...Output device
Claims
1. An automatic explanatory text generation device comprising: an operation log generation unit that runs an RPA scenario to generate an operation log; a rule table storage unit that stores a verb, sentence pattern, and particle decision rule table; a verb, sentence pattern, and particle decision unit that decides verbs, sentence patterns, and particles of an explanatory text that explains the operation log based on the verb, sentence pattern, and particle decision rule table; a noun assignment unit that assigns nouns to the explanatory text based on values representing actual inputs that are determined from the operation log; and an output control unit that outputs the explanatory text.
2. The automatic explanatory text generation device of claim 1, wherein the operation log further includes information on whether copy and paste was performed, the type attribute value of the html contained in the operation log, the contents of the clipboard, and whether Ctrl+V was input, and the operation log generation unit records the name of the operated file as a copy log when there is a change in the clipboard, and records it as a paste log when Ctrl+V is input, and determines whether copy and paste was performed based on whether there are any components whose values changed during the recording, and the verb / sentence pattern / particle determination unit determines the verb, sentence pattern, and particle of the explanatory text based further on the type attribute value of the html and whether copy and paste was performed.
3. The explanatory text automatic generation device according to claim 1, further comprising: a captured image noun extraction unit that extracts the noun of the operation location from the captured image using OCR when the sentence pattern requires the noun of the operation location, wherein the noun includes a noun of the operation content and a noun of the operation location, and the operation log includes a captured image of when the operation was performed.
4. The automatic explanatory text generation device described in claim 3, wherein the captured image noun extraction unit further comprises: an extraction range determination unit that determines an extraction range from the captured image; a UI part area masking unit that masks a UI part area of the determined extraction range; a noun extraction unit that extracts a character string from the extraction range using the OCR; and a noun determination unit that determines a noun of the operation location from the extracted noun.
5. The explanatory text automatic generation device described in claim 3, further comprising: a manual storage unit that stores manual text; and a manual text noun extraction unit that, when the captured image noun extraction unit is unable to extract the noun at the operation location, extracts the noun at the operation location based on matching with the manual text.
6. The explanatory text automatic generation device according to claim 5, further comprising: a manual element table creation control unit that extracts nouns and verbs for each manual sentence by applying morphological analysis to the manual sentences and creates a manual element table; and a matching unit that performs matching based on the manual element table, a value representing the actual input, and a verb determined by the verb / sentence pattern / particle determination unit, and selects a row of the manual element table corresponding to the operation log, wherein the manual sentence noun extraction unit further comprises: a duplicate exclusion unit that excludes nouns assigned by the noun assignment unit from the selected row of the manual element table; and a noun determination unit that determines a noun remaining in the excluded row of the manual element table as the noun of the operation location.
7. A method for automatically generating explanatory text executed by a processor of an automatic explanatory text generation device, comprising: running an RPA scenario to generate an operation log; storing a verb / sentence pattern / particle decision rule table; determining verbs, sentence patterns, and particles of an explanatory text that explains the operation log based on the verb / sentence pattern / particle decision rule table; assigning nouns to the explanatory text based on values representing actual inputs that are determined from the operation log; and outputting the explanatory text.
8. An automatic explanatory text generation program having instructions to be executed by a processor of an automatic explanatory text generation device, the instructions comprising: running an RPA scenario to generate an operation log; storing a verb, sentence pattern, and particle determination rule table; determining verbs, sentence patterns, and particles of an explanatory text that explains the operation log based on the verb, sentence pattern, and particle determination rule table; assigning nouns to the explanatory text based on values representing actual inputs that are determined from the operation log; and outputting the explanatory text.
Citation Information
Patent Citations
Shortcut operation execution device
JP2010160687A
