CN110941777A - Navigation method and device for WEB application - Google Patents

Navigation method and device for WEB application Download PDF

Info

Publication number
CN110941777A
CN110941777A CN201911201887.XA CN201911201887A CN110941777A CN 110941777 A CN110941777 A CN 110941777A CN 201911201887 A CN201911201887 A CN 201911201887A CN 110941777 A CN110941777 A CN 110941777A
Authority
CN
China
Prior art keywords
word segmentation
component
web application
input
word
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
Application number
CN201911201887.XA
Other languages
Chinese (zh)
Inventor
郭浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HONGXU INFORMATION TECHNOLOGY Co Ltd WUHAN
Original Assignee
HONGXU INFORMATION TECHNOLOGY Co Ltd WUHAN
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HONGXU INFORMATION TECHNOLOGY Co Ltd WUHAN filed Critical HONGXU INFORMATION TECHNOLOGY Co Ltd WUHAN
Priority to CN201911201887.XA priority Critical patent/CN110941777A/en
Publication of CN110941777A publication Critical patent/CN110941777A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/954Navigation, e.g. using categorised browsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computational Linguistics (AREA)
  • Machine Translation (AREA)

Abstract

The embodiment of the invention provides a navigation method and a navigation device for WEB application. The method comprises the following steps: segmenting words of an input search text according to a preset word segmentation method to obtain an input word segmentation set; matching the input word segmentation set with a pre-obtained component word segmentation set to obtain a search result corresponding to the search text; and acquiring a component selection instruction generated according to the search result, and entering the selected WEB application component. According to the navigation method and device for the WEB application, provided by the embodiment of the invention, the search text is subjected to word segmentation, an input word segmentation set obtained by word segmentation is matched with a component word segmentation set obtained in advance, a search result corresponding to the search text is obtained, and the WEB application component required by a user can be navigated more quickly and accurately.

Description

Navigation method and device for WEB application
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a navigation method and apparatus for WEB applications.
Background
With the continuous development of the internet technology, the WEB application is increased, the WEB application tends to be developed in a large scale, the application components are increased continuously, navigation is performed by quickly searching the functions of the components (including interfaces and interface elements), the time for searching and operating by a user can be effectively reduced, and the user experience is improved.
The traditional navigation of WEB application is a method for performing character regular matching through keywords, and under the condition that components are continuously increased, especially under the condition that a user is unfamiliar with a system, the components cannot be accurately and quickly matched through a regular expression, so that the navigation cannot be accurately and quickly performed.
Disclosure of Invention
The embodiment of the invention provides a navigation method and a navigation device for WEB application, which are used for solving or at least partially solving the defect that the navigation of the WEB application cannot be accurately and quickly carried out in the prior art.
In a first aspect, an embodiment of the present invention provides a method for navigating a WEB application, including:
segmenting words of an input search text according to a preset word segmentation method to obtain an input word segmentation set;
matching the input word segmentation set with a pre-obtained component word segmentation set to obtain a search result corresponding to the search text;
and acquiring a component selection instruction generated according to the search result, and entering the selected WEB application component.
Preferably, the specific step of performing word segmentation on the input search text according to a preset word segmentation method to obtain an input word segmentation set includes:
searching a dictionary tree obtained in advance according to the search text to obtain a plurality of words and form the input word segmentation set;
the dictionary tree is constructed according to a preset word stock; the nodes in the dictionary tree include characters.
Preferably, the specific step of searching a dictionary tree obtained in advance according to the search text to obtain a plurality of words includes:
and if judging that the character group formed by the current character group and the next character is not the path in the dictionary tree, taking the current character group as a word.
Preferably, the specific step of constructing the dictionary tree includes:
acquiring characters according to each word in the preset word bank;
and for each character in each word in the preset word bank, if judging and acquiring a character group in each word before the character to form a path with a starting point as a root node of the dictionary tree, taking the character as a child node of an end point of the path in the dictionary tree.
Preferably, before the matching the input word segmentation set with a pre-obtained component word segmentation set and obtaining a search result corresponding to the search text, the method further includes:
and according to the preset word segmentation method, segmenting words of the description of each WEB application component, and acquiring a component word segmentation set corresponding to the WEB application component.
Preferably, the specific step of matching the input word segmentation set with a pre-obtained component word segmentation set to obtain the search result corresponding to the search text includes:
and if judging that at least one same word exists between the input word segmentation set and the component word segmentation set, taking the component word segmentation set as a search result.
Preferably, the specific step of matching the input word segmentation set with a pre-obtained component word segmentation set to obtain the search result corresponding to the search text further includes:
and sequencing the search results according to the total weight of the same words existing in the input word segmentation set and the component word segmentation set.
In a second aspect, an embodiment of the present invention provides a navigation device for WEB applications, including:
the word segmentation module is used for segmenting words of the input search text according to a preset word segmentation method to obtain an input word segmentation set;
the matching module is used for matching the input word segmentation set with a pre-obtained component word segmentation set to obtain a search result corresponding to the search text;
and the navigation module is used for acquiring a component selection instruction generated according to the search result and entering the selected WEB application component.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, and when the computer program is executed, the steps of the method for navigating a WEB application provided in any one of the various possible implementations of the first aspect are implemented.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the navigation method for a WEB application as provided in any one of the various possible implementations of the first aspect.
According to the navigation method and device for the WEB application, provided by the embodiment of the invention, the search text is subjected to word segmentation, an input word segmentation set obtained by word segmentation is matched with a component word segmentation set obtained in advance, a search result corresponding to the search text is obtained, and the WEB application component required by a user can be navigated more quickly and accurately. Furthermore, navigation is carried out through a search text for describing WEB application components required by a user, and the user can realize faster and more accurate WEB application navigation without being familiar with regular expressions and WEB applications.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating a navigation method for a WEB application according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a dictionary tree in the navigation method for WEB application according to the embodiment of the present invention;
fig. 3 is a schematic structural diagram of a navigation device for a WEB application according to an embodiment of the present invention;
fig. 4 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to overcome the above problems in the prior art, embodiments of the present invention provide a method and an apparatus for navigating a WEB application, and an inventive concept thereof is to retrieve components of the WEB application through word senses, so as to achieve fast and accurate navigation of the WEB application.
Fig. 1 is a schematic flow chart of a navigation method for a WEB application according to an embodiment of the present invention. As shown in fig. 1, the method includes: step S101, segmenting words of the input search text according to a preset word segmentation method to obtain an input word segmentation set.
Specifically, in order to be navigated to a WEB application component that a user needs, the user may input a search text input _ string through a search box to search for the WEB application component.
And searching text for describing the WEB application components required by the user.
After the search text is obtained, segmenting the search text input _ string according to a preset segmentation method to obtain a plurality of words to form an input segmentation set Sinput
And S102, matching the input word segmentation set with a pre-obtained component word segmentation set to obtain a search result corresponding to the search text.
It should be noted that the component word segmentation set is obtained by performing word segmentation on the description of each component of the WEB application by the preset word segmentation method.
It will be appreciated that there are multiple components for a WEB application, and accordingly there are multiple component participle sets, S for each1,S2,...,Sn
S1,S2,...,SnIs Sg
Each component participle set corresponds to a WEB application component. Will S1,S2,...,SnAnd corresponding to the WEB application component to obtain a result set R.
The data type of the result set R is Map, Key is word segmentation, and Value is a component.
And matching the input word segmentation set with each component word segmentation set respectively, and determining whether words in the input word segmentation set exist in the component word segmentation set or not.
If yes, the component participle set is matched with the input participle set, the WEB application component corresponding to the component participle set may be a WEB application component required by a user, and the WEB application component corresponding to the component participle set is used as a search result corresponding to the search text.
If not, the component participle set is not matched with the input participle set, and the WEB application component corresponding to the component participle set is not the WEB application component required by the user.
And step S103, acquiring a component selection instruction generated according to the search result, and entering the selected WEB application component.
It can be understood that the search text corresponds to the search result SoutThe user may select one or more of the search results, and select one of them to complete the input of the component selection instruction.
And after receiving a component selection instruction generated according to the search result, entering a WEB application component selected by the user according to the component selection instruction.
According to the embodiment of the invention, the search text is segmented, the input segmented word set obtained by segmenting words is matched with the component segmented word set obtained in advance, the search result corresponding to the search text is obtained, and the WEB application component required by the user can be navigated more quickly and accurately. Furthermore, navigation is carried out through a search text for describing WEB application components required by a user, and the user can realize faster and more accurate WEB application navigation without being familiar with regular expressions and WEB applications.
Based on the content of each embodiment, the specific steps of segmenting the input search text according to a preset segmentation method to obtain an input segmentation set include: and searching a dictionary tree obtained in advance according to the search text to obtain a plurality of words to form an input word segmentation set.
The dictionary tree is constructed according to a preset word stock; the nodes in the dictionary tree include characters.
It should be noted that, a dictionary tree is constructed according to a preset lexicon. The dictionary tree may have one or more trees.
The predetermined thesaurus includes words describing possible references to the WEB application component.
The nodes in the dictionary tree include characters. On a path from the root node to each leaf node in the dictionary tree, characters of each node form a word in a preset word bank according to the sequence from the root node to the leaf node.
Searching a dictionary tree obtained in advance according to a search text, and if a plurality of continuous characters in the search text correspond to a path from a root node to a leaf node in the dictionary tree, taking the continuous characters as a word, thereby segmenting the search text into a plurality of words, and forming the plurality of words into an input segmentation set.
The embodiment of the invention divides the words of the searched text based on the dictionary tree obtained in advance by searching, and can more quickly obtain more accurate word division results, thereby realizing more quick and accurate WEB application navigation.
Based on the content of the above embodiments, the specific steps of searching a dictionary tree obtained in advance according to a search text and obtaining a plurality of words include: and if judging that the character group formed by the current character group and the next character is not a path in the dictionary tree, taking the current character group as a word.
It should be noted that the words included in the preset lexicon can be divided into three categories: resource segmentation, operation segmentation and stop segmentation.
The resource segmentation word is used for representing an entity in the Web application, such as a number of the entity or a name of the entity.
The operation participle is used for representing operations such as adding, modifying, deleting and the like on the entity in the Web application.
Stop words are used to indicate termination of a participle, e.g., AND, and the like. When the word segmentation is carried out, the word segmentation is suspended when a stop word is encountered, and the word segmentation is continued from the next character of the stop word.
The words included in the preset word stock can be divided into three categories, so that the preset word stock can include three word stocks: resource word stock, operation word stock and stop word stock.
A weight for each word in the preset lexicon may be determined.
Table 1 to table 3 show a resource thesaurus, an operation thesaurus and a stop thesaurus, respectively.
TABLE 1 resource thesaurus
Entity serial number Entity Weight of
0 Entity zero 3
1 Entity zero one 3
2 Entity zero two 3
3 Entity three 3
4 Entity one 3
5 Entity one zero 3
6 One entity two 3
7 Entity two, two and three 3
8 Entity one, two and four 3
9 Entity one, two and five 3
... ... ...
n Entity n 3
TABLE 2 operation thesaurus
Operation sequence number Operation of Weight of
0 View of 2
1 Adding 2
2 Deleting 2
3 Modifying 2
4 Preview 2
n Operation n 2
TABLE 3 stop word stock
Stop word sequence number Stop word Weight of
0 Is/are as follows 1
1 And 1
2 and 1
3 to obtain 1
4 Ground 1
... ... ...
n Stop word 1
Starting from the first character in the search text, it is determined whether the character is a stop word.
If yes, continuing to judge the next character; if not, judging whether the dictionary tree has the same node with the character or not.
If yes, the character is used as a current character group, and whether a second character is a stop word or not is judged; if the second character is not the stop word, judging whether the character group formed by the current character group and the second character corresponds to a path in the dictionary tree or not; if yes, taking a character group consisting of the current character group and the second character as a new current character group, and continuously judging whether the third character is a stop word or not; if not, the current character group is taken as a word obtained by word segmentation, and whether a third character is a stop word or not is continuously judged
If not, judging whether the second character is a stop word.
By executing the judging step on each character, the search text can be segmented, and a plurality of words are obtained as segmentation results.
The embodiment of the invention can divide the word of the search text by judging whether the character group formed by the current character group and the next character is a path in the dictionary tree or not, and can more quickly obtain more accurate word division results, thereby realizing more quick and accurate WEB application navigation.
Based on the content of the above embodiments, the specific steps of constructing the dictionary tree include: and acquiring each character according to each word in a preset word bank.
Specifically, a preset Word stock is traversed to obtain each Wordi
Traverse WordiObtain each character Chari
For each character in each word in a preset word bank, if the character group before the character in each word is judged and known, and a path with the starting point being the root node of the dictionary tree is formed, the character is used as the child node of the end point of the path in the dictionary tree.
Specifically, for each character in a word in a preset lexicon, it is determined whether the character group of the word before the character is a path whose starting point is a root node of the lexicon tree and whose ending point is a current leaf node.
If yes, the character is used as the child node of the current leaf node to become a new current leaf node, and the path is extended.
If not, the character is used as a new root node.
Through the steps, a plurality of dictionary trees can be constructed.
It should be noted that the Hash (Hash) value of the preset lexicon and the dictionary tree obtained according to the lexicon can be stored in the browser in the form of Map; key is the Hash value and value is the corresponding dictionary tree.
Whether the word stock changes can be judged according to the Hash value of the locally stored word stock and the Hash value of the word stock stored by the browser. If the Hash values are the same, the word bank stored locally is not changed, and the dictionary tree does not need to be updated; if the Hash values are different, the word stock stored locally is changed, and the dictionary tree stored in the browser is updated according to the word stock stored locally.
The embodiment of the invention constructs the nodes in the dictionary tree by judging whether the character group in front of the character in each word forms a path with the starting point being the root node of the dictionary tree or not, and obtains each dictionary tree, thereby being capable of carrying out faster and more accurate word segmentation based on the dictionary tree and realizing faster and more accurate WEB application navigation.
Based on the content of each embodiment, before matching the input word segmentation set with the component word segmentation set obtained in advance and obtaining the search result corresponding to the search text, the method further includes: and according to a preset word segmentation method, segmenting words of the description of each WEB application component, and acquiring a component word segmentation set corresponding to the WEB application component.
Specifically, before step S102, the description of each component in the WEB application is segmented according to a preset segmentation method, so as to obtain a segmentation set of each component.
The specific steps of segmenting the description of each component in the WEB application according to the preset segmentation method are similar to the specific steps of segmenting the search text according to the preset segmentation method, and segmentation is performed based on a dictionary tree which is constructed in advance, and details are not repeated here.
The embodiment of the invention divides the words of the searched text based on the dictionary tree obtained in advance by searching, and can more quickly obtain more accurate word division results, thereby realizing more quick and accurate WEB application navigation.
Based on the content of each embodiment, the specific steps of matching the input word segmentation set with the pre-obtained component word segmentation set and obtaining the search result corresponding to the search text include: and if judging that at least one same word exists between the input word segmentation set and the component word segmentation set, taking the component word segmentation set as a search result.
Specifically, the input word segmentation set is respectively matched with each component word segmentation set, and whether each word in the input word segmentation set is the same as each word in the component word segmentation set is judged.
And for each word in the input word segmentation set and each word in the component word segmentation set, judging whether paths in the dictionary trees corresponding to the two words have the same sub-path or not.
If the two words exist, the two words are partially or totally the same, namely the two sets have the same words; if not, the two words are different.
The two sets have the same words, which indicates that the WEB application component corresponding to the component participle set may be a WEB application component required by a user, and the WEB application component corresponding to the component participle set is used as a search result corresponding to a search text.
The two sets do not have the same words, and the WEB application component corresponding to the component word segmentation set is not the WEB application component required by the user.
For example, table 4 shows the result set R.
TABLE 4 result set R
Serial number Description of components Component participle collection
0 View preview entity one View/preview/entity one
1 Delete modification entity two Delete/modify/entity two
2 Viewing delete modify operation n entity three Viewing/deleting/modifying/operating n/entity three
3 Adding entity four Add/entity four
4 Modified entity three deleted entity four Modify/entity three/delete/entity four
... ... ...
n Description of components Word segmentation one/word segmentation two/entity one.
If the search text input by the user is: viewing entity one; the word segmentation result is: view/entity one; the search results are shown in table 5:
table 5 search results table 1
Corresponding component serial number Description of corresponding Components Weight of
0 View/preview/entity one 4
2 Viewing/deleting/modifying/operating n/entity three 2
If the search text input by the user is: adding and modifying the entity III; the word segmentation result is: add/modify/entity three; the search results are shown in table 6:
table 6 search results table 2
Corresponding component serial number Description of corresponding Components Weight of
2 Viewing/deleting/modifying/operating n/entity three 5
4 Modify/entity three/delete/entity four 5
1 Delete/modify/entity two 2
3 Add/entity four 2
If the search text input by the user is: i want to preview the second entity while modifying it; the word segmentation result is: preview/entity two/modify; the search results are shown in table 7:
table 7 search results table 3
Corresponding component serial number Description of corresponding Components Weight of
1 Delete/modify/entity two 5
0 View/preview/entity one 2
4 Modify/entity three/delete entity four 2
According to the embodiment of the invention, whether the WEB application component corresponding to the component participle set is a search result is determined by judging whether the same word exists in the input participle set and the component participle set, so that the WEB application component required by a user can be navigated more quickly and accurately.
Based on the content of each embodiment, the specific steps of matching the input word segmentation set with the pre-obtained component word segmentation set to obtain the search result corresponding to the search text further include: and sequencing the search results according to the total weight of the same words existing in the input word segmentation set and the component word segmentation set.
Specifically, the weight of each word in the preset lexicon may be determined.
For each component participle set where there is a word that is the same as a word in the input participle set, the total weight may be obtained from the weights of the same words in both sets.
And sorting and outputting the search results according to the total weight. The greater the total weight, the greater the likelihood that the WEB application component is a WEB application component that the user desires.
The weight of each word in the preset word bank can be a fixed weight set in the initial period, and can also be dynamically adjusted according to the matching condition of each search result and the component selection instruction.
Fig. 2 is a schematic diagram of a dictionary tree in the navigation method for a WEB application according to an embodiment of the present invention. As shown in fig. 2, the leaf node represented by the character may be expanded, and the weight of the word represented by the path from the node to the leaf node may be used as a child node of the leaf node to form a new leaf node.
For example, in FIG. 2, "entity zero one" is weighted by 3 and "entity n" is weighted by 1.
According to the embodiment of the invention, the search results are sorted according to the total weight of the same words existing in the input word segmentation set and the component word segmentation set, so that a user can conveniently and quickly select a required WEB application component, and the quick and accurate WEB application navigation can be realized.
Fig. 3 is a schematic structural diagram of a navigation device for WEB applications according to an embodiment of the present invention. Based on the content of the above embodiments, as shown in fig. 3, the apparatus includes a word segmentation module 301, a matching module 302, and a navigation module 303, where:
a word segmentation module 301, configured to perform word segmentation on an input search text according to a preset word segmentation method to obtain an input word segmentation set;
the matching module 302 is configured to match the input word segmentation set with a pre-obtained component word segmentation set to obtain a search result corresponding to the search text;
and the navigation module 303 is configured to acquire a component selection instruction generated according to the search result, and enter the selected WEB application component.
Specifically, the word segmentation module 301, the matching module 302 and the navigation module 303 are electrically connected in sequence.
The word segmentation module 301 performs word segmentation on the search text input _ string according to a preset word segmentation method to obtain a plurality of words, and forms an input word segmentation set Sinput
The matching module 302 matches the input word segmentation set with each component word segmentation set respectively, and determines whether a word in the input word segmentation set exists in the component word segmentation set.
If yes, the component participle set is matched with the input participle set, the WEB application component corresponding to the component participle set may be a WEB application component required by a user, and the WEB application component corresponding to the component participle set is used as a search result corresponding to the search text.
If not, the component participle set is not matched with the input participle set, and the WEB application component corresponding to the component participle set is not the WEB application component required by the user.
The navigation module 303 receives a component selection instruction generated according to the search result, and enters the WEB application component selected by the user according to the component selection instruction.
The specific method and flow for implementing the corresponding function by each module included in the navigation device for WEB application provided in the embodiments of the present invention are described in detail in the embodiments of the navigation method for WEB application, and are not described herein again.
The navigation device for the WEB application is used in the navigation method for the WEB application in each of the foregoing embodiments. Therefore, the description and definition in the navigation method of the WEB application in the foregoing embodiments may be used for understanding each execution module in the embodiments of the present invention.
According to the embodiment of the invention, the search text is segmented, the input segmented word set obtained by segmenting words is matched with the component segmented word set obtained in advance, the search result corresponding to the search text is obtained, and the WEB application component required by the user can be navigated more quickly and accurately. Furthermore, navigation is carried out through a search text for describing WEB application components required by a user, and the user can realize faster and more accurate WEB application navigation without being familiar with regular expressions and WEB applications.
Fig. 4 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention. Based on the content of the above embodiment, as shown in fig. 4, the electronic device may include: a processor (processor)401, a memory (memory)402, and a bus 403; wherein, the processor 401 and the memory 402 complete the communication with each other through the bus 403; the processor 401 is configured to invoke computer program instructions stored in the memory 402 and executable on the processor 401 to perform a navigation method of the WEB application provided by the above embodiments of the method, including, for example: segmenting words of an input search text according to a preset word segmentation method to obtain an input word segmentation set; matching the input word segmentation set with a pre-obtained component word segmentation set to obtain a search result corresponding to the search text; and acquiring a component selection instruction generated according to the search result, and entering the selected WEB application component.
Another embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the navigation method of the WEB application provided by the above-mentioned method embodiments, for example, the method includes: segmenting words of an input search text according to a preset word segmentation method to obtain an input word segmentation set; matching the input word segmentation set with a pre-obtained component word segmentation set to obtain a search result corresponding to the search text; and acquiring a component selection instruction generated according to the search result, and entering the selected WEB application component.
Furthermore, the logic instructions in the memory 402 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or make a contribution to the prior art, or may be implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Another embodiment of the present invention provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions enable a computer to execute the method for navigating a WEB application provided in the foregoing method embodiments, for example, the method includes: segmenting words of an input search text according to a preset word segmentation method to obtain an input word segmentation set; matching the input word segmentation set with a pre-obtained component word segmentation set to obtain a search result corresponding to the search text; and acquiring a component selection instruction generated according to the search result, and entering the selected WEB application component.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. It is understood that the above-described technical solutions may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method of the above-described embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A navigation method for WEB application is characterized by comprising the following steps:
segmenting words of an input search text according to a preset word segmentation method to obtain an input word segmentation set;
matching the input word segmentation set with a pre-obtained component word segmentation set to obtain a search result corresponding to the search text;
and acquiring a component selection instruction generated according to the search result, and entering the selected WEB application component.
2. The navigation method for WEB applications according to claim 1, wherein the specific step of performing word segmentation on the input search text according to a preset word segmentation method to obtain the input word segmentation set includes:
searching a dictionary tree obtained in advance according to the search text to obtain a plurality of words and form the input word segmentation set;
the dictionary tree is constructed according to a preset word stock; the nodes in the dictionary tree include characters.
3. The method for navigating WEB applications according to claim 2, wherein the specific step of searching a dictionary tree obtained in advance according to the search text to obtain a plurality of words comprises:
and if judging that the character group formed by the current character group and the next character is not the path in the dictionary tree, taking the current character group as a word.
4. The method for navigating WEB applications according to claim 2, wherein the step of constructing the dictionary tree comprises the following steps:
acquiring characters according to each word in the preset word bank;
and for each character in each word in the preset word bank, if judging and acquiring a character group in each word before the character to form a path with a starting point as a root node of the dictionary tree, taking the character as a child node of an end point of the path in the dictionary tree.
5. The navigation method for WEB application according to claim 1, wherein before the matching the input participle set with a component participle set obtained in advance and obtaining the search result corresponding to the search text, the method further comprises:
and according to the preset word segmentation method, segmenting words of the description of each WEB application component, and acquiring a component word segmentation set corresponding to the WEB application component.
6. The navigation method for WEB application according to claim 5, wherein the specific step of matching the input participle set with a component participle set obtained in advance to obtain the search result corresponding to the search text includes:
and if judging that at least one same word exists between the input word segmentation set and the component word segmentation set, taking the component word segmentation set as a search result.
7. The navigation method for WEB application according to claim 6, wherein the specific step of matching the input participle set with a component participle set obtained in advance to obtain the search result corresponding to the search text further comprises:
and sequencing the search results according to the total weight of the same words existing in the input word segmentation set and the component word segmentation set.
8. A navigation device for WEB applications, comprising:
the word segmentation module is used for segmenting words of the input search text according to a preset word segmentation method to obtain an input word segmentation set;
the matching module is used for matching the input word segmentation set with a pre-obtained component word segmentation set to obtain a search result corresponding to the search text;
and the navigation module is used for acquiring a component selection instruction generated according to the search result and entering the selected WEB application component.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method for navigating a WEB application according to any of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the steps of the navigation method for a WEB application according to any one of claims 1 to 7.
CN201911201887.XA 2019-11-29 2019-11-29 Navigation method and device for WEB application Pending CN110941777A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911201887.XA CN110941777A (en) 2019-11-29 2019-11-29 Navigation method and device for WEB application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911201887.XA CN110941777A (en) 2019-11-29 2019-11-29 Navigation method and device for WEB application

Publications (1)

Publication Number Publication Date
CN110941777A true CN110941777A (en) 2020-03-31

Family

ID=69909552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911201887.XA Pending CN110941777A (en) 2019-11-29 2019-11-29 Navigation method and device for WEB application

Country Status (1)

Country Link
CN (1) CN110941777A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120192089A1 (en) * 2011-01-21 2012-07-26 Microsoft Corporation Direct navigation through browser address bar
CN103617251A (en) * 2013-11-28 2014-03-05 金蝶软件(中国)有限公司 Sensitive word matching method and system
CN104933099A (en) * 2015-05-28 2015-09-23 百度在线网络技术(北京)有限公司 Method and device for providing target search result for user
CN107145571A (en) * 2017-05-05 2017-09-08 广东艾檬电子科技有限公司 A kind of searching method and device
CN109800427A (en) * 2018-12-28 2019-05-24 北京金山安全软件有限公司 Word segmentation method, word segmentation device, word segmentation terminal and computer readable storage medium
CN109918665A (en) * 2019-03-05 2019-06-21 湖北亿咖通科技有限公司 Segmenting method, device and the electronic equipment of text

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120192089A1 (en) * 2011-01-21 2012-07-26 Microsoft Corporation Direct navigation through browser address bar
CN103617251A (en) * 2013-11-28 2014-03-05 金蝶软件(中国)有限公司 Sensitive word matching method and system
CN104933099A (en) * 2015-05-28 2015-09-23 百度在线网络技术(北京)有限公司 Method and device for providing target search result for user
CN107145571A (en) * 2017-05-05 2017-09-08 广东艾檬电子科技有限公司 A kind of searching method and device
CN109800427A (en) * 2018-12-28 2019-05-24 北京金山安全软件有限公司 Word segmentation method, word segmentation device, word segmentation terminal and computer readable storage medium
CN109918665A (en) * 2019-03-05 2019-06-21 湖北亿咖通科技有限公司 Segmenting method, device and the electronic equipment of text

Similar Documents

Publication Publication Date Title
CN111444320B (en) Text retrieval method and device, computer equipment and storage medium
CN108304526B (en) Data processing method and device and server
JP5984917B2 (en) Method and apparatus for providing suggested words
KR101508260B1 (en) Summary generation apparatus and method reflecting document feature
CN109325182B (en) Information pushing method and device based on session, computer equipment and storage medium
US20100228742A1 (en) Categorizing Queries and Expanding Keywords with a Coreference Graph
WO2014210387A2 (en) Concept extraction
CN111126060B (en) Method, device, equipment and storage medium for extracting subject term
CN107704102A (en) A kind of text entry method and device
CN110941959A (en) Text violation detection method, text restoration method, data processing method and data processing equipment
CN110874396B (en) Keyword extraction method and device and computer storage medium
CN107688616A (en) Show unique fact of entity
US20180336285A1 (en) Automatically Generating and Evaluating Candidate Terms for Trademark Clearance
CN111737961B (en) Method and device for generating story, computer equipment and medium
JP2022088540A (en) Method for generating user interest image, device, electronic apparatus and storage medium
CN113033194B (en) Training method, device, equipment and storage medium for semantic representation graph model
CN104021202A (en) Device and method for processing entries of knowledge sharing platform
CN114254615A (en) Volume assembling method and device, electronic equipment and storage medium
JP2012079029A (en) Suggestion query extracting apparatus, method, and program
CN113919424A (en) Training of text processing model, text processing method, device, equipment and medium
CN113157888A (en) Multi-knowledge-source-supporting query response method and device and electronic equipment
JP5179564B2 (en) Query segment position determination device
CN110019702B (en) Data mining method, device and equipment
CN110941777A (en) Navigation method and device for WEB application
CN111476003B (en) Lyric rewriting method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200331