The present application relates generally to data processing, and more specifically to unsupervised learning techniques for generating a knowledge graph from a document.
Natural language processing (NLP) is a field of computer science, artificial intelligence, and linguistics concerned with the interactions between computers and human (natural) languages. As such, NLP is often involved with natural language understanding, i.e., enabling computers to derive meaning from human or natural language input, and natural language generation.
NLP mechanisms generally perform one or more types of lexical or dependency parsing analysis including morphological analysis, syntactical analysis or parsing, semantic analysis, pragmatic analysis, or other types of analysis directed to understanding textual content. In morphological analysis, the NLP mechanisms analyze individual words and punctuation to determine the part of speech associated with the words. In syntactical analysis or parsing, the NLP mechanisms determine the sentence constituents and the hierarchical sentence structure using word order, number agreement, case agreement, and/or grammars. In semantic analysis, the NLP mechanisms determine the meaning of the sentence from extracted clues within the textual content. With many sentences being ambiguous, the NLP mechanisms may look to the specific actions being performed on specific objects within the textual content. Finally, in pragmatic analysis, the NLP mechanisms determine an actual meaning and intention in a given context (e.g., in the context of the speaker, in the context of the of previous sentence, etc.). These are only some aspects of NLP mechanisms. Many different types of NLP mechanisms exist that perform various types of analysis to attempt to convert natural language input into a machine understandable set of data.
Modern NLP algorithms are based on machine learning, especially statistical machine learning. The paradigm of machine learning is different from that of most prior attempts at language processing in that prior implementations of language-processing tasks typically involved the direct hand coding of large sets of rules, whereas the machine-learning paradigm calls instead for using general learning algorithms (often, although not always, grounded in statistical inference) to automatically learn such rules through the analysis of large corpora of typical real-world examples. A corpus (plural, “corpora”) is a set of documents (or sometimes, individual sentences) that have been hand-annotated with the correct values to be learned.
Embodiments of the present disclosure provide a method, system and computer-readable storage medium for generating a knowledge graph (also referred to herein as a concept graph). The method, system and computer-readable storage medium include receiving a first document. Additionally, the method, system and computer-readable storage medium include categorizing each of a plurality of portions of the first document as one of i) an introduction section and ii) a theory section, according to a Rhetorical Structure Theory (“RST”) scheme. The method, system and computer-readable storage medium also include determining a first glossary of terms for the first document. The method, system and computer-readable storage medium further include generating the knowledge graph containing a first plurality of nodes, where each of the first plurality of nodes corresponds to a respective term from the first glossary of terms, and where a first edge between a first node corresponding to a first term and a second node corresponding to a second term is created based on determining that the first term appears within at least one introduction section and that the first term and the second term appear together within at least one theory section. One embodiment also includes having the generated knowledge graph facilitate an automatic generation of subject matter based on proficiency level in a computer-based learning environment.
Various embodiments described herein provide systems and techniques for creating a learning graph to enable a knowledge presentation system. At a high level, as represented in
Computer system/server 12′ may be configured with computer system-executable instructions, such as program modules, that are executable by the computer system 12′. Generally, program modules may include routines, programs, objects, components, logic, data structures, and so on that perform particular tasks or implement particular abstract data types. Computer system/server 12′ may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
As shown, the system 12′ includes at least one processor or processing unit 16′, a system memory 28′, and a bus 18′ that couples various system components including system memory 28′ to processor 16′.
Bus 18′ represents at least one of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnects (PCI) bus.
Computer system/server 12′ typically includes a variety of computer system readable media. Such media may be any available media that are accessible by computer system/server 12′, and include both volatile and non-volatile media, removable and non-removable media.
System memory 28′ can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30′ and/or cache memory 32′. Computer system/server 12′ may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 34′ can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a “hard drive”). Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “floppy disk”), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each can be connected to bus 18′ by at least one data media interface. As will be further depicted and described below, memory 28′ may include at least one program product having a set (e. at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Computer system/server 12′ may also communicate with at least one external device 14′ such as a keyboard, a pointing device, a display 24′, etc.; at least one device that enables a user to interact with computer system/server 12; and/or any devices (e.g., network card, modem, etc.) that enable computer system/server 12′ to communicate with at least one other computing device. Such communication can occur via I/O interfaces 22′. Still yet, computer system/server 12′ can communicate with at least one network such as a local area network (LAN), a general wide area network (WAN), and/or a public network (e.g., the Internet) via network adapter 20′. As depicted, network adapter 20′ communicates with the other components of computer system/server 12′ via bus 18′. It should be understood that although not shown, other hardware and/or software components could be used in conjunction with computer system/server 12′. Examples include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
The system memory 28′ can include a learning graph generation component 80′, which in turn includes a natural language processing (NLP) component 85′ and a node graph generation component 89′. The natural language processing component 85′ includes a text processing component 86′, a text parsing component 87′, and an RST characterization component 88′. It should be noted that the components of the learning graph generation component 80′ can be consolidated into a single or multiple components, provided that the specific functionalities with respect to the component 80′, as described below, are configured accordingly.
Referring to
In one embodiment, the RST characterization component 88′ identifies, from a pre-supplied set of terms supplied by a user and located in memory 28′ or provided by the NLP 85′ using automated operations, such as key-phrase extraction, a plurality of glossary terms that stem from the introduction zones. A term can be identified as a term of interest by a user of the cloud computing node 10′ or the RST characterization component 88′ can identify a term as a relevant introduction term by i) detecting a discussion of the term in a subsequent portion of the incoming text, such as a theory zone, or ii) by detecting some other subject/object relationship that indicates that another portion of text depends on the term. Moreover, theory zones can form the basis for forming a link between introductory zones as discussed below.
In one embodiment, the RST characterization component 88′ labels each line of text and classifies each line as part of an introduction zone or a theory zone. The RST characterization component 88′ can also identify a particular term in an introduction zone as an introductory term, and it can also determine when one introductory term depends on or relates to another introductory term. The RST characterization component 88′ can identify a line in a block of text, i.e. 100110120, as an introductory zone or part of an introduction zone using any one of the following techniques i) automatically identifying a first line or sentence of a block of text, i.e. 100110120, as an introductory zone, ii) identifying a hypotactic relationship, such as a subject/object relationship, in a particular line, and then identifying that term of that hypotactic relationship, i.e. subject, discussed subsequently in another line of text, and/or iii) a line having a paratactic, i.e. coordinating, relationship between a line that meets conditions i) and/or ii), i.e. the subject of a first sentence of a block of text is used in a subsequent sentence to introduce or explain the subject of that subsequent sentence. The RST characterization component 88′ identifies an introductory term or glossary term as such if the term is a subject of an introductory zone and subsequently discussed in a theory zone. In one embodiment, The RST characterization component will further stipulate that the introductory terms or glossary terms are selected from a set of pre-defined terms provided by a user or system, in addition to meeting one of the preceding conditions. Finally, the RST characterization component 88′ identifies a line of text in a block of text, i.e. 100110120, as being a theory zone or part of a theory zone when that line i) discusses one or more introductory terms or glossary terms and/or ii) is a coordinating or paratactic relationship with an introductory zone sentence, i.e. the RST characterization component 88′ further develops a subject previously discussed in an introduction zone.
For example,
According to an embodiment, as depicted in
One implementation of at least one embodiment of the present disclosure by a system, such as an automated tutor, for assisting a user develop proficiency is described herein and below. A plurality of nodes generated by the node graph generation component 89′ pursuant to the RST categorization scheme of the RST categorization component 88′ can be a skill or term associated with a subject that a student or user has difficulty mastering or comprehending. The nodes themselves may have data embedded therein not only related to an RST scheme, but related to comprehension difficulty score, proficiency requirement, prerequisite skill, proficiency requirement for the prerequisite skill, and other such information. In one embodiment, determining the skill requirement may include identifying at least one term or skill as a prerequisite for the target.
According to an embodiment, the node graph generation component 89′ may communicate with the optionally include learning module 81′ depicted in
In one embodiment, the learning module 81′ may calculate a gap between the student or user proficiency and the target knowledge node based upon the identified knowledge path. The learning module can calculate this gap by associating a known value representing the student proficiency with a node representing a proficiency in the subject of the node or skill associated therewith. In addition, a required value may be associated with the node which represents a necessary proficiency needed to learn the target subject. The learning module may compare the two to determine the deficiency, if any, of the student or user. Based upon this calculation, the learning module 81′ may identify the requirements that a student must fulfill in order to reach the target proficiency in the subject or skill. These requirements may include the skills or concepts that a student needs to learn to complete a knowledge path.
According to an embodiment, as depicted in
Accordingly, in certain embodiments, the node graph generation component 88′ forms a consolidated learning node graph from a first and second node graph, (which it also created), from a plurality introductory terms or glossary terms whose relationship is determined by an RST characterization component 88′ and according to an RST characterization scheme. It should be note that, in certain embodiments, component 88′ can perform any of the identification and annotation operations mentioned herein automatically and simultaneously, i.e. the node generation component 89′ can intake all text 100110120 identify the introduction zones and theory zones, and develop the plurality of glossary of terms in a non-linear fashion, as opposed to a human being and/or traditional computing device. This increases the scale at which information can be provided to the user, and allows for a faster identification of relationships between and amongst terms in a set of text in a manner that a human being or a traditional computer device would not be able to do.
In one embodiment, the consolidated node graph can be a pre-requisite knowledge graph, where a connection between two nodes indicates that a subject corresponding to one of the nodes is a pre-requisite for learning the second subject corresponding to the second node. In this instance, the learning module 81′ can present each subject associated with a term in the graph based on the node's, associated with the term, location in the graph, i.e. “particles,” presented first, then “protons,” etc. The learning module 81′ would move from subject to subject only once a specific mastery of a particular subject occurs.
In another embodiment, according to
In terms of node classification as described in the present disclosure, an ancestor node can be a node upon which another node stems from, indirectly or directly, in the node-graph; for example, “Electrons” is an ancestor of “Electricity” in 530. In contrast, a descendant node is a node that stems from, directly or indirectly, from another node in a node graph, i.e. “Electricity” is a descendant of “Electrons” in the preceding example. Finally, a root node is a node of a node graph that does not have any ancestors, and a terminal node is a node that has no descendants, i.e. “Atomic Structure,” and “Currently Induced Electricity” respectively.
The computation for the lowest common ancestor can follow the basic scheme of making an N_c*N_d computation, where the number of nodes in a disconnected graph is N_d, and the total number of nodes in all currently connected graphs is N_c. With respect to
In one embodiment, an automated tutor or other presentation system could employ the learning module 81′ to continuously assess the user or student's proficiency in a subject by employing the above scheme. The learning module 81′ could determine whether or not the user had proficiency on the subject based one threshold computation. If the user did not meet this threshold, then the learning module 81′ could employ generated RST categorization graphs to develop a knowledge path for the user. The node graph generation component 89′ could determine if the subject itself is a node in one of the node graphs. If it is a subject of one of the node graphs, then the node generation component 89′ can merge all graphs at the lowest common ancestor, and present the subjects associated with the chain of nodes, which contains the subject to be mastered by the user, to the user in a top down or bottom down fashion. The learning module 81′ could perform this iteratively until the user meets a threshold of mastery at a particular node in the chain, and then the learning module 81′ could proceed to the next node in the chain, and this could continue until the user achieved the level of mastery or proficiency required for the original subject of interest. This could more easily allow the automated system to present the user a topic he is comfortable with before proceeding to the descendant or ancestor node topics. As the user builds proficiency, the user can eventually be presented with the original subject node that provided the initial difficulty. Consequently, at least one embodiment of the present disclosure provides a substantial improvement to the technical field of automated learning by enabling an automated tutor to automatically and simultaneously obtain and present ancestor concepts, derived via an RST process employing RST natural language computer modules, that relate to subjects providing a difficulty to a user or student, where the presented ancestor concepts can help the student gradually obtain mastery of the more difficult subject stemming from those ancestor subjects.
In an embodiment, if the RST generated graphs did not have a common ancestor node, then the learning module 81′ could instruct the node graph generation component 89′ to obtain an external source categorization scheme, and reproduce the external categorization scheme in node format, where the external source node graph had at least one node that could be an ancestor node to a root node to one of the RST graphs, and where the external source graph could contain at least one node that could be an ancestor to a node representing the subject that the user must obtain mastery in. Linking the RST graphs, which have nodes based on terms that appear in texts and the relationships stem from text-based relationships that are suitable for human reading, to the external source node graph enables the learning module 81′ to present the RST subjects to the user for the purposes of establishing mastery of the original subject. This provides the substantial technical improvement as discussed in the preceding paragraph, with the additional improvement of being able to accommodate scenarios where the RST graphs do not have an immediately apparent relationship with a subject to be mastered by a user.
Optionally, per block 750, the resulting merged node knowledge graph can be employed by a learning module 81′ to develop a knowledge path for a user or student that requires proficiency with a subject associated with a node in the node graph. Specifically, the learning module 81′ will employ a set of criteria to determine a base line proficiency for a particular subject. If the user does not meet the specified base line criteria, the learning module 81′ will present subject matter to the user associated with nodes that are ancestors and/or descendants, within a certain edge range, of the subject node. The learning module 81′ can then assess the degree of proficiency with respect to the present subjects, and once a threshold is met, the learning module 81′ can have the user revisit the original subject that was giving the user difficulty. Since the node graph is generated upon a textual discussion of subjects, the node graph offers an advantage over alternatives in that the node graph is developed in a way that considers a natural discussion of terms and subjects, and thus improves the functionality of information presenting systems, such as automated tutors.
Optionally, per block 825 the learning module 81′ will use the resultant merged graph to assist a user in obtaining mastery in a subject, as described in the discussion above.
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.
Reference is made to embodiments presented in this disclosure. However, the scope of the present disclosure is not limited to specific described embodiments. Instead, any combination of the described features and elements, whether related to different embodiments or not, is contemplated to implement and practice contemplated embodiments. Furthermore, although embodiments disclosed herein may achieve advantages over other possible solutions or over the prior art, whether or not a particular advantage is achieved by a given embodiment is not limiting of the scope of the present disclosure. Thus, the described aspects, features, embodiments and advantages are merely illustrative and are not considered elements or limitations of the appended claims except where explicitly recited in a claim(s). Likewise, reference to “the invention” shall not be construed as a generalization of any inventive subject matter disclosed herein and shall not be considered to be an element or limitation of the appended claims except where explicitly recited in a claim(s).
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.”
The present invention may be a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: 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), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions 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). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein 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 readable program instructions.
These computer readable 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 readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures 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 flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). 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 illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
While the foregoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.