CN111913594A - Intelligent prompting and completion method for flow analysis expression - Google Patents
Intelligent prompting and completion method for flow analysis expression Download PDFInfo
- Publication number
- CN111913594A CN111913594A CN202010834725.6A CN202010834725A CN111913594A CN 111913594 A CN111913594 A CN 111913594A CN 202010834725 A CN202010834725 A CN 202010834725A CN 111913594 A CN111913594 A CN 111913594A
- Authority
- CN
- China
- Prior art keywords
- character
- keyword
- input
- information
- list
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
- G06F3/0237—Character input methods using prediction or retrieval techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
- G06F3/0236—Character input methods using selection techniques to select from displayed items
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
The invention discloses a method for intelligently prompting and complementing a flow analysis expression, which comprises the following steps: generating a keyword number list and establishing a flow analysis expression library; inputting a character instruction and judging the type of the character instruction; starting background thread intelligent prompt; and completing the information. The invention can intelligently prompt the keywords matched with the input characters or the values corresponding to the keywords by automatically judging the type of the information being input without inputting complete characters, thereby avoiding input errors caused by hand errors, improving the input efficiency and saving the time.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method for intelligently prompting and completing a flow analysis expression.
Background
Effective information is mined through network flow, expression filtering query is needed, however, the types of expression keywords are more, even the keywords correspond to multiple levels, and the types of values corresponding to the keywords are possibly numerous, if a correct expression is input, it is difficult to remember complete keywords and corresponding value information, and the correct expression is easy to be input by hand, so that time is wasted even though the expression is copied and cut, and the working efficiency is greatly influenced.
Disclosure of Invention
The invention aims to solve the problems and provides a method for intelligently prompting and completing a flow analysis expression, which comprises the following steps:
s1, analyzing the network flow and generating a keyword tree list, associating operator information and value information by taking the keyword information as an index, and establishing a flow analysis expression library;
s2, acquiring the character command input by the user, displaying the prompt information according to the character command, judging the type of the input character command, if the character is invisible, turning to S31, otherwise, turning to S4 if the character command is visible;
S3:
s31, if the character instruction is the first invisible character, judging whether the prompt information is displayed, if so, selecting and adding the prompt information in the text box of the keyword tree list, otherwise, turning to S4;
s32, if the character instruction is the second invisible character, judging whether the prompt information is displayed, if yes, selecting the prompt information, otherwise, marking the event as a processed state;
s33, if the character instruction is the third invisible character, judging whether the prompt information is displayed, if so, selecting and adding the prompt information in a text box of the keyword tree list, otherwise, searching forward until meeting the character of the third instruction, intercepting a character string, judging whether the character string is a keyword, if so, displaying a comparison operator corresponding to the keyword, otherwise, throwing out, and turning to S4;
s34, if the character instruction is a comparison operator, searching the character string forward, judging whether the character string is a keyword, if so, finding a matching item from the comparison operator corresponding to the keyword to display, otherwise, throwing the character string outward, and turning to S4;
s35, if the character command is invisible characters except the first invisible character, the second invisible character and the third invisible character, marking the event as a processed state, and turning to S4;
s4, starting the background thread, accumulating the waiting time, resetting the waiting time if the waiting time triggers the event again in the set time, and turning to S5 when the waiting time of the background thread reaches the set value;
s5, judging whether the key word is being input or the value information corresponding to the key word is being input, if the input information is the key word, inserting the residual character string to be complemented into the text box; and if the input information is the value information corresponding to the keyword, deleting the currently input value information, and inserting the selected complete value information into the text box.
The invention has the beneficial effects that: the invention can intelligently prompt the keywords matched with the input characters or the values corresponding to the keywords by automatically judging the type of the information being input without inputting complete characters, thereby avoiding input errors caused by hand errors, improving the input efficiency and saving the time.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a flow diagram of different processing for character instruction types;
FIG. 3 is a flowchart of determining whether a keyword is being input or value information corresponding to the keyword is being input;
fig. 4 is a flowchart of an information completion process.
Detailed Description
The invention will be further described with reference to the accompanying drawings in which:
as shown in fig. 1, the method for intelligently prompting and completing a flow analysis expression of the present invention includes the following steps:
s1, analyzing the network flow and generating a keyword tree list, associating operator information and value information by taking the keyword information as an index, and establishing a flow analysis expression library;
s2, acquiring a character command input by a user, triggering an event, displaying prompt information according to the character command, judging the type of the input character command, and if the character is an invisible character, turning to S31, otherwise, turning to S4;
S3:
s31, if the character instruction is the first invisible character, judging whether the prompt information is displayed, if so, selecting and adding the prompt information in the text box of the keyword tree list, otherwise, turning to S4;
s32, if the character instruction is the second invisible character, judging whether the prompt information is displayed, if yes, selecting the prompt information, otherwise, inputting the second character as the effective character, and marking the event as the processed state;
s33, if the character instruction is the third invisible character, judging whether the prompt information is displayed, if so, selecting and adding the prompt information in a text box of the keyword tree list, otherwise, searching forward until meeting the character of the third instruction, intercepting a character string, judging whether the character string is a keyword, if so, displaying a comparison operator corresponding to the keyword, otherwise, throwing out, and turning to S4;
s34, if the character command is a comparison operator, searching forward the character string, determining whether the character string is a keyword, if so, finding a matching item (e.g., if the comparison operator of the keyword includes >, <, ═ if >, > ═ if, <, | if the input character is >, the matching item is >, > ═) from the comparison operator corresponding to the keyword, and displaying, otherwise, throwing outward, and turning to S4;
s35, if the character command is invisible characters except the first invisible character, the second invisible character and the third invisible character, marking the event as a processed state, and turning to S4;
and S4, starting the background thread, accumulating the waiting time by the background thread, resetting the waiting time if the waiting time triggers the event again within the set time, if the waiting time is accumulated once every 50 milliseconds, resetting the waiting time if the keyboard event is triggered again during the waiting time, and judging whether the keyword is being input or the value corresponding to the keyword is being input when the background thread judges that the waiting time reaches 200 milliseconds, so that frequent calling is avoided. When the waiting time of the background thread reaches a set value, turning to S5;
s5, judging whether the character being input is a keyword or a value corresponding to the keyword:
searching forwards until a space is met, taking the character string after the space as a first character string, and continuously searching forwards (skipping the space) to take the character string as a second character string; judging whether the second character string is a comparison operator, if so, the input character is a part of a value corresponding to the keyword, acquiring a value list corresponding to the keyword, finding a matching item from the list according to the first character string and displaying the value list corresponding to the keyword (finding list information sequentially identical to the first character string character from the value list corresponding to the keyword); otherwise, the input character is a part of the value corresponding to the keyword, a keyword list is obtained, a matching item is found from the list according to the first character string, and the keyword list is displayed (the list information which is the same as the character sequence of the first character string is found from the keyword list);
if the input character is a keyword, the remaining character strings to be completed (the selected item in the keyword list matched with the input character excludes the remaining character string information of the input character, for example, the keyword has location, conversion, protocol, port and the like, if the input character is p, the matched keyword has protocol and port, and if the protocol is selected, the remaining character strings to be completed in the text box are protocol.
) Inserting into a text box; if the input information is value information corresponding to the keyword, deleting the currently input value information, and inserting the selected complete value information (screening list information matched with the input character from a value list corresponding to the keyword, such as keyword location, wherein the corresponding value list comprises Beijing, Sichuan, Shanghai, Hunan, Hubei and the like, inputting h, screening the matched list information from the value list corresponding to the keyword to be Hunan and Hubei, and if Hunan is selected, deleting b in the input box, and inserting Hunan into the input box) into the text box.
The keyword tree list comprises a current keyword name, a complete keyword name, keyword description information, a keyword comparison operation attached list, a value list and a secondary keyword tree.
The invention can automatically judge the type of the information being input according to the input characters. The information type is divided into keywords, comparison operators supported by the keywords and values supported by the keywords; and intelligently prompting an optional keyword matched with the input character if the keyword is input, intelligently prompting an optional comparison operator matched with the input character if the keyword is input or the comparison operator is input, and intelligently prompting a value corresponding to the optional keyword matched with the input character if the comparison operator is input or the optional value is input. For the condition of multi-level keywords, when inputting characters, searching from a flow analysis expression library built in the system to determine whether secondary keywords exist, and if so, prompting secondary optional keywords.
After the intelligent prompt is popped up, the information to be completed can be selected by inputting the directional characters, and the incomplete information selected by the user is automatically completed in the text box after the confirmation characters are input.
The invention can intelligently prompt the keywords matched with the input characters or the values corresponding to the keywords by automatically judging the type of the information being input without inputting complete characters, thereby avoiding input errors caused by hand errors, improving the input efficiency and saving the time.
The technical solution of the present invention is not limited to the limitations of the above specific embodiments, and all technical modifications made according to the technical solution of the present invention fall within the protection scope of the present invention.
Claims (4)
1. A flow analysis expression intelligent prompting and completion method is characterized by comprising the following steps:
s1, analyzing the network flow and generating a keyword tree list, associating operator information and value information by taking the keyword information as an index, and establishing a flow analysis expression library;
s2, acquiring the character command input by the user, displaying the prompt information according to the character command, judging the type of the input character command, if the character is invisible, turning to S31, otherwise, turning to S4 if the character command is visible;
S3:
s31, if the character instruction is the first invisible character, judging whether the prompt information is displayed, if so, selecting and adding the prompt information in the text box of the keyword tree list, otherwise, turning to S4;
s32, if the character instruction is the second invisible character, judging whether the prompt information is displayed, if yes, selecting the prompt information, otherwise, marking the event as a processed state;
s33, if the character instruction is the third invisible character, judging whether the prompt information is displayed, if so, selecting and adding the prompt information in a text box of the keyword tree list, otherwise, searching forward until meeting the character of the third instruction, intercepting a character string, judging whether the character string is a keyword, if so, displaying a comparison operator corresponding to the keyword, otherwise, throwing out, and turning to S4;
s34, if the character instruction is a comparison operator, searching the character string forward, judging whether the character string is a keyword, if so, finding a matching item from the comparison operator corresponding to the keyword to display, otherwise, throwing the character string outward, and turning to S4;
s35, if the character command is invisible characters except the first invisible character, the second invisible character and the third invisible character, marking the event as a processed state, and turning to S4;
s4, starting the background thread, accumulating the waiting time, resetting the waiting time if the waiting time triggers the event again in the set time, and turning to S5 when the waiting time of the background thread reaches the set value;
s5, judging whether the character being input is a key word or a value corresponding to the key word, if the character being input is the key word, inserting the residual character string to be complemented into the text box; and if the input information is the value information corresponding to the keyword, deleting the currently input value information, and inserting the selected complete value information into the text box.
2. The method for intelligently prompting and complementing traffic analysis expressions according to claim 1, wherein the specific process of determining whether a keyword is being input or value information corresponding to the keyword is being input in S5 includes:
s51, searching characters forward until encountering a space character, and taking a character string after the space character as a first character string; skipping space characters and continuously searching forwards to obtain a second character string;
judging whether the second character string is a comparison operator or not, if so, taking the input character as a value corresponding to the keyword, acquiring a value list corresponding to the keyword, finding a matching item from the list according to the first character string and displaying the value list corresponding to the keyword;
otherwise, the input character is a part of the value corresponding to the keyword, a keyword list is obtained, a matching item is found from the list according to the first character string, and the keyword list is displayed.
3. The method of claim 1, wherein the keyword tree list comprises a current keyword name, a complete keyword name, keyword description information, a keyword comparison operation list, a value list, and a secondary keyword tree.
4. The method for intelligently prompting and completing flow analysis expressions according to claim 1, wherein the first invisible character is a confirmation character; the second invisible character is a direction character; the third invisible character is a space character.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010834725.6A CN111913594B (en) | 2020-08-19 | 2020-08-19 | Intelligent prompting and completing method for flow analysis expression |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010834725.6A CN111913594B (en) | 2020-08-19 | 2020-08-19 | Intelligent prompting and completing method for flow analysis expression |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111913594A true CN111913594A (en) | 2020-11-10 |
CN111913594B CN111913594B (en) | 2023-09-29 |
Family
ID=73278359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010834725.6A Active CN111913594B (en) | 2020-08-19 | 2020-08-19 | Intelligent prompting and completing method for flow analysis expression |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111913594B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060020576A1 (en) * | 2003-06-11 | 2006-01-26 | Fujitsu Limited | Search system reusing search condition and the related method |
CN109753819A (en) * | 2018-12-26 | 2019-05-14 | 北京天融信网络安全技术有限公司 | A kind for the treatment of method and apparatus of access control policy |
CN111078026A (en) * | 2019-11-15 | 2020-04-28 | 北京乐我无限科技有限责任公司 | Input prompting method and device, electronic equipment and readable storage medium |
CN111078683A (en) * | 2019-11-02 | 2020-04-28 | 国网辽宁省电力有限公司经济技术研究院 | Interpolation search-based power grid ledger data filling and counting method and device |
-
2020
- 2020-08-19 CN CN202010834725.6A patent/CN111913594B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060020576A1 (en) * | 2003-06-11 | 2006-01-26 | Fujitsu Limited | Search system reusing search condition and the related method |
CN109753819A (en) * | 2018-12-26 | 2019-05-14 | 北京天融信网络安全技术有限公司 | A kind for the treatment of method and apparatus of access control policy |
CN111078683A (en) * | 2019-11-02 | 2020-04-28 | 国网辽宁省电力有限公司经济技术研究院 | Interpolation search-based power grid ledger data filling and counting method and device |
CN111078026A (en) * | 2019-11-15 | 2020-04-28 | 北京乐我无限科技有限责任公司 | Input prompting method and device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111913594B (en) | 2023-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10824691B2 (en) | Page rendering method, device, and data storage medium | |
CN109086394B (en) | Search ranking method and device, computer equipment and storage medium | |
CN106202248B (en) | Phrase-based search in information retrieval system | |
CN105094368B (en) | A kind of control method and control device that frequency modulation sequence is carried out to candidates of input method | |
US20050097080A1 (en) | System and method for automatically locating searched text in an image file | |
US7865531B2 (en) | Method and system for providing value help features to input fields generated for dynamically selected columns | |
CN106341257B (en) | Device for self-defining log analysis rule and automatically analyzing log | |
CN106682012A (en) | Commodity object information searching method and device | |
CN104090976A (en) | Method and device for crawling webpages by search engine crawlers | |
CN102385621A (en) | Method and system for implementing document index based on input method interface | |
US7030889B2 (en) | Data display system, data display method, computer and computer program product | |
JP6810352B2 (en) | Fault analysis program, fault analysis device and fault analysis method | |
US20060195426A1 (en) | Information management apparatus, information management method, and information management program | |
CN109858025A (en) | A kind of segmenting method and system of Address Standardization corpus | |
CN115827715A (en) | Search recommendation list generation system based on user behaviors and design hierarchical tree | |
CN112559112B (en) | Interface node positioning method and device | |
CN111913594B (en) | Intelligent prompting and completing method for flow analysis expression | |
US20080215634A1 (en) | Methods And Systems For Extracting Related Information From Flat Files | |
CN105988992B (en) | Icon pushing method and device | |
CN102479219B (en) | Interactive searching processing method | |
CN104424223A (en) | Input method-based APP (Application) search and fast boot method and related input method system | |
CN1783080A (en) | Automated collation creation | |
CN107463845A (en) | A kind of detection method, system and the computer-processing equipment of SQL injection attack | |
CN110097137B (en) | National standard quota custom feature data extraction method for project data of engineering approximate calculation | |
KR101761175B1 (en) | Method of mining a frequent pattern, apparatus performing the same and storage medium storing a program performing the same |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 2119, 21st floor, unit 1, building 7, 1700 Tianfu Avenue North Section, high tech Zone, Chengdu, Sichuan 610000 Applicant after: Chengdu Fengwei Technology Co.,Ltd. Address before: No. 2119, 21st floor, unit 1, building 7, No. 1700, North Tianfu Avenue, high tech Zone, Chengdu, Sichuan 610041 Applicant before: CHENGDU SHENSI SCIENCE & TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |