DATA PROCESSING PROGRAM, DATA PROCESSING METHOD, AND DATA PROCESSING APPARATUS
The data processing program iteratively converts records and highlights unintended changes to enhance recipe accuracy in PBE by reducing the likelihood of overlooked errors in large datasets.
Patent Information
- Application Number
- JP2020137907
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-18
- Publication Date
- 2024-10-09
- Estimated Expiration
- 2040-08-18
AI Technical Summary
In Programming By Example (PBE) data conversion, the accuracy of conversion recipes depends heavily on the input conversion examples, and visually checking large datasets can lead to overlooked errors, resulting in recipes with low accuracy due to unintended conversions.
A data processing program that iteratively converts records, highlights changed values in subsequent conversions, and distinguishes confirmed records from others to alert users of unintended changes, allowing for improved recipe accuracy through targeted correction.
This approach reduces the likelihood of unintended conversions by highlighting changed values, thereby reducing the burden of manual error detection and improving the overall accuracy of conversion recipes.
Smart Images

Figure 0007564427000001 
Figure 0007564427000002 
Figure 0007564427000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a data processing program, a data processing method, and a data processing device. [Background technology]
[0002] In the field of data processing, mainly in the fields of statistical analysis and data science, tabular data is sometimes formatted according to the purpose of use. One formatting technique for tabular data is called PBE (Programming By Example). Tabular data is, for example, a data table containing multiple records.
[0003] PBE is a technology that inputs conversion examples for some records registered in a data table into a computer, and has the computer automatically execute data conversion for other records according to the conversion examples. In this case, the computer is given the conversion examples, detects differences between values in the records before and after conversion, and generates conversion rules (hereafter referred to as recipes) for performing conversions that correspond to the differences. The recipes are expressed, for example, as a combination of operators that indicate the manipulation of values in the records. The operators are, for example, functions that include one or more commands.
[0004] As a technology related to data conversion, for example, an information processing method that enables verification of the correctness of conversion rules for structured data has been proposed. Also, a data conversion device that combines data conversion processing based on conversion rules and data conversion processing based on analogy has been proposed. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2008-108144 A [Patent Document 2] Japanese Patent Application Publication No. 11-53360 Summary of the Invention [Problem to be solved by the invention]
[0006] The conversion accuracy of a recipe in PBE depends on what conversion examples are input. Therefore, the user improves the conversion accuracy of the recipe by repeatedly inputting conversion examples and generating recipes through trial and error. In this case, each time the user generates a recipe, he or she has the computer convert the records in the data table to which the recipe has been applied. The user has the computer display the application results and visually checks whether there are any records that have been converted contrary to the user's intention. When visually checking the conversion results in this way, if there are a large number of records, it is easy to miss conversions that are contrary to the user's intention. If erroneous conversion results are overlooked during the recipe generation process, only a recipe with low conversion accuracy (where many conversions contrary to the user's intention occur) can be obtained.
[0007] In one aspect, the present invention aims to suppress the occurrence of conversion that is contrary to the user's intention. [Means for solving the problem]
[0008] In one proposal, a data processing program is provided that causes a computer to perform the following processes. The computer repeatedly generates a conversion program for converting the values of a plurality of records in response to input of conversion examples of values set in some of the plurality of records registered in the tabular data, converts the values of the plurality of records by executing the conversion program, and displays the conversion results. Furthermore, the computer determines whether or not the values of one or more second records located above the first record to which the conversion example was added in the second or subsequent input of the conversion example have been changed in the latest conversion result from the previous conversion result. If the value of the second record has been changed, the computer highlights the value of the second record in the display of the latest conversion result. Effect of the Invention
[0009] According to one aspect, it is possible to prevent conversion that is not intended by the user from occurring. [Brief description of the drawings]
[0010] [Figure 1] FIG. 2 illustrates an example of a data processing method according to a first embodiment. [Diagram 2] FIG. 1 illustrates an example of a system configuration. [Diagram 3] FIG. 2 illustrates an example of server hardware. [Figure 4] FIG. 2 is a block diagram showing an example of the functions of a server. [Diagram 5] FIG. 13 is a diagram illustrating an example of a data table. [Figure 6] FIG. 13 is a diagram illustrating an example of confirmation of a conversion result of a data table. [Figure 7] 13 is a flowchart illustrating an example of a procedure for a data table conversion process. [Figure 8] FIG. 13 illustrates an example of a transformation history of records in a data table through repeated transformations. [Figure 9] FIG. 13 is a diagram showing an example of a conversion example input screen when a conversion example is input for the first time. [Figure 10] FIG. 2 is a diagram showing an example of a recipe generated by a first recipe generation. [Figure 11] FIG. 13 is a diagram showing an example of a conversion result confirmation screen at the time of the first conversion. [Figure 12] FIG. 13 is a diagram showing an example of a second conversion example input screen. [Figure 13] FIG. 13 is a diagram showing an example of a recipe generated by a second recipe generation. [Figure 14] FIG. 13 is a diagram showing an example of a conversion result confirmation screen at the time of the second conversion. [Figure 15] FIG. 13 is a diagram showing an example of a third conversion example input screen. [Figure 16] FIG. 13 is a diagram showing an example of a recipe generated by a third recipe generation. [Figure 17] FIG. 13 is a diagram showing an example of a conversion result confirmation screen at the time of the third conversion. [Figure 18] FIG. 13 is a diagram illustrating an example of a data table in which Japanese character strings are set. [Figure 19] FIG. 13 is a diagram showing an example of confirmation of a conversion result of a Japanese data table. [Figure 20] FIG. 13 illustrates an example of a conversion history of records in a Japanese data table through repeated conversions. [Figure 21] FIG. 13 is a diagram showing an example of a conversion example input screen when a Japanese conversion example is input for the first time. [Figure 22] FIG. 2 is a diagram showing an example of a recipe for Japanese conversion generated by a first recipe generation. [Figure 23] FIG. 13 is a diagram showing an example of a conversion result confirmation screen at the time of the first Japanese conversion. [Figure 24] FIG. 13 is a diagram showing an example of a second Japanese conversion example input screen. [Diagram 25] FIG. 13 is a diagram showing an example of a recipe for Japanese conversion generated by a second recipe generation. [Figure 26] FIG. 13 is a diagram showing an example of a conversion result confirmation screen at the time of the second Japanese conversion. [Figure 27] FIG. 13 is a diagram showing an example of a third Japanese conversion example input screen. [Figure 28] FIG. 13 is a diagram showing an example of a recipe for Japanese conversion generated by the third recipe generation. [Figure 29] FIG. 13 is a diagram showing an example of a conversion result confirmation screen at the third Japanese conversion. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, the present embodiment will be described with reference to the drawings. Note that each embodiment can be implemented in combination with a plurality of other embodiments as long as no contradiction occurs. First Embodiment First, the first embodiment will be described.
[0012] Fig. 1 is a diagram showing an example of a data processing method according to a first embodiment. Fig. 1 shows a data processing device 10 for realizing the data processing method. The data processing device 10 can realize the data processing method by, for example, executing a data processing program.
[0013] The data processing device 10 includes a storage unit 11 and a processing unit 12. The storage unit 11 is, for example, a memory or a storage device included in the data processing device 10. The processing unit 12 is, for example, a processor or an arithmetic circuit included in the data processing device 10.
[0014] The storage unit 11 stores data 1 in a tabular format in which a plurality of records are registered. The processing unit 12 generates conversion programs 3, 6 that convert the values of multiple records in response to input of conversion examples of values set in some of the multiple records. The processing unit 12 also executes the generated conversion programs 3, 6 to convert the values of the multiple records. The processing unit 12 also causes the conversion results 4, 7 obtained by converting the values of the multiple records to be displayed on a monitor or the like. The processing unit 12 repeatedly executes the process of generating the conversion programs 3, 6, the conversion process using the conversion programs 3, 6, and the display process of the conversion results 4, 7 for each input of a conversion example.
[0015] Each time a conversion process is performed from the second time onwards, the processing unit 12 determines whether the value of each of the one or more second records located higher than the first record to which the conversion example was added in the input of the second or subsequent conversion examples has been changed from the previous conversion result 4 in the latest conversion result 7. For example, the higher the display position of a record, the higher the record. When the records are sorted according to a predetermined rule and displayed in the order after sorting, the earlier the record is in the order after sorting, the higher the record. Then, if the value of the second record has been changed, the processing unit 12 highlights the value of the second record in the display of the latest conversion result 7.
[0016] The second record is a record in which the user has confirmed the conversion result, and may be referred to as a confirmed record hereinafter. The second record may also include the first record to which a conversion example has been added.
[0017] A user 8 can use such a data processing device 10 to perform data conversion by PBE. For example, the user 8 operates an input device such as a keyboard to input a first conversion example to the data processing device 10. The processing unit 12 then generates a conversion example list 2 including the input conversion example. In the conversion example list 2, the converted values of the top two records in the data 1 are specified.
[0018] When the processing unit 12 receives the conversion example list 2 showing conversion examples, it generates a conversion program 3 capable of performing the same conversion as the conversion example shown in the conversion example list 2. Next, the processing unit 12 executes the conversion program 3 on multiple records in the data 1, thereby converting the values of the multiple records. Then, the processing unit 12 displays the conversion result 4 on the monitor.
[0019] The user 8 checks whether the values of each record shown in the displayed conversion result 4 have been converted as intended, starting from the top. If the user 8 finds an incorrectly converted value, he or she inputs a conversion example that specifies a converted value that is in line with the intention of the corresponding record, into the data processing device 10. Then, for example, a new conversion example list 5 is generated in which the input conversion example is added to the conversion example list 2. In the conversion example list 5, the conversion example of the fifth record has been added.
[0020] The processing unit 12 then generates a conversion program 6 that can perform the same conversion as the conversion examples in the conversion example list 5. Next, the processing unit 12 executes the conversion program 6 on multiple records in the data 1, thereby converting the values of the multiple records. Then, the processing unit 12 displays the conversion result 7 on the monitor.
[0021] When displaying the conversion result 7, the processing unit 12 sets the record to which the conversion example has been added (the fifth record in the example of FIG. 1) as the first record. The processing unit 12 sets one or more records (the first to fourth records in the example of FIG. 1) that are higher than the first record as the second record. The processing unit 12 judges whether or not the value of each of the second records has been changed from the previous conversion result 4 in the latest conversion result 7. In the example of FIG. 1, the value of the third record shown in the conversion result 7 has been changed from the value of the corresponding record shown in the conversion result 4. In this case, the processing unit 12 highlights the value of the second record (the third record) whose value has been changed in displaying the latest conversion result 7. In the example of FIG. 1, the value of the third record is highlighted by drawing an underline, but the processing unit 12 can also display the value of the corresponding record in a highlighted color.
[0022] In this way, the value of the second record in which the value shown in the latest conversion result 7 has been changed from the value shown in the previous conversion result 4 is highlighted. Here, the second record is a record higher than the record to which the conversion example has been added. Since the user 8 checks the conversion result 4 from a higher level, the second record is a record in which it has been confirmed that the value has been correctly converted as intended. Therefore, when the converted value of the second record is changed due to an update of the conversion example, the value is converted from a correct value to an incorrect value. In other words, the data processing device 10 can draw the user 8's attention by highlighting that the value of the record that was confirmed to have been correctly converted has been changed to an incorrect value.
[0023] By inputting a conversion example that corrects the highlighted value, the user 8 can improve the conversion accuracy of the conversion program that will be generated thereafter. As a result, the occurrence of conversions that go against the user's intention is suppressed. Moreover, because the value that has been converted to an incorrect value is highlighted, the burden of checking whether the conversion has been performed correctly is reduced.
[0024] When the conversion example is repeatedly updated, multiple first records are generated. When there are multiple first records, the processing unit 12 sets, for example, a record that is higher than the lowest first record among the multiple first records as the second record. As a result, a record whose conversion result has been confirmed at least once becomes the second record. As a result, it is possible to correctly extract records whose conversion results have been confirmed.
[0025] Furthermore, when the latest first record to which a conversion example was added in inputting the last conversion example among the multiple first records is located higher than the lowest first record, the processing unit 12 may exclude the value of the latest first record, which is also the second record, from the target for highlighting. The record to which a conversion example was added in inputting the last conversion example is a record in which an error occurred in the previous conversion result. A conversion example was added so that the value of the record in which an error occurred is correctly converted, and the value shown in the current conversion result 7 is expected to be a correct value. By preventing this value from being highlighted, it is possible to limit the highlighting to the value of the record in which a conversion contrary to the user 8's intention was performed.
[0026] It may happen that some of the records for which a conversion example is specified (including the records for which a conversion example is specified in the first conversion process and the first records for which a conversion example is specified in the second or subsequent conversion processes) cannot be converted according to the conversion example. This may occur when there is an error in part of the conversion example entered, or when the generation algorithm of the conversion programs 3, 6 does not sufficiently support the conversion example. Therefore, the processing unit 12 may highlight the value of any record for which a conversion example is specified that is converted to a value different from the specified conversion example. This makes it possible to notify the user 8 that the conversion was not made according to the conversion example when the value of a record for which a conversion example is specified is converted to a value different from the conversion example.
[0027] The processing unit 12 can also display the conversion result 7 by distinguishing the second records whose conversion results have been confirmed at least once by the user 8 from the other records. For example, the processing unit 12 displays the values of records lower than the first record in a first display mode. The processing unit 12 also displays the values of the unaltered second records, whose values have not been changed from the previous conversion result 4 in the latest conversion result 7, among the second records, in a second display mode different from the first display mode. Furthermore, the processing unit 12 displays the values of the changed second records, whose values have been changed from the previous conversion result 4 in the latest conversion result 7, among the second records, in a third display mode different from both the first display mode and the second display mode. This allows the user 8 to easily understand which records have been confirmed.
[0028] The processing unit 12 displays, for example, in the second display mode, the values of the records for which a conversion example is specified, if the specified conversion example and the conversion result match. The processing unit 12 displays, for example, in the third display mode, the values of the records for which a conversion example is specified, but for which the specified conversion example and the conversion result do not match.
[0029] In the example of Fig. 1, the first display mode is character display in a thin font, the second display mode is character display in a bold and italic font, and the third display mode is character display in a bold font with an underline. Note that the processing unit 12 can also distinguish each display mode by color. For example, the processing unit 12 can display characters in a black font for the first display mode, in a blue font for the second display mode, and in a red font for the third display mode.
[0030] Second Embodiment Next, a second embodiment will be described. In the second embodiment, data in a tabular format stored in a database on a server is converted into a format suited to the user's purpose.
[0031] 2 is a diagram showing an example of a system configuration. A server 100 and a terminal device 30 are connected via a network 20. The server 100 is a computer that manages data in a tabular format. The terminal device 30 is a computer used by a user who wishes to convert the format of data. The server 100 is an example of the data processing device 10 shown in the first embodiment.
[0032] 3 is a diagram showing an example of server hardware. The server 100 is entirely controlled by a processor 101. A memory 102 and a plurality of peripheral devices are connected to the processor 101 via a bus 109. The processor 101 may be a multiprocessor. The processor 101 is, for example, a central processing unit (CPU), a micro processing unit (MPU), or a digital signal processor (DSP). At least a part of the functions realized by the processor 101 executing a program may be realized by an electronic circuit such as an application specific integrated circuit (ASIC) or a programmable logic device (PLD).
[0033] The memory 102 is used as a main storage device of the server 100. The memory 102 temporarily stores at least a part of the OS (Operating System) program and application programs to be executed by the processor 101. The memory 102 also stores various data used for processing by the processor 101. As the memory 102, for example, a volatile semiconductor storage device such as a RAM (Random Access Memory) is used.
[0034] The peripheral devices connected to the bus 109 include a storage device 103, a graphics processing device 104, an input interface 105, an optical drive device 106, a device connection interface 107, and a network interface 108.
[0035] The storage device 103 electrically or magnetically writes and reads data to and from a built-in recording medium. The storage device 103 is used as an auxiliary storage device for a computer. The storage device 103 stores an OS program, application programs, and various data. Note that, for example, a hard disk drive (HDD) or a solid state drive (SSD) can be used as the storage device 103.
[0036] The monitor 21 is connected to the graphics processing device 104. The graphics processing device 104 displays an image on the screen of the monitor 21 in accordance with an instruction from the processor 101. The monitor 21 may be a display device using an organic EL (Electro Luminescence) display device or a liquid crystal display device.
[0037] The input interface 105 is connected to the keyboard 22 and the mouse 23. The input interface 105 transmits signals sent from the keyboard 22 and the mouse 23 to the processor 101. Note that the mouse 23 is an example of a pointing device, and other pointing devices can also be used. Examples of other pointing devices include a touch panel, a tablet, a touch pad, and a trackball.
[0038] The optical drive device 106 uses a laser beam or the like to read data recorded on the optical disc 24 or write data to the optical disc 24. The optical disc 24 is a portable recording medium on which data is recorded so that it can be read by reflection of light. The optical disc 24 includes a DVD (Digital Versatile Disc), a DVD-RAM, a CD-ROM (Compact Disc Read Only Memory), a CD-R (Recordable) / RW (ReWritable), etc.
[0039] The device connection interface 107 is a communication interface for connecting peripheral devices to the server 100. For example, a memory device 25 or a memory reader / writer 26 can be connected to the device connection interface 107. The memory device 25 is a recording medium equipped with a communication function with the device connection interface 107. The memory reader / writer 26 is a device that writes data to the memory card 27 or reads data from the memory card 27. The memory card 27 is a card-type recording medium.
[0040] The network interface 108 is connected to the network 20. The network interface 108 transmits and receives data to and from other computers or communication devices via the network 20. The network interface 108 is a wired communication interface that is connected by a cable to a wired communication device such as a switch or a router. The network interface 108 may also be a wireless communication interface that is communicatively connected by radio waves to a wireless communication device such as a base station or an access point.
[0041] The server 100 can realize the processing functions of the second embodiment by the above-mentioned hardware. The data processing device 10 shown in the first embodiment can also be realized by the same hardware as the server 100 shown in FIG.
[0042] The server 100 realizes the processing function of the second embodiment by executing a program recorded in, for example, a computer-readable recording medium. The program describing the processing contents to be executed by the server 100 can be recorded in various recording media. For example, the program to be executed by the server 100 can be stored in the storage device 103. The processor 101 loads at least a part of the program in the storage device 103 into the memory 102 and executes the program. The program to be executed by the server 100 can also be recorded in a portable recording medium such as the optical disk 24, the memory device 25, or the memory card 27. The program stored in the portable recording medium becomes executable after being installed in the storage device 103 under the control of, for example, the processor 101. The processor 101 can also directly read out and execute the program from the portable recording medium.
[0043] A user can access the server 100 using the terminal device 30 and have the server 100 generate a recipe for converting a data table stored in the server 100. The server 100 generates a recipe according to a conversion example input via the terminal device 30, and converts values of records in the data table using the recipe. The recipe is an example of the conversion program described in the first embodiment.
[0044] 4 is a block diagram showing an example of the functions of the server 100. The server 100 includes a storage unit 110, a conversion example acquisition unit 120, a recipe generation unit 130, a data conversion unit 140, and a conversion result output unit 150.
[0045] The storage unit 110 stores a data table 111 and a recipe 112. The data table 111 is tabular data in which a plurality of records are registered. The recipe 112 is information indicating a conversion rule for converting the data table 111. The storage unit 110 is, for example, a part of a storage area of the memory 102 or the storage device 103 of the server 100.
[0046] The conversion example acquisition unit 120 acquires conversion examples of values in records from the terminal device 30. For example, the conversion example acquisition unit 120 transmits screen data of a conversion example input screen to the terminal device 30. The conversion example input screen is displayed on the terminal device 30. When a user inputs conversion examples of values of some records on the conversion example input screen, information indicating the input conversion examples (for example, a conversion example list) is transmitted from the terminal device 30 to the server 100. When the conversion example acquisition unit 120 acquires the conversion example list from the terminal device 30, it transmits the information to the recipe generation unit 130.
[0047] The recipe generating unit 130 generates a recipe 112 for converting values of records in the data table 111 based on the conversion example list sent from the conversion example acquiring unit 120. The recipe generating unit 130 stores the generated recipe 112 in the storage unit 110.
[0048] The data conversion unit 140 converts the values of the records in the data table 111 using the recipe 112, and generates a new data table including the converted values. The data conversion unit 140 transmits the data table generated as a result of the conversion to the conversion result output unit 150.
[0049] The conversion result output unit 150 outputs the conversion result. For example, the conversion result output unit 150 generates screen data of a conversion result confirmation screen including a data table obtained as a conversion result. When a recipe is repeatedly generated, the conversion result output unit 150 generates screen data to highlight records that have been converted differently from the conversion result according to the previously generated recipe, among records that have been previously checked for whether the conversion was correct. The conversion result output unit 150 transmits the screen data of the conversion result confirmation screen to the terminal device 30.
[0050] The functions of each element shown in FIG. 4 can be realized, for example, by causing a computer to execute a program module corresponding to that element. Next, an example of the data table 111 to be converted will be described.
[0051] FIG. 5 is a diagram showing an example of a data table. Data table 111 shown in FIG. 5 has columns for street, city name, and state name. Records in data table 111 include fields corresponding to the columns. The street column contains a street name. The city column contains the name of the city having the corresponding street. The state column contains the name of the state having the corresponding city. In the example of FIG. 5, the state names are represented by abbreviations.
[0052] The user can make the server 100 generate another data table by PBE using the data table 111 shown in Fig. 5 as the conversion source. At that time, the user visually checks the application result of the recipe. For example, if there are many records, the user can use page switching or vertical scrolling to display the records to be checked on the screen, and visually check whether the conversion result is as the user intended.
[0053] FIG. 6 is a diagram showing an example of checking the conversion result of a data table. FIG. 6 shows an example of generating a different name based on a city name and a state name. For example, it is assumed that the user inputs, as conversion examples, "Easton, MD", a value after conversion of "EASTON, MD", and "Salisbury, MD", a value after conversion of "SALISBURY, MD", into the conversion example list 41. The recipe generation unit 130 of the server 100 generates a recipe for converting the value of each record in the data table 111 according to the conversion examples shown in the conversion example list 41. For example, it is assumed that a conversion rule for "converting a city name to CamelCase" is generated as the recipe 51. "CamelCase" is a notation form in which the first letter of each word of a compound word is written in capital letters.
[0054] When the recipe 51 is generated, the data conversion unit 140 converts the street names in the data table 111 in accordance with the recipe 51. A new data table 42 is generated as a result of the conversion. The data table 42 as a result of the conversion is transmitted to the terminal device 30 by the conversion result output unit 150 and displayed on the screen of the terminal device 30.
[0055] The user checks the conversion result based on the data table 42 displayed on the terminal device 30. For example, the user checks for errors in the conversion result starting from the top records in the data table 42. If the user finds a record with an incorrect conversion, it can be determined that the conversion by the current recipe is inaccurate. Therefore, the user does not check the records below the record with the incorrect conversion, but adds the correct conversion result of the record with the incorrect conversion as a conversion example and instructs the server 100 to regenerate the recipe.
[0056] Here, it is assumed that the conversion intended by the user is to convert a city name including a street into a CBSA (Core Based Statistical Area) that includes that street. A CBSA is a statistical area that groups neighboring cities and towns together so that the number of people in each area is roughly constant. In the example of FIG. 6, "Santa Cruz, CA" included in data table 42 is not a CBSA. In this case, the user adds the CBSA corresponding to "SANTA CRUZ, CA" to conversion example list 43 as a conversion example.
[0057] By repeatedly adding such conversion examples, generating recipes, and checking the conversion results using the generated recipes, a recipe for performing correct conversion can be generated. In this case, in order to improve the conversion accuracy of the recipe, it is important to prevent records that have been erroneously converted from being overlooked when checking the conversion results. In particular, a user who repeatedly checks the conversion results will repeatedly check records checked in previous conversions. When checking records checked in previous conversions, the checking work tends to be careless and the checks tend to be lax. In other words, there is a high possibility that errors will be overlooked for records checked in previous conversions, even if they have not been converted correctly.
[0058] Therefore, in order to reduce the user's burden of visual confirmation in a processing system that repeatedly generates data conversion recipes, the server 100 highlights records whose conversion results have been previously confirmed if the conversion results have changed due to the latest recipe. This allows the user to easily recognize that a record whose conversion results have changed due to repetition may have been originally correct but may now be incorrect, and to carefully check the record. As a result, it is possible to reduce the oversight of erroneous conversions.
[0059] Next, the procedure of the data table conversion process in the server 100 will be described. 7 is a flow chart showing an example of a procedure for data table conversion processing. The processing shown in FIG. 7 will be described below in order of step numbers.
[0060] [Step S 101 ] The conversion example acquisition unit 120 acquires the source data table 111 from the storage unit 110 . [Step S102] The conversion example acquisition unit 120 acquires conversion examples of values of some of the records included in the data table 111. For example, the conversion example acquisition unit 120 transmits screen data of a conversion example input screen to the terminal device 30. When a user inputs conversion examples of values of some of the records into the conversion example input screen using the terminal device 30, a conversion example list including the input conversion examples is transmitted from the terminal device 30 to the server 100. The conversion example acquisition unit 120 receives the conversion example list transmitted from the terminal device 30 and acquires the conversion examples indicated in the information.
[0061] [Step S103] The recipe generating unit 130 generates the recipe 112 based on the conversion example acquired by the conversion example acquiring unit 120. For example, the recipe generating unit 130 combines operators (operation instructions for values in records) prepared in advance to generate a program for performing conversion according to the conversion example. The generated program becomes the recipe 112.
[0062] [Step S104] The data conversion unit 140 applies the recipe 112 to the source data table 111. For example, the data conversion unit 140 executes the operators shown in the recipe 112 for all records in the data table 111 in the order shown in the recipe 112. The data conversion unit 140 generates a data table including each record whose value has been changed by applying the recipe, and outputs the data table as the conversion result.
[0063] [Step S105] The conversion result output unit 150 determines whether the recipe application performed in the immediately preceding step S104 is the first recipe application. If it is the first recipe application, the conversion result output unit 150 proceeds to step S106. If it is the second or subsequent recipe application, the conversion result output unit 150 proceeds to step S107.
[0064] [Step S106] The conversion result output unit 150 causes the terminal device 30 to display the data table generated as a conversion result. For example, the conversion result output unit 150 generates screen data showing a conversion result confirmation screen including the generated data table, and transmits the screen data to the terminal device 30. Then, the conversion result confirmation screen is displayed on the monitor of the terminal device 30. After that, the conversion result output unit 150 advances the process to step S110.
[0065] [Step S107] The conversion result output unit 150 determines, among the records included in the data table generated as a result of the conversion, the confirmed records whose conversion results have been confirmed at least once by the user. For example, the conversion result output unit 150 identifies the lowest-order record among the records in the data table for which a conversion example is set. The conversion result output unit 150 sets the identified record and any records higher than that record as confirmed records.
[0066] [Step S108] The conversion result output unit 150 identifies confirmed records in which the converted values when the previous recipe was applied are different from the converted values when the current recipe is applied. Note that the conversion result output unit 150 excludes from the identification targets records in which a conversion example has been added for generating the current recipe.
[0067] For example, the conversion result output unit 150 compares the set values of each confirmed record of the data table generated by applying the current recipe with the corresponding record of the data table generated by applying the previous recipe.Then, the conversion result output unit 150 identifies, as confirmed records, records in which at least a part of the set values is different and which are other than records to which a conversion example has been added for generating the current recipe.
[0068] [Step S109] The conversion result output unit 150 highlights the values of the identified confirmed record and causes the terminal device 30 to display the data table generated as a conversion result. For example, the conversion result output unit 150 generates screen data showing a conversion result confirmation screen including the generated data table and displaying the values of the identified confirmed record in a color different from that of other records. The conversion result output unit 150 then transmits the generated screen data to the terminal device 30. The terminal device 30 then displays on its monitor a conversion result confirmation screen in which the identified confirmed record is highlighted.
[0069] [Step S110] The conversion result output unit 150 determines whether there is a part that needs to be corrected. For example, if the conversion result output unit 150 receives information from the terminal device 30 that conversion of any record has failed, it determines that there is a part that needs to be corrected. If there is a part that needs to be corrected, the process proceeds to step S102. If there is no part that needs to be corrected, the conversion result output unit 150 proceeds to step S111.
[0070] [Step S111] The conversion result output unit 150 stores a data table generated as a conversion result in the last conversion in the storage unit 110. The conversion result output unit 150 also stores in the storage unit 110 the recipe used in the last conversion.
[0071] In this way, adding conversion examples, generating recipes, and converting data tables are repeated until there are no more parts that need to be corrected. Whether there are any parts that need to be corrected is determined based on the user's confirmation results on the conversion result confirmation screen. On the conversion result confirmation screen, values of confirmed records whose converted values are different from the previous ones are highlighted. This prevents the user from overlooking a record that was previously confirmed to have a correct conversion result when the new recipe results in an incorrect conversion result.
[0072] Fig. 8 is a diagram showing an example of a conversion history of records in a data table by repeating conversion. In the conversion history 50, conversion examples and conversion results obtained by applying recipes 51 to 53 generated according to the conversion examples are shown in association with the original records. In the example shown in Fig. 8, the conversion examples are specified three times, and three recipes 51 to 53 are generated. It is assumed that the conversion intended by the user is to convert city names and state names into CBSA district names.
[0073] In the first conversion example specification, a conversion example of converting "EASTON,MD" to "Easton,MD" and a conversion example of converting "SALISBURY,MD" to "Salisbury,MD" are specified. In the example in Figure 8, recipe 51 is generated based on these two conversion examples, in which the operator "Convert city names to CamelCase" is described.
[0074] By applying recipe 51, the values of each record are converted according to the conversion example for the records for which a conversion example was specified. When the user checks the conversion results from the top records onwards, he or she notices that an incorrect conversion has been made for the fifth record. The fifth record has been converted from "SANTA CRUZ,CA" to "Santa Cruz,CA". However, "Santa Cruz,CA" is not a CBSA area name.
[0075] Therefore, the user specifies an additional conversion example for the fifth record, "Santa Cruz-Watsonville, CA." In the example of Figure 8, based on the second conversion example specification, recipe 52 is generated, which describes the operator "select the district name that contains the city name."
[0076] By applying recipe 52 to convert the values of each record, records for which a conversion example was specified are converted according to the conversion example. At this time, the first record through to the fifth record for which an additional conversion example was specified are confirmed records for which the user has confirmed the previous conversion results. The third record among the confirmed records has been converted to a value different from the previous conversion. Because the conversion result has changed from what was determined to be correct in the previous conversion to a different result, it is highly likely that the second conversion result for this record will be incorrect.
[0077] As for the fifth record, it has been converted to a value different from the previous conversion, but this record is a record for which a conversion example was specified, and the previous conversion result was incorrect. This fifth record has been converted according to the conversion example, and the second conversion result is correct.
[0078] For example, the conversion result output unit 150 highlights a confirmed record whose conversion result has been changed since the previous time (the second changed record in the first embodiment) by displaying it in red. This prevents the user from overlooking the fact that an erroneous conversion has been performed on the third record during the confirmation work. Note that the record to which a conversion example has been added this time is excluded from the highlighting target.
[0079] Furthermore, the conversion result output unit 150 displays a confirmed record (unchanged second record in the first embodiment) whose conversion result has not been changed since the previous time in a different color from other records (e.g., black) by displaying it in blue. This allows the user to recognize the confirmed record, confirm that it has already been converted correctly, and easily identify the record that has been converted in the second conversion result in the same way.
[0080] When the user confirms that the conversion result for the third record is incorrect, he or she additionally specifies the conversion example "Cambridge,MD" for that record. In the example of Figure 8, based on the third conversion example specification, recipe 53 is generated, which describes the operator "obtain district name from city name and state name."
[0081] By applying recipe 53 to convert the values of each record, records for which a conversion example was specified are converted according to the conversion example. At this time, the first record through to the fifth record for which a conversion example was additionally specified in the past are confirmed records for which the user has confirmed the previous conversion results. The third record among the confirmed records has been converted to a value different from the previous conversion, but this record is a record for which a conversion example was additionally specified. Therefore, the conversion result output unit 150 displays the confirmed records in a different color from the other records (e.g., black) by displaying them in blue.
[0082] In this way, by sequentially adding conversion examples of records that have been erroneously converted, recipe 53 that enables correct conversion is generated. Then, by applying recipe 53 to convert data table 111, all records in data table 111 can be converted as intended by the user.
[0083] 9 to 17, a detailed description will be given of the user's operation and the generated recipe when performing the conversion process of the data table 111 by PBE as shown in Fig. 8. In the following example, the data table 111 is input (column 0: street, column 1: city name, column 2: state name), and a data table with a column of CBSA (area name) added to the data table 111 is output (column 0: street, column 1: city name, column 2: state name, column 3: CBSA (area name)).
[0084] For example, the user operates the terminal device 30 and instructs the server 100 to generate a data table of "Column 0: Street, Column 1: City name, Column 2: State name, Column 3: CBSA (area name)" based on the data table 111. Then, the conversion example acquisition unit 120 of the server 100 generates screen data for a conversion example input screen based on the data table 111, and transmits the screen data to the terminal device 30. Then, the conversion example input screen is displayed on the terminal device 30.
[0085] 9 is a diagram showing an example of a conversion example input screen when a conversion example is input for the first time. The conversion example input screen 61 includes a data table display section 61a, a conversion example input section 61b, and a button 61c. The data table display section 61a displays values set in each field of a record registered in the data table 111 of the conversion source.
[0086] The conversion example input section 61b is an area for inputting a conversion example. The conversion example input section 61b is provided with a text box for inputting a conversion example in association with each record. The button 61c is a button for instructing the execution of conversion of the data table 111 based on the conversion example.
[0087] The user inputs conversion examples of the corresponding records in one or more text boxes of the conversion example input section 61b. In the example of Fig. 9, conversion examples for the first and second records are input. Next, the user presses the button 61c.
[0088] When the button 61c is pressed, a conversion example list including the conversion examples input to the conversion example input section 61b is transmitted from the terminal device 30 to the server 100. In the server 100 that has received the conversion example list, the recipe generation section 130 generates a recipe based on the conversion examples.
[0089] Fig. 10 is a diagram showing an example of a recipe generated by the first recipe generation. Recipe 51 shown in Fig. 10 includes an operator for "changing city name to CamelCase".
[0090] The first line of recipe 51 is an operator that instructs to copy the first column of data table 111 to a new column (third column). The second line of recipe 51 is an operator that instructs to convert the third column to CamelCase. The third line of recipe 51 is an operator that instructs to copy the second column to a new column (fourth column). The fourth line is an operator that indicates to generate a new column (third column) by combining the value of the third column and the value of the fourth column with a ",".
[0091] The first conversion is performed by the data conversion unit 140 executing the operator indicated in the recipe 51 for each record in the data table 111. Then, the conversion result output unit 150 generates screen data for a conversion result confirmation screen, and transmits the screen data to the terminal device 30. Then, the conversion result confirmation screen is displayed on the terminal device 30.
[0092] 11 is a diagram showing an example of a conversion result confirmation screen at the time of the first conversion. A conversion result confirmation screen 62 includes a data table display section 62a, a recipe display section 62b, and buttons 62c and 62d.
[0093] Data table display section 62a displays values set in each field of the records registered in the data table generated by the first conversion. In the generated data table, a column for "area name" has been added to the original data table 111. The "area name" column is set with values generated by applying recipe 51 to each record. In the first conversion result, since there are no records for which the conversion results have been confirmed to be correct, the "area name" values of all records are not highlighted but are displayed in black, for example.
[0094] The name of the applied recipe 51 is displayed in the recipe display section 62b. The button 62c is a button to be pressed when the conversion is successful (all records have been converted to the intended values). When the button 62c is pressed, the latest data table is stored in the storage section 110 as the conversion result. The button 62d is a button to be pressed when the conversion is unsuccessful (there is a record that has been converted to a value different from the intended value). When the button 62d is pressed, a conversion example input screen is displayed on the terminal device 30.
[0095] The user checks the records shown in the data table display section 62a from top to bottom to see if the conversion is as intended. In the example of Fig. 11, the user recognizes that the value in the fifth record has been converted to a value different from the one intended. The user then presses the button 62d indicating that the conversion has failed.
[0096] When the button 62d is pressed, information indicating a failure of the conversion is transmitted from the terminal device 30 to the server 100. Then, the conversion example acquisition unit 120 of the server 100 generates screen data showing a conversion example input screen for inputting a conversion example for the second time, and transmits the screen data to the terminal device 30. On the terminal device 30, the conversion example input screen for inputting a conversion example for the second time is displayed.
[0097] 12 is a diagram showing an example of the second conversion example input screen. The conversion example input screen 63 for inputting the second conversion example includes a data table display section 63a, a conversion example input section 63b, and a button 63c. The data table display section 63a displays values set in each field of the records registered in the data table 111 of the conversion source.
[0098] The conversion example input section 63b is an area for inputting a conversion example. The conversion example input section 63b is provided with a text box for inputting a previous conversion result and a conversion example in association with each record. The button 63c is a button for instructing the execution of conversion of the data table 111 based on the conversion example.
[0099] The user additionally inputs a correct conversion example according to his / her intention into the text box in the conversion example input section 63b corresponding to the fifth record showing a value different from the intention as the previous conversion result, and then the user presses the button 63c.
[0100] When the button 63c is pressed, a conversion example list including the conversion examples input in the conversion example input section 63b is transmitted from the terminal device 30 to the server 100. In the server 100 that has received the conversion example list, the recipe generation section 130 generates a recipe based on the conversion examples.
[0101] Fig. 13 is a diagram showing an example of a recipe generated by the second recipe generation. A recipe 52 shown in Fig. 13 includes an operator for "select a district name including a city name". The first line of recipe 52 is an operator that instructs to copy the first column of data table 111 to a new column (third column). The second line of recipe 52 is an operator that extracts from the list of area names those that contain the string in the third column (city name) of data table 111, generates a list, and writes it back by overwriting the third column. "GetCBSAListByCity" on the second line is a function that queries the CSBA database (cbsa-list) with the following query: SELECT cbsaname FROM cbsa-list WHERE cbsaname LIKE ”%{city}%” This query inquires about the CSBA name including the city name set in the record in data table 111. The third line of recipe 52 is an operator that overwrites only the first element of the list of one or more elements set in the third column of data table 111 back into the third column.
[0102] Note that the operator on the second line of Recipe 52 extracts district names that contain the city name string. However, with this process, if there are cities with the same name in multiple states, there is a possibility that the CBSA for the wrong state will be selected.
[0103] The data conversion unit 140 performs a second conversion by executing the operator indicated in the recipe 52 on each record in the data table 111. Then, the conversion result output unit 150 generates screen data for a conversion result confirmation screen, and transmits the screen data to the terminal device 30. Then, the conversion result confirmation screen is displayed on the terminal device 30.
[0104] 14 is a diagram showing an example of a conversion result confirmation screen at the time of the second conversion. A conversion result confirmation screen 64 includes a data table display section 64a, a recipe display section 64b, and buttons 64c and 64d.
[0105] Data table display section 64a displays values set in each field of the records registered in the data table generated by the second conversion. In the generated data table, a column of "area name" is added to the original data table 111. The column of "area name" is set with values generated by applying recipe 52 to each record.
[0106] On the second conversion result confirmation screen 64, the characters in the "Area Name" column are displayed in different colors according to the conversion content. For example, the area name values of confirmed records (excluding records for which conversion examples have been added this time) that have been converted to the same value as in the previous conversion are displayed in blue. Also, the area name values of confirmed records (excluding records for which conversion examples have been added this time) that have been converted to a value different from the previous conversion are displayed in red. For records for which conversion examples have been added this time, if the conversion result matches the conversion example, it is displayed in blue, and if it does not match, it is displayed in red. All other values are displayed in black. In the example of FIG. 14, the characters displayed in blue are displayed in bold and italics. Also, the characters displayed in red are displayed in bold and underlined.
[0107] The recipe display section 64b displays the name of the applied recipe 52. The button 64c is a button to be pressed when the conversion is successful. The button 64d is a button to be pressed when the conversion is unsuccessful.
[0108] The user can easily notice that the conversion result is incorrect because the value of the area name in the record in the third row of the data table display section 64a is displayed in red. The user then presses the button 64d, which indicates that the conversion has failed.
[0109] When the button 64d is pressed, information indicating a failure of the conversion is transmitted from the terminal device 30 to the server 100. Then, the conversion example acquisition unit 120 of the server 100 generates screen data showing a conversion example input screen for inputting a conversion example for the third time, and transmits the screen data to the terminal device 30. On the terminal device 30, the conversion example input screen for inputting a conversion example for the third time is displayed.
[0110] 15 is a diagram showing an example of the third conversion example input screen. The conversion example input screen 65 for inputting the third conversion example includes a data table display section 65a, a conversion example input section 65b, and a button 65c. The data table display section 65a displays values set in each field of the records registered in the data table 111 of the conversion source.
[0111] The conversion example input section 65b is an area for inputting a conversion example. The conversion example input section 65b is provided with a text box for inputting a previous conversion result and a conversion example in association with each record. The button 65c is a button for instructing the execution of conversion of the data table 111 based on the conversion example.
[0112] The user additionally inputs a correct conversion example according to his / her intention into the text box in the conversion example input section 65b corresponding to the third record showing a value different from the intention as the previous conversion result. Next, the user presses the button 65c.
[0113] When the button 65c is pressed, a conversion example list including the conversion examples input in the conversion example input section 65b is transmitted from the terminal device 30 to the server 100. In the server 100 that has received the conversion example list, the recipe generation section 130 generates a recipe based on the conversion examples.
[0114] Fig. 16 is a diagram showing an example of a recipe generated by the third recipe generation. A recipe 53 shown in Fig. 16 includes an operator for "obtaining a district name from a city name and a state name." The first line of recipe 53 is an operator that instructs to copy the first column of data table 111 to a new column (third column). The second line of recipe 53 is an operator that extracts from the list of area names those that contain the string in the third column (city name) of data table 111 and whose state name matches the string in the second column (state name), and overwrites them back into the third column. Since it is believed that there are not multiple cities with the same name in the same state, the candidates obtained by this operator are narrowed down to one. "GetCBSANameByCityAndState" on the second line is a function that queries the CSBA database (cbsa-list) with the following query: SELECT cbsaname FROM cbsa-list WHERE cbsaname LIKE ”%{city}%” and statename = ”{state}” This query queries for a CBSA name that includes a city name set in a record in data table 111 and has the same state name as the state name set in the record in data table 111 .
[0115] The third conversion is performed by the data conversion unit 140 executing the operator indicated in the recipe 53 for each record in the data table 111. Then, the conversion result output unit 150 generates screen data for a conversion result confirmation screen, and transmits the screen data to the terminal device 30. Then, the conversion result confirmation screen is displayed on the terminal device 30.
[0116] 17 is a diagram showing an example of a conversion result confirmation screen at the time of the third conversion. A conversion result confirmation screen 66 includes a data table display section 66a, a recipe display section 66b, and buttons 66c and 66d.
[0117] Data table display section 66a displays values set in each field of the records registered in the data table generated by the third conversion. In the generated data table, a column of "area name" is added to the original data table 111. The "area name" column is set with values generated by applying recipe 53 to each record.
[0118] On the third conversion result confirmation screen 66, the characters in the "Area Name" column are displayed in different colors depending on the conversion content. For example, the area name values of records that have been confirmed by the user are displayed in blue. All other values are displayed in black. Note that in the example of Figure 17, there are no confirmed records (excluding records for which conversion examples have been added this time) that have been converted to values different from the previous conversion, so there are no records for which the area name value is displayed in red. In the example of Figure 17, the characters displayed in blue are displayed in bold and italics.
[0119] The recipe display section 66b displays the name of the applied recipe 53. The button 66c is a button to be pressed when the conversion is successful. The button 66d is a button to be pressed when the conversion is unsuccessful.
[0120] The user checks the records shown in the data table display section 66a from the top to bottom to see if the conversion has been performed as intended. In the example of Fig. 17, all the records have been converted as intended by the user. Then, the user presses the button 66c indicating the success of the conversion.
[0121] When the button 66c is pressed, information indicating the success of the conversion is transmitted from the terminal device 30 to the server 100. Then, the conversion result output unit 150 of the server 100 stores in the storage unit 110 the data table generated by the third conversion.
[0122] In this way, a data table can be generated based on the original data table 111, with a column added containing the value intended by the user (a character string indicating CSBA). When the data table is regenerated, the values of the confirmed records that have been converted to values different from those at the time of the previous conversion are highlighted, thereby preventing the user from overlooking a check. In other words, when a data table is repeatedly converted and each time a check is made to see if the conversion was correct, it is easy to neglect checking records that have already been confirmed. By highlighting the values of records that are likely to contain conversion errors, it is possible to prevent the user from overlooking an error.
[0123] In the above PBE example, data table 111 in which English character strings are set is converted, but the PBE technology can also be used to convert data tables in which Japanese character strings are set.
[0124] Fig. 18 is a diagram showing an example of a data table in which a Japanese character string is set. Data table 111a shown in Fig. 18 has columns for address, building name, and telephone number. Records in data table 111a include fields corresponding to each column. The address column contains the address of the location where the building is built. The building name column contains the name of the building. The telephone number column contains the telephone number of the organization that uses the corresponding building.
[0125] FIG. 19 is a diagram showing an example of checking the conversion result of a Japanese data table. FIG. 19 shows an example of generating an address with the prefecture name omitted based on the address. For example, the user inputs, as a conversion example, "Chiba City Chuo Ward Chiba Port xx", a converted value of "Chiba Prefecture Chiba City Chuo Ward Chiba Port xx", and "Saitama City Urawa Ward Tokiwa xxx", a converted value of "Saitama Prefecture Saitama City Urawa Ward Tokiwa xxx", into the conversion example list 71. The recipe generation unit 130 of the server 100 generates a recipe for converting the value of each record in the data table 111a according to the conversion example shown in the conversion example list 71. For example, a conversion rule for "deleting the first three characters" is generated as the recipe 81.
[0126] When the recipe 81 is generated, the data conversion unit 140 converts the addresses in the data table 111a in accordance with the recipe 81. A new data table 72 is generated as a result of the conversion. The data table 72 as a result of the conversion is transmitted to the terminal device 30 by the conversion result output unit 150 and displayed on the screen of the terminal device 30.
[0127] The user checks the conversion result based on the data table 72 displayed on the terminal device 30. For example, the user checks for errors in the conversion result starting from the top records in the data table 72. The conversion intended by the user here is a conversion to delete the prefecture name from the address. In the example of FIG. 19, the "Prefecture" has not been deleted from "Prefecture, Yokohama City, Naka Ward, Minatomachi xx" included in the data table 72. In this case, the user adds "Yokohama City, Naka Ward, Minatomachi xx", in which the prefecture name has been deleted from "Kanagawa Prefecture, Yokohama City, Naka Ward, Minatomachi xx", to the conversion example list 73 as a conversion example.
[0128] For the Japanese data table 111a, the server 100 can repeatedly add conversion examples, generate recipes, and convert the data table 111a based on the recipes, thereby realizing conversion as intended by the user. The processing procedure is as shown in FIG.
[0129] FIG. 20 is a diagram showing an example of a conversion history of a record in a Japanese data table by repeating conversion. A conversion history 80 shows, in association with the original record, a conversion example and a conversion result obtained by applying recipes 81 to 83 generated according to the conversion example. In the example shown in FIG. 20, a conversion example is specified three times, and three recipes 81 to 83 are generated. It is assumed that the conversion intended by the user is a conversion to delete the prefecture name from the address. Note that in the example of FIG. 20, parts more detailed than the city name are omitted.
[0130] In the first conversion example specification, a conversion example of converting "Chiba City, Chiba Prefecture" to "Chiba City" and a conversion example of converting "Saitama City, Saitama Prefecture" to "Saitama City" are specified. In the example of Fig. 20, a recipe 81 is generated based on these two conversion examples, in which the operator "delete 3 characters from the beginning" is described.
[0131] By applying recipe 81, the conversion of each record's value is performed exactly as specified in the conversion example for records for which a conversion example was specified. When the user checks the conversion results from the top records, he or she notices that an incorrect conversion has been performed on the sixth record. The sixth record has been converted from "Kanagawa Prefecture Yokohama City" to "Prefecture Yokohama City," with the character "Prefecture" remaining.
[0132] Therefore, the user specifies an additional conversion example "Yokohama City" for the sixth record. In the example of Fig. 20, based on the second conversion example specification, recipe 82 is generated in which the operator "Delete the string up to "Prefecture"" is described.
[0133] By applying recipe 82 to convert the values of each record, records for which a conversion example was specified are converted according to the conversion example. At this time, the first record through to the sixth record for which an additional conversion example was specified are confirmed records for which the user has confirmed the previous conversion results. The third record among the confirmed records has been converted to a value different from the previous conversion. Because the conversion result has changed from what was determined to be correct in the previous conversion to a different result, it is highly likely that the second conversion result for this record will be incorrect.
[0134] As for the sixth record, it has been converted to a value different from the previous conversion, but this record is the record for which a conversion example was specified, and the previous conversion result was incorrect. This sixth record has been converted according to the conversion example, and the second conversion result is correct.
[0135] For example, the conversion result output unit 150 highlights the confirmed records whose conversion results have been changed since the previous time (excluding the records whose conversion examples have been added this time) by displaying them in red. This prevents the user from overlooking the fact that the third record has been erroneously converted during the confirmation work.
[0136] Furthermore, the conversion result output unit 150 displays confirmed records whose conversion results have not changed since the previous time in a different color (e.g., black) from other records, for example, by displaying them in blue. This allows the user to recognize confirmed records, confirm that they have already been converted correctly, and easily identify records that have been converted in the second conversion result in the same way.
[0137] When the user confirms that the conversion result for the third record is incorrect, he or she additionally specifies the conversion example "Shinjuku-ku" for that record. In the example of Figure 20, based on the third conversion example specification, recipe 83 is generated in which the operator "Delete prefecture string" is described.
[0138] By applying recipe 83 to convert the values of each record, records for which a conversion example was specified are converted according to the conversion example. At this time, the first record through to the sixth record for which an additional conversion example was specified in the past are confirmed records for which the user has confirmed the previous conversion results. The third record among the confirmed records has been converted to a value different from the previous conversion, but this record is a record for which an additional conversion example was specified. Therefore, the conversion result output unit 150 displays the confirmed records in a color different from the color of the other records (e.g., black) by displaying them in blue.
[0139] 21 to 29, a detailed description will be given below of the user's operation and the generated recipe when performing the conversion process of the data table 111a by PBE as shown in Fig. 20. In the following example, the data table 111a is input (column 0: address, column 1: building name, column 2: phone number), and a data table in which the prefecture name is deleted from the address in the data table 111a is output (column 0: address (excluding prefecture), column 1: building name, column 2: phone number).
[0140] For example, the user operates the terminal device 30 and instructs the server 100 to generate a data table of "Column 0: Address (excluding prefecture), Column 1: Building name, Column 2: Phone number" based on the data table 111a. Then, the conversion example acquisition unit 120 of the server 100 generates screen data for a conversion example input screen based on the data table 111a, and transmits the screen data to the terminal device 30. Then, the conversion example input screen is displayed on the terminal device 30.
[0141] 21 is a diagram showing an example of a conversion example input screen when inputting a conversion example in Japanese for the first time. The conversion example input screen 91 includes a data table display section 91a, a conversion example input section 91b, and a button 91c. The data table display section 91a displays values set in each field of the records registered in the conversion source data table 111a.
[0142] The conversion example input section 91b is an area for inputting a conversion example. The conversion example input section 91b is provided with a text box for inputting a conversion example in association with each record. The button 91c is a button for instructing the execution of conversion of the data table 111a based on the conversion example.
[0143] The user inputs a conversion example of the corresponding record in one or more text boxes of the conversion example input section 91b. In the example of Fig. 21, conversion examples for the first and second records are input. Next, the user presses the button 91c.
[0144] When the button 91c is pressed, a conversion example list including the conversion examples input to the conversion example input section 91b is transmitted from the terminal device 30 to the server 100. In the server 100 that has received the conversion example list, the recipe generation section 130 generates a recipe based on the conversion examples.
[0145] Fig. 22 is a diagram showing an example of a recipe for Japanese conversion generated by the first recipe generation. Recipe 81 shown in Fig. 22 includes an operator for "deleting three characters from the beginning".
[0146] The operator shown in recipe 81 is a command to remove the first three characters from the character string in the first column (address) and return them to that column. The data conversion unit 140 executes the operator indicated in the recipe 81 for each record in the data table 111a, thereby performing a first conversion. Then, the conversion result output unit 150 generates screen data for a conversion result confirmation screen, and transmits the screen data to the terminal device 30. Then, the conversion result confirmation screen is displayed on the terminal device 30.
[0147] 23 is a diagram showing an example of a conversion result confirmation screen at the time of the first Japanese conversion. A conversion result confirmation screen 92 includes a data table display section 92a, a recipe display section 92b, and buttons 92c and 92d.
[0148] The data table display section 92a displays the values set in each field of the records registered in the data table generated by the first conversion. In the first conversion result, since there are no records for which the conversion results have been confirmed to be correct, the "Address" values of all records are not highlighted but are displayed in black, for example. The recipe display section 92b displays the name of the applied recipe 81. The button 92c is a button to be pressed if the conversion is successful. The button 92d is a button to be pressed if the conversion is unsuccessful.
[0149] The user checks the records shown in the data table display section 92a from the top to bottom to see if the conversion is as intended. In the example of Fig. 23, the user recognizes that the sixth record has been converted to a value different from the one intended. Therefore, the user presses the button 92d indicating that the conversion has failed.
[0150] When the button 92d is pressed, information indicating a failure of the conversion is transmitted from the terminal device 30 to the server 100. Then, the conversion example acquisition unit 120 of the server 100 generates screen data showing a conversion example input screen for inputting a second Japanese conversion example, and transmits the screen data to the terminal device 30. On the terminal device 30, the conversion example input screen for inputting a second Japanese conversion example is displayed.
[0151] 24 is a diagram showing an example of the second Japanese conversion example input screen. The conversion example input screen 93 for the second conversion example input includes a data table display section 93a, a conversion example input section 93b, and a button 93c. The data table display section 93a displays values set in each field of the records registered in the conversion source data table 111a.
[0152] The conversion example input section 93b is an area for inputting a conversion example. The conversion example input section 93b is provided with a text box for inputting a previous conversion result and a conversion example in association with each record. The button 93c is a button for instructing the execution of conversion of the data table 111a based on the conversion example.
[0153] The user additionally inputs a correct conversion example according to his / her intention into the text box in the conversion example input section 93b corresponding to the sixth record showing a value different from the intention as the previous conversion result, and then the user presses the button 93c.
[0154] When the button 93c is pressed, a conversion example list including the conversion examples input in the conversion example input section 93b is transmitted from the terminal device 30 to the server 100. In the server 100 that has received the conversion example list, the recipe generation section 130 generates a recipe based on the conversion examples.
[0155] Fig. 25 is a diagram showing an example of a recipe for Japanese conversion generated by the second recipe generation. Recipe 82 shown in Fig. 25 includes an operator for "deleting the character string up to 'ken'".
[0156] The operator shown in recipe 82 is a command to remove the character string in the first column (address) of data table 111a from the beginning up to (including) "Prefecture" and return it to that column. The data conversion unit 140 executes the operator shown in recipe 82 for each record in data table 111a, thereby performing a second conversion. Then, the conversion result output unit 150 generates screen data for a conversion result confirmation screen, and transmits the screen data to terminal device 30. The conversion result confirmation screen is then displayed on terminal device 30.
[0157] 26 is a diagram showing an example of a conversion result confirmation screen at the time of the second Japanese conversion. A conversion result confirmation screen 94 includes a data table display section 94a, a recipe display section 94b, and buttons 94c and 94d.
[0158] The data table display section 94a displays the values set in each field of the records registered in the data table generated by the second conversion. In the second conversion result confirmation screen 94, the characters in the "Address" column are displayed in different colors according to the conversion contents. For example, the address value of the confirmed record (excluding the record in which the conversion example is added this time) that has been converted to the same value as in the previous conversion is displayed in blue. Also, the address value of the confirmed record (excluding the record in which the conversion example is added this time) that has been converted to a value different from that in the previous conversion is displayed in red. For the record in which the conversion example is added this time, if the conversion result matches the conversion example, it is displayed in blue, and if it does not match, it is displayed in red. Other values are displayed in black. In the example of FIG. 26, the characters displayed in blue are displayed in bold and italic. Also, the characters displayed in red are displayed in bold with an underline.
[0159] The recipe display section 94b displays the name of the applied recipe 82. The button 94c is a button to be pressed when the conversion is successful. The button 94d is a button to be pressed when the conversion is unsuccessful.
[0160] The user can easily notice that the conversion result is incorrect because the address value of the record in the third row of the data table display portion 94a is displayed in red, and the user then presses the button 94d indicating that the conversion has failed.
[0161] When the button 94d is pressed, information indicating a failure of the conversion is transmitted from the terminal device 30 to the server 100. Then, the conversion example acquisition unit 120 of the server 100 generates screen data showing a conversion example input screen for inputting a conversion example for the third time, and transmits the screen data to the terminal device 30. On the terminal device 30, the conversion example input screen for inputting a conversion example for the third time is displayed.
[0162] 27 is a diagram showing an example of the third Japanese conversion example input screen. The conversion example input screen 95 for the third conversion example input includes a data table display section 95a, a conversion example input section 95b, and a button 95c. The data table display section 95a displays values set in each field of the records registered in the conversion source data table 111a.
[0163] The conversion example input section 95b is an area for inputting a conversion example. The conversion example input section 95b is provided with a text box for inputting a previous conversion result and a conversion example in association with each record. The button 95c is a button for instructing the execution of conversion of the data table 111a based on the conversion example.
[0164] The user additionally inputs a correct conversion example according to his / her intention into the text box in the conversion example input section 95b corresponding to the third record showing a value different from the intention as the previous conversion result, and then the user presses the button 95c.
[0165] When the button 95c is pressed, a conversion example list including the conversion examples input in the conversion example input section 95b is transmitted from the terminal device 30 to the server 100. In the server 100 that has received the conversion example list, the recipe generation section 130 generates a recipe based on the conversion examples.
[0166] Fig. 28 is a diagram showing an example of a recipe for Japanese conversion generated by the third recipe generation. Recipe 83 shown in Fig. 28 includes an operator for "deleting the prefecture character string".
[0167] The operator shown in recipe 83 is a command to remove the character string (including the characters for "to," "do," "fu," and "ken") from the first character of the character string in the first column (address) of data table 111a if the first character matches the name of a prefecture and return the character string to the column. With this operator, if the first four characters of the character string do not match the name of a prefecture, the value is returned as is to the first column.
[0168] Inside the operator (function) executed by recipe 83, a check is made to see if the character string (in the following example, "char") extracted from the front of the first column is included in the list (pref-list) of prefecture names (prefname). For example, the check is made by executing the following query: SELECT prefname FROM pref-list WHERE prefname = ”{char}” The data conversion unit 140 executes the operator indicated in the recipe 83 for each record in the data table 111a, thereby performing a third conversion. Then, the conversion result output unit 150 generates screen data for a conversion result confirmation screen, and transmits the screen data to the terminal device 30. Then, the conversion result confirmation screen is displayed on the terminal device 30.
[0169] 29 is a diagram showing an example of the conversion result confirmation screen at the time of the third Japanese conversion. The conversion result confirmation screen 96 includes a data table display section 96a, a recipe display section 96b, and buttons 96c and 96d.
[0170] The data table display section 96a displays the values set in each field of the records registered in the data table generated by the third conversion. On the third conversion result confirmation screen 96, the characters in the "Address" column are displayed in different colors according to the conversion content. For example, the address value of a record that has been confirmed by the user is displayed in blue. Other values are displayed in black. Note that in the example of FIG. 29, there are no confirmed records (excluding the record for which a conversion example has been added this time) that have been converted to a value different from the previous conversion, so there are no records for which the address value is displayed in red. In the example of FIG. 29, the characters displayed in blue are displayed in bold and italics.
[0171] The recipe display section 96b displays the name of the applied recipe 83. The button 96c is a button to be pressed when the conversion is successful. The button 96d is a button to be pressed when the conversion is unsuccessful.
[0172] The user checks the records shown in the data table display section 96a from the top to bottom to see if the conversion has been performed as intended. In the example of Fig. 29, all records have been converted as intended by the user. The user then presses the button 96c, which indicates success of the conversion.
[0173] When the button 96c is pressed, information indicating the success of the conversion is transmitted from the terminal device 30 to the server 100. Then, the conversion result output unit 150 of the server 100 stores in the storage unit 110 the data table generated by the third conversion.
[0174] In this way, the data table 111a in which Japanese characters are registered can be appropriately converted using the PBE technology. Moreover, if the value of a confirmed record in the data table generated in the process of improving the recipe is different from the previous time, it is highlighted, preventing the overlooking of erroneous conversion results.
[0175] Other embodiments In the second embodiment, examples of conversion of a data table in which English character strings are registered and a data table in which Japanese character strings are registered are shown, but the processing of the second embodiment can also be applied when converting a data table in which character strings in other languages are registered.
[0176] In the second embodiment, records for which a conversion example is specified are converted according to the conversion example, but even if a conversion example is specified for a record, there may be cases where the record cannot be converted according to the conversion example. The conversion result output unit 150 of the server 100 can also highlight the value of a record for which a conversion example is specified that is converted to a value different from the specified conversion example. This makes it possible to notify the user that the conversion was not made according to the conversion example when the value of a record for which a conversion example is specified is converted to a value different from the conversion example.
[0177] Although the embodiments have been described above, the configurations of the parts shown in the embodiments can be replaced with other parts having similar functions. Any other components or steps may be added. Furthermore, any two or more configurations (features) of the above-mentioned embodiments may be combined. [Explanation of symbols]
[0178] 1. Data 2,5 Conversion example list 3.6 Conversion Programs 4,7 Conversion result 8 Users 10 Data Processing Device 11 Storage section 12 Processing section
Claims
1. On the computer, Each time a conversion example is additionally input to a conversion example list showing conversion examples of values set in some of a plurality of records registered in tabular data, generating a conversion program for converting the values of the plurality of records in accordance with the conversion example shown in the conversion example list, converting the values of the plurality of records by executing the conversion program, and displaying the conversion result; determining whether or not each value of one or more second records whose display position in the conversion result display is higher than a first record to which a conversion example has been added in the additional input of a k+1th conversion example (k is a natural number) to the conversion example list has been changed from a second conversion result obtained by executing a second conversion program generated in accordance with a conversion example shown in the conversion example list after the k-th conversion example has been additionally input, in a first conversion result obtained by executing a first conversion program generated in accordance with a conversion example shown in the conversion example list after the k-th conversion example has been additionally input; When the value of the second record is changed, the changed value of the second record is highlighted in the display of the first conversion result. A data processing program that causes processing to be performed.
2. When there are a plurality of the first records, a record that is higher in display position than a lowest first record that is the lowest in display position among the plurality of the first records is set as the second record.
2. The data processing program according to claim 1.
3. excluding, from the targets of highlighting, a value of a first record that is located higher in a display position than the lowest first record and is also the second record among the plurality of first records; 3. The data processing program according to claim 2.
4. displaying a value of a record located lower than the first record in a first display mode, displaying a value of an unaltered second record of the second record, the value of which has not been changed in the first conversion result from the second conversion result, in a second display mode different from the first display mode, and displaying a value of a changed second record of the second record, the value of which has been changed in the first conversion result from the second conversion result, in a third display mode different from both the first display mode and the second display mode.
4. The data processing program according to claim 1.
5. The computer Each time a conversion example is additionally input to a conversion example list showing conversion examples of values set in some of a plurality of records registered in tabular data, generating a conversion program for converting the values of the plurality of records in accordance with the conversion example shown in the conversion example list, converting the values of the plurality of records by executing the conversion program, and displaying the conversion result; determining whether or not each value of one or more second records whose display position in the conversion result display is higher than a first record to which a conversion example has been added in the additional input of a k+1th conversion example (k is a natural number) to the conversion example list has been changed from a second conversion result obtained by executing a second conversion program generated in accordance with a conversion example shown in the conversion example list after the k-th conversion example has been additionally input, in a first conversion result obtained by executing a first conversion program generated in accordance with a conversion example shown in the conversion example list after the k-th conversion example has been additionally input; When the value of the second record is changed, the changed value of the second record is highlighted in the display of the first conversion result. Data processing methods.
6. A storage unit that stores tabular data in which a plurality of records are registered; a processing unit that, each time a conversion example is additionally inputted into a conversion example list that shows conversion examples of values set in some of the multiple records, generates a conversion program that converts values of the multiple records in accordance with the conversion example shown in the conversion example list, converts values of the multiple records by executing the conversion program, and displays a conversion result, and determines whether or not a value of each of one or more second records that is displayed higher in a conversion result display than a first record to which a conversion example has been added in the additional input of a k+1th conversion example (k is a natural number) to the conversion example list has been changed from a second conversion result obtained by executing a second conversion program generated in accordance with the conversion example shown in the conversion example list after the k-th conversion example has been added, in a first conversion result obtained by executing a first conversion program generated in accordance with the conversion example shown in the conversion example list after the k-th conversion example has been added, and when a value of the second record has been changed, highlights the changed value of the second record in the display of the first conversion result. A data processing device having:
Citation Information
Patent Citations
Device and method for data conversion and medium for recording data conversion program
JP1999053360A
Information processing method, information processor, and program
JP2008108144A
Automated table transformations from examples
US20120198322A1
Extensible data transformations
US20180107724A1
Example management for string transformation
US20180113922A1
