CN106682223A - Method and device for detecting data validity and method and device for intelligent interaction - Google Patents
Method and device for detecting data validity and method and device for intelligent interaction Download PDFInfo
- Publication number
- CN106682223A CN106682223A CN201710004566.5A CN201710004566A CN106682223A CN 106682223 A CN106682223 A CN 106682223A CN 201710004566 A CN201710004566 A CN 201710004566A CN 106682223 A CN106682223 A CN 106682223A
- Authority
- CN
- China
- Prior art keywords
- data
- backup
- base
- sentence
- fail
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/242—Query formulation
- G06F16/243—Natural language query formulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2358—Change logging, detection, and notification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Artificial Intelligence (AREA)
- Computational Linguistics (AREA)
- Computing Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a method and device for detecting data validity and a method and device for intelligent interaction. The method comprises the steps of performing pre-backup on data in a database to obtain backup data, wherein the database is used for supporting the interactive process; performing timeliness detection on the backup data to screen failure data in the backup data; and identifying data in the database corresponding to the failure data. According to the technical scheme, the accuracy of the data in the database can be improved.
Description
Technical field
The present invention relates to areas of information technology, more particularly to data validity detection method and device, intelligent interactive method
And device.
Background technology
With the development of information technology, increasing field is adopted based on the data management of data base, based on data base
In data interaction is supported.Data in the data base that interaction is based on generally need to be updated or daily
Safeguard.
In prior art, after the data in data base fail because of reasons such as timeliness is expired, data movements, by interacting
Journey remains to for fail data to feed back to requesting party, and the data accuracy in data base is poor, causes misleading to user and is stranded
Disturb.
The content of the invention
Present invention solves the technical problem that being the accuracy for lifting data in data base.
To solve above-mentioned technical problem, the embodiment of the present invention provides a kind of detection method of data validity, including:In advance
Data in backup database, to obtain Backup Data, the data base is used to support interaction;The Backup Data is entered
The ageing detection of row, to screen the Backup Data in fail data;Identify and correspond in the data base failure number
According to data.
Optionally, the detection method of data validity also includes:Disable data identified in the data base.
Optionally, the detection method of data validity also includes:Generate for data identified in the data base
Prompting message.
Optionally, the data base includes effective period of time data, and the effective time segment data has effective time
Time limit;Ageing detection is carried out to the Backup Data to be included:Determine and correspond in the Backup Data effective period of time
The target Backup Data of data;Effective time time limit and the current time of the target Backup Data are contrasted, if when described effective
Between the time limit before current time, then the target Backup Data be fail data.
Optionally, the detection method of data validity also includes:By the data in the backup database, obtain described
Backup Data and DB Backup are indexed, and the DB Backup index includes the data in Backup Data and the data base
Corresponding relation;It is described the Backup Data is carried out it is ageing detection include:Institute is obtained based on DB Backup index
State the data in the corresponding data base of Backup Data;In comparing data current in the data base and the Backup Data
Corresponding data;If the data in the Backup Data are different from corresponding data in the data base, by the backup
Data in data are used as fail data.
Optionally, the data base includes linking data, and ageing detection is carried out to the Backup Data to be included:Detection
The effectiveness of the address that the link data are pointed to.
Optionally, the detection method of the data validity also includes:Receive the operation for identified data;According to
Data after operation, update corresponding fail data in the Backup Data;It is described to update corresponding mistake in the Backup Data
Effect data include:It is valid data to delete the fail data or change the fail data.
Optionally, the data base includes knowledge point, and the knowledge point includes the explanation of feature sentence and feature sentence
Sentence, the fail data is failure knowledge point, and the data of mark are that the failure knowledge point is corresponded in the data base
Feature sentence.
Optionally, the data base is scanned for by search engine, to support the interaction.
The embodiment of the present invention also provides a kind of intelligent interactive method to be included:According to the detection side of described data validity
Method, to the data base validation checking is carried out;The problem sentence of receive user;Data in the data base are asked with described
Topic statement matching;According to the result of matching, answer sentence is generated, to respond to the user.
Optionally, at predetermined intervals validation checking is carried out to the data base.
Optionally, if the result of the matching is identified data, using corresponding according to the reason for different failures
Used as the answer sentence, the failure cause includes the failure different with data of effective period of time data failure to default sentence.
Optionally, the data base includes knowledge point, if not matching knowledge point, the generation answer sentence bag
Include:Knowledge point of the degree of association more than preset value is screened in the not identified data of the data base according to the problem sentence
As recommendation knowledge point;According to the recommendation knowledge point, the answer sentence is generated.
The embodiment of the present invention also provides a kind of detection means of data validity to be included:Backup units, are suitable to backup in advance
Data in data base, to obtain Backup Data, the data base is used to support interaction;
Ageing detector unit, is suitable to carry out ageing detection to the Backup Data, to screen the Backup Data in
Fail data;Mark unit, is suitable to identify in the data base corresponding to the data of the fail data.
Optionally, the detection means of described data validity also includes:Forbidden cell, is suitable to disable in the data base
Identified data.
Optionally, the detection means of described data validity also includes:Reminding unit, is suitable to generate for the data
The prompting message of identified data in storehouse.
Optionally, the data base includes effective period of time data, and the effective time segment data has effective time
Time limit;The ageing detector unit includes:Target Backup Data determination subelement, is adapted to determine that correspondence in the Backup Data
In the target Backup Data of the effective time segment data;First fail data determination subelement, is suitable to contrast the target standby
The effective time time limit of number evidence and current time, if the effective time time limit, before current time, the target is standby
Number evidence is fail data.
Optionally, the backup units are further adapted for obtaining the Backup Data and DB Backup index, the data base
Archive index includes the corresponding relation of the data in Backup Data and the data base;The ageing detector unit includes:
Corresponding data determination subelement, is suitable to obtain the corresponding data base of the Backup Data based on DB Backup index
In data;Subelement is compared, is suitable to compare data current in the data base with corresponding data in the Backup Data;
Second fail data determination subelement, if the data in the Backup Data are different from corresponding data in the data base,
Then using the data in the Backup Data as fail data.
Optionally, the data base includes linking data, and the ageing detector unit is adapted to detect for the link number
According to the effectiveness of the address pointed to.
Optionally, the detection means of the data validity also includes:Operation receiving unit, is suitable to receive for identified
Data operation;Backup Data updating block, the data after being suitable to according to operation update corresponding mistake in the Backup Data
Effect data;It is described to update corresponding fail data in the Backup Data and include:Delete the fail data or change the mistake
Effect data are valid data.
Optionally, the data base includes knowledge point, and the knowledge point includes the explanation of feature sentence and feature sentence
Sentence, the fail data is failure knowledge point, and the data of mark are that the failure knowledge point is corresponded in the data base
Feature sentence.
Optionally, the data base is scanned for by search engine, to support the interaction.
The embodiment of the present invention also provides a kind of intelligent interaction device, including:Validation checking unit, is suitable to according to described
The detection method of data validity, to the data base validation checking is carried out;Problem sentence receiving unit, is suitable to receive user
Problem sentence;Matching unit, is suitable to the data in the data base and the problem statement matching;Response unit, is suitable to
According to the result of matching, answer sentence is generated, to respond to the user.
Optionally, the validation checking unit is suitable to carry out effectiveness inspection to the data base at predetermined intervals
Survey.
Optionally, if it is identified data that the response unit is suitable to the result of the matching, according to different failures
The reason for using accordingly default sentence as the answer sentence, the failure cause include effective period of time data failure and
The different failures of data.
Optionally, the response unit includes:Recommend knowledge point determination subelement, be suitable to according to the problem sentence in institute
The knowledge point that degree of association is screened in the not identified data of data base more than preset value is stated as recommendation knowledge point;Answer sentence
Subelement is generated, according to the recommendation knowledge point, the answer sentence is generated.
Compared with prior art, the technical scheme of the embodiment of the present invention has the advantages that:
In embodiments of the present invention, the data in advance backup database, the data to backing up carry out ageing detection, sieve
The fail data in Backup Data is selected, and corresponding to the data of fail data in identification database.Due to being used to prop up during data base
Interaction is held, by backing up to the data in data base, the data to backing up carry out ageing detection, can cause
The Dynamic data exchange of ageing detection in the data of the support to interaction, such that it is able to avoid the process of ageing detection to handing over
The mutually impact of the efficiency of process.In addition, by the data in identification database corresponding to timeliness data, can be in data base
Data make a distinction, the state of data in explicit data storehouse, there is provided the more information of data in data base, and then can lift number
According to the accuracy of data in storehouse.
Further, by the data in the backup database, Backup Data and DB Backup index, the number are obtained
Include the corresponding relation of the data in Backup Data and the data base according to library backup index, compare in the data base currently
Data and corresponding data in the Backup Data, if the data in the Backup Data be different from the data base in it is right
The data answered, then using the data in the Backup Data as fail data.Thus, it is possible to the number changed in data base
According to being identified as fail data, the further operation such as to be confirmed, be deleted, be changed to fail data, and then can be with
Data to changing in data base carry out secondary-confirmation, to lift data base in data accuracy.
Further, when data base includes linking data, carrying out ageing detection to the Backup Data can include
The effectiveness of the address that the detection link data are pointed to.Data base can be the data for supporting this interaction of search engine
Storehouse, if it is invalid in the address that sensing is linked shown in Search Results, it may appear that the situation that the page cannot be opened, therefore by inspection
The effectiveness of the address that the link data are pointed to is surveyed, the accuracy of data in data base can be lifted, lift Consumer's Experience.
Further, because fail data is to detect the uncertain data of effectiveness that obtain by ageing, for example can be with
Be change in data base data, cross expiry date effective time segment data, or can also be failure link
Data.Identified data correspond to the data of fail data in data base, therefore by disabling identified data, can subtract
The answer of mistake is provided a user with few interaction so that the accuracy of interaction is higher.
In addition, in intelligent interactive method provided in an embodiment of the present invention, the problem sentence of receive user, by data base
Data and problem statement matching, answer sentence is generated according to the result of matching, to respond to user.Due to of the invention real
Apply the data base in example be detected using the detection method of the data validity in the present invention after, can be with data base
Including the mark to data, therefore the mark that the answer sentence for generating in embodiments of the present invention can combine data is generated,
Accuracy is higher.
Description of the drawings
Fig. 1 is a kind of flow chart of the detection method of data validity in the embodiment of the present invention;
Fig. 2 is a kind of flow chart for implementing of step S12 in Fig. 1;
Fig. 3 is the flow chart that the another kind of step S12 in Fig. 1 is implemented;
Fig. 4 is the part schematic flow sheet of another kind of data validity detection method in the embodiment of the present invention;
Fig. 5 is a kind of flow chart of intelligent interactive method in the embodiment of the present invention;
Fig. 6 is a kind of structural representation of the detection means of data validity in the embodiment of the present invention;
Fig. 7 is a kind of structural representation for implementing of ageing detector unit 62 in Fig. 6;
Fig. 8 is the structural representation that the another kind of ageing detector unit 62 in Fig. 6 is implemented;
Fig. 9 is a kind of structural representation of intelligent interaction device in the embodiment of the present invention;
Figure 10 is a kind of structural representation for implementing of the response unit 94 in Fig. 9.
Specific embodiment
As it was previously stated, with the development of information technology, increasing field is using the data management based on data base, base
Data in data base are supported to interaction.Data in the data base that interaction is based on generally need to carry out more
New or regular maintenance.
Data in data base are updated, can be that the data in data base are covered and rewritten so that number
According to there is data variation in storehouse, there is fail data;In addition, the data in data base itself can be the data of effective property,
Data are effectively notified for example only within certain time period.
If not distinguishing the data in data base, the data accuracy in data base is poor, causes interaction
The middle information accuracy to user feedback is poor.
In embodiments of the present invention, the data in advance backup database, the data to backing up carry out ageing detection, sieve
The fail data in Backup Data is selected, and corresponding to the data of fail data in identification database.Due to being used to prop up during data base
Interaction is held, by backing up to the data in data base, the data to backing up carry out ageing detection, can cause
The Dynamic data exchange of ageing detection in the data of the support to interaction, such that it is able to avoid the process of ageing detection to handing over
The mutually impact of the efficiency of process.
In addition, by the data in identification database corresponding to timeliness data, area can be carried out to the data in data base
Point, the state of data in explicit data storehouse, there is provided the more information of data in data base, and then data in data base can be lifted
Accuracy.
It is understandable to enable above-mentioned purpose of the invention, feature and beneficial effect to become apparent from, below in conjunction with the accompanying drawings to this
The specific embodiment of invention is described in detail.
Fig. 1 is a kind of flow chart of the detection method of data validity in the embodiment of the present invention, specifically can be included following
Step:
Step S11, the data in advance backup database, to obtain Backup Data, the data base is used to support interaction
Process;
Step S12, to the Backup Data ageing detection is carried out, to screen the Backup Data in fail data;
Step S13, identifies in the data base corresponding to the data of the fail data.
In the implementing of step S11, the data base can be scanned for by search engine, with to interacting
Journey is supported.
Data in backup database were completed before validation checking.When operating to the data in former data base,
Data in Backup Data are unaffected, the current data of the Backup Data and data base such that it is able to contrast advance backup, with
It was found that fail data.
Specifically, step S11 can also include:By the data in the backup database, the Backup Data is obtained
With DB Backup index, the DB Backup is indexed includes Backup Data pass corresponding with the data in the data base
System.
Specifically, referring to Fig. 2, step S12 can be achieved by the steps of in Fig. 1:
Step S21, the number in the corresponding data base of the Backup Data is obtained based on DB Backup index
According to;
Step S22, current data and corresponding data in the Backup Data in the comparison data base;
Step S23, if the data in the Backup Data are different from corresponding data in the data base, will be described
Data in Backup Data are used as fail data.
DB Backup index is obtained when being the data in backup database, and DB Backup index includes backing up number
According to the data base in data corresponding relation, namely mapping relations that Backup Data and database data map one by one,
Such that it is able to index based on DB Backup, the data in the corresponding data base of the Backup Data are obtained.
There is the data modification after backup in data base, can be in the comparison of step S22 operation by as fail data.
These data can be identified in step S13 in FIG, to be further processed to these data.
Thus, it is possible to the data to changing in data base are identified as fail data, to enter to fail data
The further operations such as row confirms, deletes, modification, and then secondary-confirmation can be carried out to the data changed in data base,
The accuracy of data in lift data base.
Fail data can be the data that change in above-mentioned data base, or cross the effective of expiry date
Time segment data.
Effective time segment data is the data with the effective time time limit, for example, it may be promotion data or notice data.
The effective time time limit is typically included in effective time segment data, for example " the morning 8 on the 12.26th in 2016:00 to 11:00 all
In the data of commodity half price ", comprising effective time limit:" the morning 8 on the 12.26th:00 to 11:00”.
If current time has been later than the morning 11 on the 12.26th in 2016:00, then the data lost the meaning of advance notice,
Can be as fail data.
Specifically, with reference to Fig. 3, as follows ageing detection can be carried out to effective period of time class data:
Step S31, determines in the Backup Data corresponding to the target Backup Data of the effective time segment data;
Step S32, contrasts effective time time limit and the current time of the target Backup Data, if the effective time phase
Before current time, then the target Backup Data is fail data to limit.
In being embodied as of step S31, it is possible to use the mode of semantics recognition determines effective time segment data, and determines
The effective time time limit of effective time segment data.
In being embodied as of step S32, effective time time limit and the current time of the target Backup Data is contrasted, can
Be contrast the effective time time limit deadline date and current time, if the deadline date in effective time time limit current time it
Before, then the target Backup Data is fail data.
In being embodied as, when data base includes linking data, the validation checking of step S12 can be wrapped in Fig. 1
The effectiveness of the address that the detection link data are pointed to is included, if the address that link data are pointed to is invalid, can be in data base
It is middle to identify corresponding data.
Data base can be the data base for supporting this interaction of search engine, such as Baidu, the search engines such as 360
Data base, if it is invalid in the address that sensing is linked shown in Search Results, it may appear that the situation that the page cannot be opened, thus it is logical
The effectiveness for detecting the address that the link data are pointed to is crossed, the accuracy of data in data base can be lifted, lift user's body
Test.
With continued reference to Fig. 1, the detection method of the data validity in the embodiment of the present invention can also include step S14, prohibit
With data identified in the data base.
Data identified in the data base are disabled, is referred to and is forbidden directly using identified data as interaction
Feedback result.Because fail data is to detect the uncertain data of effectiveness for obtaining by ageing, as it was previously stated, can be
The data that change in data base, the effective time segment data of expiry date has been crossed, or can also be the link number of failure
According to.Identified data correspond to the data of fail data in data base, therefore by disabling identified data, it is possible to reduce
The answer of mistake is provided a user with interaction so that the accuracy of interaction is higher.
Further, the prompting for data identified in the data base can also be generated in embodiments of the present invention
Information, to point out to be further processed identified data.
In artificial intelligence field, the maintenance of data base is generally carried out by attendant, it will usually multiple attendants occur
The common situation that data base is safeguarded.In this case, it is possible to occur that an attendant changes another dimension
The situation of the data of shield personnel input, and the correctness of this change has to be determined.
Step as shown in Figure 2 can be now based on using the data being changed in Backup Data as fail data, passed through
Data corresponding with the fail data in step S13 identification database in Fig. 1, and generate for identified in the data base
The prompting message of data, so that attendant carries out further confirmation process, and then can lift the standard of data in data base
True property.
In FIG in the implementing of step S13, the data in identification database corresponding to fail data can be according to number
Carry out according to the concrete data stored in storehouse.
For example, in data base can in the form of knowledge point data storage, knowledge point can include feature sentence and with institute
The associated explanation sentence of feature sentence is stated, fail data can be knowledge point, identify and correspond in the data base mistake
The data of effect data can be the feature sentence in the mark knowledge point.
This is because knowledge point can be made a distinction by feature sentence, by the feature sentence in mark knowledge point, you can
The effect that realization is identified to knowledge point.Also, when line retrieval is entered to knowledge base, carried out by feature sentence, led to
Cross and disable identified feature sentence, you can realize the effect of the corresponding knowledge point of disabling.
Knowledge point most original and simplest form are exactly FAQ conventional at ordinary times, and general form is that " ask-answer " is right.Example
Such as, " rate of CRBT " are exactly that clearly standard asks description for expression.Here " asking " should not be narrowly interpreted as " inquiry ", and
One " input " should broadly be understood, " input " is somebody's turn to do and be there is corresponding " output ".For example, for for the semantic knowledge of control system
For not, an instruction of user, such as " turn on radio " should also be understood to be one " asking ", now corresponding
" answering " could be for performing calling for the control program of corresponding control.Feature sentence equivalent to asking, feature sentence equivalent to
" asking ", explanation sentence corresponding with feature sentence is equivalent to corresponding " answering ".
Referring to Fig. 4, in an embodiment of the present invention, the detection of data validity can also comprise the steps:
Step S41, receives the operation for identified data;
Step S42, according to the data after operation, updates corresponding fail data in the Backup Data;
Wherein, corresponding fail data includes in the renewal Backup Data:Delete the fail data or change
The fail data is valid data.Step S41 and step S42 can be performed after step S13 in such as Fig. 1.
In being embodied as of step S41, receive the operation for identified data can be specifically confirm, change or
Delete etc. operation, to lift data base in data accuracy.
For example, when identified data are the data being modified in data base, can be entered according to practical situation by attendant
Row confirms, changes or deletes.
When identified data are to have crossed the effective time segment data of expiry date, can delete from data base.If desired
Achieve, can be additionally carried out achieving, or can also as needed keep its identified state in data base, it is right to avoid
Normal interaction process is disturbed.
Identified data can be deleted linking data to link during data, or can also change link number
According to the address pointed to, so that its address pointed to is the effective address for suiting the requirements.
To sum up, identified data can be operated as needed, so that the accuracy of the data in data base is obtained
To lifting.
After being updated to the data in data base by step S41, the backup number can be updated in step S42
The corresponding fail data according in, so that Backup Data is consistent again with the data of current database, as next logarithm
The basis of validation checking is carried out according to the data in storehouse.
In embodiments of the present invention, the data in advance backup database, the data to backing up carry out ageing detection, sieve
The fail data in Backup Data is selected, and corresponding to the data of fail data in identification database.Due to being used to prop up during data base
Interaction is held, by backing up to the data in data base, the data to backing up carry out ageing detection, can cause
The Dynamic data exchange of ageing detection in the data of the support to interaction, such that it is able to avoid the process of ageing detection to handing over
The mutually impact of the efficiency of process.In addition, by the data in identification database corresponding to timeliness data, can be in data base
Data make a distinction, the state of data in explicit data storehouse, there is provided the more information of data in data base, and then can lift number
According to the accuracy of data in storehouse.
The embodiment of the present invention also provides a kind of intelligent interactive method, and its flow chart may refer to Fig. 5, can specifically include step
Rapid S51 is to step S54.
In step s 51, according to the detection method of above-mentioned data validity, effectiveness inspection is carried out to the data base
Survey.
Specifically, at predetermined intervals validation checking can be carried out to the data base.
In step S52, the problem sentence of receive user.
In step S53, by the data in the data base and the problem statement matching.
In step S54, according to the result of matching, answer sentence is generated, to respond to the user.
In being embodied as of step S53, data not identified in data base can be matched with problem sentence,
Because not identified data are the data by ageing detection, accuracy is higher, therefore the intelligence friendship in the embodiment of the present invention
Mutually the accuracy of method is higher.
If the result of the matching is identified data, can be according to the reason for different failures using corresponding default
Used as the answer sentence, the failure cause includes the failure different with data of effective period of time data failure to sentence.
When fail data is effective time segment data, the prompting for the effective time segment data, example can be generated
Such as, " the preferential activity that you search for is out of date ".
When fail data is the data being changed in data base, can targetedly be carried according to the data genaration being changed
Show, or can also be replied in a uniform manner, for example, " wait and reply after validation of information you ", and can be to identified
Data operated after, replied again.
Data in data base can include knowledge point, can be using knowing with the problem statement matching in step S53
Know point to match problem sentence.
If the result matched in step S54 generates answer sentence and may include steps of not match knowledge point:
Degree of association is screened more than preset value in the not identified data of the data base according to the problem sentence
Knowledge point is used as recommendation knowledge point;
According to the recommendation knowledge point, the answer sentence is generated.
Thus, it is possible in the case where knowledge point is not matched, generate targetedly answer sentence so that answer sentence
Accuracy it is higher, to a greater extent meet user's request.Due to recommending to be screened in not identified data during knowledge point
Obtain, therefore recommend the accuracy of knowledge point higher, so it is higher according to the answer sentence accuracy for recommending knowledge point to generate.
In intelligent interactive method provided in an embodiment of the present invention, the problem sentence of receive user, by the number in data base
According to problem statement matching, according to matching result generate answer sentence, to respond to user.Due to the embodiment of the present invention
In data base be using the present invention in data validity detection method detected after, can also include in data base
Mark to data, therefore the mark that the answer sentence for generating in embodiments of the present invention can combine data is generated, accurately
Property is higher.
The embodiment of the present invention also provides a kind of detection means of data validity, and its structural representation can be wrapped referring to Fig. 6
Include such as lower unit:
Backup units 61, the data being suitable in advance backup database, to obtain Backup Data, the data base is used to prop up
Hold interaction;
Ageing detector unit 62, is suitable to carry out ageing detection to the Backup Data, to screen the Backup Data
In fail data;
Mark unit 63, is suitable to identify in the data base corresponding to the data of the fail data.
In being embodied as, the detection means of data validity can also include forbidden cell 64, be suitable to disable the number
According to data identified in storehouse.
Because fail data is to detect the uncertain data of effectiveness for obtaining by ageing, for example, can be data base
In change data, cross expiry date effective time segment data, or can also be failure link data.Data
Identified data correspond to the data of fail data in storehouse, therefore by disabling identified data, it is possible to reduce interacted
The answer of mistake is provided a user with journey so that the accuracy of interaction is higher.
In being embodied as, the detection means of data validity can also include reminding unit 65, be suitable to generate for institute
State the prompting message of data identified in data base.
In being embodied as, the data base includes effective period of time data, and the effective time segment data has
Effect time limit;Referring to Fig. 7, the ageing detector unit 62 can include:
Target Backup Data determination subelement 71, is adapted to determine that in the Backup Data and corresponds to the effective time hop count
According to target Backup Data;
First fail data determination subelement 72, be suitable to contrast the effective time time limit of the target Backup Data with it is current
Time, if the effective time time limit is before current time, the target Backup Data is fail data.
In being embodied as, the backup units 61 in Fig. 6 are further adapted for obtaining the Backup Data and DB Backup index,
DB Backup index includes the corresponding relation of the data in Backup Data and the data base;With reference to Fig. 8, in Fig. 6
Ageing detector unit 62 can include:
Corresponding data determination subelement 81, is suitable to based on DB Backup index that to obtain the Backup Data corresponding
Data in the data base;
Subelement 82 is compared, is suitable to compare data current in the data base with corresponding number in the Backup Data
According to;
Second fail data determination subelement 83, if the data in the Backup Data are different from right in the data base
The data answered, then using the data in the Backup Data as fail data.
By the data in the backup database, Backup Data and DB Backup index are obtained, the data base is standby
Part index includes the corresponding relation of the data in Backup Data and the data base, current data in the comparison data base
Data corresponding with the Backup Data, if the data in the Backup Data are different from corresponding number in the data base
According to then using the data in the Backup Data as fail data.Thus, it is possible to the data conduct to changing in data base
Fail data is identified, the further operation such as to be confirmed, be deleted, be changed to fail data, and then can be to data
The data changed in storehouse carry out secondary-confirmation, to lift data base in data accuracy.
In being embodied as, link data can be included in the data base, the ageing detector unit 62 in Fig. 6 is fitted
In the effectiveness for detecting the address that the link data are pointed to.
When data base includes linking data, ageing detection is carried out to the Backup Data can include the detection chain
Connect the effectiveness of the address of data sensing.Data base can be the data base for supporting this interaction of search engine, if its
The address that sensing is linked shown in Search Results is invalid, it may appear that the situation that the page cannot be opened, therefore by detecting the chain
The effectiveness of the address of data sensing is connect, the accuracy of data in data base can be lifted, lift Consumer's Experience.
With continued reference to Fig. 6, in being embodied as, the detection means of data validity can also include:
Operation receiving unit 66, is suitable to receive the operation for identified data;
Backup Data updating block 67, the data after being suitable to according to operation update corresponding failure in the Backup Data
Data;
It is described to update corresponding fail data in the Backup Data and include:Delete the fail data or change institute
Fail data is stated for valid data.
In being embodied as, knowledge point can be included in the data base, the knowledge point includes feature sentence and feature
The explanation sentence of sentence, the fail data is failure knowledge point, and the data of mark are that the mistake is corresponded in the data base
The feature sentence of effect knowledge point.
In being embodied as, the data base is scanned for by search engine, to support the interaction.
The embodiment of the present invention also provides a kind of intelligent interaction device, and its structural representation specifically can include referring to Fig. 9:
Validation checking unit 91, is suitable to the detection method according to above-mentioned data validity, and the data base is carried out
Validation checking;
Problem sentence receiving unit 92, is suitable to the problem sentence of receive user;
Matching unit 93, is suitable to the data in the data base and the problem statement matching;
Response unit 94, is suitable to the result according to matching, answer sentence is generated, to respond to the user.
In being embodied as, the validation checking unit 91 is suitable at predetermined intervals carry out the data base
Validation checking.
In being embodied as, if it is identified data that the response unit 94 is suitable to the result of the matching, basis
The reason for difference failure, the failure cause included effective period of time number using default sentence accordingly as the answer sentence
According to failures different with data of failing.
Referring to Figure 10, in being embodied as, the response unit 94 in Fig. 9 can include:
Recommend knowledge point determination subelement 101, be suitable to according to the problem sentence in the not identified of the data base
Knowledge point of the degree of association more than preset value is screened in data as recommendation knowledge point;
Answer sentence generates subelement 102, according to the recommendation knowledge point, generates the answer sentence.
In intelligent interaction device provided in an embodiment of the present invention, the problem sentence of receive user, by the number in data base
According to problem statement matching, according to matching result generate answer sentence, to respond to user.Due to the embodiment of the present invention
In data base be using the present invention in data validity detection method detected after, can also include in data base
Mark to data, therefore the mark that the answer sentence for generating in embodiments of the present invention can combine data is generated, accurately
Property is higher.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
Completed with instructing the hardware of correlation by program, the program can be stored in a computer-readable recording medium, storage
Medium can include:ROM, RAM, disk or CD etc..
Although present disclosure is as above, the present invention is not limited to this.Any those skilled in the art, without departing from this
In the spirit and scope of invention, can make various changes or modifications, therefore protection scope of the present invention should be with claim institute
The scope of restriction is defined.
Claims (26)
1. a kind of detection method of data validity, it is characterised in that include:
Data in advance backup database, to obtain Backup Data, the data base is used to support interaction;
Ageing detection is carried out to the Backup Data, to screen the Backup Data in fail data;
Identify in the data base corresponding to the data of the fail data.
2. the detection method of data validity according to claim 1, it is characterised in that also include:Disable the data
Identified data in storehouse.
3. the detection method of data validity according to claim 1, it is characterised in that also include:Generate for described
The prompting message of identified data in data base.
4. the detection method of data validity according to claim 1, it is characterised in that the data base includes effectively
Time segment data, the effective time segment data has the effective time time limit;Ageing detection bag is carried out to the Backup Data
Include:Determine in the Backup Data corresponding to the target Backup Data of the effective time segment data;Contrast the target backup
The effective time time limit of data and current time, if the effective time time limit is before current time, the target backup
Data are fail data.
5. the detection method of data validity according to claim 1, it is characterised in that also include:By the backup
Data in data base, obtain the Backup Data and DB Backup index, and the DB Backup index includes backup
The corresponding relation of the data in data and the data base;
It is described the Backup Data is carried out it is ageing detection include:
The data in the corresponding data base of the Backup Data are obtained based on DB Backup index;
Data current in the data base are compared with corresponding data in the Backup Data;
If the data in the Backup Data are different from corresponding data in the data base, by the Backup Data
Data are used as fail data.
6. the detection method of data validity according to claim 1, it is characterised in that the data base includes link
Data, ageing detection is carried out to the Backup Data to be included:The effectiveness of the address that the detection link data are pointed to.
7. the detection method of data validity according to claim 1, it is characterised in that also include:
Receive the operation for identified data;
According to the data after operation, corresponding fail data in the Backup Data is updated;
It is described to update corresponding fail data in the Backup Data and include:Delete the fail data or change the failure number
According to for valid data.
8. the detection method of data validity according to claim 1, it is characterised in that the data base includes knowledge
Point, the knowledge point includes the explanation sentence of feature sentence and feature sentence, and the fail data is failure knowledge point, mark
Data are corresponding to the feature sentence of the failure knowledge point in the data base.
9. the detection method of data validity according to claim 1, it is characterised in that by search engine to the number
Scan for according to storehouse, to support the interaction.
10. a kind of intelligent interactive method, it is characterised in that include:
The detection method of the data validity according to any one of claim 1 to 9, to the data base effectiveness inspection is carried out
Survey;
The problem sentence of receive user;
By the data in the data base and the problem statement matching;
According to the result of matching, answer sentence is generated, to respond to the user.
11. intelligent interactive methods according to claim 10, it is characterised in that at predetermined intervals to the data
Storehouse carries out validation checking.
12. intelligent interactive methods according to claim 10, it is characterised in that if the result of the matching is identified
Data, then using default sentence accordingly, used as the answer sentence, the failure cause includes according to the reason for different failures
The failure different with data of effective period of time data failure.
13. intelligent interactive methods according to claim 10, it is characterised in that the data base includes knowledge point, if
Knowledge point is not matched, then the generation answer sentence includes:
Knowledge of the degree of association more than preset value is screened in the not identified data of the data base according to the problem sentence
Point is used as recommendation knowledge point;
According to the recommendation knowledge point, the answer sentence is generated.
14. a kind of detection means of data validity, it is characterised in that include:
Backup units, the data being suitable in advance backup database, to obtain Backup Data, the data base is used to support interaction
Process;
Ageing detector unit, is suitable to carry out ageing detection to the Backup Data, to screen the Backup Data in mistake
Effect data;
Mark unit, is suitable to identify in the data base corresponding to the data of the fail data.
The detection means of 15. data validitys according to claim 14, it is characterised in that also include:Forbidden cell, fits
The identified data in the disabling data base.
The detection means of 16. data validitys according to claim 14, it is characterised in that also include:Reminding unit, fits
In the prompting message for generating the data for being directed to identified in the data base.
The detection means of 17. data validitys according to claim 14, it is characterised in that include in the data base
Effect time segment data, the effective time segment data has the effective time time limit;
The ageing detector unit includes:
Target Backup Data determination subelement, is adapted to determine that in the Backup Data mesh corresponding to the effective time segment data
Mark Backup Data;
First fail data determination subelement, is suitable to contrast effective time time limit and the current time of the target Backup Data,
If the effective time time limit is before current time, the target Backup Data is fail data.
The detection means of 18. data validitys according to claim 14, it is characterised in that the backup units are further adapted for
The Backup Data and DB Backup index are obtained, the DB Backup index includes Backup Data with the data base
In data corresponding relation;
The ageing detector unit includes:
Corresponding data determination subelement, is suitable to obtain the corresponding number of the Backup Data based on DB Backup index
According to the data in storehouse;
Subelement is compared, is suitable to compare data current in the data base with corresponding data in the Backup Data;
Second fail data determination subelement, if the data in the Backup Data are different from corresponding number in the data base
According to then using the data in the Backup Data as fail data.
The detection means of 19. data validitys according to claim 14, it is characterised in that the data base includes chain
Data are connect, the ageing detector unit is adapted to detect for the effectiveness of the address that the link data are pointed to.
The detection means of 20. data validitys according to claim 14, it is characterised in that also include:
Operation receiving unit, is suitable to receive the operation for identified data;
Backup Data updating block, the data after being suitable to according to operation update corresponding fail data in the Backup Data;
It is described to update corresponding fail data in the Backup Data and include:Delete the fail data or change the failure number
According to for valid data.
The detection means of 21. data validitys according to claim 14, it is characterised in that the data base includes knowing
Know point, the knowledge point includes the explanation sentence of feature sentence and feature sentence, and the fail data is failure knowledge point, mark
Data be in the data base corresponding to the failure knowledge point feature sentence.
The detection means of 22. data validitys according to claim 14, it is characterised in that by search engine to described
Data base scans for, to support the interaction.
23. a kind of intelligent interaction devices, it is characterised in that include:
Validation checking unit, the detection method of the data validity being suitable to according to any one of claim 1 to 9, to institute
Stating data base carries out validation checking;
Problem sentence receiving unit, is suitable to the problem sentence of receive user;
Matching unit, is suitable to the data in the data base and the problem statement matching;
Response unit, is suitable to the result according to matching, answer sentence is generated, to respond to the user.
24. intelligent interaction devices according to claim 23, it is characterised in that the validation checking unit is suitable to pre-
If time interval validation checking is carried out to the data base.
25. intelligent interaction devices according to claim 23, it is characterised in that if the response unit is suitable to the matching
Result be identified data, then according to the reason for different failure using default sentence accordingly as the answer sentence,
The failure cause includes the failure different with data of effective period of time data failure.
26. intelligent interaction devices according to claim 23, it is characterised in that the response unit includes:
Recommend knowledge point determination subelement, be suitable to be sieved in the not identified data of the data base according to the problem sentence
Select degree of association more than the knowledge point of preset value as recommendation knowledge point;
Answer sentence generates subelement, according to the recommendation knowledge point, generates the answer sentence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710004566.5A CN106682223B (en) | 2017-01-04 | 2017-01-04 | Data validity detection method and device and intelligent interaction method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710004566.5A CN106682223B (en) | 2017-01-04 | 2017-01-04 | Data validity detection method and device and intelligent interaction method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106682223A true CN106682223A (en) | 2017-05-17 |
CN106682223B CN106682223B (en) | 2020-03-10 |
Family
ID=58848930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710004566.5A Active CN106682223B (en) | 2017-01-04 | 2017-01-04 | Data validity detection method and device and intelligent interaction method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106682223B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109359030A (en) * | 2018-09-04 | 2019-02-19 | 中国平安人寿保险股份有限公司 | Test library failure object monitor method and device, computer installation and storage medium |
CN110661684A (en) * | 2019-09-29 | 2020-01-07 | 北京浪潮数据技术有限公司 | Flow statistical method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6367013B1 (en) * | 1995-01-17 | 2002-04-02 | Eoriginal Inc. | System and method for electronic transmission, storage, and retrieval of authenticated electronic original documents |
CN102663062A (en) * | 2012-03-30 | 2012-09-12 | 奇智软件(北京)有限公司 | Method and device for processing invalid links in search result |
CN102855314A (en) * | 2012-08-27 | 2013-01-02 | 济南大学 | Real-time database backup system and method based on FPGA (field programmable gate array) |
CN102929984A (en) * | 2012-10-18 | 2013-02-13 | 北京奇虎科技有限公司 | Website failure searching method and device |
CN102945259A (en) * | 2012-10-18 | 2013-02-27 | 北京奇虎科技有限公司 | Searching method and device based on favorites |
CN104182436A (en) * | 2014-02-25 | 2014-12-03 | 无锡天脉聚源传媒科技有限公司 | Method and device for cleaning databases |
CN106095814A (en) * | 2016-05-31 | 2016-11-09 | 腾讯科技(深圳)有限公司 | Contact person's processing method and server |
CN106202552A (en) * | 2016-07-27 | 2016-12-07 | 成都四象联创科技有限公司 | Data search method based on cloud computing |
-
2017
- 2017-01-04 CN CN201710004566.5A patent/CN106682223B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6367013B1 (en) * | 1995-01-17 | 2002-04-02 | Eoriginal Inc. | System and method for electronic transmission, storage, and retrieval of authenticated electronic original documents |
CN102663062A (en) * | 2012-03-30 | 2012-09-12 | 奇智软件(北京)有限公司 | Method and device for processing invalid links in search result |
CN102855314A (en) * | 2012-08-27 | 2013-01-02 | 济南大学 | Real-time database backup system and method based on FPGA (field programmable gate array) |
CN102929984A (en) * | 2012-10-18 | 2013-02-13 | 北京奇虎科技有限公司 | Website failure searching method and device |
CN102945259A (en) * | 2012-10-18 | 2013-02-27 | 北京奇虎科技有限公司 | Searching method and device based on favorites |
CN104182436A (en) * | 2014-02-25 | 2014-12-03 | 无锡天脉聚源传媒科技有限公司 | Method and device for cleaning databases |
CN106095814A (en) * | 2016-05-31 | 2016-11-09 | 腾讯科技(深圳)有限公司 | Contact person's processing method and server |
CN106202552A (en) * | 2016-07-27 | 2016-12-07 | 成都四象联创科技有限公司 | Data search method based on cloud computing |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109359030A (en) * | 2018-09-04 | 2019-02-19 | 中国平安人寿保险股份有限公司 | Test library failure object monitor method and device, computer installation and storage medium |
CN109359030B (en) * | 2018-09-04 | 2023-05-26 | 中国平安人寿保险股份有限公司 | Method and device for monitoring failure object of test library, computer device and storage medium |
CN110661684A (en) * | 2019-09-29 | 2020-01-07 | 北京浪潮数据技术有限公司 | Flow statistical method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106682223B (en) | 2020-03-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10642870B2 (en) | Data processing systems and methods for automatically detecting and documenting privacy-related aspects of computer software | |
CN109948815A (en) | Express delivery cabinet fault handling method, device, express delivery cabinet, manager and storage medium | |
CN103678105A (en) | Page code testing method and device | |
US20210173762A1 (en) | Dynamic integration testing | |
CN112650688B (en) | Automated regression testing method, associated device and computer program product | |
US20230195759A1 (en) | Data processing systems and methods for automatically detecting and documenting privacy-related aspects of computer software | |
CN106815137A (en) | Ui testing method and apparatus | |
EP3336726B1 (en) | Systems and methods for facilitating data transformation | |
CN110020262A (en) | Pushed information sending method, device, computer equipment and storage medium | |
US20170185505A1 (en) | Systems and methods for implementing an automated parallel deployment solution | |
CN106682223A (en) | Method and device for detecting data validity and method and device for intelligent interaction | |
KR100799183B1 (en) | Program generation system, record medium for recording program generation program, and program generation module | |
CN110414241A (en) | Privacy policy detection method, device, computer equipment and storage medium | |
US10430413B2 (en) | Data information framework | |
CN110336813A (en) | A kind of access control method, device, equipment and storage medium | |
KR100855252B1 (en) | Program generation system, record medium for recording program generation program, and program generation module | |
CN109787862B (en) | Detection method, device, electronic equipment and the storage medium of invalid resource | |
KR101563494B1 (en) | Real-time source code security weaknesses detection apparatus and method according to the file changes | |
KR101415528B1 (en) | Apparatus and Method for processing data error for distributed system | |
CN113886235A (en) | Test plan determination method, test plan determination device, test plan determination medium, and electronic device | |
KR100986998B1 (en) | Method and device for diagnosing personal information of server | |
CN106776296A (en) | Startup method, device and starting device that coverage rate is detected | |
CN110807885A (en) | Alarm method and alarm device based on WeChat | |
US11138242B2 (en) | Data processing systems and methods for automatically detecting and documenting privacy-related aspects of computer software | |
CN110457300B (en) | Method and device for cleaning public test library and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 |