Invention content
The present invention provides a kind of knowledge mapping construction method and system, for solve in the prior art structure knowledge mapping at
This height, the low problem of efficiency.
The first aspect of the invention is to provide a kind of knowledge mapping construction method, including:
The corpus information at least one field of knowledge mapping to be built is obtained, the corpus information includes:Multiple knowledge
Content of text segment;
Participle and part-of-speech tagging are carried out to the knowledge content of text segment, obtained in the knowledge content of text segment
Keyword;
The keyword is matched according to default rule with domain body, the knowledge content of text segment is obtained
In knowledge meta-instance, the knowledge meta-instance attribute and the knowledge meta-instance between incidence relation;The field
Ontology includes:Field theme, at least one model that field theme includes, the association between the attribute and model of model are closed
System;The model includes at least one knowledge meta-instance;
According to the attribute of knowledge meta-instance, the knowledge meta-instance in the multiple knowledge content of text segment and institute
State the incidence relation structure knowledge mapping between knowledge meta-instance.
Further, described to match the keyword with domain body according to default rule, know described in acquisition
Knowledge meta-instance in knowledge content of text segment, the association between the attribute and the knowledge meta-instance of the knowledge meta-instance
Relationship, including:
By the field theme at least one of knowledge content of text segment keyword and the domain body into
Row matching, determines the field theme of the knowledge content of text segment;
By at least one of knowledge content of text segment keyword according to default rule and corresponding field master
The included model of topic is matched, in determining and the knowledge content of text fragment match model and the knowledge text
Hold the knowledge meta-instance of segment;
By at least one of knowledge content of text segment keyword according to default rule and corresponding model
Attribute is matched, and determines the attribute of knowledge meta-instance in the knowledge content of text segment;
The attribute of knowledge meta-instance in incidence relation and the knowledge content of text segment between binding model determines
Incidence relation between knowledge meta-instance.
Further, it is described by least one of knowledge content of text segment keyword according to default rule with
Model included by corresponding field theme is matched, and is determined and the model of the knowledge content of text fragment match and institute
The knowledge meta-instance of knowledge content of text segment is stated, including:
By at least one of knowledge content of text segment keyword and the model included by corresponding field theme
It is matched successively, determines the confidence level of each model;
The model with the knowledge content of text fragment match is determined according to the confidence level of each model;
At least one of knowledge content of text segment keyword is matched with the content of corresponding model, really
The knowledge meta-instance of the fixed knowledge content of text segment.
Further, described by least one of knowledge content of text segment keyword and corresponding field theme
Included model is matched successively, determines the confidence level of each model, including:
Multiple models included by the theme of field for the knowledge content of text segment, by the knowledge content of text
At least one of segment keyword is matched successively with multiple contents of the model, determines the weight of the model;
According to the weight of the multiple model, the confidence level of the multiple model is determined.
Further, the attribute of the knowledge meta-instance includes:Common property and relating attribute;
The common property includes:Primary attribute;
The knowledge meta-instance according in the multiple knowledge content of text segment, the knowledge meta-instance attribute with
And after the incidence relation structure knowledge mapping between the knowledge meta-instance, further include:
Obtain the relevant information of the corresponding knowledge content of text segment of knowledge meta-instance;The relevant information includes:Knowledge
The content and source-information of content of text segment;
The relevant information of the knowledge content of text segment is determined as to the primary attribute value of knowledge meta-instance.
Further, knowledge meta-instance, the Knowledge Element reality according in the multiple knowledge content of text segment
After incidence relation structure knowledge mapping between the attribute and the knowledge meta-instance of example, further include:
Multiple association knowledges member that there is the first incidence relation with the knowledge meta-instance is obtained from the knowledge mapping
Example;
The related letter of the corresponding knowledge content of text segment of the association knowledge meta-instance is obtained from the knowledge mapping
Breath;
The relevant information of the corresponding knowledge content of text segment of the association knowledge meta-instance is determined as knowledge meta-instance
The first relating attribute value.
Further, knowledge meta-instance, the Knowledge Element reality according in the multiple knowledge content of text segment
After incidence relation structure knowledge mapping between the attribute and the knowledge meta-instance of example, further include:
The knowledge mapping is shown.
Further, knowledge meta-instance, the Knowledge Element reality according in the multiple knowledge content of text segment
After incidence relation structure knowledge mapping between the attribute and the knowledge meta-instance of example, further include:
The inquiry instruction of user is received, knowledge meta-instance is carried in the inquiry instruction;
According to the Knowledge Element Query By Example knowledge mapping, attribute, the Knowledge Element for obtaining the knowledge meta-instance are real
Example incidence relation, the corresponding knowledge content of text segment of the knowledge meta-instance and with the knowledge meta-instance have be associated with
The corresponding knowledge content of text segment of association knowledge meta-instance of relationship;
The attribute of the knowledge meta-instance, the incidence relation of the knowledge meta-instance, the knowledge meta-instance is corresponding
Knowledge content of text segment and there is the association knowledge meta-instance of incidence relation corresponding knowledge text with the knowledge meta-instance
This contents fragment is shown.
In the present invention, the corpus information at least one field by obtaining knowledge mapping to be built, the corpus information
Including:Multiple knowledge content of text segments;Participle and part-of-speech tagging are carried out to the knowledge content of text segment, described in acquisition
Keyword in knowledge content of text segment;The keyword is matched according to default rule with domain body, is obtained
Between the attribute and the knowledge meta-instance of knowledge meta-instance, the knowledge meta-instance in the knowledge content of text segment
Incidence relation;The domain body includes:Field theme, at least one model that field theme includes, the attribute of model with
And the incidence relation between model;The model includes at least one knowledge meta-instance;According to the multiple knowledge content of text
Incidence relation structure between the attribute and the knowledge meta-instance of knowledge meta-instance, the knowledge meta-instance in segment is known
Know collection of illustrative plates.The present invention realizes automation structure knowledge mapping, reduces the construction cost of knowledge mapping, improves knowledge mapping
Structure efficiency and accuracy rate.
The second aspect of the invention is to provide a kind of knowledge mapping structure system, including:
Acquisition module, the corpus information at least one field for obtaining knowledge mapping to be built, the corpus information
Including:Multiple knowledge content of text segments;
Participle and part-of-speech tagging module, for carrying out participle and part-of-speech tagging to the knowledge content of text segment,
Obtain the keyword in the knowledge content of text segment;
Matching module is known for matching the keyword with domain body according to default rule described in acquisition
Knowledge meta-instance in knowledge content of text segment, the association between the attribute and the knowledge meta-instance of the knowledge meta-instance
Relationship;The domain body includes:Field theme, at least one model that field theme includes, the attribute and model of model
Between incidence relation;The model includes at least one knowledge meta-instance;
Module is built, for real according to the knowledge meta-instance in the multiple knowledge content of text segment, the Knowledge Element
Incidence relation between the attribute and the knowledge meta-instance of example builds knowledge mapping.
Further, the matching module includes:
First matching unit is used at least one of knowledge content of text segment keyword and the field sheet
Field theme in body is matched, and determines the field theme of the knowledge content of text segment;
Second matching unit is used at least one of knowledge content of text segment keyword according to preset rule
Then matched with the model included by corresponding field theme, determine with the model of the knowledge content of text fragment match with
And the knowledge meta-instance of the knowledge content of text segment;
Third matching unit is used at least one of knowledge content of text segment keyword according to preset rule
It is then matched with the attribute of corresponding model, determines the attribute of knowledge meta-instance in the knowledge content of text segment;
It is real to be used for Knowledge Element in the incidence relation between binding model and the knowledge content of text segment for determination unit
The attribute of example, determines the incidence relation between knowledge meta-instance.
In the present invention, the corpus information at least one field by obtaining knowledge mapping to be built, the corpus information
Including:Multiple knowledge content of text segments;Participle and part-of-speech tagging are carried out to the knowledge content of text segment, described in acquisition
Keyword in knowledge content of text segment;The keyword is matched according to default rule with domain body, is obtained
Between the attribute and the knowledge meta-instance of knowledge meta-instance, the knowledge meta-instance in the knowledge content of text segment
Incidence relation;The domain body includes:Field theme, at least one model that field theme includes, the attribute of model with
And the incidence relation between model;The model includes at least one knowledge meta-instance;According to the multiple knowledge content of text
Incidence relation structure between the attribute and the knowledge meta-instance of knowledge meta-instance, the knowledge meta-instance in segment is known
Know collection of illustrative plates.The present invention realizes automation structure knowledge mapping, reduces the construction cost of knowledge mapping, improves knowledge mapping
Structure efficiency and accuracy rate.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart of knowledge mapping construction method one embodiment provided by the invention, as shown in Figure 1, including:
101, the corpus information at least one field of knowledge mapping to be built is obtained, corpus information includes:Multiple knowledge
Content of text segment.
The executive agent of knowledge mapping construction method provided by the invention is that knowledge mapping builds system, knowledge mapping structure
System can be hardware devices or the softwares on hardware device such as computer, server.
Wherein, field can refer to professional domain, such as " metallurgy " field, " economy " field, " medicine " field etc., and field can
There is " pediatric medicine " field below multiple subdomains, such as " medicine " field to have.Corpus information refers to knowledge content of text piece
Section, the Description of Knowledge content by way of natural language can be divided into raw language material and idiom material.The language of original not processed index
Expect that language material of making a living, the language material after Machining Analysis are known as idiom material.Idiom material includes raw text content, natural language point
Knowledge meta-instance and its attribute etc. described in word result and part of speech analysis result, text.Involved in the present embodiment to wait for structure
The corpus information for building knowledge mapping is made a living language material.For example " meningitis can be confirmed knowledge content of text segment by medical practitioner
Rear antibiotic medicine is treated ".
102, participle and part-of-speech tagging are carried out to knowledge content of text segment, obtains the pass in knowledge content of text segment
Keyword.
103, keyword is matched according to default rule with domain body, is obtained in knowledge content of text segment
Incidence relation between knowledge meta-instance, the attribute of knowledge meta-instance and knowledge meta-instance;Domain body includes:Field master
Topic, at least one model that field theme includes, the incidence relation between the attribute and model of model;Model includes at least one
A knowledge meta-instance.
Wherein, field theme can refer to professional domain or subdomains.Professional domain, such as " metallurgy " field, " economy "
Field, " medicine " field etc., field can have and have " pediatric medicine " field below multiple subdomains, such as " medicine " field.Often
Being had in a field has the models such as " hospital ", " expert ", " disease ", " drug " in multiple models, such as " medicine " field.Each
Model has oneself distinctive attribute, such as " disease " model has " symptom ", " diagnosis ", " pathological change ", " therapeutic scheme "
Equal attributes.Had between model and have " treatment " relationship between various incidence relations, such as " drug " and " disease ", " expert " and
Also the relationship of " being good at treatment " is had between " disease "." meningitis " is a knowledge meta-instance of " disease " model." antibiotic
Drug " is a knowledge meta-instance of " drug " model.There is " treatment " relationship between " antibiotic medicine " and " meningitis ".
104, according to the attribute and Knowledge Element of knowledge meta-instance, knowledge meta-instance in multiple knowledge content of text segments
Incidence relation between example builds knowledge mapping.
Further, after step 104, can also include:Knowledge mapping is shown.
Specifically, knowledge mapping structure system can provide the displaying interface that can be interacted, and be shown in a manner of visual
Knowledge mapping stores collection of illustrative plates node and relationship for example, by using chart database Neo4j, is shown on a web browser using D3 plug-in units whole
A knowledge mapping.In addition, knowledge mapping structure system can also according to the demand of user be shown knowledge mapping.For example,
The knowledge mapping for receiving user checks instruction, and the field theme in some field is carried in instruction;Knowledge mapping build system according to
The knowledge mapping for checking the corresponding field of instruction displaying of user.
Further, after step 104, can also include:The inquiry instruction of user is received, carries and knows in inquiry instruction
Know meta-instance;It is closed according to the association of Knowledge Element Query By Example knowledge mapping, the attribute, knowledge meta-instance that obtain knowledge meta-instance
System, the corresponding knowledge content of text segment of knowledge meta-instance and the association knowledge member reality with knowledge meta-instance with incidence relation
The corresponding knowledge content of text segment of example;By the attribute of knowledge meta-instance, the incidence relation of knowledge meta-instance, knowledge meta-instance pair
The knowledge content of text segment answered and there is the corresponding knowledge text of the association knowledge meta-instance of incidence relation with knowledge meta-instance
This contents fragment is shown.
The knowledge system construction that every field can be inquired by above-mentioned knowledge mapping user, can also inquire and certain
A relevant all documents of knowledge meta-instance, to use.
In the present embodiment, the corpus information at least one field by obtaining knowledge mapping to be built, the language material letter
Breath includes:Multiple knowledge content of text segments;Participle and part-of-speech tagging are carried out to the knowledge content of text segment, obtain institute
State the keyword in knowledge content of text segment;The keyword is matched according to default rule with domain body, is obtained
Take knowledge meta-instance in the knowledge content of text segment, the attribute of the knowledge meta-instance and the knowledge meta-instance it
Between incidence relation;The domain body includes:Field theme, at least one model that field theme includes, the attribute of model
And the incidence relation between model;The model includes at least one knowledge meta-instance;According in the multiple knowledge text
The incidence relation held between the attribute and the knowledge meta-instance of the knowledge meta-instance in segment, the knowledge meta-instance is built
Knowledge mapping.The present invention realizes automation structure knowledge mapping, reduces the construction cost of knowledge mapping, improves knowledge graph
The structure efficiency and accuracy rate of spectrum.
Fig. 2 is the flow chart of another embodiment of knowledge mapping construction method provided by the invention, as shown in Fig. 2, in Fig. 1
On the basis of illustrated embodiment, step 103 can specifically include:
1031, by the field theme progress at least one of knowledge content of text segment keyword and domain body
Match, determines the field theme of knowledge content of text segment.
1032, by least one of knowledge content of text segment keyword according to default rule and corresponding field master
The included model of topic is matched, the model and knowledge content of text segment of determination and knowledge content of text fragment match
Knowledge meta-instance.
Wherein, knowledge mapping structure system can by least one of knowledge content of text segment keyword with it is corresponding
Model included by the theme of field is matched successively, determines the confidence level of each model;Confidence level according to each model is true
Fixed and knowledge content of text fragment match model;By at least one of knowledge content of text segment keyword and corresponding mould
The content of type is matched, and determines the knowledge meta-instance of knowledge content of text segment.
Specifically, multiple models included by the field theme for knowledge content of text segment, knowledge mapping structure system
System can match at least one of knowledge content of text segment keyword successively with multiple contents of the model, really
The weight of cover half type;According to the weight of the multiple model, the confidence level of the multiple model is determined.Wherein, knowledge mapping structure
The system of building can carry out multiple contents of at least one of knowledge content of text segment keyword and the model successively
Match, the quantity of content similar at least one of knowledge content of text segment keyword is determined, so that it is determined that the power of model
Weight.
Wherein, the content of model is the knowledge meta-instance that model includes.
It needs to illustrate, matching rule includes mainly rule name and Rule content two parts, Rule content are
Knowledge mapping builds the object of network analysis application, is to be extended by regular expression, such as " creating the time " is one
Rule, its content are that " ^.* is created in (.*) year .* $ ", which is mainly used to identify the creation time of some object.
This system increases customized identifier on the basis of regular expression.
Proper name word indicator:[[{str}]], wherein str is enumerated value, indicates proper name word class, classification can be in proper name
Defined in vocabulary.Acquiescence includes following several:A:Personage;B:Place;C:Event;D:Mechanism;E:Time.
In addition to acquiescence, can in proper name vocabulary customization type, common sense class word built in the data system of proper name vocabulary
It converges, the proper name word of professional domain can import the dictionary of professional domain.Proper name vocabulary creates for auxiliary regular, extends canonical table
Up to the matching scope of formula, domain knowledge is added.
1033, by least one of knowledge content of text segment keyword according to default rule and corresponding model
Attribute is matched, and determines the attribute of knowledge meta-instance in knowledge content of text segment.
Specifically, the attribute of model includes:Common property and relating attribute.For common property, pass through rule
If with it is rear obtain it is multiple as a result, can in conjunction with weight and number of repetition it is high select one, other attributes are deposited as supplement
Storage is got up, and manual confirmation is waited for.Such as identify " Peking University " creation time have it is multiple as a result, wherein only have one be 1900
Year, others are all 1898, then result can adopt 1898.
For relating attribute, by after rule match if obtained multiple as a result, can be by resulting text content all
It stores.Then system does content of text following analysis.If the relationship between relating attribute and model is reflected
Penetrate, then illustrate that keyword must be Knowledge Element, such as " meningitis can be confirmed by medical practitioner after antibiotic medicine come
Treatment " this section words, the value that the treatment attribute of disease knowledge meta-instance " meningitis " has been gone out by Rule Extraction are that " medical practitioner is true
Antibiotic medicine after recognizing " is obtained " antibiotic medicine " by keyword extraction, and in domain body management, it is provided with
There is treatment relationship between " disease " model and " drug " model, and is mapped with " treatment " attribute of " disease ".So
It is hereby achieved that " antibiotic medicine " is exactly the knowledge meta-instance of " drug " model.At this point, if our knowledge mapping is deposited
At " antibiotic medicine ", it is associated with then can be established with " meningitis ", it can be certainly if there are no " antibiotic ", system in collection of illustrative plates
The dynamic new knowledge meta-instance for generating " drug " model.It is thus achieved that the automation extension of knowledge meta-instance.
1034, in the incidence relation between binding model and knowledge content of text segment knowledge meta-instance attribute, really
Determine the incidence relation between knowledge meta-instance.
In the present embodiment, the corpus information at least one field by obtaining knowledge mapping to be built, the language material letter
Breath includes:Multiple knowledge content of text segments;Participle and part-of-speech tagging are carried out to the knowledge content of text segment, obtain institute
State the keyword in knowledge content of text segment;It will be at least one of knowledge content of text segment keyword and domain body
Field theme matched, determine the field theme of knowledge content of text segment;By in knowledge content of text segment at least
One keyword is matched according to default rule with the model included by corresponding field theme, in determining and knowledge text
Hold the model of fragment match and the knowledge meta-instance of knowledge content of text segment;By at least one in knowledge content of text segment
A keyword is matched according to default rule with the attribute of corresponding model, determines Knowledge Element in knowledge content of text segment
The attribute of example;The attribute of knowledge meta-instance in incidence relation and knowledge content of text segment between binding model determines
Incidence relation between knowledge meta-instance;According to knowledge meta-instance, the knowledge in the multiple knowledge content of text segment
Incidence relation between the attribute of meta-instance and the knowledge meta-instance builds knowledge mapping.The present invention realizes automation structure
Knowledge mapping is built, the construction cost of knowledge mapping is reduced, improves the structure efficiency and accuracy rate of knowledge mapping.
Fig. 3 is the structural schematic diagram of another embodiment of knowledge mapping construction method provided by the invention, as shown in figure 3,
On the basis of embodiment shown in Fig. 1, further include:
105, the relevant information of the corresponding knowledge content of text segment of knowledge meta-instance is obtained;Relevant information includes:Knowledge
The content and source-information of content of text segment.
106, the relevant information of knowledge content of text segment is determined as to the primary attribute value of knowledge meta-instance.
107, multiple association knowledge meta-instances that there is the first incidence relation with knowledge meta-instance are obtained from knowledge mapping.
108, the relevant information of the corresponding knowledge content of text segment of association knowledge meta-instance is obtained from knowledge mapping.
109, the relevant information of the corresponding knowledge content of text segment of association knowledge meta-instance is determined as knowledge meta-instance
The first relating attribute value.
In the present embodiment, by the base that the relevant information of knowledge content of text segment is determined as to corresponding knowledge meta-instance
Plinth attribute value will have the corresponding knowledge content of text of multiple association knowledge meta-instances of the first incidence relation with knowledge meta-instance
Relevant information be determined as knowledge meta-instance the first relating attribute value so that knowledge mapping structure system receiving
It, can be by the attribute of knowledge meta-instance, the association of the knowledge meta-instance when inquiry request of the carrying knowledge meta-instance of user
Relationship, the corresponding knowledge content of text segment of the knowledge meta-instance and the pass with the knowledge meta-instance with incidence relation
The corresponding knowledge content of text segment of connection knowledge meta-instance is shown to user.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or
The various media that can store program code such as person's CD.
Fig. 4 is the structural schematic diagram that knowledge mapping provided by the invention builds system one embodiment, as shown in figure 4, packet
It includes:
Acquisition module 41, the corpus information at least one field for obtaining knowledge mapping to be built, corpus information packet
It includes:Multiple knowledge content of text segments;
Participle and part-of-speech tagging module 42 are obtained for carrying out participle and part-of-speech tagging to knowledge content of text segment
Take the keyword in knowledge content of text segment;
Matching module 43 obtains knowledge text for matching keyword with domain body according to default rule
Incidence relation between the attribute and knowledge meta-instance of knowledge meta-instance, knowledge meta-instance in contents fragment;Domain body
Including:Field theme, at least one model that field theme includes, the incidence relation between the attribute and model of model;Mould
Type includes at least one knowledge meta-instance;
Module 44 is built, for the category according to knowledge meta-instance, knowledge meta-instance in multiple knowledge content of text segments
Property and knowledge meta-instance between incidence relation build knowledge mapping.
Knowledge mapping structure system provided by the invention can be the hardware devices such as computer, server or be mounted on hard
Software in part equipment.
Further, knowledge mapping structure system can also include:Display module, for being shown to knowledge mapping.
Specifically, knowledge mapping structure system can provide the displaying interface that can be interacted, and be shown in a manner of visual
Knowledge mapping stores collection of illustrative plates node and relationship for example, by using chart database Neo4j, is shown on a web browser using D3 plug-in units whole
A knowledge mapping.In addition, knowledge mapping structure system can also according to the demand of user be shown knowledge mapping.For example,
The knowledge mapping for receiving user checks instruction, and the field theme in some field is carried in instruction;Knowledge mapping build system according to
The knowledge mapping for checking the corresponding field of instruction displaying of user.
Further, knowledge mapping structure system can also receive the inquiry instruction of user, carry and know in inquiry instruction
Know meta-instance;It is closed according to the association of Knowledge Element Query By Example knowledge mapping, the attribute, knowledge meta-instance that obtain knowledge meta-instance
System, the corresponding knowledge content of text segment of knowledge meta-instance and the association knowledge member reality with knowledge meta-instance with incidence relation
The corresponding knowledge content of text segment of example;By the attribute of knowledge meta-instance, the incidence relation of knowledge meta-instance, knowledge meta-instance pair
The knowledge content of text segment answered and there is the corresponding knowledge text of the association knowledge meta-instance of incidence relation with knowledge meta-instance
This contents fragment is shown.
The knowledge system construction that every field can be inquired by above-mentioned knowledge mapping user, can also inquire and certain
A relevant all documents of knowledge meta-instance, to use.
Further, after knowledge mapping structure system structure knowledge mapping, it is corresponding that knowledge meta-instance can also be obtained
The relevant information of knowledge content of text segment;Relevant information includes:The content and source-information of knowledge content of text segment;It will
The relevant information of knowledge content of text segment is determined as the primary attribute value of knowledge meta-instance;From knowledge mapping obtain with it is described
Knowledge meta-instance has multiple association knowledge meta-instances of the first incidence relation;Association knowledge meta-instance is obtained from knowledge mapping
The relevant information of corresponding knowledge content of text segment;By the corresponding knowledge content of text segment of the association knowledge meta-instance
Relevant information is determined as the value of the first relating attribute of knowledge meta-instance.
It is real by the way that the relevant information of knowledge content of text segment is determined as corresponding Knowledge Element that knowledge mapping builds system
The primary attribute value of example will have multiple association knowledge meta-instances of the first incidence relation corresponding knowledge text with knowledge meta-instance
The relevant information of this content is determined as the value of the first relating attribute of knowledge meta-instance, so that knowledge mapping structure system exists
It, can be by the attribute of knowledge meta-instance, the knowledge meta-instance when receiving the inquiry request of carrying knowledge meta-instance of user
Incidence relation, the corresponding knowledge content of text segment of the knowledge meta-instance and with the knowledge meta-instance have be associated with
The corresponding knowledge content of text segment of association knowledge meta-instance of system is shown to user.
In the present embodiment, the corpus information at least one field by obtaining knowledge mapping to be built, the language material letter
Breath includes:Multiple knowledge content of text segments;Participle and part-of-speech tagging are carried out to the knowledge content of text segment, obtain institute
State the keyword in knowledge content of text segment;The keyword is matched according to default rule with domain body, is obtained
Take knowledge meta-instance in the knowledge content of text segment, the attribute of the knowledge meta-instance and the knowledge meta-instance it
Between incidence relation;The domain body includes:Field theme, at least one model that field theme includes, the attribute of model
And the incidence relation between model;The model includes at least one knowledge meta-instance;According in the multiple knowledge text
The incidence relation held between the attribute and the knowledge meta-instance of the knowledge meta-instance in segment, the knowledge meta-instance is built
Knowledge mapping.The present invention realizes automation structure knowledge mapping, reduces the construction cost of knowledge mapping, improves knowledge graph
The structure efficiency and accuracy rate of spectrum.
Further, in conjunction with reference to figure 5, on the basis of embodiment shown in Fig. 4, the matching module 43 includes:
First matching unit 431, for will be at least one of knowledge content of text segment keyword and domain body
Field theme matched, determine the field theme of knowledge content of text segment;
Second matching unit 432 is used at least one of knowledge content of text segment keyword according to preset rule
It is then matched, determine the model with knowledge content of text fragment match and is known with the model included by corresponding field theme
Know the knowledge meta-instance of content of text segment;
Third matching unit 433 is used at least one of knowledge content of text segment keyword according to preset rule
It is then matched with the attribute of corresponding model, determines the attribute of knowledge meta-instance in knowledge content of text segment;
It is real to be used for Knowledge Element in the incidence relation between binding model and knowledge content of text segment for determination unit 434
The attribute of example, determines the incidence relation between knowledge meta-instance.
Wherein, knowledge mapping structure system can by least one of knowledge content of text segment keyword with it is corresponding
Model included by the theme of field is matched successively, determines the confidence level of each model;Confidence level according to each model is true
Fixed and knowledge content of text fragment match model;By at least one of knowledge content of text segment keyword and corresponding mould
The content of type is matched, and determines the knowledge meta-instance of knowledge content of text segment.
Specifically, multiple models included by the field theme for knowledge content of text segment, knowledge mapping structure system
System can match at least one of knowledge content of text segment keyword successively with multiple contents of the model, really
The weight of cover half type;According to the weight of the multiple model, the confidence level of the multiple model is determined.Wherein, knowledge mapping structure
The system of building can carry out multiple contents of at least one of knowledge content of text segment keyword and the model successively
Match, the quantity of content similar at least one of knowledge content of text segment keyword is determined, so that it is determined that the power of model
Weight.
Wherein, the content of model is the knowledge meta-instance that model includes.
It also needs to illustrate, the attribute of model may include:Common property and relating attribute.For common property
For, by after rule match if obtain it is multiple as a result, can in conjunction with weight and number of repetition it is high select one, other
Attribute is stored as supplement, waits for manual confirmation.Such as identify " Peking University " creation time have it is multiple as a result, wherein
Only one is 1900, and others are all 1898, then result can adopt 1898.
For relating attribute, by after rule match if obtained multiple as a result, can be by resulting text content all
It stores.Then system does content of text following analysis.If the relationship between relating attribute and model is reflected
Penetrate, then illustrate that keyword must be Knowledge Element, such as " meningitis can be confirmed by medical practitioner after antibiotic medicine come
Treatment " this section words, the value that the treatment attribute of disease knowledge meta-instance " meningitis " has been gone out by Rule Extraction are that " medical practitioner is true
Antibiotic medicine after recognizing " is obtained " antibiotic medicine " by keyword extraction, and in domain body management, it is provided with
There is treatment relationship between " disease " model and " drug " model, and is mapped with " treatment " attribute of " disease ".So
It is hereby achieved that " antibiotic medicine " is exactly the knowledge meta-instance of " drug " model.At this point, if our knowledge mapping is deposited
At " antibiotic medicine ", it is associated with then can be established with " meningitis ", it can be certainly if there are no " antibiotic ", system in collection of illustrative plates
The dynamic new knowledge meta-instance for generating " drug " model.It is thus achieved that the automation extension of knowledge meta-instance.
In the present embodiment, the corpus information at least one field by obtaining knowledge mapping to be built, the language material letter
Breath includes:Multiple knowledge content of text segments;Participle and part-of-speech tagging are carried out to the knowledge content of text segment, obtain institute
State the keyword in knowledge content of text segment;It will be at least one of knowledge content of text segment keyword and domain body
Field theme matched, determine the field theme of knowledge content of text segment;By in knowledge content of text segment at least
One keyword is matched according to default rule with the model included by corresponding field theme, in determining and knowledge text
Hold the model of fragment match and the knowledge meta-instance of knowledge content of text segment;By at least one in knowledge content of text segment
A keyword is matched according to default rule with the attribute of corresponding model, determines Knowledge Element in knowledge content of text segment
The attribute of example;The attribute of knowledge meta-instance in incidence relation and knowledge content of text segment between binding model determines
Incidence relation between knowledge meta-instance;According to knowledge meta-instance, the knowledge in the multiple knowledge content of text segment
Incidence relation between the attribute of meta-instance and the knowledge meta-instance builds knowledge mapping.The present invention realizes automation structure
Knowledge mapping is built, the construction cost of knowledge mapping is reduced, improves the structure efficiency and accuracy rate of knowledge mapping.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to
So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into
Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.