CN107784052A - A kind of prompt statement generation method and device - Google Patents
A kind of prompt statement generation method and device Download PDFInfo
- Publication number
- CN107784052A CN107784052A CN201611233477.XA CN201611233477A CN107784052A CN 107784052 A CN107784052 A CN 107784052A CN 201611233477 A CN201611233477 A CN 201611233477A CN 107784052 A CN107784052 A CN 107784052A
- Authority
- CN
- China
- Prior art keywords
- prompt statement
- index mark
- paragraph
- prompting
- prompt
- 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.)
- Pending
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/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/335—Filtering based on additional data, e.g. user or group profiles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a kind of prompt statement generation method, and corresponding rule can not be directly found in database for solving the existing prompt statement being spliced, the problem of causing prompt statement treatment effeciency it is low the problem of.Present invention method includes:Determine the preset rules that object event is violated;Obtain prompting paragraph corresponding with the preset rules;Obtain the default index mark of the preset rules;The prompt statement of the index mark is included according to the prompting paragraph and the index mark generation.The embodiment of the present invention also provides a kind of prompt statement generating means.
Description
Technical field
The present invention relates to technical field of information processing, more particularly to a kind of prompt statement generation method and device.
Background technology
In current page prompts, sentence splicing is usually used.For example, when user operates on one page,
If related operation violates rule 1, rule 2 and rule 3 simultaneously, now the page can show a prompt statement, and this sentence carries
Showing sentence, prompting paragraph is spliced corresponding to rule 1, rule 2 and rule 3 simultaneously, so as to point out user's correlation simultaneously
The mistake of operation and bring a kind of experience of artificial intelligence of user.
When prompting paragraph has mistake or needs renewal corresponding to each rule, user or relevant staff are general
The prompt statement currently to go wrong is fed back into developer, developer needs to look into for the prompt statement being spliced
Rule corresponding to looking for simultaneously is handled.However, because the prompt statement being spliced can not directly find phase in database
The rule answered, developer are generally required after being filtered to strictly all rules, are just found rule corresponding to the prompt statement, are led
The problem of causing the prompt statement being spliced treatment effeciency is low.
The content of the invention
The embodiments of the invention provide a kind of prompt statement generation method and device, it is possible to increase the prompt statement rule of correspondence
Search efficiency, also improve prompt statement the problem for the treatment of effeciency.
A kind of prompt statement generation method provided in an embodiment of the present invention, including:
Determine the preset rules that object event is violated;
Obtain prompting paragraph corresponding with the preset rules;
Obtain the default index mark of the preset rules;
The prompt statement of the index mark is included according to the prompting paragraph and the index mark generation.
Alternatively, the prompt statement of the index mark is being included according to the prompting paragraph and the index mark generation
Before, in addition to:
Whether the total length for each index mark for judging to get exceedes default length threshold;
If the total length of each index mark got exceedes default length threshold, to each index
Mark merges compression, obtains the new index mark of preset length, and the preset length is less than or equal to the length threshold.
Alternatively, the signal language that the index mark is included according to the prompting paragraph and the index mark generation
Sentence specifically includes:
The prompting paragraph is spliced into prompt statement;
The index mark is inserted into the beginning of the sentence or sentence tail of the prompt statement, obtains carrying comprising the index mark
Show sentence.
Alternatively, the signal language that the index mark is included according to the prompting paragraph and the index mark generation
Sentence specifically includes:
According to it is described index be identified as it is described prompting paragraph establish jump to corresponding to preset rules redirected link;
The prompting paragraph for having established redirected link is spliced into prompt statement.
Alternatively, in addition to:
Obtain the rule declaration of the preset rules;
The rule declaration is ranked up according to order of the prompting paragraph in the prompt statement, and generates rule
Then illustrate list;
After according to the prompt statement of the prompting paragraph and the index mark generation comprising the index mark, also
Including:
Show the prompt statement and the rule declaration list.
A kind of prompt statement generating means provided in an embodiment of the present invention, including:
Regular determining module, the preset rules violated for determining object event;
Paragraph acquisition module is prompted, corresponding with the preset rules paragraph is prompted for obtaining;
Identifier acquisition module is indexed, the default index for obtaining the preset rules identifies;
Prompt statement generation module, for being marked according to the prompting paragraph and the index mark generation comprising the index
The prompt statement of knowledge.
Alternatively, the prompt statement generating means also include:
Whether length judge module, the total length of each index mark for judging to get exceed default length
Spend threshold value;
Compression module is identified, if the judged result for the length judge module is yes, each index is marked
Knowledge merges compression, obtains the new index mark of preset length, and the preset length is less than or equal to the length threshold.
Alternatively, the prompt statement generation module specifically includes:
Sentence concatenation unit, for the prompting paragraph to be spliced into prompt statement;
Mark insertion unit, for the index mark to be inserted into the beginning of the sentence or sentence tail of the prompt statement, wrapped
Prompt statement containing the index mark.
Alternatively, the prompt statement generation module specifically includes:
Redirected link establishes unit, for according to it is described index be identified as it is described prompting paragraph establish jump to corresponding in advance
If the redirected link of rule;
Prompt statement concatenation unit, for the prompting paragraph for having established redirected link to be spliced into prompt statement.
Alternatively, the prompt statement generating means also include:
Rule declaration acquisition module, for obtaining the rule declaration of the preset rules;
Illustrate List Generating Module, for according to the order of the prompting paragraph in the prompt statement to the rule
Explanation is ranked up, and create-rule illustrates list;
Display module, for showing the prompt statement and the rule declaration list.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
In the embodiment of the present invention, first, the preset rules that object event is violated are determined;Then, obtain and the default rule
Then corresponding prompting paragraph;Obtain the default index mark of the preset rules;Finally, according to the prompting paragraph and described
The generation of index mark includes the prompt statement of the index mark.In embodiments of the present invention, when regular corresponding to prompt statement
When needing processing, developer can also quickly find corresponding preset rules, nothing according to the index mark in prompt statement
Strictly all rules need to be filtered, substantially increase the search efficiency of the prompt statement rule of correspondence, also improve prompt statement
Issue handling efficiency.
Brief description of the drawings
Fig. 1 is a kind of first embodiment flow chart of prompt statement generation method in the embodiment of the present invention;
Fig. 2 is a kind of second embodiment flow chart of prompt statement generation method in the embodiment of the present invention;
Fig. 3 is a kind of the 3rd embodiment flow chart of prompt statement generation method in the embodiment of the present invention;
Fig. 4 is a kind of first example structure figure of prompt statement generating means in the embodiment of the present invention;
Fig. 5 is a kind of second example structure figure of prompt statement generating means in the embodiment of the present invention;
Fig. 6 is a kind of the 3rd example structure figure of prompt statement generating means in the embodiment of the present invention.
Embodiment
The embodiments of the invention provide a kind of prompt statement generation method and device, for solve it is existing be spliced carry
Show that sentence can not directly find corresponding rule in database, the problem of causing prompt statement treatment effeciency low ask
Topic.
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention
Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that disclosed below
Embodiment be only part of the embodiment of the present invention, and not all embodiment.Based on the embodiment in the present invention, this area
All other embodiment that those of ordinary skill is obtained under the premise of creative work is not made, belongs to protection of the present invention
Scope.
Referring to Fig. 1, a kind of prompt statement generation method one embodiment includes in the embodiment of the present invention:
101st, the preset rules that object event is violated are determined;
In the present embodiment, it is possible, firstly, to determine the preset rules that object event is violated.
Above-mentioned object event can refer to associative operation, or business tine etc..When performance objective event, due to system
Some rules are preset with for object event, if object event violates corresponding preset rules, system can learn the target
Which preset rules is event violate and should make corresponding prompting.
102nd, prompting paragraph corresponding with the preset rules is obtained;
It is determined that after the preset rules that object event is violated, signal language corresponding with the preset rules can be obtained
Section.It is understood that for the ease of making corresponding prompting to user, each preset rules are previously provided with corresponding prompting
Paragraph.
For example, in insurance business, rule 1 defines " A insurance kinds can not operate newly-increased in project is saved from damage ".Then it is corresponding
Prompting paragraph be:" A insurance kinds can not operate newly-increased in project is saved from damage ".
103rd, the default index mark of the preset rules is obtained;
It is determined that after the preset rules that object event is violated, the default index mark of the preset rules can also be obtained
Know.
Above-mentioned index mark refer to can to find from database corresponding to preset rules mark, the mark can be with
Be preset rules ID or preset rules it is position encoded in database.In the present embodiment, the index is being got
After mark, it can be identified according to the index and corresponding preset rules are easily found in database.
104th, the prompt statement of the index mark is included according to the prompting paragraph and the index mark generation.
, can be according to the prompting paragraph and the index after the prompting paragraph and the index mark is got
Mark generates the prompt statement for including the index mark, so as to when hair developer gets these prompt statements, so that it may
It is then pre- according to corresponding to being found in index mark promptly database to get these index marks from prompt statement
If regular, substantially increase the search efficiency of the prompt statement rule of correspondence, the problem of also improving prompt statement treatment effeciency.
Further, the above-mentioned prompting that the index mark is included according to the prompting paragraph and the index mark generation
Sentence can specifically include:The prompting paragraph is spliced into prompt statement;The index mark is inserted into the signal language
The beginning of the sentence or sentence tail of sentence, obtain including the prompt statement of the index mark.For example, the prompting paragraph of rule 1 is " A insurance kinds exist
Save from damage can not be operated in project it is newly-increased ", rule 2 prompting paragraph for " historical product increase newly B insurance kinds must be fulfilled for XXX conditions, it is no
Do not allow then to increase newly ", the prompting paragraph of rule 3 is " historical product increases non-C insurance kinds newly and is necessary for effective status of paying the fees, otherwise not
Allow to increase newly ".Then spliced prompt statement is " A insurance kinds can not operate newly-increased in project is saved from damage;History product increases B insurance kinds newly
XXX conditions must are fulfilled for, otherwise do not allow to increase newly;Historical product increases non-C insurance kinds newly and is necessary for effective status of paying the fees, and does not otherwise permit
Perhaps increase newly." assume that rule 1, rule 2 and regular 3 index mark are respectively a1, a2 and a3, then a1, a2 and a3 are inserted into and carried
After showing the beginning of the sentence of sentence, prompt statement for "【a1a2a3】A insurance kinds can not operate newly-increased in project is saved from damage;History product increases B newly
Insurance kind must is fulfilled for XXX conditions, does not otherwise allow to increase newly;Historical product increases non-C insurance kinds newly and is necessary for effective status of paying the fees, otherwise
Do not allow to increase newly." if a1, a2 and a3 be inserted into the sentence tail of prompt statement, the prompt statement is " A insurance kinds are saving project from damage
In can not operate it is newly-increased;History product increases B insurance kinds newly and must is fulfilled for XXX conditions, does not otherwise allow to increase newly;Historical product increases non-C newly
Insurance kind is necessary for effective status of paying the fees, and does not otherwise allow to increase newly.【a1a2a3】" visible, the prompting after insertion index mark
Sentence is insignificant for user or relevant staff, but when prompt statement goes wrong, user or phase
Close staff and the prompt statement is fed back into developer, developer then can be rapidly according to these index identifier lookups
To corresponding regular 1, rule 2 and rule 3.
Further, in order to improve the readability of prompt statement, shadow of the index mark to prompt statement meaning itself is avoided
Ring or disturb, the above-mentioned prompt statement for including the index mark according to the prompting paragraph and the index mark generation also may be used
With including:According to it is described index be identified as it is described prompting paragraph establish jump to corresponding to preset rules redirected link;By
The prompting paragraph for establishing redirected link is spliced into prompt statement.It is understood that the prompting after establishing redirected link
The prompt statement that paragraph is spliced, developer can click directly on the part prompting paragraph in prompt statement to jump to pair
The preset rules answered, not only avoid includes the meaning of prompt statement script is caused to do in prompt statement by index mark
Disturb, and the operation of " being searched according to index mark in database " is carried out without developer so that search corresponding default rule
It is then more convenient, efficient.
In the present embodiment, first, the preset rules that object event is violated are determined;Then, obtain and the preset rules pair
The prompting paragraph answered;Obtain the default index mark of the preset rules;Finally, according to the prompting paragraph and the index
Mark generation includes the prompt statement of the index mark.In the present embodiment, when rule corresponding to prompt statement needs to handle
When, developer can also quickly find corresponding preset rules according to the index mark in prompt statement, without to all
Rule is filtered, and the problem of substantially increasing the search efficiency of the prompt statement rule of correspondence, also improving prompt statement is handled
Efficiency, and then improve the usage experience of user.
For ease of understanding, a kind of prompt statement generation method of the present invention will be carried out in further detail from another convenience below
Description, referring to Fig. 2, a kind of second embodiment of prompt statement generation method includes in the embodiment of the present invention:
201st, the preset rules that object event is violated are determined;
In the present embodiment, it is possible, firstly, to determine the preset rules that object event is violated.
Above-mentioned object event can refer to associative operation, or business tine etc..When performance objective event, due to system
Some rules are preset with for object event, if object event violates corresponding preset rules, system can learn the target
Which preset rules is event violate and should make corresponding prompting.
202nd, prompting paragraph corresponding with the preset rules is obtained;
It is determined that after the preset rules that object event is violated, signal language corresponding with the preset rules can be obtained
Section.It is understood that for the ease of making corresponding prompting to user, each preset rules are previously provided with corresponding prompting
Paragraph.
For example, in insurance business, rule 1 defines " A insurance kinds can not operate newly-increased in project is saved from damage ".Then it is corresponding
Prompting paragraph be:" A insurance kinds can not operate newly-increased in project is saved from damage ".
203rd, the default index mark of the preset rules is obtained;
It is determined that after the preset rules that object event is violated, the default index mark of the preset rules can also be obtained
Know.
Above-mentioned index mark refer to can to find from database corresponding to preset rules mark, the mark can be with
Be preset rules ID or preset rules it is position encoded in database.In the present embodiment, the index is being got
After mark, it can be identified according to the index and corresponding preset rules are easily found in database.
Whether the total length for each index mark for the 204th, judging to get exceedes default length threshold, if so,
Step 205 is then performed, if it is not, then performing step 206;
After the default index mark of the preset rules is obtained, it can be determined that each index mark got
Whether the total length of knowledge exceedes default length threshold, if so, step 205 is then performed, if it is not, then performing step 206.
It is understood that when object event violates multiple preset rules, the index mark got is also more, then rope
The total length that tendering is known is longer.After index mark is added in prompt statement, if the total length of index mark is long,
The readability of prompt statement can then be had a strong impact on.Therefore, step 205 can be performed, " the pressure unified to these index marks
Contracting " or " coding ", long index mark is merged into shorter new index and identified.
205th, compression is merged to each index mark, obtains the new index mark of preset length;
If the total length of each index mark got exceedes default length threshold, to each index
Mark merges compression, obtains the new index mark of preset length, and the preset length is less than or equal to the length threshold.
It is understood that in the present embodiment, above-mentioned " merging compression " can refer to encode each index mark so that compile
The new index identification length obtained after code is smaller than length threshold.For example, each index got be identified as " a1, a2,
A3 ..., an ", if n be more than 10, it is considered that these index mark total lengths it is long, now can will " a1, a2,
A3 ..., an " merge boil down to " b1n ", so as to substantially reduce index mark total length.
206th, the prompt statement of the index mark is included according to the prompting paragraph and the index mark generation.
, can be according to the prompting paragraph and the index after the prompting paragraph and the index mark is got
Mark generates the prompt statement for including the index mark, so as to when hair developer gets these prompt statements, so that it may
It is then pre- according to corresponding to being found in index mark promptly database to get these index marks from prompt statement
If regular, substantially increase the search efficiency of the prompt statement rule of correspondence, the problem of also improving prompt statement treatment effeciency.
Further, the above-mentioned prompting that the index mark is included according to the prompting paragraph and the index mark generation
Sentence can specifically include:The prompting paragraph is spliced into prompt statement;The index mark is inserted into the signal language
The beginning of the sentence or sentence tail of sentence, obtain including the prompt statement of the index mark.For example, the prompting paragraph of rule 1 is " A insurance kinds exist
Save from damage can not be operated in project it is newly-increased ", rule 2 prompting paragraph for " historical product increase newly B insurance kinds must be fulfilled for XXX conditions, it is no
Do not allow then to increase newly ", the prompting paragraph of rule 3 is " historical product increases non-C insurance kinds newly and is necessary for effective status of paying the fees, otherwise not
Allow to increase newly ".Then spliced prompt statement is " A insurance kinds can not operate newly-increased in project is saved from damage;History product increases B insurance kinds newly
XXX conditions must are fulfilled for, otherwise do not allow to increase newly;Historical product increases non-C insurance kinds newly and is necessary for effective status of paying the fees, and does not otherwise permit
Perhaps increase newly." assume that rule 1, rule 2 and regular 3 index mark are respectively a1, a2 and a3, then a1, a2 and a3 are inserted into and carried
After showing the beginning of the sentence of sentence, prompt statement for "【a1a2a3】A insurance kinds can not operate newly-increased in project is saved from damage;History product increases B newly
Insurance kind must is fulfilled for XXX conditions, does not otherwise allow to increase newly;Historical product increases non-C insurance kinds newly and is necessary for effective status of paying the fees, otherwise
Do not allow to increase newly." if a1, a2 and a3 be inserted into the sentence tail of prompt statement, the prompt statement is " A insurance kinds are saving project from damage
In can not operate it is newly-increased;History product increases B insurance kinds newly and must is fulfilled for XXX conditions, does not otherwise allow to increase newly;Historical product increases non-C newly
Insurance kind is necessary for effective status of paying the fees, and does not otherwise allow to increase newly.【a1a2a3】" visible, the prompting after insertion index mark
Sentence is insignificant for user or relevant staff, but when prompt statement goes wrong, user or phase
Close staff and the prompt statement is fed back into developer, developer then can be rapidly according to these index identifier lookups
To corresponding regular 1, rule 2 and rule 3.
Further, in order to improve the readability of prompt statement, shadow of the index mark to prompt statement meaning itself is avoided
Ring or disturb, the above-mentioned prompt statement for including the index mark according to the prompting paragraph and the index mark generation also may be used
With including:According to it is described index be identified as it is described prompting paragraph establish jump to corresponding to preset rules redirected link;By
The prompting paragraph for establishing redirected link is spliced into prompt statement.It is understood that the prompting after establishing redirected link
The prompt statement that paragraph is spliced, developer can click directly on the part prompting paragraph in prompt statement to jump to pair
The preset rules answered, not only avoid includes the meaning of prompt statement script is caused to do in prompt statement by index mark
Disturb, and the operation of " being searched according to index mark in database " is carried out without developer so that search corresponding default rule
It is then more convenient, efficient.
Associated description is mainly carried out in terms of the total length of index mark above, below by from another point of view to the present invention's
A kind of prompt statement generation method is further described in more detail, referring to Fig. 3, a kind of prompt statement life in the embodiment of the present invention
Include into the 3rd embodiment of method:
301st, the preset rules that object event is violated are determined;
In the present embodiment, it is possible, firstly, to determine the preset rules that object event is violated.
Above-mentioned object event can refer to associative operation, or business tine etc..When performance objective event, due to system
Some rules are preset with for object event, if object event violates corresponding preset rules, system can learn the target
Which preset rules is event violate and should make corresponding prompting.
302nd, prompting paragraph corresponding with the preset rules is obtained;
It is determined that after the preset rules that object event is violated, signal language corresponding with the preset rules can be obtained
Section.It is understood that for the ease of making corresponding prompting to user, each preset rules are previously provided with corresponding prompting
Paragraph.
For example, in insurance business, rule 1 defines " A insurance kinds can not operate newly-increased in project is saved from damage ".Then it is corresponding
Prompting paragraph be:" A insurance kinds can not operate newly-increased in project is saved from damage ".
303rd, the default index mark of the preset rules is obtained;
It is determined that after the preset rules that object event is violated, the default index mark of the preset rules can also be obtained
Know.
Above-mentioned index mark refer to can to find from database corresponding to preset rules mark, the mark can be with
Be preset rules ID or preset rules it is position encoded in database.In the present embodiment, the index is being got
After mark, it can be identified according to the index and corresponding preset rules are easily found in database.
Whether the total length for each index mark for the 304th, judging to get exceedes default length threshold, if so,
Step 305 is then performed, if it is not, then performing step 306;
After the default index mark of the preset rules is obtained, it can be determined that each index mark got
Whether the total length of knowledge exceedes default length threshold, if so, step 305 is then performed, if it is not, then performing step 306.
It is understood that when object event violates multiple preset rules, the index mark got is also more, then rope
The total length that tendering is known is longer.After index mark is added in prompt statement, if the total length of index mark is long,
The readability of prompt statement can then be had a strong impact on.Therefore, step 305 can be performed, " the pressure unified to these index marks
Contracting " or " coding ", long index mark is merged into shorter new index and identified.
305th, compression is merged to each index mark, obtains the new index mark of preset length;
If the total length of each index mark got exceedes default length threshold, to each index
Mark merges compression, obtains the new index mark of preset length, and the preset length is less than or equal to the length threshold.
It is understood that in the present embodiment, above-mentioned " merging compression " can refer to encode each index mark so that compile
The new index identification length obtained after code is smaller than length threshold.For example, each index got be identified as " a1, a2,
A3 ..., an ", if n be more than 10, it is considered that these index mark total lengths it is long, now can will " a1, a2,
A3 ..., an " merge boil down to " b1n ", so as to substantially reduce index mark total length.
306th, the prompt statement of the index mark is included according to the prompting paragraph and the index mark generation;
, can be according to the prompting paragraph and the index after the prompting paragraph and the index mark is got
Mark generates the prompt statement for including the index mark, so as to when hair developer gets these prompt statements, so that it may
It is then pre- according to corresponding to being found in index mark promptly database to get these index marks from prompt statement
If regular, substantially increase the search efficiency of the prompt statement rule of correspondence, the problem of also improving prompt statement treatment effeciency.
Further, the above-mentioned prompting that the index mark is included according to the prompting paragraph and the index mark generation
Sentence can specifically include:The prompting paragraph is spliced into prompt statement;The index mark is inserted into the signal language
The beginning of the sentence or sentence tail of sentence, obtain including the prompt statement of the index mark.For example, the prompting paragraph of rule 1 is " A insurance kinds exist
Save from damage can not be operated in project it is newly-increased ", rule 2 prompting paragraph for " historical product increase newly B insurance kinds must be fulfilled for XXX conditions, it is no
Do not allow then to increase newly ", the prompting paragraph of rule 3 is " historical product increases non-C insurance kinds newly and is necessary for effective status of paying the fees, otherwise not
Allow to increase newly ".Then spliced prompt statement is " A insurance kinds can not operate newly-increased in project is saved from damage;History product increases B insurance kinds newly
XXX conditions must are fulfilled for, otherwise do not allow to increase newly;Historical product increases non-C insurance kinds newly and is necessary for effective status of paying the fees, and does not otherwise permit
Perhaps increase newly." assume that rule 1, rule 2 and regular 3 index mark are respectively a1, a2 and a3, then a1, a2 and a3 are inserted into and carried
After showing the beginning of the sentence of sentence, prompt statement for "【a1a2a3】A insurance kinds can not operate newly-increased in project is saved from damage;History product increases B newly
Insurance kind must is fulfilled for XXX conditions, does not otherwise allow to increase newly;Historical product increases non-C insurance kinds newly and is necessary for effective status of paying the fees, otherwise
Do not allow to increase newly." if a1, a2 and a3 be inserted into the sentence tail of prompt statement, the prompt statement is " A insurance kinds are saving project from damage
In can not operate it is newly-increased;History product increases B insurance kinds newly and must is fulfilled for XXX conditions, does not otherwise allow to increase newly;Historical product increases non-C newly
Insurance kind is necessary for effective status of paying the fees, and does not otherwise allow to increase newly.【a1a2a3】" visible, the prompting after insertion index mark
Sentence is insignificant for user or relevant staff, but when prompt statement goes wrong, user or phase
Close staff and the prompt statement is fed back into developer, developer then can be rapidly according to these index identifier lookups
To corresponding regular 1, rule 2 and rule 3.
Further, in order to improve the readability of prompt statement, shadow of the index mark to prompt statement meaning itself is avoided
Ring or disturb, the above-mentioned prompt statement for including the index mark according to the prompting paragraph and the index mark generation also may be used
With including:According to it is described index be identified as it is described prompting paragraph establish jump to corresponding to preset rules redirected link;By
The prompting paragraph for establishing redirected link is spliced into prompt statement.It is understood that the prompting after establishing redirected link
The prompt statement that paragraph is spliced, developer can click directly on the part prompting paragraph in prompt statement to jump to pair
The preset rules answered, not only avoid includes the meaning of prompt statement script is caused to do in prompt statement by index mark
Disturb, and the operation of " being searched according to index mark in database " is carried out without developer so that search corresponding default rule
It is then more convenient, efficient.
307th, the rule declaration of the preset rules is obtained;
It is determined that after the preset rules, the rule declaration of the preset rules can be obtained.These rule declarations can
To be checked to user or staff, to instruct the work of user or staff.For example, in insurance company's working
Contact staff, when it is that client carries out the application operation for saving project from damage, this application operation violates rule 1, then can obtain
The rule declaration regular to this for " A insurance kinds can not operate newly-increased in project is saved from damage, and client please be prompted to change other operations, if
Client wishes newly-increased accessory risk, can be with ... ", contact staff can provide for client more perfect according to these rule declarations
Service, meanwhile, also reduce the probability that contact staff breaks the rules in ensuing operation.
308th, the rule declaration is ranked up according to order of the prompting paragraph in the prompt statement, and it is raw
Into rule declaration list;
, can be according to the prompting paragraph in the prompt statement after the rule declaration of the preset rules is obtained
Order the rule declaration is ranked up, and create-rule illustrates list.It is understood that when simultaneously object event is disobeyed
During anti-multiple preset rules, can get it is multiple corresponding to rule declarations, now, because the prompt statement of generation is splicing
Into, it is understood that there may be it is difficult to find the situation of corresponding prompting paragraph in prompt statement from multiple rule declarations;Or it is difficult to
Multiple prompting paragraphs are difficult to find that the situation of corresponding rule declaration in prompt statement.Therefore according to the prompting paragraph described
Order in prompt statement is ranked up to the rule declaration, and then create-rule illustrates list, can be quick in order to user
Find corresponding rule declaration in ground.
Further, can also mark or display pair on the correspondence position of each rule declaration in rule declaration list
Answer index mark, so as to help user according to mark or display index mark be quickly found out it is right in rule declaration list
The rule declaration answered.
309th, the prompt statement and the rule declaration list are shown.
After the prompt statement and the rule declaration list is generated, the prompt statement and institute can be shown
State rule declaration list.
A kind of prompt statement generation method is essentially described above, a kind of prompt statement generating means will be carried out below detailed
Thin description.
Fig. 4 shows a kind of first example structure figure of prompt statement generating means in the embodiment of the present invention.
In the present embodiment, a kind of prompt statement generating means include:
Regular determining module 401, the preset rules violated for determining object event;
Paragraph acquisition module 402 is prompted, corresponding with the preset rules paragraph is prompted for obtaining;
Identifier acquisition module 403 is indexed, the default index for obtaining the preset rules identifies;
Prompt statement generation module 404, for including the rope according to the prompting paragraph and the index mark generation
The prompt statement that tendering is known.
Fig. 5 shows a kind of second example structure figure of prompt statement generating means in the embodiment of the present invention.
As shown in figure 5, further, the prompt statement generating means can also include:
Length judge module 405, whether the total length of each index mark for judging to get, which exceedes, is preset
Length threshold;
Compression module 406 is identified, if the judged result for the length judge module 405 is yes, to each described
Index mark merges compression, obtains the new index mark of preset length, and the preset length is less than or equal to the length
Threshold value.
Further, the prompt statement generation module 404 can specifically include:
Sentence concatenation unit 4041, for the prompting paragraph to be spliced into prompt statement;
Mark insertion unit 4042, for the index mark to be inserted into the beginning of the sentence or sentence tail of the prompt statement, obtain
To the prompt statement for including the index mark.
Further, the prompt statement generation module 404 can specifically include:
Redirected link establishes unit 4043, is jumped to correspondingly for being identified as the prompting paragraph foundation according to the index
Preset rules redirected link;
Prompt statement concatenation unit 4044, for the prompting paragraph for having established redirected link to be spliced into signal language
Sentence.
Fig. 6 shows a kind of the 3rd example structure figure of prompt statement generating means in the embodiment of the present invention.
As shown in fig. 6, further, the prompt statement generating means can also include:
Rule declaration acquisition module 407, for obtaining the rule declaration of the preset rules;
Illustrate List Generating Module 408, for according to the order of the prompting paragraph in the prompt statement to described
Rule declaration is ranked up, and create-rule illustrates list;
Display module 409, for showing the prompt statement and the rule declaration list.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing
Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or
The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit
Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before
Embodiment is stated the present invention is described in detail, it will be understood by those within the art that:It still can be to preceding
State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these
Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (10)
- A kind of 1. prompt statement generation method, it is characterised in that including:Determine the preset rules that object event is violated;Obtain prompting paragraph corresponding with the preset rules;Obtain the default index mark of the preset rules;The prompt statement of the index mark is included according to the prompting paragraph and the index mark generation.
- 2. prompt statement generation method according to claim 1, it is characterised in that according to the prompting paragraph and described Before prompt statement of the index mark generation comprising the index mark, in addition to:Whether the total length for each index mark for judging to get exceedes default length threshold;If the total length of each index mark got exceedes default length threshold, each index is identified Compression is merged, obtains the new index mark of preset length, the preset length is less than or equal to the length threshold.
- 3. prompt statement generation method according to claim 1, it is characterised in that described according to the prompting paragraph and institute Prompt statement of the index mark generation comprising the index mark is stated to specifically include:The prompting paragraph is spliced into prompt statement;The index mark is inserted into the beginning of the sentence or sentence tail of the prompt statement, obtains including the signal language of the index mark Sentence.
- 4. prompt statement generation method according to claim 1, it is characterised in that described according to the prompting paragraph and institute Prompt statement of the index mark generation comprising the index mark is stated to specifically include:According to it is described index be identified as it is described prompting paragraph establish jump to corresponding to preset rules redirected link;The prompting paragraph for having established redirected link is spliced into prompt statement.
- 5. prompt statement generation method according to any one of claim 1 to 4, it is characterised in that also include:Obtain the rule declaration of the preset rules;The rule declaration is ranked up according to order of the prompting paragraph in the prompt statement, and create-rule is said Bright list;After according to the prompt statement of the prompting paragraph and the index mark generation comprising the index mark, also wrap Include:Show the prompt statement and the rule declaration list.
- A kind of 6. prompt statement generating means, it is characterised in that including:Regular determining module, the preset rules violated for determining object event;Paragraph acquisition module is prompted, corresponding with the preset rules paragraph is prompted for obtaining;Identifier acquisition module is indexed, the default index for obtaining the preset rules identifies;Prompt statement generation module, for including the index mark according to the prompting paragraph and the index mark generation Prompt statement.
- 7. prompt statement generating means according to claim 6, it is characterised in that the prompt statement generating means are also wrapped Include:Whether length judge module, the total length of each index mark for judging to get exceed default length threshold Value;Identify compression module, if the judged result for the length judge module be yes, to it is each it is described index identify into Row merges compression, obtains the new index mark of preset length, and the preset length is less than or equal to the length threshold.
- 8. prompt statement generating means according to claim 6, it is characterised in that the prompt statement generation module is specific Including:Sentence concatenation unit, for the prompting paragraph to be spliced into prompt statement;Mark insertion unit, for the index mark to be inserted into the beginning of the sentence or sentence tail of the prompt statement, obtain including institute State the prompt statement of index mark.
- 9. prompt statement generating means according to claim 6, it is characterised in that the prompt statement generation module is specific Including:Redirected link establishes unit, for according to the index be identified as the prompting paragraph establish jump to corresponding to default advise Redirected link then;Prompt statement concatenation unit, for the prompting paragraph for having established redirected link to be spliced into prompt statement.
- 10. the prompt statement generating means according to any one of claim 6 to 9, it is characterised in that the prompt statement Generating means also include:Rule declaration acquisition module, for obtaining the rule declaration of the preset rules;Illustrate List Generating Module, for according to the order of the prompting paragraph in the prompt statement to the rule declaration It is ranked up, and create-rule illustrates list;Display module, for showing the prompt statement and the rule declaration list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611233477.XA CN107784052A (en) | 2016-12-28 | 2016-12-28 | A kind of prompt statement generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611233477.XA CN107784052A (en) | 2016-12-28 | 2016-12-28 | A kind of prompt statement generation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107784052A true CN107784052A (en) | 2018-03-09 |
Family
ID=61437691
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611233477.XA Pending CN107784052A (en) | 2016-12-28 | 2016-12-28 | A kind of prompt statement generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107784052A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109800284A (en) * | 2018-12-19 | 2019-05-24 | 中国电子科技集团公司第二十八研究所 | A kind of unstructured information intelligent Answer System construction method of oriented mission |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1585351A (en) * | 2003-08-19 | 2005-02-23 | 华为技术有限公司 | Fault information transmitting method |
US20070050427A1 (en) * | 2005-08-02 | 2007-03-01 | Steven Atkin | System and method for validating application globalization issues and computer product |
CN102324004A (en) * | 2011-05-26 | 2012-01-18 | 重庆猪八戒网络有限公司 | Verification method for webpage form input information and device |
CN103106186A (en) * | 2013-01-22 | 2013-05-15 | 百度在线网络技术(北京)有限公司 | Form verification method and form verification system |
CN105320591A (en) * | 2014-07-25 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Code detection method and device |
-
2016
- 2016-12-28 CN CN201611233477.XA patent/CN107784052A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1585351A (en) * | 2003-08-19 | 2005-02-23 | 华为技术有限公司 | Fault information transmitting method |
US20070050427A1 (en) * | 2005-08-02 | 2007-03-01 | Steven Atkin | System and method for validating application globalization issues and computer product |
CN102324004A (en) * | 2011-05-26 | 2012-01-18 | 重庆猪八戒网络有限公司 | Verification method for webpage form input information and device |
CN103106186A (en) * | 2013-01-22 | 2013-05-15 | 百度在线网络技术(北京)有限公司 | Form verification method and form verification system |
CN105320591A (en) * | 2014-07-25 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Code detection method and device |
Non-Patent Citations (1)
Title |
---|
郭利霞: "编译规则错误", 《电气控制与PLC应用技术》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109800284A (en) * | 2018-12-19 | 2019-05-24 | 中国电子科技集团公司第二十八研究所 | A kind of unstructured information intelligent Answer System construction method of oriented mission |
CN109800284B (en) * | 2018-12-19 | 2021-02-05 | 中国电子科技集团公司第二十八研究所 | Task-oriented unstructured information intelligent question-answering system construction method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110288406A (en) | Campaign management platform, executes method, equipment and medium at development approach | |
CN102279749B (en) | Method and equipment for merging codes | |
CN107480280A (en) | The method and relevant device of a kind of data processing | |
CN105224421B (en) | Data backup method and device and electronic equipment | |
CN109582325A (en) | Robot software upgrading method, robot and computer readable storage medium | |
CN103279427B (en) | The management method based on hash of location identifier and system | |
CN105224396A (en) | A kind of business data processing method and device | |
CN107169092A (en) | Intelligent Recognition and the method and system of sensitive content are handled in interaction | |
CN105282244A (en) | Data processing method and device, server and controller | |
CN107784052A (en) | A kind of prompt statement generation method and device | |
CN106227541A (en) | A kind of program updates download process method and mobile terminal | |
CN102651024A (en) | Method and device for data conversion | |
CN107241408A (en) | A kind of data transmission method and device, terminal device, storage medium | |
CN104182258B (en) | A kind of POS terminal update device and its upgrade method | |
CN107844520A (en) | Electronic installation, vehicle data introduction method and storage medium | |
CN102624736B (en) | TL1 (transaction language 1) command verification method and TL1 command verification device | |
CN110046161A (en) | Method for writing data and device, storage medium, electronic equipment | |
KR101091592B1 (en) | System and method for mobile-based ontology reasoning | |
CN109684115A (en) | A kind of communication means and relevant device applied between plug-in unit | |
CN114173366B (en) | User parameter restoration method and device, computer storage medium and electronic equipment | |
CN104574188A (en) | Transaction service system and transaction processing method | |
CN105224898A (en) | The method of radio communication, device and equipment | |
CN113660635B (en) | Connection method, connection device, electronic device, and storage medium | |
CN108512688A (en) | Network node configuration method and terminal | |
CN113190668A (en) | Man-machine interaction method, device and equipment based on multi-turn conversation and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180309 |
|
RJ01 | Rejection of invention patent application after publication |