The present invention relates generally to submissions of technical data for application with machine-based question answering and, more particularly, to extraction and conversion of technical data from field oriented electronic data sources into natural language form.
Business analytics solutions mine through databases full of data looking for answers to business problems using data inputs that take various forms. A particular type of business analytics solution known as question-answering (QA) technology is a computer-based approach in which a computer application mines stored data in attempting to automatically answer questions.
A particular type of QA approach, known as DeepQA by IBM®, is a computer system that can directly and precisely answer natural language questions over an open and broad range of knowledge (IBM is a trademark of International Business Machines Corporation registered in many jurisdictions worldwide). DeepQA involves the integration and advancement of Natural Language Processing, Information Retrieval, Machine Learning, Knowledge Representation and Reasoning, and massively parallel computation to provide open-domain automatic question answering technology.
Natural language (or natural language form) is data that is arranged in sentences and paragraphs, e.g., similar to how paragraphs are arranged in a book, e.g., for human reading. Non-natural language form is data arranged in a form other than natural language form, and may comprise, for example, technical documents, information technology problem tickets, program defect reports, medical reports, software program test reports, database data, delimited data, etc. QA systems are adept at handling data sources that are in natural language form. However, when data sources are not natural language or are mixed sources including some natural language and some non-natural language sources, a QA system may be confused by the data and need specific programming for handling the non-natural language sources. This difficulty in handling non-natural language sources affects generic applicability of the QA approach.
A conventional technique for converting database data to natural language involves mail merge. Any particular mail merge solution, however, is disadvantageously constrained to supporting only a single database source, and to work only with pre-parsed data.
In a first aspect of the invention, a method is implemented in a computer infrastructure and includes obtaining document data from an input document, wherein the document data is in a non-natural language form. The method also includes determining a data type of the document data from one of a plurality of data types defined in a detection and conversion database. The method also includes translating the document data to a natural language form based on the determined data type. The method also includes outputting the translated document data in natural language form to an output data stream.
In another aspect of the invention, a system is implemented in hardware which includes a processor executing a translation engine that is operable to obtain document data from an input document, wherein the document data is in a form other than a natural language form. The engine is also operable to determine a data type of the document data from one of a plurality of data types defined in records in a detection and conversion database. The engine is also operable to translate the document data to natural language form based on the determined data type. The engine is also operable to output the translated document data in natural language form to an output data stream.
In an additional aspect of the invention, a computer program product includes a computer usable tangible storage medium having readable program code embodied in the tangible storage medium. The computer program product includes at least one component operable to: obtain plural portions of document data from an input document, wherein the plural portions of document data are in a non-natural language form. For each one of the plural portions of document data, the at least one component performs the steps of: determine a data type of the one of the plural portions of document data from one of a plurality of data types defined in records in a detection and conversion database; translate the one of the plural portions of document data to a natural language form based on the determined data type; and output the translated one of the plural portions of document data in natural language form to an output data stream.
In another aspect of the invention, there is a computer system for translating an input document to a natural language form. The system includes a CPU, a computer readable memory, and a computer readable storage media. The system also includes first program instructions to obtain document data from an input document, wherein the document data is in a form other than a natural language form. The system includes second program instructions to determine a data type of the document data from one of a plurality of data types defined in records in a detection and conversion database. The system includes third program instructions to translate the document data to natural language form based on the determined data type. The system also includes fourth program instructions to output the translated document data in natural language form to an output data stream. The system also includes fifth program instructions to apply a keyword translation to the document data before and after the translating the document data to natural language form. The first, second, third, fourth, and fifth program instructions are stored on the computer readable storage media for execution by the CPU via the computer readable memory. Each one of the records in the detection and conversion database is associated with a respective one of the plurality of data types. Each one of the records comprises data for comparing against the document data during the determining. Each one of the records further comprises at least one conversion rule applied to the document data during the translating.
In a further aspect of the invention, there is a method of deploying a system for translating documents to natural language form. The method includes providing a computer infrastructure operable to: obtain document data from an input document, wherein the document data is in a non-natural language form; determine a data type of the document data from one of a plurality of data types defined in a detection and conversion database; translate the document data to a natural language form based on the determined data type; and output the translated document data in natural language form to an output data stream.
The present invention is described in the detailed description which follows, in reference to the noted plurality of drawings by way of non-limiting examples of exemplary embodiments of the present invention.
The present invention relates generally to submissions of technical data for application by machine-based question answering and, more particularly, to extraction and conversion of technical data from field oriented electronic data sources into natural language. In embodiments, a document containing non-natural language data is received as input (e.g., an input data stream) and is translated to natural language form. The input document may contain any type of free form and/or plain text information, such as, for example, technical documents, information technology problem tickets, program defect reports, medical reports, software program test reports, database data, etc. The result of the translation is one or more output documents in a natural language form which may be provided with entries identifying dates and times associated with particular elements and signatures of the original document.
In embodiments, the input document is parsed to determine types of information contained in the document. Different types of information are translated to natural language form using different conversion schemes, e.g., particular rules, patterns, constructs, etc., that are most suitable to the particular information type. The translation produces a viable natural language output document that is consumable for learning by a natural language engine. Implementations of the invention may be used as a front end to natural language learning engines, such as question-answering systems, for processing large quantities of parsed data in any order of arrival. Advantageously, embodiments of the invention may be implemented with a single translation database that is constructed to support translations of plural different document types presented in any order. In this manner, implementations of the invention may be used to provide question-answering (QA) systems with data in natural language form.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.
Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM),an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
Aspects of the present invention are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
The computing device 14 includes a processor 20, memory 22A, an I/O interface 24, and a bus 26. The memory 22A can include local memory employed during actual execution of program code, bulk storage, and cache memories which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution. In addition, the computing device includes random access memory (RAM), a read-only memory (ROM), and an operating system (O/S).
The computing device 14 is in communication with the external I/O device/resource 28 and the storage system 22B. For example, the I/O device 28 can comprise any device that enables an individual to interact with the computing device 14 (e.g., user interface) or any device that enables the computing device 14 to communicate with one or more other computing devices using any type of communications link. The external I/O device/resource 28 may be, for example, a handheld device, PDA, handset, keyboard, etc.
In general, the processor 20 executes computer program code (e.g., program control 44), which can be stored in the memory 22A and/or storage system 22B. Moreover, in accordance with aspects of the invention, the program control 44 controls a translation engine 55 that performs one or more of the processes described herein. In embodiments, the translation engine 55 operates to: receive data from an input document 100 that is in non-natural language form; determine a respective information type for respective portions of data contained within the input document; apply particular conversions to the portions of data based on the determined information type to translate the portions to natural language form; and output a new document 125 in natural language form.
Still referring to
While executing the computer program code, the processor 20 can read and/or write data to/from memory 22A, storage system 22B, and/or I/O interface 24. The program code executes the processes of the invention. The bus 26 provides a communications link between each of the components in the computing device 14.
The computing device 14 can comprise any general purpose computing article of manufacture capable of executing computer program code installed thereon (e.g., a personal computer, server, etc.). However, it is understood that the computing device 14 is only representative of various possible equivalent-computing devices that may perform the processes described herein. To this extent, in embodiments, the functionality provided by the computing device 14 can be implemented by a computing article of manufacture that includes any combination of general and/or specific purpose hardware and/or computer program code. In each embodiment, the program code and hardware can be created using standard programming and engineering techniques, respectively.
Similarly, the computing infrastructure 12 is only illustrative of various types of computer infrastructures for implementing the invention. For example, in embodiments, the computing infrastructure 12 comprises two or more computing devices (e.g., a server cluster) that communicate over any type of communications link, such as a network, a shared memory, or the like, to perform the process described herein. Further, while performing the processes described herein, one or more computing devices on the computing infrastructure 12 can communicate with one or more other computing devices external to the computing infrastructure 12 using any type of communications link. The communications link can comprise any combination of wired and/or wireless links; any combination of one or more types of networks (e.g., the Internet, a wide area network, a local area network, a virtual private network, etc.); and/or utilize any combination of transmission techniques and protocols.
The flowcharts and block diagrams in the FIGS. illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Furthermore, the invention can take the form of a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. The software and/or computer program product can be implemented in the environment of
In embodiments, document header data 101 describes a section of the document 100 containing information such as a form type, document title, and other identifying information. Document field data 102 describes a section of the document 100 containing unique information about the document. The document field data 102 is associated with the contents of the document 100, as opposed to the document header data 101 which is associated with the header of the document 100.
There are multiple techniques to assess the difference between a document header and other elements of the document field in accordance with aspects of the invention. One technique is to establish an arbitrary point within the document 100 that differentiates between header and field data. Another technique is to detect information associated with the header, such as the document title, the type of the form, ownership, and other information that could be described as properties related to a document header. Another technique is to detect an ‘end of header’ marker, e.g., some particular information that is the last object contained in a document header.
In accordance with aspects of the invention, field data (e.g., database field data) may be associated with document header data 101 or document field data 102. Such field data may include at least two elements in which the first element is a name of the field and the second element is the data contained in the field. Field data contained in document 100 may additionally contain control information (e.g., delimiters) to identify the beginning of the name of the field, separate the field from the data it contains, and the end of the field data. If no such information exists, the data may be identified by the content types described in a detection/conversion database as described in greater detail herein.
Still referring to
Table detail data 104 is a section of the input document 100 containing the rows of table data. The table detail data 104 (also referred to herein as table field data) may comprise, for example, data delimited by one or more delimiters. The table detail data 104 may alternatively comprise columns of uniquely aligned data. In embodiments, the table detail data 104 is delimited and/or spaced apart in the same manner as the table header data 103.
The signature data 105 is a portion of the document 100 which comprises data within the document 100 such as an electronic signature or other type of signature. The signature data 105 may comprise, for example, a date, time, name (e.g., author of the document), and any other identifying data.
The natural text 106 of the input document 100 comprises text in natural language form, e.g., sentences arranged in paragraphs. Such data may or may not be translated at later steps of the process, and may be simply passed through to the output document. In this manner, implementations of the invention are useful for translating input documents 100 that are either completely composed of non-natural language, as well as input documents 100 that include a mixture of non-natural language and natural language data.
Input stream 108 comprises a stream of data generated from the input document 100 that is provided to the translation engine (e.g., translation engine 55 from
At step 109, the translation engine (e.g., translation engine 55) reads data from the input stream 108 for analysis. The data read in step 109 may be stored in an input data buffer (e.g., a memory, which may be included in memory 22A and/or storage system 22B of FIG. 1) for access by the translation engine during later steps. The entire input document 100 or, alternatively, a smaller portion of the input document 100 may be read and saved into the input data buffer at step 109.
In embodiments, when the entire document 100 is not read into the input data buffer at step 109, then at step 109′ the translation engine performs a preliminary query to a detection/conversion database 114. The preliminary query is made in order to determine a minimum amount of data for reading into the buffer at step 109 in order to successfully identify data types at later steps. At least one of the translation engine and the detection/conversion database 114 is provided with programming for determining how much document data is required for making a successful determination of data type prior to data translation to natural language form. In embodiments, when data is determined to have been partially parsed compared to what was read into the input data buffer, then the input data buffer continues to exist at an end loop such that more data may be appended to the input data buffer upon determination that more data needed the input data stream 108. When it is determined that insufficient data has been read at step 109, then more data is read from input stream 108 and added to the data stored in the input data buffer at step 109.
At step 110, the translation engine translates keywords, acronyms, and/or foreign language words contained in the data read at step 109. In embodiments, the translation engine compares words, phrases, and/or acronyms in the document data (e.g., data read at step 109) to entries contained in a keyword translation database 111. For any matching entries, the translation engine substitutes a word, phrase, and/or acronym in the data with a replacement word or phrase defined by the keyword translation database 111. In accordance with aspects of the invention, the keyword translation database 111 contains keyword, acronym, and/or foreign language translation records. Each record may comprise two elements: the first element containing a pattern to match in order to identify the data of interest, and the second element containing an output rule (e.g., replacement text) to generate a natural language output corresponding to the data being replaced.
At step 112, the translation engine (e.g., translation engine 55) determines a data type of the portion of document data contained in the input data buffer from step 109. At step 113, the translation engine translates the document data to a natural language form. In embodiments, steps 112 and 113 both involve the translation engine interacting with the detection/conversion database 114, which comprises: (i) detection data used in identifying different types of data, and (ii) translation data (e.g., rules, patterns, constructs, etc.) used in translating an identified data type into natural language form.
For example, at step 112, the translation engine uses document data retrieved from the input stream 108 and stored in the input data buffer at step 109 to perform a query of the detection/conversion database 114. In embodiments, the translation engine determines a data type corresponding to the document data in the input data buffer by comparing the document data in the input data buffer to views of the detection/conversion database 114. When a data type is determined, the appropriate conversion information records from the detection/conversion database 114 are marked for use in subsequent translation of the document data, as described in greater detail below with respect to
Subsequently, at step 113, the translation engine applies translation data obtained from the detection/conversion database 114 to the document data to translate the document data to natural language form. The detection/conversion database 114 comprises plural different translation data corresponding to plural different data types, and the particular translation data used for a particular portion of document data is based on the determination of data type from step 112. Step 113 is described in greater detail below in
In accordance with aspects of the invention, the detection/conversion database 114 contains data records that are used in steps 112 and 113 for identifying data types and translating the document data to a natural language form. In embodiments, each data record comprises first, second, and third elements. The first element defines the possible sections of the document in which a particular data type (e.g., data types 101-106) can be found. The first element can select multiple document sections at once so that the same conversion entry can be written for the same data when it exists in multiple sections of the input document 100.
The second element in each data record in the detection/conversion database 114 contains data, rules, and/or logic defining how to detect a match between one of the predefined data types (e.g., types 101-106) and a particular portion of data from the input document 100, e.g., a particular portion of the data saved in the buffer at step 109. For example, the second element may contain data, rules, and/or logic for calculating respective confidence levels that the particular portion of data from the input document 100 corresponds to respective ones of the predefined data types (e.g., types 101-106). The second element may additionally contain pattern matches including rules to determine partial matches. The second element may additionally contain rules to associate the element with a particular previously identified data type thus allowing data conversion to be context sensitive.
The third element in each data record in the detection/conversion database 114 contains conversion rules. In embodiments, the conversion rules are used at step 113 to translate the particular portion of data from the input document 100 to natural language form once the particular portion of data has been matched with one of the predefined data types (e.g., types 101-106). The conversion rules may contain both input rules as well as output rules. In embodiments, an input rule defines finding the data of interest and an associated output rule defines how to present that data in natural language form in a resultant output.
After translating the document data to natural language form at step 113, the translation engine optionally performs a second keyword translation at step 118. The translation at step 118 may be performed in the same manner as the translation at step 110. In embodiments, the second keyword translation, e.g., at step 118, is performed to replace any keywords, acronyms, foreign language words, etc., that are inserted into the document data during the translation at step 113.
Following the translation step 113 and the optional keyword translation step 118, the translation engine checks whether the end of document 100 has been reached at step 119 and concurrently places the translated data onto an output data stream 120. The determination of whether the end of the document 100 has been reached may be performed in a conventional data processing manner, e.g., by determining whether an end-of-document tag or identifier had been reached during the data reading step at 109. When the end of document 100 has not been reached, then the process returns to step 109 for reading more document data from the input stream 108. On the other hand, when the end of document has been reached, the process ends.
In accordance with aspects of the invention, the output data stream 120 comprises a stream of data in natural language form. More specifically, the output data stream 120 comprises a stream of data that has been translated from the input document 100 to a natural language form. In embodiments, the output data stream 120 may be saved as a natural language document 125 and/or provided to a question-answering system 130. In embodiments, the question-answering system 130 may comprise a DeepQA system by IBM®.
At step 201, the translation engine determines whether the data 200 is in a header area. In embodiments, the translation engine is programmed with logic to identify when the data 200 is in the header section of the document based on, for example: the position of the data 200 within the entire input stream (e.g., input stream 108), e.g., at the beginning of the input stream; whether a field or indicator within the input data stream has been passed, which may be stored as a flag in the structural header part of the input data buffer; whether a particular table has been encountered in the document header; and/or when an existing header indicator flag (described in greater detail below) is set to indicate that the header has already been identified and processed.
When it is determined at step 201 that the data 200 is in the header area, then at step 202 a header indicator flag is set to ‘true’. The value of the header flag is used at step 235, as described in greater detail below.
On the other hand, when it is determined at step 201 that the data 200 is not in the header area, then at step 205 the translation engine determines whether the data 200 is table data. In embodiments, the translation engine uses programmed parsing techniques to identify whether a table is beginning or continuing at the point in the document corresponding to the data 200. The information relating to the table may be stored, for example, in structural data associated with the input data buffer. Table data in the document may exist in many different forms, and the translation engine is programmed with logic to parse the data for identifying the different forms. For example, a first form of table is equally spaced columns with one or more lines of header data at the top. A second exemplary form of table comprises a delimited field set such as where a first header row may be provided at the top while table data exists using the same delimiters below the first header row. Another exemplary form of table is delimited fields with the field names preceding the table data. A different delimiter may be used between the field name and the table field data from the delimiter used to separate the individual fields. Also, a delimiter may be used around the table data, and optionally around the field names to separate the field names from co-existing text of table data. In embodiments, the translation engine is programmed to recognize these forms, and other forms, of tables for making the determination at step 205.
When it is determined at step 205 that the data 200 is table data, then the translation engine queries the database 114 to obtain table header parse data 210, which is used to determine which output translation to apply to the data 200 at the translation step (e.g., step 113 from
In embodiments, the translation engine is programmed to handle multiple line headings when comparing table header data. For example, the data in the database 114 that is used to match table headers may be entered with full column headers in a single string. In this case, the translation engine reconstructs potential column headers of the data 200 into full column headers in a single string for comparing to the table header parse data 210. This function also permits the translation engine to store an indication of whether the header has already been parsed, e.g., to determine whether the table data is table header data (e.g., column data) or table row data.
For purposes of the translation engine querying data from database 114, this function may be programmed to return table header parse data 210 containing different forms of table data in ranked order. In this manner, multiple matching records may exist in the database 114, including across section types such as the header, table data, field data, signature data, etc. In embodiments, the translation engine may compare the rankings to determine which form of table has the highest likelihood of being the correct selection for the data 200, e.g., in a manner similar to ranked search results provided by Internet search engines. Additionally, table header data and table field data may be compared to designate whether an indication of table data overrides the rankings, e.g., giving table data a higher ranking for cases when a clear match was identified.
At step 215, when the data 200 is determined to be table header data, then at step 220 the translation engine saves an indicator designating the data 200 as table header data (e.g., table header data 103 from
Referring back to step 205, when it is determined that the data 200 is not table data, at step 235 the translation engine selects a parsing source from header parse data 240 and field parse data 245. In embodiments, the header parse data 240 and field parse data 245 are views of the database 114 in a manner similar to table header parse data 210. The translation engine makes the determination at step 235 based on the value of the header indicator 202. For example, when the header indicator 202 is ‘true’ then at step 235 the translation engine selects the header parse data 240. On the other hand, when the header indicator 202 is ‘false’ then at step 235 the translation engine selects the field parse data 245.
At step 250, the translation engine determines whether the data 200 is field data. In embodiments, the translation engine is programmed to compare the data 200 to the parse data selected at step 235 (e.g., either header parse data 240 or field parse data 245) to determine whether the data 200 is provided as part of a field (e.g., document field data 102 from
When the data 200 is determined as field data at step 250, then at step 255 the translation engine determines whether the data 200 is also document header data (e.g., document header data 101 from
Referring back to step 250, when the data 200 is determined not to be field data, then at step 270 the translation engine determines whether the data 200 is signature data. In embodiments, the translation engine queries the database 114 for signature parse data 280, which comprises views of the database 114 in a manner similar to table header parse data 210. The translation engine is programmed to compare the data 200 to the signature parse data 280 to determine whether the data 200 is provided as part of a signature (e.g., signature entry data 105 from
When the data 200 is determined to be document signature data at step 270, then at step 285 the translation engine saves an indicator designating the data 200 as document signature data (e.g., signature entry data 105 from
Thus, as depicted and described with respect with
In additional embodiments, following the designation at one of steps 220, 225, 260, 265, 285, and 290, the translation engine saves document metadata 295 to appropriate views of the database 114, e.g., table header parse data 210, header parse data 240, field parse data 245, and signature parse data 280. The document metadata 295 describes, for example, the document title, date, and any other identifying information about the input document 100. In embodiments, the document metadata 295 is input to the various views of the database 114 for use in later comparisons of other data, e.g., to qualify the output data of those views for more concise data type selections based on document type and other metadata.
At step 301, the translation engine identifies and stores conversion data variables found from the database 114 and the return data 230. In embodiments, the translation engine identifies the conversion data variables by analyzing the return data 230 and database 114 indicating the data type associated with the return data 230, e.g., as previously determined at step 112. The translation engine stores the conversion data variables in a conversion data buffer 305 as an internal table during the conversion (e.g., translation) process. In embodiments, the table contains the identity of the conversion data variables, an ordinal count to indicate which element of a sequential construct to which it belongs, a value of the conversion data variable, and an identity of the detection record from the database 114 in which the conversion data variable was found, e.g., so that matching translation maps (described herein) may be used in the conversion process.
In embodiments, the engine may process plural portions of return data 230 at the same time. Accordingly, step 301 may comprise, where applicable for tables and other repetitive data types, storing an order of the conversion data variables in conjunction with the conversion data variables to preserve order integrity of the stream of return data 230.
At step 310, the translation engine determines whether a translation map exists for the return data 230. In embodiments, the translation engine examines the return data 230 and record from the database 114 to determine if a translation map exists for the data, e.g., determining whether the database 114 contains rules and/or logic for translating the data type of the return data 230 to natural language form.
When it is determined that a translation map exists, at step 315 the translation engine inserts conversion data into the existing translation map. In embodiments, the translation engine scans the conversion data buffer 305 for saved conversion data variables (e.g., saved at step 301) containing the conversion variable name that matches an existing a translation map. When a match is found, the translation engine inserts the conversion data variables into the translation map data structure 320 at the appropriate location as defined by the order of the conversion data variables.
In embodiments, the translation map data structure 320 is a comprehensive data structure containing respective translation rules and/or logic that have been identified as corresponding to the return data 230 based on the determined type of return data 230. The translation map data structure 320 may also contain an identifier linking a particular translation rule with a portion of the return data 230 to be converted using the particular translation rule, e.g., as defined in conversion data buffer 305. As such, the translation map data structure 320 is the data structure used to convert the return data 230 to natural language form by applying respective translation rules and/or logic to respective portions of the return data 230.
Referring back to step 310, when a translation map does not exist for a portion of return data 230, then at step 325 the translation engine creates a new translation map associated with this portion of return data 230 and appends the new translation map to the existing translation map data structure 320. A translation map may not exist for a portion of the return data 230, for example, when the data type could not be determined to a minimum confidence level at step 112 (e.g., described with respect to
At step 330, the translation engine writes the completed translation maps to an output. For example, the engine may write the completed translation maps directly to the output stream 120. Optionally, as described above, a second keyword translation step 118 may be applied to the output of step 330. In accordance with aspects of the invention, the data written to the output at step 330 is the document data translated to natural language form.
In embodiments, the translation engine writes the data to the output stream 120 in the same order as the data is arranged in the input document (e.g., input document 100). For example, the conversion data buffer 305 and the translation map data structure 320 are arranged to hold plural portions of data in order according to the input document, and the translation engine writes the plural portions of data to the output stream 120 when all of the plural portions of data are translated. In particular, the conversion data buffer 305 and the translation map data structure 320 hold the data such that it is flushed to the output stream in the order received, thus preserving the order of table data. Additionally, table data is parsed (e.g., at step 203 from
In accordance with aspects of the invention, the translation engine is configured such that writing to the output stream 120 ends when an incomplete translation map entry is found. In embodiments, incomplete entries are those whose variables are not all assigned from the conversion data buffer 305. Upon completion of the entire document translation process, those maps which are incomplete are written to the output stream 120 with associated error messages describing the missing elements.
In embodiments, Section Type 401 is an ordinal set entry describing the sections of the input document (e.g., input document 110) to which this particular record applies. Detection Group 402 is an ordinal entry naming a group to which this detection/conversion record belongs. In embodiments, only those items with the same detection group are converted as a group of entries together. Also, the detection group may be used to indicate specific articulated information such as the name of a document or other uniquely identifying information.
Pattern Match 403 describes how to detect a particular data type in the input document. In embodiments, this record is a combination of expressions that describe specific words, strings, numbers, and/or other data types found within a data string. This record may also describes an order of the data, potential lengths of data types, including ranges of lengths, or sets of data, such as may be described by a regular expression.
Variable Pattern 404 describes how to detect variables in the data of this data type. Implementations of the invention may provide for a combined pattern detection as well as variable detection mechanism. In embodiments, the same pattern matching scheme may be assigned to either elements or the same element of the record.
Variable List 405 defines names applied to the elements such that the data of interest can be extracted and stored in the conversion data buffer (e.g., conversion data buffer 305). Translation Map 406 describes variables for a group that must exist for the translation map may be written to output, as well as the formatting of those variables and the natural language to be used in describing the output. In embodiments, Translation Map 106 is an optional section, e.g., it may be null. In further embodiments, at least one translation map exists for each Detection Group 402 that is defined in the database 114.
The methods and system described herein may be used to convert multiple different types of input documents (e.g., input document 100) to natural language form using a single database (e.g., database 114). Additionally, methods and systems of the invention do not require specifically positioned field data within the input document, since the translation engine (e.g., translation engine 55) may use expressions to find data within the document. Furthermore, methods and systems in accordance with aspects of the invention provide the ability to collect metadata that is useful in narrowing and improving the precisions of the search for data in the database. Even further, the methods and system described herein have provide the ability to convert table data in order of storage in the table, as well as handling plural different formats of tables without user intervention.
In embodiments, a service provider, such as a Solution Integrator, could offer to perform the processes described herein. In this case, the service provider can create, maintain, deploy, support, etc., the computer infrastructure that performs the process steps of the invention for one or more customers. These customers may be, for example, any business that uses technology. In return, the service provider can receive payment from the customer(s) under a subscription and/or fee agreement and/or the service provider can receive payment from the sale of advertising content to one or more third parties.
The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims, if applicable, are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. Accordingly, while the invention has been described in terms of embodiments, those of skill in the art will recognize that the invention can be practiced with modifications and in the spirit and scope of the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
4610025 | Blum et al. | Sep 1986 | A |
4776011 | Busby | Oct 1988 | A |
5237502 | White et al. | Aug 1993 | A |
5572670 | Puckett | Nov 1996 | A |
5594658 | Lemaire et al. | Jan 1997 | A |
5689565 | Spies et al. | Nov 1997 | A |
5737442 | Alam | Apr 1998 | A |
5787172 | Arnold | Jul 1998 | A |
5895466 | Goldberg et al. | Apr 1999 | A |
5924089 | Mocek et al. | Jul 1999 | A |
5951623 | Reynar et al. | Sep 1999 | A |
6011849 | Orrin | Jan 2000 | A |
6088692 | Driscoll | Jul 2000 | A |
6111953 | Walker et al. | Aug 2000 | A |
6198885 | Budnik et al. | Mar 2001 | B1 |
6266094 | Taylor, Jr. | Jul 2001 | B1 |
6314425 | Serbinis et al. | Nov 2001 | B1 |
6741705 | Nelson et al. | May 2004 | B1 |
6741851 | Lee et al. | May 2004 | B1 |
6931532 | Davis et al. | Aug 2005 | B1 |
6970561 | Obana | Nov 2005 | B1 |
7010681 | Fletcher et al. | Mar 2006 | B1 |
7580521 | Spies et al. | Aug 2009 | B1 |
7680649 | Park | Mar 2010 | B2 |
7707027 | Balchandran et al. | Apr 2010 | B2 |
7814127 | Dettinger et al. | Oct 2010 | B2 |
7870485 | Seliutin et al. | Jan 2011 | B2 |
7953155 | Schwartz | May 2011 | B2 |
8200247 | Starenky et al. | Jun 2012 | B1 |
8694646 | Kothari et al. | Apr 2014 | B1 |
8731943 | Ruetz et al. | May 2014 | B2 |
9069992 | Vaikar et al. | Jun 2015 | B1 |
20010034015 | Raichur et al. | Oct 2001 | A1 |
20020073310 | Benantar | Jun 2002 | A1 |
20020169670 | Barsade et al. | Nov 2002 | A1 |
20020188845 | Henderson et al. | Dec 2002 | A1 |
20030041253 | Matsui et al. | Feb 2003 | A1 |
20030059040 | Rose et al. | Mar 2003 | A1 |
20030110076 | Holt | Jun 2003 | A1 |
20030149686 | Drissi et al. | Aug 2003 | A1 |
20030177378 | Wittkotter | Sep 2003 | A1 |
20030191719 | Ginter et al. | Oct 2003 | A1 |
20030191935 | Ferguson | Oct 2003 | A1 |
20030223455 | Rashdan | Dec 2003 | A1 |
20040101142 | Nasypny | May 2004 | A1 |
20040103202 | Hildebrand et al. | May 2004 | A1 |
20040161106 | Matsuda et al. | Aug 2004 | A1 |
20040210640 | Chadwick et al. | Oct 2004 | A1 |
20040210837 | Black et al. | Oct 2004 | A1 |
20050147251 | Wada et al. | Jul 2005 | A1 |
20050177562 | Raciborski | Aug 2005 | A1 |
20050235163 | Forlenza et al. | Oct 2005 | A1 |
20050249375 | Seo et al. | Nov 2005 | A1 |
20060020550 | Fields et al. | Jan 2006 | A1 |
20060112265 | Huynh et al. | May 2006 | A1 |
20060153374 | Shahindoust et al. | Jul 2006 | A1 |
20070050880 | Weisman et al. | Mar 2007 | A1 |
20070086587 | Farahat et al. | Apr 2007 | A1 |
20070118884 | Ozaki et al. | May 2007 | A1 |
20070258584 | Brown et al. | Nov 2007 | A1 |
20070283446 | Yami et al. | Dec 2007 | A1 |
20080028293 | Silutin et al. | Jan 2008 | A1 |
20090006432 | Bossong-Iselborn | Jan 2009 | A1 |
20090313209 | Lu et al. | Dec 2009 | A1 |
20100017350 | Kar et al. | Jan 2010 | A1 |
20100031240 | Drumm et al. | Feb 2010 | A1 |
20100042572 | Al-Beik et al. | Feb 2010 | A1 |
20100169303 | Biderman et al. | Jul 2010 | A1 |
20100241869 | Iyer et al. | Sep 2010 | A1 |
20100287001 | Pearce et al. | Nov 2010 | A1 |
20100299139 | Ferrucci et al. | Nov 2010 | A1 |
20110010349 | Ellingson et al. | Jan 2011 | A1 |
20110038531 | Arasu et al. | Feb 2011 | A1 |
20110126042 | Dhuse | May 2011 | A1 |
20120192151 | Parkes et al. | Jul 2012 | A1 |
Number | Date | Country | |
---|---|---|---|
20130185050 A1 | Jul 2013 | US |