CN106354762A - Business positioning method and device for interaction statements - Google Patents

Business positioning method and device for interaction statements Download PDF

Info

Publication number
CN106354762A
CN106354762A CN201610688796.3A CN201610688796A CN106354762A CN 106354762 A CN106354762 A CN 106354762A CN 201610688796 A CN201610688796 A CN 201610688796A CN 106354762 A CN106354762 A CN 106354762A
Authority
CN
China
Prior art keywords
distance
key word
alternate statement
sentence
knowledge mapping
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610688796.3A
Other languages
Chinese (zh)
Other versions
CN106354762B (en
Inventor
殷腾龙
胡伟凤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Group Co Ltd
Original Assignee
Hisense Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Group Co Ltd filed Critical Hisense Group Co Ltd
Priority to CN201610688796.3A priority Critical patent/CN106354762B/en
Publication of CN106354762A publication Critical patent/CN106354762A/en
Application granted granted Critical
Publication of CN106354762B publication Critical patent/CN106354762B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/253Grammatical analysis; Style critique
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Machine Translation (AREA)

Abstract

The invention discloses a business positioning method and device for interaction statements. The business positioning method includes the steps that input interaction statements are obtained; keywords in the interaction statements and modifying relationships formed between the interaction statements are determined; the distances between the keywords with the modifying relationships are obtained through a knowledge graph, and the knowledge graph indicates business corresponding to the interaction statements; according to the distances between the keywords, the corresponding statement distances of the interaction statements in the knowledge graph are determined; a minimum value in the statement distances is determined; according to the minimum value, corresponding to the knowledge graph, in the statement distances, the business corresponding to the interaction statements is returned. In the process, all the words in the interaction statements cannot be relied on, statement distance operation corresponding to the interaction statements in the knowledge graph is achieved through effective constituents in the interaction statements, namely, the keywords and the modifying relationships between the keywords, the accuracy of the distances of the statements is improved, and accurate business positioning is achieved.

Description

The scope of business method and apparatus of alternate statement
Technical field
It relates to Computer Applied Technology field, a kind of scope of business method particularly to alternate statement and dress Put.
Background technology
With the fast development of man-machine interaction, the inquiry that user more and more passes through alternate statement enters required industry Business.Specifically, alternate statement inquiry is to be realized by the knowledge mapping building, and knowledge mapping is numerous business in man-machine interaction The inquiry in field provides very big facility.For example, by alternate statement, user can carry out with movie and television contents, in music The inquiry of the business such as appearance, Weather information, date and time information, stock information and encyclopaedia information, now, by the knowledge mapping by building It is accurately positioned user view at short notice, and returning result, so that corresponding business is entered by this result.
In the alternate statement inquiry that existing knowledge collection of illustrative plates is realized, depend on merely institute in knowledge mapping for the alternate statement There is distance between word, lack accuracy, and distance in different knowledge mapping for the alternate statement cannot be accurately obtained, and then also no Method realizes accurately scope of business.
Content of the invention
In order to solve distance in knowledge mapping for the alternate statement present in correlation technique, that is, sentence distance lacks precisely Property it is impossible to realize the technical problem of accurately scope of business, present disclose provides a kind of scope of business method of alternate statement and Device.
A kind of scope of business method of alternate statement, comprising:
Obtain the alternate statement of user input;
Determine the modified relationship being formed between key word and the described key word in described alternate statement;
Obtain there is the distance between described key word of modified relationship by knowledge mapping, described knowledge mapping indicates institute State the corresponding business of alternate statement;
According to the distance between described key word determine described alternate statement in described knowledge mapping corresponding sentence away from From;
Determine the minima in described sentence distance, and according to the corresponding knowledge graph of minima in described sentence distance Spectrum, returns the corresponding business of described alternate statement.
A kind of scope of business device of alternate statement, comprising:
Acquisition module, for obtaining the alternate statement of user input;
Sentence processing module, for determining the modification pass being formed between key word and key word in described alternate statement System;
Key word apart from determining module, for obtaining by knowledge mapping existing between the described key word of modified relationship Distance, described knowledge mapping indicates the corresponding business of described alternate statement;
Sentence apart from determining module, for determining that described alternate statement is known described according to the distance between described key word Know corresponding sentence distance in collection of illustrative plates;
Business determining module, for determining the minima in described sentence distance, and according in described sentence distance The corresponding knowledge mapping of little value, returns the corresponding business of described alternate statement.
The technical scheme that embodiment of the disclosure provides can include following beneficial effect:
In the alternate statement inquiry of knowledge mapping, after the alternate statement obtaining user input, it is first determined interaction Modified relationship between key word in sentence and key word, for existing between the key word of modified relationship, obtains it and is knowing Know the distance of collection of illustrative plates, and then determine that alternate statement is right in knowledge mapping according to there is the distance between key word of modified relationship The sentence distance answered, in the process, is no longer dependent on all words in alternate statement, but by effective in alternate statement Composition, i.e. modified relationship between key word, and key word, realize this alternate statement in knowledge mapping corresponding sentence away from From computing, this sentence distance operation with reference to the distance weighting of modified relationship mapping, taken into full account that there is modification closes Importance degree in the scope of business of alternate statement for the key word of system, therefore drastically increases alternate statement in knowledge graph The accuracy that in spectrum, corresponding sentence distance calculates, and then also improve the essence of the alternate statement scope of business based on sentence distance Accuracy.
It should be appreciated that above general description and detailed description hereinafter are only exemplary, can not be limited this Open.
Brief description
Accompanying drawing herein is merged in description and constitutes the part of this specification, shows the enforcement meeting the present invention Example, and be used for together explaining the principle of the present invention in description.
Fig. 1 is a kind of flow chart of the scope of business method of the alternate statement according to an exemplary embodiment;
Fig. 2 is modified relationship between key word and key word in a kind of alternate statement according to an exemplary embodiment Presence schematic diagram;
Fig. 3 is key word and pass in the alternate statement " the comedy-action film of Liu Dehua " shown in an exemplary embodiment The presence schematic diagram of modified relationship between keyword;
Fig. 4 is that the modification being formed between key word and the key word that Fig. 1 corresponds in the determination alternate statement of embodiment is closed It is the flow chart of step;
Fig. 5 be the corresponding embodiment of Fig. 1 obtain there is the distance between key word of modified relationship by knowledge mapping Flow chart;
Fig. 6 is the corresponding in knowledge mapping according to the distance between key word determination alternate statement of the corresponding embodiment of Fig. 1 Sentence apart from step flow chart;
Fig. 7 is natural language processing alternate statement " weather cloudy day tomorrow " being carried out according to an exemplary embodiment The schematic diagram of journey;
Fig. 8 is the partial schematic diagram of the weather knowledge mapping according to an exemplary embodiment;
Fig. 9 is the partial schematic diagram of the song knowledge mapping according to an exemplary embodiment;
Figure 10 is a kind of block diagram of the scope of business device of the alternate statement according to an exemplary embodiment;
Figure 11 is the block diagram of the sentence processing module of the corresponding embodiment of Figure 10;
Figure 12 is the block diagram apart from determining module for the key word of the corresponding embodiment of Figure 10;
Figure 13 is the block diagram apart from determining module of the corresponding embodiment of Figure 10;
Figure 14 is a kind of block diagram of the device according to an exemplary embodiment.
Specific embodiment
Here in detail explanation will be executed to exemplary embodiment, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the present invention.On the contrary, they be only with such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, the present invention.
Fig. 1 is a kind of flow chart of the scope of business method of the alternate statement according to an exemplary embodiment.This friendship The mutually scope of business method of sentence, as shown in figure 1, may comprise steps of.
In step 110, obtain the alternate statement of user input.
Wherein, alternate statement refers to the sentence that in the man-machine interaction carrying out, user is inputted, and needs to enter by knowledge mapping The inquiry of row alternate statement, with the mostly concerned business of positioning interaction sentence.
The alternate statement that user passes through to input initiates the inquiry of business in scope of business, and for example, the business inquired about is permissible Including: the business such as movie and television contents, music content, Weather information, date and time information, stock information and encyclopaedia information.
In one exemplary embodiment, the alternate statement input that user is carried out can be by the keyboard behaviour in terminal Any one mode such as work, screen operator and phonetic entry is realized.
In the step 120, determine the modified relationship between key word and the key word in alternate statement.
Wherein it is possible to understand, an alternate statement has several words, interact sentence natural language processing and The key word obtaining is the part word in alternate statement.
Obtain alternate statement by the natural language processing of alternate statement and there is modified relationship in Semantic aspect Effective ingredient pair, there is the key word of modified relationship each other.
The modified relationship of indication will reflect dependence in alternate statement for the related key word, embodies key word and exists Relatedness semantically.For example, modified relationship includes time (time case), exp (when concerning being) and mtone (tone mark Note).
Here is it should be noted that passing through obtained from natural language processing is one or two above key words Right, and key word centering has modified relationship;Due to being that key word pair is obtained based on modified relationship in alternate statement, Therefore, key word between, there is the probability that there is duplicate key word.
By the natural language processing of alternate statement by the nested cutting in accomplished alternate statement, to obtain interactive language Modified relationship between key word in sentence and key word.
For example, Fig. 2 is to repair between key word and key word in a kind of alternate statement according to an exemplary embodiment The presence schematic diagram of decorations relation.
After natural language processing is completed to an alternate statement, four key words that alternate statement comprises are obtained, that is, W1, w2, w3 and w4, and obtain three modified relationships, i.e. the modified relationship e1 between w1 and w4, the modification between w3 and w4 is closed It is e2, the modified relationship e3 between w2 and w3.
By obtained modified relationship, you can keyword chains are connected in one, constitute the effective content in alternate statement, Therefore, the modified relationship being formed between obtained key word and key word, is possible to accurately reflect user view, Jin Erwei Subsequently accurately enter the desired business of access customer to lay the foundation.
Again for example, for alternate statement " the comedy-action film of Liu Dehua ", the key word being carried out and key word it Between during the modified relationship that formed determines, remove modal particle and insignificant word first, such as " ", and then obtain in alternate statement Several key words, i.e. " Liu Dehua ", " comedy ", " action " and " film ".
This is carried out with nature sentence process, obtains mutual three modified relationships between key word and key word, as Fig. 3 institute Show, the modified relationship poss between key word " Liu Dehua " and key word " film ", key word " comedy " and key word are " electric Modified relationship feat between shadow ", the modified relationship feat between key word " action " and key word " film ".Wherein, modify Relation poss is consular relations, and modified relationship feat is to describe role relation.
And then in follow-up processing procedure, by the key word pair corresponding to this three modified relationships, that is, " Liu Dehua- Film ", " action-film " and " comedy-film " carry out determination of distance, and then obtain between each key word centering key word Distance.
In step 130, obtain there is the distance between key word of modified relationship by knowledge mapping, knowledge mapping refers to Show the corresponding business of alternate statement.
Wherein, knowledge mapping includes the node representing corresponding vocabulary and side, is connected with each other by side between node, And between the word being mapped by side distance obtaining the distance between two nodes, this as two node of distance represents respectively Distance between the word of two vocabulary.
By the process shown in step 120, will determine in alternate statement, be inquired about two-by-two in knowledge mapping to obtain To each other in knowledge mapping distance key word;In other words, it is which is determined in alternate statement by step 120 A little vocabulary need to coordinate the inquiry realizing knowledge mapping two-by-two.
Therefore, for modified relationship present in alternate statement, determine there is this modified relationship in knowledge mapping respectively The distance between key word, this distance is the distance of knowledge mapping in key word.
Here, it should be noted that scope of business for the alternate statement being carried out, is used for carrying out the spacing of key word It is multiple from the knowledge mapping determining, that is, each business has corresponding knowledge mapping, obtain user input for inquiry and interact language Sentence and the business that desires to enter into, are determining the key word that there is modified relationship to afterwards by step 120, will be in all business In corresponding knowledge mapping, respectively with step 120 determine key word to for input, each knowledge mapping determine key word it Between distance.
In step 140, according to the distance between key word determine alternate statement in knowledge mapping corresponding sentence away from From.
Wherein, after the distance between key word in alternate statement is determined by step 130, will be with key word between Distance be foundation, determine alternate statement corresponding sentence distance in knowledge mapping.
For alternate statement in knowledge mapping corresponding sentence distance, in an exemplary embodiment, to interaction In sentence, the sentence distance between key word is sued for peace, and thus obtained numerical value is defined as alternate statement in knowledge mapping In corresponding sentence distance.
In another exemplary embodiment, also it is introduced into distance weighting, can be in conjunction with distance weighting and alternate statement The distance between key word, to realize alternate statement sentence determination of distance in knowledge mapping, to improve sentence further with this The accuracy of distance.
Distance weighting is used for characterizing significance level in sentence for the modified relationship of mapping.By distance weighting is introduced language Sentence determination of distance, so that finally obtained sentence distance more possesses Semantic, can be used in more reasonable accurately identification Family is intended to.
Specifically, in sentence determination of distance, for the key word that there is modified relationship, have corresponding distance and away from From weight.Therefore, by distance and distance weighting, all key words that there is modified relationship are weighted, you can determine Alternate statement corresponding sentence distance in knowledge mapping.
It should be noted that passing through said process, alternate statement will be determined in the corresponding knowledge mapping of each business Corresponding sentence distance, and then the business corresponding to key word in alternate statement can be determined on this basis.
In step 150, determine the minima in sentence distance, and according to the corresponding knowledge of minima in sentence distance Collection of illustrative plates, returns the corresponding business of alternate statement..
Wherein, the sentence determination of distance being carried out by step 140, determination is obtained alternate statement in each business pair In the knowledge mapping answered, corresponding sentence distance has obtained multiple sentence distances that is to say, that determining.
For alternate statement, sentence distance is bigger, then user is output by the business that alternate statement request enters The probability of the corresponding business of knowledge mapping of this sentence distance is then lower;And sentence distance is less, then user passes through interaction language The business that sentence request enters is that the probability of the corresponding business of knowledge mapping exporting this sentence distance is then higher, accordingly, it would be desirable to Determine the minima in sentence distance, i.e. the minimum sentence distance of numerical value.
The knowledge mapping exporting this minima is determined by the minima in sentence distance, exports the knowledge graph of this minima Spectrum is user and is asked the knowledge mapping corresponding to entrance business by the input of alternate statement.
Specifically, after knowledge mapping is determined according to the minima in sentence distance, according to knowledge mapping and business Between corresponding relation, determine the corresponding business of alternate statement, now, determined by business be alternate statement scope of business In final positioning business.
By process as above, it is achieved distance in the corresponding knowledge mapping of each business for the alternate statement and determines, And then obtain alternate statement corresponding sentence distance in each knowledge mapping, because distance operation is based on logical in alternate statement Cross the modified relationship between key word and key word obtained from natural language processing, thus possess very high accurate Property, the trickle differentiation of alternate statement sentence distance in each knowledge mapping can be distinguished, therefore, it is possible to realize the precisely fixed of business Position.
Fig. 4 is the description that the details to step 120 according to an exemplary embodiment is carried out.This step 120, such as schemes Shown in 4, may comprise steps of.
In step 121, word segmentation processing is carried out to alternate statement and obtains word sequence.
Wherein, interact the word segmentation processing of sentence, cutting obtains the vocabulary comprising in alternate statement, this vocabulary is just constituted The word sequence of alternate statement.
In step 123, carry out morphological analysis and syntactic analysis respectively in word sequence, determine the key word in alternate statement And the modified relationship between key word.
Wherein, in obtained word sequence, carry out morphological analysis first, and then on the basis of morphological analysis, can Carry out syntactic analysis, to finally give the modified relationship between the key word in alternate statement and key word.
Specifically, morphological analysis refers to the process of carry out part-of-speech tagging in word sequence, just can obtain word by this process The part of speech of each vocabulary in sequence.
On this basis, just syntactic analysis is carried out to the vocabulary being labelled with part of speech, it includes syntactic analysiss and sentence is modified The process of analysis.
It is labelled with the vocabulary of part of speech in word sequence, vocabulary can be formed phrase two-by-two, and then identify in alternate statement exist Grammatical item and grammatical relation, grammatical item is the phrase of composition in word sequence, and grammatical relation then pointed out grammer one-tenth Relation between key word in point.
For example, grammatical relation can include att (relation in fixed) and rad (right additional relationships) etc..
After achieving syntactic analysiss, line statement will be entered and modify analysis, to determine alternate statement by this process In which vocabulary as key word, and what kind of modified relationship these as having between the vocabulary of key word.
Modified relationship denotes in alternate statement between vocabulary in syntactical Matching Relation.Pass through carried out sentence to repair Decorations analysis, multiple modification relation present in alternate statement will be obtained, and then carry out nested cutting according to multiple modification relation be Can, thus just can obtain the modified relationship being formed between the key word in input language and key word, thus for follow-up Knowledge mapping is inquired about.
By process as above, extract from alternate statement and obtain carrying out the key word required for scope of business, and And obtained key word is to be consistent with the semanteme in alternate statement, effectively and accurately reflect content in alternate statement and User view, and then enable it precisely to reflect that alternate statement is right in this knowledge mapping in the distance operation in knowledge mapping The sentence distance answered, therefore, provides data basis for follow-up processing procedure.
Fig. 5 is the description that carries out of details of the step 130 according to an exemplary embodiment.This step 130, such as Fig. 5 Shown, may comprise steps of.
In step 131, the related knowledge mapping of alternate statement is determined according to the key word in alternate statement.
Wherein, for the multiple business being configured, each business all has corresponding knowledge mapping.Known by alternate statement Know the business to determine entrance for the corresponding sentence distance in collection of illustrative plates.
Obtain the key word in alternate statement in the step 110 by the corresponding embodiment of Fig. 1 or the corresponding embodiment of Fig. 3 Afterwards, distinguished in corresponding knowledge mapping in multiple business, determined the knowledge of all key words containing in alternate statement Collection of illustrative plates.
Specifically, knowledge mapping comprises multiple nodes that represent corresponding vocabulary, and vocabulary is associated each other Node will be connected by side.That is, knowledge mapping also includes the side of connecting node.
In the corresponding knowledge mapping of each business, all inquired about, to obtain the knowledge mapping of alternate statement correlation, owned Key word all have corresponding node in this knowledge mapping, and the vocabulary representated by this node is consistent with key word. Thus obtained knowledge mapping is one or more.
In step 133, determine that presence is repaiied according to there is the key word of the modified relationship Node distribution in knowledge mapping The distance between key word of decorations relation.
Wherein, after determining the related knowledge mapping of alternate statement, the inquiry of key word, pin are carried out in knowledge mapping To each modified relationship in alternate statement, carry out looking in knowledge mapping using two key words forming this modified relationship Ask, so that the related Node distribution of key word is obtained according to this two key words distribution in knowledge mapping.
Here it should be noted that for the related knowledge mapping of an alternate statement, carry out above-mentioned for modified relationship Inquiry in knowledge mapping, to obtain the Node distribution in knowledge mapping for two key words forming this modified relationship.
By that analogy, you can obtain key word that in this alternate statement, all modified relationships connect respectively in this knowledge mapping In Node distribution, in order to be calculated corresponding distance respectively.
The related other knowledge mapping of alternate statement, also will obtain all modified relationships in alternate statement according to said process Distance in a knowledge mapping for the key word connecting respectively.
That is, being will be in interaction language for the computing that there is distance between the key word of modified relationship in alternate statement The related all knowledge mapping of sentence are carried out respectively, and for each knowledge mapping, are also all directed to institute present in alternate statement Modified relationship is had to realize existing the computing of distance between the key word of modified relationship, to obtain all modifications in this knowledge mapping The distance between key word of relation.
By this process, really the word spacing in modified relationship and knowledge mapping is passed through to the keyword in alternate statement With a distance from measurement between the two.
For existing between the key word of modified relationship, obtain it after the Node distribution in knowledge mapping, node As there is the distance in knowledge mapping for the key word of modified relationship between the word of configuration apart from sum between distribution interior joint.
Between node, between the word of configuration, distance can be a default value, and for example, the value of this default value can be 1, also may be used Be according to node between relation configured.
In one exemplary embodiment, all it is mapped with the distance property being consistent with itself relation between node, distance belongs to Property for word between control node between distance size, this distance property includes distance weighting between word, therefore, distance power between word Between the word of weight and acquiescence, the product between distance is distance between actual word between node.
By distance property, by make knowledge mapping possess unified apart from quantitative criteria, finally obtained word spacing From be between the word completing normalized with a distance from, and then make in the knowledge mapping corresponding to a business, and relatively other Knowledge mapping corresponding to business, be provided with unified apart from quantitative criteria, and then different business can be directed to, by knowledge graph Between the word of spectrum, distance possesses very accurate polymerism.
For the scope of business of alternate statement, in knowledge mapping, between word, the normalization of distance will more meticulously be carried out The differentiation of sentence distance between different knowledge mapping, therefore, it is possible to the further accuracy improving scope of business.
Fig. 6 is the description that the details to step 140 according to an exemplary embodiment is carried out.This step 140, such as schemes Shown in 6, can also comprise the following steps.
In step 141, determined between key word according to the mapping relations between default distance weighting and modified relationship The distance weighting of modified relationship mapping.
Wherein, as previously described, modified relationship is multiple, and carries out nature language by step 120 in the corresponding embodiment of Fig. 1 Speech process after the modified relationship that obtained by alternate statement be then therein one or several.
Pre-set the mapping relations between distance weighting and modified relationship.That is, being each modified relationship, All it is configured with corresponding distance weighting.
Key word in alternate statement and key word are being obtained by the corresponding embodiment of Fig. 1 or the corresponding embodiment of Fig. 3 Between formed modified relationship after, by the mapping relations pre-setting obtain this modified relationship mapping distance weighting be Can.
In step 143, the distance weighting by modified relationship mapping between the distance between key word and key word is true Determine alternate statement corresponding sentence distance in knowledge mapping.
Wherein, after the modified relationship between for key word determines the distance weighting of mapping, will be in conjunction with distance weighting To interact sentence sentence determination of distance in knowledge mapping with the distance between key word, and then to obtain accurate sentence Distance.
By this process, it is that the scope of business of alternate statement introduces distance weighting so that alternate statement is in alternate statement Distance between the word that scope of business not only considers in knowledge mapping it is also contemplated that the factor of semantic level modified relationship, and then by pole The big accuracy that improve sentence distance.
In an exemplary embodiment, step 143, may comprise steps of.
According to the key word forming modified relationship each other, the distance between key word and distance weighting are weighted Computing obtains alternate statement corresponding sentence distance in knowledge mapping.
Wherein, for the knowledge mapping that alternate statement is related, obtained by the step 130 of the corresponding embodiment of Fig. 1 There is the distance between key word of modified relationship, and this modified relationship is configured with the distance weighting of mapping.
By that analogy, in alternate statement, all modified relationships, can access the distance between key word and distance Weight, and then compute weighted and can get alternate statement corresponding sentence distance in knowledge mapping.
For example, in fig. 2, the sentence that institute's computing obtains is apart from distance=a*e1+b*e2+c*e3.Wherein, a, b and c For distance weighting, and e1, e2 and e3 are to there is the distance between key word of modified relationship.
Thus, in the knowledge mapping that alternate statement is related, all computings obtain corresponding sentence distance, and then on this basis Carry out scope of business.
Here, can know, alternate statement corresponding sentence distance in knowledge mapping, is that the modification according to sentence is closed System, that is, the real meaning correlation statistics of sentence obtain, and no longer all words in sentence are calculated phase two-by-two Mutual edge distance, improves the specific aim of alternate statement in sentence distance operation.
In conjunction with concrete application scene, the scope of business method of this alternate statement is described.With alternate statement " cloudy day tomorrow " As a example, it is described.
Natural language processing is carried out to alternate statement " cloudy day tomorrow ", i.e. part-of-speech tagging, syntactic analysiss and syntactic analysis Process.
Fig. 7 is natural language processing alternate statement " weather cloudy day tomorrow " being carried out according to an exemplary embodiment The schematic diagram of journey.
In this alternate statement, include " tomorrow ", " weather ", " cloudy " and " " these vocabulary, and can lead to Cross participle to obtain, in the word sequence that is, participle obtains, include these vocabulary.
In the word sequence obtained by participle, step 310 is first carried out and carries out part-of-speech tagging, then carry out syntactic analysiss again Modify analysis, i.e. step 330 and step 350 with sentence.
Modify in analysis in the syntactic analysiss being carried out and sentence, marked by connecting corresponding camber line between word and word Note grammatical relation and modified relationship.
After completing this process, you can determine modified relationship present in alternate statement, i.e. time (time case), exp (when concerning being) and mtone (tone labelling).
And it may be determined that the word of connection, there is the word of modified relationship between correlation, as close in the camber line according to mark Keyword.
By this process, determined which vocabulary in alternate statement is true using carrying out distance between any two as key word Fixed.
According to the key word in alternate statement, obtain the related knowledge mapping of alternate statement, i.e. song knowledge mapping and sky Gas knowledge mapping.
Alternate statement in order to effectively count representated by key word corresponds in song knowledge mapping and weather knowledge mapping Sentence distance, need to obtain there is the distance between key word of modified relationship by song knowledge mapping, and then according to this Modified relationship obtains the distance weighting mapping, and distance weighting is multiplied with distance and can determine that this has the key of modified relationship In the final distance of song knowledge mapping, by that analogy, the key word of multiple modified relationships carries out the addition fortune of final distance to word Calculate and just obtained alternate statement corresponding sentence distance in song knowledge mapping.
Alternate statement corresponding sentence distance in weather knowledge mapping obtains also by this process.
For example, according to illustrating marked modified relationship, the distance weighting mapping can be obtained.Fig. 8 is according to an example Property implement the partial schematic diagram of weather knowledge mapping that exemplifies.In the inquiry of this weather knowledge mapping, can be existed The distance between key word " tomorrow " and key word " weather " of modified relationship time is 1.6, exists modified relationship exp's The distance between key word " cloudy " and key word " weather " are 1.
Modified relationship time mapping distance weighting be 1, modified relationship exp mapping distance weighting be 0.9, then sentence away from From for 1.6*1+1*0.9=2.5.
Fig. 9 is the partial schematic diagram of the song knowledge mapping according to an exemplary embodiment.In this song knowledge graph In the inquiry of spectrum, can obtain there is the distance between key word " tomorrow " and key word " weather " of modified relationship time and be 2, there is the distance between key word " cloudy " and key word " weather " of modified relationship exp is 2, then the language that institute's computing obtains Sentence distance is 2*1+2*0.9=3.8.
Here it should be added that, in Fig. 8 and Fig. 9, carried out the normalized of distance between word between each node, So that accurate distance between word between each node and between each knowledge mapping.
Following for disclosure device embodiment, the scope of business method that can be used for executing the above-mentioned alternate statement of the disclosure is real Apply example.For the details not disclosed in disclosure device embodiment, the scope of business method that refer to disclosure alternate statement is real Apply example.
Figure 10 is a kind of block diagram of the scope of business device of the alternate statement according to an exemplary embodiment.This interaction The scope of business device of sentence, as shown in Figure 10, including but not limited to: acquisition module 510, sentence processing module 520, key word Apart from determining module 530, sentence apart from determining module 540 and business determining module 550.
Acquisition module 510, for obtaining the alternate statement of user input.
Sentence processing module 520, for determining the modification pass being formed between the key word in alternate statement and key word System.
Key word apart from determining module 530, for obtaining by knowledge mapping existing between the key word of modified relationship Distance, knowledge mapping indicates the corresponding business of alternate statement.
Sentence apart from determining module 540, for determining alternate statement in knowledge mapping according to the distance between key word Corresponding sentence distance.
Business determining module 550, for determining the minima in sentence distance, and according to the minima pair in sentence distance The knowledge mapping answered, returns the corresponding business of alternate statement.
Figure 11 is the description that the details to sentence processing module according to an exemplary embodiment is carried out.At this sentence Reason module 520, as shown in Figure 10, including but not limited to: word segmentation processing submodule 521 and morphology syntactic analysis submodule 523.
Word segmentation processing submodule 521, obtains word sequence for carrying out word segmentation processing to alternate statement.
Morphology syntactic analysis submodule 523, for carrying out morphological analysis and syntactic analysis respectively in word sequence, determines described The modified relationship being formed between key word in alternate statement and key word.
Figure 12 be according to an exemplary embodiment to key word apart from determining module 530 retouching of carrying out of details State.This key word apart from determining module 530, as shown in figure 11, including but not limited to: collection of illustrative plates determination sub-module 531 and key word Determination sub-module 533.
Collection of illustrative plates determination sub-module 531, for determining the related knowledge graph of alternate statement according to the key word in alternate statement Spectrum.
Key word determination sub-module 533, for dividing according to there is the key word of the modified relationship node in knowledge mapping Cloth determines there is the distance between key word of modified relationship.
Figure 13 be according to an exemplary embodiment to sentence apart from determining module the description that carries out of details.This language Sentence, apart from determining module 540, also includes but is not limited to: distance weighting mapping submodule 541 and sentence are apart from determination sub-module 543.
This distance weighting mapping submodule 541, for closing according to the mapping between default distance weighting and modified relationship System determines the distance weighting of modified relationship mapping between key word;
Sentence apart from determination sub-module 543, for being reflected by modified relationship between the distance between key word and key word The distance weighting penetrated determines alternate statement corresponding sentence distance in knowledge mapping.
In one exemplary embodiment, sentence is further used for according to being formed each other apart from determination sub-module 543 The key word of modified relationship, computes weighted to the distance between key word and distance weighting and obtains alternate statement in knowledge graph Corresponding sentence distance in spectrum.
Figure 14 is a kind of block diagram of the device 600 according to an exemplary embodiment.Device 600 is used for realizing as above institute The scope of business method of the alternate statement stated.
With reference to Figure 14, device 600 can include following one or more assemblies: process assembly 602, memorizer 604, power supply Assembly 606, multimedia groupware 608, audio-frequency assembly 610, sensor cluster 614 and communication component 616.
The integrated operation of the usual control device 600 of process assembly 602, such as with display, call, data communication, phase Machine operation and record operate associated operation etc..Process assembly 602 can include one or more processors 618 to execute Instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 602 can include one or more modules, It is easy to the interaction between process assembly 602 and other assemblies.For example, process assembly 602 can include multi-media module, with convenient Interaction between multimedia groupware 608 and process assembly 602.
Memorizer 604 is configured to store various types of data to support the operation in device 600.The showing of these data Example includes the instruction for any application program of operation or method on device 600.Memorizer 604 can be by any kind of Volatibility or non-volatile memory device or combinations thereof are realized, such as static RAM (sram), electrically erasable Except programmable read only memory (eeprom), Erasable Programmable Read Only Memory EPROM (eprom), programmable read only memory (prom), read only memory (rom), magnetic memory, flash memory, disk or CD.Also it is stored with memorizer 604 one Or multiple module, this one or more module is configured to be executed by this one or more processors 618, to complete above-mentioned Fig. 1 All or part of step in the arbitrary shown method of Fig. 4, Fig. 5 and Fig. 6.
Power supply module 606 provides electric power for the various assemblies of device 600.Power supply module 606 can include power management system System, one or more power supplys, and other generate, manage and distribute, with for device 600, the assembly that electric power is associated.
Multimedia groupware 608 includes the screen of one output interface of offer between described device 600 and user.One In a little embodiments, screen can include liquid crystal display (lcd) and touch panel (tp).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sensing touch or sliding action Border, but also detection and described touch or slide related persistent period and pressure.
Audio-frequency assembly 610 is configured to output and/or input audio signal.For example, audio-frequency assembly 610 includes a Mike Wind (mic), when device 600 is in operator scheme, during as call model, logging mode and speech recognition mode, mike is joined It is set to reception external audio signal.The audio signal being received can be further stored in memorizer 604 or via communication set Part 616 sends.In certain embodiments, audio-frequency assembly 610 also includes a speaker, for exports audio signal.
Sensor cluster 614 includes one or more sensors, for providing the state of various aspects to comment for device 600 Estimate.For example, sensor cluster 614 can detect/the closed mode of opening of device 600, the relative localization of assembly, sensor group Part 614 can be with the temperature change of the position change of detection means 600 or 600 1 assemblies of device and device 600.At some In embodiment, this sensor cluster 614 can also include Magnetic Sensor, pressure transducer or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, such as wifi, 2g or 3g, or combinations thereof.In an exemplary enforcement In example, communication component 616 receives broadcast singal or the broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, described communication component 616 also includes near-field communication (nfc) module, to promote junction service.Example As, RF identification (rfid) technology can be based in nfc module, Infrared Data Association (irda) technology, ultra broadband (uwb) technology, Bluetooth (bt) technology and other technologies are realizing.
In the exemplary embodiment, device 600 can be by one or more application specific integrated circuits (asic), numeral letter Number processor (dsp), digital signal processing appts (dspd), PLD (pld), field programmable gate array (fpga), controller, microcontroller, microprocessor or other electronic components are realized, for executing said method.
Optionally, the disclosure also provides a kind of scope of business device of alternate statement, and the scope of business of this alternate statement is held The all or part of step of the scope of business method of the arbitrary shown alternate statement of row Fig. 1, Fig. 4, Fig. 5 and Fig. 6.Described device Including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to execute:
Obtain the alternate statement of user input;
Determine the modified relationship being formed between key word and the described key word in described alternate statement;
Obtain there is the distance between described key word of modified relationship by knowledge mapping, described knowledge mapping indicates institute State the corresponding business of alternate statement;
According to the distance between described key word determine described alternate statement in described knowledge mapping corresponding sentence away from From;
Determine the minima of described sentence distance, and according to the corresponding knowledge mapping of minima in described sentence distance, Return the corresponding business of described alternate statement.
The concrete mode of the computing device operation of the device in this embodiment is in the business about this alternate statement Perform detailed description in the embodiment of localization method, explanation will be not set forth in detail herein.
In the exemplary embodiment, additionally provide a kind of storage medium, this storage medium is computer-readable recording medium, It can be for example the provisional and non-transitorycomputer readable storage medium including instruction.This storage is situated between and refers to for example include instructing Memorizer 604, above-mentioned instruction can execute by the processor 618 of device 600 to complete the scope of business side of above-mentioned alternate statement Method.
It is described above and precision architecture illustrated in the accompanying drawings it should be appreciated that the invention is not limited in, and And various modifications and changes can executed without departing from the scope.The scope of the present invention only to be limited by appended claim.

Claims (10)

1. a kind of scope of business method of alternate statement, comprising:
Obtain the alternate statement of user input;
Determine the modified relationship between key word and the described key word in described alternate statement;
Obtain there is the distance between described key word of modified relationship by knowledge mapping, described knowledge mapping indicates described friendship The mutually corresponding business of sentence;
Described alternate statement corresponding sentence distance in described knowledge mapping is determined according to the distance between described key word;
Determine the minima in described sentence distance, and according to the corresponding knowledge mapping of minima in described sentence distance, return Return the corresponding business of described alternate statement.
2. method according to claim 1 is it is characterised in that the key word in the described alternate statement of described determination and institute State the modified relationship between key word, comprising:
Word segmentation processing is carried out to described alternate statement and obtains word sequence;
Carry out morphological analysis and syntactic analysis respectively in described word sequence, determine key word in described alternate statement and described Modified relationship between key word.
3. method according to claim 1 it is characterised in that described according to the distance between described key word determine described in Alternate statement corresponding sentence distance in described knowledge mapping, comprising:
Determine that the modified relationship between described key word reflects according to the mapping relations between default distance weighting and modified relationship The distance weighting penetrated;
Determined described by the distance weighting of the modified relationship mapping between the distance between described key word and described key word Alternate statement corresponding sentence distance in described knowledge mapping.
4. method according to claim 3 it is characterised in that described by the distance between described key word with described pass Between keyword modified relationship mapping distance weighting determine described alternate statement in described knowledge mapping corresponding sentence away from From, comprising:
According to the key word that there is modified relationship each other, the distance between described key word and distance weighting are weighted Computing obtains described alternate statement corresponding sentence distance in described knowledge mapping.
5. method according to claim 1 is it is characterised in that the described institute obtaining by knowledge mapping there is modified relationship State the distance between key word, comprising:
The related knowledge mapping of described alternate statement is determined according to the key word in described alternate statement;
According to Node distribution in described knowledge mapping for the described key word that there is modified relationship, determine described exist to modify close The distance between key word of system.
6. a kind of scope of business device of alternate statement is it is characterised in that include:
Acquisition module, for obtaining the alternate statement of user input;
Sentence processing module, for determining the modified relationship being formed between the key word in alternate statement and key word;
Key word apart from determining module, for obtain by knowledge mapping existing between the described key word of modified relationship away from From described knowledge mapping indicates the corresponding business of described alternate statement;
Sentence apart from determining module, for determining described alternate statement in described knowledge graph according to the distance between described key word Corresponding sentence distance in spectrum;
Business determining module, for determining the minima in described sentence distance, and according to the minima in described sentence distance Corresponding knowledge mapping, returns the corresponding business of described alternate statement.
7. device according to claim 6 is it is characterised in that described sentence processing module includes:
Word segmentation processing submodule, obtains word sequence for carrying out word segmentation processing to described alternate statement;
Morphology syntactic analysis submodule, for carrying out morphological analysis and syntactic analysis respectively in described word sequence, determines described friendship The modified relationship mutually being formed between the key word in sentence and key word.
8. device according to claim 8 is it is characterised in that described sentence includes apart from determining module:
Distance weighting mapping submodule, crucial for being determined according to the mapping relations between default distance weighting and modified relationship The distance weighting of modified relationship mapping between word;
Sentence apart from determination sub-module, for being reflected by modified relationship between the distance between described key word and described key word The distance weighting penetrated determines described alternate statement corresponding sentence distance in described knowledge mapping.
9. device according to claim 8 is it is characterised in that described sentence is further used for basis apart from determination sub-module Form the key word of modified relationship each other, the distance between described key word and distance weighting are computed weighted and obtains Described alternate statement corresponding sentence distance in described knowledge mapping.
10. device according to claim 6 is it is characterised in that described key word includes apart from determining module:
Collection of illustrative plates determination sub-module, for determining the related knowledge graph of described alternate statement according to the key word in described alternate statement Spectrum;
Key word determination sub-module, divides for the node in described knowledge mapping according to the described key word that there is modified relationship Cloth determines described there is the distance between key word of modified relationship.
CN201610688796.3A 2016-08-17 2016-08-17 Service positioning method and device for interactive statements Expired - Fee Related CN106354762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610688796.3A CN106354762B (en) 2016-08-17 2016-08-17 Service positioning method and device for interactive statements

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610688796.3A CN106354762B (en) 2016-08-17 2016-08-17 Service positioning method and device for interactive statements

Publications (2)

Publication Number Publication Date
CN106354762A true CN106354762A (en) 2017-01-25
CN106354762B CN106354762B (en) 2020-03-20

Family

ID=57843555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610688796.3A Expired - Fee Related CN106354762B (en) 2016-08-17 2016-08-17 Service positioning method and device for interactive statements

Country Status (1)

Country Link
CN (1) CN106354762B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107527619A (en) * 2017-08-29 2017-12-29 海信集团有限公司 The localization method and device of Voice command business
CN110704591A (en) * 2019-09-27 2020-01-17 联想(北京)有限公司 Information processing method and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101937436A (en) * 2009-06-29 2011-01-05 华为技术有限公司 Text classification method and device
CN104090955A (en) * 2014-07-07 2014-10-08 科大讯飞股份有限公司 Automatic audio/video label labeling method and system
US20160179965A1 (en) * 2014-12-19 2016-06-23 International Business Machines Corporation Information propagation via weighted semantic and social graphs
CN106126503A (en) * 2016-07-12 2016-11-16 海信集团有限公司 Business scope localization method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101937436A (en) * 2009-06-29 2011-01-05 华为技术有限公司 Text classification method and device
CN104090955A (en) * 2014-07-07 2014-10-08 科大讯飞股份有限公司 Automatic audio/video label labeling method and system
US20160179965A1 (en) * 2014-12-19 2016-06-23 International Business Machines Corporation Information propagation via weighted semantic and social graphs
CN106126503A (en) * 2016-07-12 2016-11-16 海信集团有限公司 Business scope localization method and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘莹等: "基于标记的图数据关键词查询方法研究", 《科学技术与工程》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107527619A (en) * 2017-08-29 2017-12-29 海信集团有限公司 The localization method and device of Voice command business
CN107527619B (en) * 2017-08-29 2021-01-05 海信集团有限公司 Method and device for positioning voice control service
CN110704591A (en) * 2019-09-27 2020-01-17 联想(北京)有限公司 Information processing method and computer equipment

Also Published As

Publication number Publication date
CN106354762B (en) 2020-03-20

Similar Documents

Publication Publication Date Title
CN111984779B (en) Dialogue text analysis method, device, equipment and readable medium
CN110482072B (en) Garbage classification method, system, medium, garbage storage device and cloud platform
CN110309283A (en) A kind of answer of intelligent answer determines method and device
CN107924679A (en) Delayed binding during inputting understanding processing in response selects
CN106326211B (en) Determination of distance method and apparatus between the keyword of alternate statement
WO2018045202A1 (en) Automating natural language task/dialog authoring by leveraging existing content
CN106372132A (en) Artificial intelligence-based query intention prediction method and apparatus
CN108780463A (en) Social map generalization and management
CN108139862A (en) Multiwindow keyboard
US11004449B2 (en) Vocal utterance based item inventory actions
CN105378708A (en) Environmentally aware dialog policies and response generation
CN106952401B (en) A kind of data processing method and device
US20140350931A1 (en) Language model trained using predicted queries from statistical machine translation
CN109284549A (en) A kind of buildings model parameter management method, computer installation and readable storage medium storing program for executing
CN112085266A (en) Government affair data processing method and device, electronic equipment and storage medium
WO2023124215A1 (en) User question labeling method and device
CN115547466B (en) Medical institution registration and review system and method based on big data
CN106486120A (en) Interactive voice response method and answering system
US10950221B2 (en) Keyword confirmation method and apparatus
CN111562541B (en) Software platform for realizing electric energy meter detection data management by applying CART algorithm
CN106354762A (en) Business positioning method and device for interaction statements
CN113051287A (en) Query statement generation method, device, equipment and storage medium
CN112417996A (en) Information processing method and device for industrial drawing, electronic equipment and storage medium
CN108764283A (en) A kind of the loss value-acquiring method and device of disaggregated model
US20140052757A1 (en) Techniques providing a software fitting assessment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200320