Information generating method, device and electronic device

By generating and screening high-quality entries in the dictionary, the problem of low dictionary quality in the existing technology is solved, and the accuracy and standardization of word segmentation are improved.

CN113268978BActive Publication Date: 2024-08-27BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010097793.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-17
Publication Date
2024-08-27
Estimated Expiration
2040-02-27

AI Technical Summary

Technical Problem

Due to the low quality of word entries in the existing dictionary-based word segmentation methods, it is easy to introduce incorrect or irregular word entries, affecting the quality of word segmentation.

Method used

By generating a primary dictionary and calculating the closeness of entries, high-quality entries are screened out and a target dictionary is generated to avoid errors or irregular entries.

Benefits of technology

It improves the quality of the dictionary, ensures the accuracy and standardization of word segmentation results, and reduces the introduction of incorrect entries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113268978B
    Figure CN113268978B
Patent Text Reader

Abstract

The embodiments of the present invention provide an information generation method, device and electronic device, wherein the method includes: generating a primary dictionary; determining the closeness corresponding to each entry in the primary dictionary; filtering the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary; and then filtering the entries by closeness to avoid introducing erroneous entries or non-standard entries into the dictionary, thereby improving the quality of the dictionary.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to an information generating method, device and electronic equipment. Background Art

[0002] At present, word segmentation is used in many information processing processes. For example, after receiving the search terms, the search system first performs word segmentation on the search terms, and then searches for reverse search based on the word segmentation results to determine the search results. For another example, when translating, the text to be translated is first segmented, and then the translation is performed based on the segmented text; and so on.

[0003] In the prior art, the dictionary-based method is one of the commonly used word segmentation methods, that is, the information to be processed is segmented by matching it with the entries in the dictionary; therefore, the quality of the dictionary affects the quality of word segmentation. Currently, most dictionaries are generated based on the frequency of entries, the left and right entropy of entry fragments, etc., which will introduce wrong entries or non-standard entries into the dictionary, resulting in low dictionary quality. Summary of the invention

[0004] The embodiment of the present invention provides an information generating method to generate a high-quality dictionary.

[0005] Correspondingly, the embodiment of the present invention further provides an information generating device and an electronic device to ensure the implementation and application of the above method.

[0006] In order to solve the above problems, an embodiment of the present invention discloses an information generation method, which specifically includes: generating a primary dictionary; determining the closeness corresponding to each entry in the primary dictionary; screening the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary.

[0007] Optionally, determining the closeness corresponding to each entry in the primary dictionary includes: for each entry in the primary dictionary, obtaining user search behavior data corresponding to the entry; and calculating the closeness corresponding to the entry based on the user search behavior data corresponding to the entry.

[0008] Optionally, the term includes M word segmentation fragments, and the calculating the closeness corresponding to the term based on the user search behavior data corresponding to the term includes: dividing the M word segmentation fragments in the term into first M1 word segmentation fragments and last M2 word segmentation fragments, wherein M, M1 and M2 are all positive numbers, and M is the sum of M1 and M2; determining, based on the user search behavior data corresponding to the term, a target search term adjacent to the first M1 word segmentation fragments and the last M2 word segmentation fragments and a target search result clicked on the search result page of the target search term; determining a first number of clicks on the target search result in which the first M1 word segmentation fragments and the last M2 word segmentation fragments are adjacent in the title, and a second number of clicks on the target search result in which the first M1 word segmentation fragments and the last M2 word segmentation fragments are not adjacent in the title; and determining the closeness corresponding to the term based on the first number and the second number.

[0009] Optionally, the entries include at least one closeness; and the steps of screening the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary include: for each entry in the primary dictionary, comparing the minimum closeness corresponding to the entry with a closeness threshold; and screening out entries in the primary dictionary whose minimum closeness is less than the closeness threshold to obtain a target dictionary.

[0010] Optionally, the filtering of entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary further includes: deleting entries in the primary dictionary whose length exceeds a preset length; and / or deleting stop words in the primary dictionary.

[0011] Optionally, generating a primary dictionary includes: obtaining page contents of multiple web pages; performing word segmentation processing on the page contents of each of the web pages to obtain corresponding word segmentation fragments; sequentially combining M consecutive word segmentation fragments into one entry, and determining the word frequency and mutual information of each entry; and generating a primary dictionary by using entries whose word frequency is higher than a first word frequency threshold and whose mutual information is higher than a mutual information threshold.

[0012] Optionally, the method further includes: based on the primary dictionary, adopting the maximum matching principle to perform word segmentation processing on the page content of each of the web pages to obtain corresponding word segmentation fragments; determining the word frequency corresponding to the word segmentation fragments that do not exist in the primary dictionary, and adding the word segmentation fragments that do not exist in the primary dictionary and whose word frequency is higher than a second word frequency threshold to the primary dictionary.

[0013] The embodiment of the present invention also discloses an information generating device, which specifically includes: a primary dictionary generating module, used to generate a primary dictionary; a closeness generating module, used to determine the closeness corresponding to each entry in the primary dictionary; and a target dictionary generating module, used to screen the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary.

[0014] Optionally, the closeness generation module includes: a data acquisition submodule, used to acquire user search behavior data corresponding to each entry in the primary dictionary; and a closeness calculation submodule, used to calculate the closeness corresponding to the entry based on the user search behavior data corresponding to the entry.

[0015] Optionally, the term includes M word segmentation fragments, and the closeness calculation submodule is used to divide the M word segmentation fragments in the term into first M1 word segmentation fragments and last M2 word segmentation fragments, wherein M, M1 and M2 are all positive numbers, and M is the sum of M1 and M2; based on the user search behavior data corresponding to the term, determine the target search terms adjacent to the first M1 word segmentation fragments and the last M2 word segmentation fragments and the target search results clicked on the search result page of the target search term; determine the first number of times the target search results adjacent to the first M1 word segmentation fragments and the last M2 word segmentation fragments in the title are clicked, and the second number of times the target search results not adjacent to the first M1 word segmentation fragments and the last M2 word segmentation fragments in the title are clicked; and determine the closeness corresponding to the term based on the first number and the second number.

[0016] Optionally, the entry contains at least one closeness; the target dictionary generation module includes: a comparison submodule, used to compare the minimum closeness corresponding to each entry in the primary dictionary with a closeness threshold; a screening submodule, used to screen out entries in the primary dictionary whose minimum closeness is less than the closeness threshold to obtain a target dictionary.

[0017] Optionally, the target dictionary generation module further includes: a deletion submodule, configured to delete entries in the primary dictionary whose length exceeds a preset length; and / or to delete stop words in the primary dictionary.

[0018] Optionally, the primary dictionary generation module is specifically used to obtain the page content of multiple web pages and perform word segmentation on the page content of each of the web pages to obtain corresponding word segmentation fragments; sequentially combine M consecutive word segmentation fragments into an entry, and determine the word frequency and mutual information of each entry; and use the entries whose word frequency is higher than the first word frequency threshold and whose mutual information is higher than the mutual information threshold to generate a primary dictionary.

[0019] Optionally, the device also includes: a primary dictionary expansion module, which is used to perform word segmentation processing on the page content of each of the web pages based on the primary dictionary and adopt the maximum matching principle to obtain corresponding word segmentation fragments; determine the word frequency corresponding to the word segmentation fragments that do not exist in the primary dictionary, and add the word segmentation fragments that do not exist in the primary dictionary and whose word frequency is higher than a second word frequency threshold to the primary dictionary.

[0020] An embodiment of the present invention further discloses a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the information generating method as described in any one of the embodiments of the present invention.

[0021] An embodiment of the present invention also discloses an electronic device, including a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: generating a primary dictionary; determining the closeness corresponding to each entry in the primary dictionary; filtering the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary.

[0022] Optionally, determining the closeness corresponding to each entry in the primary dictionary includes: for each entry in the primary dictionary, obtaining user search behavior data corresponding to the entry; and calculating the closeness corresponding to the entry based on the user search behavior data corresponding to the entry.

[0023] Optionally, the term includes M word segmentation fragments, and the calculating the closeness corresponding to the term based on the user search behavior data corresponding to the term includes: dividing the M word segmentation fragments in the term into first M1 word segmentation fragments and last M2 word segmentation fragments, wherein M, M1 and M2 are all positive numbers, and M is the sum of M1 and M2; determining, based on the user search behavior data corresponding to the term, a target search term adjacent to the first M1 word segmentation fragments and the last M2 word segmentation fragments and a target search result clicked on the search result page of the target search term; determining a first number of clicks on the target search result in which the first M1 word segmentation fragments and the last M2 word segmentation fragments are adjacent in the title, and a second number of clicks on the target search result in which the first M1 word segmentation fragments and the last M2 word segmentation fragments are not adjacent in the title; and determining the closeness corresponding to the term based on the first number and the second number.

[0024] Optionally, the entries include at least one closeness; and the steps of screening the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary include: for each entry in the primary dictionary, comparing the minimum closeness corresponding to the entry with a closeness threshold; and screening out entries in the primary dictionary whose minimum closeness is less than the closeness threshold to obtain a target dictionary.

[0025] Optionally, the filtering of entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary further includes: deleting entries in the primary dictionary whose length exceeds a preset length; and / or deleting stop words in the primary dictionary.

[0026] Optionally, generating a primary dictionary includes: obtaining page contents of multiple web pages; performing word segmentation processing on the page contents of each of the web pages to obtain corresponding word segmentation fragments; sequentially combining M consecutive word segmentation fragments into one entry, and determining the word frequency and mutual information of each entry; and generating a primary dictionary by using entries whose word frequency is higher than a first word frequency threshold and whose mutual information is higher than a mutual information threshold.

[0027] Optionally, it also includes instructions for performing the following operations: based on the primary dictionary, using the maximum matching principle to perform word segmentation processing on the page content of each of the web pages to obtain corresponding word segmentation fragments; determining the word frequency corresponding to the word segmentation fragments that do not exist in the primary dictionary, and adding the word segmentation fragments that do not exist in the primary dictionary and whose word frequency is higher than a second word frequency threshold to the primary dictionary.

[0028] The embodiments of the present invention include the following advantages:

[0029] In an embodiment of the present invention, a primary dictionary can be generated and the closeness corresponding to each entry in the primary dictionary can be determined; then the entries in the primary dictionary are screened according to the closeness of each entry in the primary dictionary to generate a target dictionary; and further, the entries are screened by closeness, so as to avoid introducing erroneous entries or non-standard entries into the dictionary, thereby improving the quality of the dictionary. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 is a flowchart of steps of an embodiment of an information generating method of the present invention;

[0031] Figure 2 is a flowchart of steps of an optional embodiment of an information generation method of the present invention;

[0032] Figure 3 is a structural block diagram of an embodiment of an information generating device of the present invention;

[0033] Figure 4is a structural block diagram of an optional embodiment of an information generating device of the present invention;

[0034] Figure 5 A structural block diagram of an electronic device for information generation according to an exemplary embodiment;

[0035] Figure 6 It is a structural schematic diagram of an electronic device for generating information according to another exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0037] One of the core concepts of the embodiment of the present invention is to select entries to generate a dictionary based on the closeness of adjacent segments in the entries; thereby avoiding the introduction of erroneous entries or non-standard entries into the dictionary, thereby improving the quality of the dictionary.

[0038] Reference Figure 1 , shows a flowchart of a method for generating information according to an embodiment of the present invention, which may specifically include the following steps:

[0039] Step 102: Generate a primary dictionary.

[0040] In the embodiment of the present invention, the corpus of the required field can be obtained as required, and then the primary dictionary can be generated by segmenting the obtained corpus, performing preliminary screening (such as screening based on word frequency), etc. When it is necessary to generate a dictionary for the entire field, the corpus of the entire field can be obtained; when it is necessary to generate a dictionary for a specified field, the corpus of the specified field can be obtained.

[0041] Step 104: Determine the closeness corresponding to each entry in the primary dictionary.

[0042] Step 106: Screen the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary.

[0043] After generating a primary dictionary, the closeness of each entry in the primary dictionary can be calculated; then, the entries in the primary dictionary can be screened according to the closeness of each entry to generate a target dictionary. The closeness can be used to describe the closeness between adjacent segments in an entry; the higher the closeness of an entry, the smaller the possibility of splitting the entry into entries of smaller granularity, the lower the possibility of errors in the entry, and the higher the standardization of the entry. On the contrary, the lower the closeness of an entry, the higher the possibility of splitting the entry into entries of smaller granularity, the higher the possibility of errors in the entry, and the lower the standardization of the entry. Therefore, the embodiment of the present invention can filter out entries with low closeness in the primary dictionary, retain entries with high closeness in the primary dictionary, generate a target dictionary, and thus avoid introducing erroneous entries or non-standard entries into the dictionary, thereby improving the quality of the dictionary.

[0044] In summary, in an embodiment of the present invention, a primary dictionary can be generated and the closeness corresponding to each entry in the primary dictionary can be determined; then the entries in the primary dictionary are screened according to the closeness of each entry in the primary dictionary to generate a target dictionary; and further, by screening the entries by closeness, it is possible to avoid introducing erroneous entries or non-standard entries into the dictionary, thereby improving the quality of the dictionary.

[0045] Reference Figure 2 , shows a flowchart of an optional embodiment of an information generation method of the present invention, which may specifically include the following steps:

[0046] In the embodiment of the present invention, the page contents of multiple web pages can be obtained as corpus to generate a primary dictionary. If a dictionary of the entire domain needs to be generated, the page contents of web pages of the entire domain can be obtained as corpus; if a dictionary of a specified domain needs to be generated, the page contents of web pages of the specified domain can be obtained as corpus, and the embodiment of the present invention does not limit this. In particular, the primary dictionary can be generated with reference to steps 202 to 208.

[0047] Step 202: Obtain page contents of multiple web pages.

[0048] Step 204: perform word segmentation processing on the page content of each of the web pages to obtain corresponding word segmentation fragments.

[0049] Step 206: sequentially combine the M consecutive word segments into one word entry, and determine the word frequency and mutual information of each word entry.

[0050] Step 208: Generate a primary dictionary for the specified field by using entries whose frequency is higher than the first frequency threshold and whose mutual information is higher than the mutual information threshold.

[0051] The page content may include the body, title, abstract, etc. of the page, which is not limited in this embodiment of the present invention.

[0052] In an embodiment of the present invention, the page content of each web page can be firstly segmented into sentences, and then each sentence obtained by the sentence segmentation can be segmented to improve the efficiency of word segmentation. Among them, the page content can be segmented according to punctuation marks, such as commas, periods, exclamation marks, question marks, etc., which is not limited in the embodiment of the present invention. Then, from all the sentences obtained, the frequency of each sentence can be counted and duplicates can be removed; then each sentence after deduplication can be segmented to obtain multiple segmented fragments; wherein, there can be multiple ways to segment each sentence after deduplication, such as using a segmentation tool to segment each sentence, which is not limited in the embodiment of the present invention.

[0053] In one example of the present invention, after obtaining the word segmentation fragments corresponding to each sentence, the M consecutive word segmentation fragments in the word segmentation fragments corresponding to each sentence can be combined in turn to generate the entry corresponding to the sentence; correspondingly, each entry can include M word segmentation fragments. In one example of the present invention, the value of M is first set to 1, that is, each word segmentation fragment of the sentence can be independently used as an entry. Then the value of M can be incremented from 1 to the set value according to the set step size in turn, and each time M is incremented, the M consecutive word segmentation fragments can be combined in turn to generate the entry corresponding to the sentence; wherein, the set step size can be set as 1 according to the requirements, and the set value can be set as 4 according to the requirements, and the embodiment of the present invention does not limit this. M is a positive integer, and both M and the set value are less than the total number of word segmentation fragments corresponding to the sentence. For example, if the set value = 3, the sentence "The weather is really good today" is divided into three word segmentation fragments "today", "weather" and "really good". When M is 1, the entries "today", "weather" and "really nice" can be obtained; when M=2, the entries "today's weather" and "the weather is really nice" can be obtained; when M=3, the entry "today's weather is really nice" can be obtained.

[0054] In the embodiment of the present invention, after multiple entries are determined based on the webpage contents of multiple webpages, the frequency and mutual information of each entry can be determined; then, based on the frequency and mutual information of each entry, some entries are selected to generate a primary dictionary.

[0055] In one example of the present invention, for each term corresponding to each sentence, the frequency of the term in the sentence can be determined based on the frequency of the sentence; then, based on the frequency of each term in each sentence, the sum of the frequency of each term in all sentences is counted to obtain the frequency of the term; and each term is deduplicated.

[0056] In an embodiment of the present invention, the mutual information can be used to describe the degree of dependence between adjacent segments in an entry; the greater the mutual information, the greater the possibility that the entry is a word, and conversely, the smaller the mutual information, the smaller the possibility that the entry is a word. In an example of the present invention, the M word segments in each entry can be divided into the first M1 word segments and the last M2 word segments; the M = M1 + M2, and then the mutual information corresponding to the entry can be calculated according to the following expression:

[0057]

[0058] Among them, MI(M1,M2) is the mutual information between the first M1 word segmentation fragments and the last M2 word segmentation fragments, prob(M1,M2) is the probability that the M1 word segmentation fragment and the last M2 word segmentation fragments appear adjacent to each other in the corpus, prob(M1) is the probability that the M1 word segmentation fragment appears in the corpus, and prob(M2) is the probability that the M2 word segmentation fragment appears in the corpus.

[0059] In an example of the present invention, when M is greater than 2, M1 can be increased successively from 1 to (M-1), and the M word segments in the entry can be divided into the first M1 word segments and the second M2 word segments; then the corresponding mutual information is calculated. Furthermore, when M is greater than 2, each entry can correspond to two or more mutual information; then the average of the two or more mutual information corresponding to the entry can be used as the mutual information of the entry. Of course, other methods can also be used to determine the mutual information corresponding to each entry based on the two or more mutual information corresponding to the entry, and the embodiment of the present invention is not limited to this.

[0060] Then, from the entries corresponding to the page contents of all web pages, entries with a frequency higher than a first frequency threshold and mutual information higher than a mutual information threshold are selected to generate a primary dictionary. The first frequency threshold and the mutual information threshold can be set as required, and the embodiment of the present invention does not limit this.

[0061] In an embodiment of the present invention, if a dictionary of a specified field needs to be generated, a primary dictionary of the specified field can be generated according to steps 202 to 208, and a primary dictionary of the entire field can be generated according to steps 202 to 208. Then, for each entry in the primary dictionary of the specified field, the difference information of the entry in the primary dictionary of the specified field and the primary dictionary of the entire field is determined based on the word frequency of the entry in the primary dictionary of the specified field and the word frequency of the entry in the primary dictionary of the entire field; then the entries in the primary dictionary of the specified field whose difference information is lower than the difference threshold are deleted. The difference threshold can be set as required, and the embodiment of the present invention does not limit this. In an example of the present invention, the difference information of each entry in the primary dictionary of the specified field and the primary dictionary of the entire field can be determined according to the following expression:

[0062] s = pv_site 2 / pv_rand

[0063] Wherein, s is the difference information between the primary dictionary of the specified field and the primary dictionary of the whole field, pv_site is the word frequency of the term in the primary dictionary of the whole field, and pv_rand is the word frequency of the term in the primary dictionary of the specified field.

[0064] In one embodiment of the present invention, after the primary dictionary is generated, the primary dictionary can be expanded to increase the comprehensiveness of the entries in the dictionary. In one example of the present invention, a method for expanding the primary dictionary can be: based on the primary dictionary, the page content of each web page is segmented using the maximum matching principle to obtain corresponding segmented fragments; the word frequency corresponding to the segmented fragments that do not exist in the primary dictionary is determined, and the segmented fragments that do not exist in the primary dictionary and have a word frequency higher than the second word frequency threshold are added to the primary dictionary. In one example of the present invention, the page content of each web page can be segmented again based on the generated primary dictionary; wherein the page content of each web page can be segmented based on the maximum matching principle to obtain the corresponding segmented fragments. Then the segmented fragments and the corresponding word frequencies that do not exist in the primary dictionary can be determined, and the segmented fragments that do not exist in the primary dictionary and have a word frequency higher than the second word frequency threshold are added to the primary dictionary; wherein the second word frequency threshold can be set as required, and the embodiment of the present invention does not limit this.

[0065] Then, according to steps 210 to 218 , the closeness of each entry in the primary dictionary can be determined.

[0066] Step 210: For each entry in the primary dictionary, obtain user search behavior data corresponding to the entry.

[0067] In the embodiment of the present invention, the user search behavior data corresponding to each entry in the primary dictionary can be obtained from the user search behavior data within a set time period; the set time period can be set as required, such as the last three months, and the embodiment of the present invention does not limit this. Then, based on the user search behavior data corresponding to the entry, the closeness corresponding to the entry is calculated, which can refer to steps 212 to 218.

[0068] Among them, the user search behavior data includes data related to the operations performed by the user during the search process; for example, the search terms entered, the search results clicked on the search results page corresponding to the search terms, etc., and the embodiments of the present invention do not limit this.

[0069] Step 212: Divide the M word segmentation fragments in the entry into first M1 word segmentation fragments and second M2 word segmentation fragments, wherein M, M1 and M2 are all positive numbers, and M is the sum of M1 and M2.

[0070] Step 214: Determine the target search terms adjacent to the first M1 word segments and the last M2 word segments and the target search results clicked on the search result page of the target search terms based on the user search behavior data corresponding to the terms.

[0071] Step 216: Determine the first number of clicks on the target search result in which the first M1 word segments and the last M2 word segments in the title are adjacent, and the second number of clicks on the target search result in which the first M1 word segments and the last M2 word segments in the title are not adjacent.

[0072] Step 218: Determine the closeness corresponding to the entry according to the first number and the second number.

[0073] In an embodiment of the present invention, for each entry in the primary dictionary, the entry can be divided into the first M1 word segmentation segments and the last M2 word segmentation segments in accordance with the above method, which will not be repeated here. Then, from the user search behavior data corresponding to the entry, search for the target search entry that contains the first M1 word segmentation segments and the last M2 word segmentation segments, and the first M1 word segmentation segments and the last M2 word segmentation segments are adjacent; and the target search result that is clicked on the search result page of the target search term. Then, from all the target search results, search for the target search result whose title contains the first M1 word segmentation segments and the last M2 word segmentation segments; from the searched search results, determine the first number of clicks on the target search result whose title contains the first M1 word segmentation segments and the last M2 word segmentation segments adjacent to each other, and the second number of clicks on the target search result whose title contains the first M1 word segmentation segments and the last M2 word segmentation segments not adjacent to each other. Then, based on the first number and the second number, determine the closeness corresponding to the entry; the following expression can be referred to:

[0074]

[0075] Among them, T(M1,M2) is the closeness between the first M1 word segments and the last M2 word segments, num(M1-M2) determines the first number of clicks on the target search result in which the first M1 word segments and the last M2 word segments are adjacent in the title, and num(M1~M2) is the second number of clicks on the target search result in which the first M1 word segments and the last M2 word segments are not adjacent in the title.

[0076] Correspondingly, when M is greater than 2, the entry can correspond to two or more closenesses.

[0077] Then, the entries in the primary dictionary may be screened according to the closeness of each entry in the primary dictionary to generate a target dictionary; refer to steps 218 to 220:

[0078] Step 220: For each entry in the primary dictionary, compare the minimum closeness corresponding to the entry with a closeness threshold.

[0079] Step 222: Filter out the entries in the primary dictionary whose minimum closeness is less than the closeness threshold to obtain a target dictionary.

[0080] In an embodiment of the present invention, for each entry in the primary dictionary, the minimum closeness corresponding to the entry can be determined; then the minimum closeness is compared with the closeness threshold to determine the size of the minimum closeness and the closeness threshold. Among them, the closeness threshold can be set according to requirements, and the embodiment of the present invention does not limit this. If the minimum closeness of the entry is less than the closeness threshold, the entry is screened out from the primary dictionary; if the minimum closeness of the entry is greater than or equal to the closeness threshold, the entry is retained in the primary dictionary, and finally the target dictionary is obtained.

[0081] In an optional embodiment of the present invention, the entries in the primary dictionary may be preliminarily screened before executing step 220; this may include: deleting entries in the primary dictionary that exceed a preset length; and / or deleting stop words in the primary dictionary. The stop words may be words that have no clear meaning in themselves and have meaning only when they are placed in a complete sentence; for example: modal particles, adverbs, prepositions, conjunctions, etc., which are not limited in this embodiment of the present invention. Of course, after filtering out entries in the primary dictionary whose minimum closeness value is less than the closeness threshold in executing step 222, the entries in the primary dictionary may be further screened: deleting entries in the primary dictionary that exceed a preset length; and / or deleting stop words in the primary dictionary, thereby obtaining a target dictionary.

[0082] In summary, in an embodiment of the present invention, a primary dictionary can be generated and the closeness corresponding to each entry in the primary dictionary can be determined; then, for each entry in the primary dictionary, the minimum closeness corresponding to the entry is compared with the closeness threshold, and the entries in the primary dictionary whose minimum closeness is less than the closeness threshold are screened out to obtain a target dictionary; then, the entries with high closeness between word segmentation fragments are retained, and the entries with low closeness between word segmentation fragments are screened out, which can effectively avoid introducing erroneous entries or non-standard entries into the dictionary and improve the quality of the dictionary.

[0083] Secondly, in an embodiment of the present invention, it is also possible to delete entries in the primary dictionary whose length exceeds a preset length; and / or delete stop words in the primary dictionary; and then filter out erroneous entries or non-standard entries from the primary dictionary to avoid introducing erroneous entries or non-standard entries into the dictionary, thereby further improving the quality of the dictionary.

[0084] Furthermore, in an embodiment of the present invention, for each entry in the primary dictionary, user search behavior data corresponding to the entry can be obtained, and then the closeness corresponding to the entry can be calculated based on the user search behavior data corresponding to the entry; and then by more accurately determining the closeness of the entry based on the user search behavior data, it is more effective to avoid introducing erroneous entries or non-standard entries into the dictionary, thereby further improving the quality of the dictionary.

[0085] Again, in an embodiment of the present invention, after a primary dictionary is generated, the page content of each of the web pages can be segmented based on the primary dictionary using the maximum matching principle to obtain corresponding segmented fragments, determine the word frequencies corresponding to the segmented fragments that do not exist in the primary dictionary, and add the segmented fragments that do not exist in the primary dictionary and whose word frequencies are higher than a second word frequency threshold to the primary dictionary; thereby effectively expanding the primary dictionary and increasing the comprehensiveness of the entries in the primary dictionary.

[0086] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0087] Reference Figure 3 , shows a structural block diagram of an information generating device embodiment of the present invention, which may specifically include the following modules:

[0088] A primary dictionary generating module 302, used to generate a primary dictionary;

[0089] A closeness generating module 304 is used to determine the closeness corresponding to each entry in the primary dictionary;

[0090] The target dictionary generating module 306 is used to screen the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary.

[0091] Reference Figure 4 , showing a structural block diagram of an optional embodiment of an information generating device of the present invention.

[0092] In an optional embodiment of the present invention, the compactness generating module 304 includes:

[0093] The data acquisition submodule 3042 is used to acquire the user search behavior data corresponding to each entry in the primary dictionary;

[0094] The closeness calculation submodule 3044 is used to calculate the closeness corresponding to the term based on the user search behavior data corresponding to the term.

[0095] In an optional embodiment of the present invention, the entry includes M word segmentation fragments, and the closeness calculation submodule 3044 is used to divide the M word segmentation fragments in the entry into first M1 word segmentation fragments and last M2 word segmentation fragments, wherein M, M1 and M2 are all positive numbers, and M is the sum of M1 and M2; based on the user search behavior data corresponding to the entry, determine the target search terms adjacent to the first M1 word segmentation fragments and the last M2 word segmentation fragments and the target search results clicked on the search result page of the target search terms; determine the first number of times the target search results adjacent to the first M1 word segmentation fragments and the last M2 word segmentation fragments in the title are clicked, and the second number of times the target search results not adjacent to the first M1 word segmentation fragments and the last M2 word segmentation fragments in the title are clicked; and determine the closeness corresponding to the entry based on the first number and the second number.

[0096] In an optional embodiment of the present invention, the entry includes at least one closeness; the target dictionary generation module 306 includes:

[0097] A comparison submodule 3062 is used to compare the minimum closeness corresponding to each entry in the primary dictionary with a closeness threshold;

[0098] The screening submodule 3064 is used to screen out the entries whose minimum closeness in the primary dictionary is less than the closeness threshold, so as to obtain a target dictionary.

[0099] In an optional embodiment of the present invention, the target dictionary generation module 306 further includes:

[0100] The deletion submodule 3066 is used to delete entries in the primary dictionary whose length exceeds a preset length; and / or to delete stop words in the primary dictionary.

[0101] In an optional embodiment of the present invention, the primary dictionary generation module 302 is specifically used to obtain the page content of multiple web pages and perform word segmentation on the page content of each of the web pages to obtain corresponding word segmentation fragments; sequentially combine M consecutive word segmentation fragments into an entry, and determine the word frequency and mutual information of each entry; and use the entries whose word frequency is higher than the first word frequency threshold and whose mutual information is higher than the mutual information threshold to generate a primary dictionary.

[0102] In an optional embodiment of the present invention, the device also includes: a primary dictionary expansion module 308, which is used to perform word segmentation processing on the page content of each of the web pages based on the primary dictionary and adopt the maximum matching principle to obtain corresponding word segmentation fragments; determine the word frequency corresponding to the word segmentation fragments that do not exist in the primary dictionary, and add the word segmentation fragments that do not exist in the primary dictionary and whose word frequency is higher than the second word frequency threshold to the primary dictionary.

[0103] In summary, in an embodiment of the present invention, a primary dictionary can be generated and the closeness corresponding to each entry in the primary dictionary can be determined; then the entries in the primary dictionary are screened according to the closeness of each entry in the primary dictionary to generate a target dictionary; and further, by screening the entries by closeness, it is possible to avoid introducing erroneous entries or non-standard entries into the dictionary, thereby improving the quality of the dictionary.

[0104] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0105] Figure 5 1 is a block diagram of an electronic device 500 for information generation according to an exemplary embodiment. For example, the electronic device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0106] Reference Figure 5 , the electronic device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0107] The processing component 502 generally controls the overall operation of the electronic device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0108] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0109] The power component 506 provides power to the various components of the electronic device 500. The power component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 500.

[0110] The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0111] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the electronic device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0112] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0113] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the electronic device 500, and the sensor assembly 514 can also detect the position change of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and the temperature change of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0114] The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 514 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 514 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0115] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0116] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of an electronic device 500 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0117] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute an information generation method, the method comprising: generating a primary dictionary; determining the closeness corresponding to each entry in the primary dictionary; screening the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary.

[0118] Optionally, determining the closeness corresponding to each entry in the primary dictionary includes: for each entry in the primary dictionary, obtaining user search behavior data corresponding to the entry; and calculating the closeness corresponding to the entry based on the user search behavior data corresponding to the entry.

[0119] Optionally, the term includes M word segmentation fragments, and the calculating the closeness corresponding to the term based on the user search behavior data corresponding to the term includes: dividing the M word segmentation fragments in the term into first M1 word segmentation fragments and last M2 word segmentation fragments, wherein M, M1 and M2 are all positive numbers, and M is the sum of M1 and M2; determining, based on the user search behavior data corresponding to the term, a target search term adjacent to the first M1 word segmentation fragments and the last M2 word segmentation fragments and a target search result clicked on the search result page of the target search term; determining a first number of clicks on the target search result in which the first M1 word segmentation fragments and the last M2 word segmentation fragments are adjacent in the title, and a second number of clicks on the target search result in which the first M1 word segmentation fragments and the last M2 word segmentation fragments are not adjacent in the title; and determining the closeness corresponding to the term based on the first number and the second number.

[0120] Optionally, the entries include at least one closeness; and the steps of screening the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary include: for each entry in the primary dictionary, comparing the minimum closeness corresponding to the entry with a closeness threshold; and screening out entries in the primary dictionary whose minimum closeness is less than the closeness threshold to obtain a target dictionary.

[0121] Optionally, the filtering of entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary further includes: deleting entries in the primary dictionary whose length exceeds a preset length; and / or deleting stop words in the primary dictionary.

[0122] Optionally, generating a primary dictionary includes: obtaining page contents of multiple web pages; performing word segmentation processing on the page contents of each of the web pages to obtain corresponding word segmentation fragments; sequentially combining M consecutive word segmentation fragments into one entry, and determining the word frequency and mutual information of each entry; and generating a primary dictionary by using entries whose word frequency is higher than a first word frequency threshold and whose mutual information is higher than a mutual information threshold.

[0123] Optionally, the method further includes: based on the primary dictionary, adopting the maximum matching principle to perform word segmentation processing on the page content of each of the web pages to obtain corresponding word segmentation fragments; determining the word frequency corresponding to the word segmentation fragments that do not exist in the primary dictionary, and adding the word segmentation fragments that do not exist in the primary dictionary and whose word frequency is higher than a second word frequency threshold to the primary dictionary.

[0124] Figure 6 : is a structural diagram of an electronic device 600 for information generation according to another exemplary embodiment of the present invention. The electronic device 600 may be a server, which may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 622 (for example, one or more processors) and a memory 632, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 642 or data 644. Among them, the memory 632 and the storage medium 630 may be short-term storage or permanent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processor 622 may be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on the server.

[0125] The server may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, one or more keyboards 656, and / or, one or more operating systems 641, such as Windows ServerTM, Mac OSXTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0126] An electronic device includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: generating a primary dictionary; determining the closeness corresponding to each entry in the primary dictionary; filtering the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary.

[0127] Optionally, determining the closeness corresponding to each entry in the primary dictionary includes: for each entry in the primary dictionary, obtaining user search behavior data corresponding to the entry; and calculating the closeness corresponding to the entry based on the user search behavior data corresponding to the entry.

[0128] Optionally, the term includes M word segmentation fragments, and the calculating the closeness corresponding to the term based on the user search behavior data corresponding to the term includes: dividing the M word segmentation fragments in the term into first M1 word segmentation fragments and last M2 word segmentation fragments, wherein M, M1 and M2 are all positive numbers, and M is the sum of M1 and M2; determining, based on the user search behavior data corresponding to the term, a target search term adjacent to the first M1 word segmentation fragments and the last M2 word segmentation fragments and a target search result clicked on the search result page of the target search term; determining a first number of clicks on the target search result in which the first M1 word segmentation fragments and the last M2 word segmentation fragments are adjacent in the title, and a second number of clicks on the target search result in which the first M1 word segmentation fragments and the last M2 word segmentation fragments are not adjacent in the title; and determining the closeness corresponding to the term based on the first number and the second number.

[0129] Optionally, the entries include at least one closeness; and the steps of screening the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary include: for each entry in the primary dictionary, comparing the minimum closeness corresponding to the entry with a closeness threshold; and screening out entries in the primary dictionary whose minimum closeness is less than the closeness threshold to obtain a target dictionary.

[0130] Optionally, the filtering of entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary further includes: deleting entries in the primary dictionary whose length exceeds a preset length; and / or deleting stop words in the primary dictionary.

[0131] Optionally, generating a primary dictionary includes: obtaining page contents of multiple web pages; performing word segmentation processing on the page contents of each of the web pages to obtain corresponding word segmentation fragments; sequentially combining M consecutive word segmentation fragments into one entry, and determining the word frequency and mutual information of each entry; and generating a primary dictionary by using entries whose word frequency is higher than a first word frequency threshold and whose mutual information is higher than a mutual information threshold.

[0132] Optionally, it also includes instructions for performing the following operations: based on the primary dictionary, using the maximum matching principle to perform word segmentation processing on the page content of each of the web pages to obtain corresponding word segmentation fragments; determining the word frequency corresponding to the word segmentation fragments that do not exist in the primary dictionary, and adding the word segmentation fragments that do not exist in the primary dictionary and whose word frequency is higher than a second word frequency threshold to the primary dictionary.

[0133] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0134] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0135] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0136] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0137] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0138] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0139] The above is a detailed introduction to an information generating method, an information generating device and an electronic device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for generating information, It is characterized in that include: Generate a primary dictionary; Calculating the closeness of each entry in the primary dictionary based on the user search behavior data corresponding to the entry; Screening the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary; The term includes M word segments, and the calculation of the closeness corresponding to the term based on the user search behavior data corresponding to the term includes: Divide the M word segments in the entry into first M1 word segments and second M2 word segments, where M, M1 and M2 are all positive numbers, and M is the sum of M1 and M2; Determine, based on the user search behavior data corresponding to the terms, a target search term adjacent to the first M1 word segments and the last M2 word segments and a target search result clicked on a search result page of the target search term; Determine a first number of clicks on a target search result in which the first M1 word segments and the last M2 word segments in the title are adjacent, and a second number of clicks on a target search result in which the first M1 word segments and the last M2 word segments in the title are not adjacent; The closeness corresponding to the entry is determined according to the first number and the second number.

2. The method according to claim 1, It is characterized in that The step of calculating the closeness of each entry in the primary dictionary based on the user search behavior data corresponding to the entry includes: For each entry in the primary dictionary, the user search behavior data corresponding to the entry is obtained.

3. The method according to claim 1, It is characterized in that The entries include at least one closeness; the entries in the primary dictionary are screened according to the closeness of each entry in the primary dictionary to generate a target dictionary, including: For each entry in the primary dictionary, comparing the minimum closeness corresponding to the entry with a closeness threshold; The entries in the primary dictionary whose minimum closeness is less than the closeness threshold are screened out to obtain a target dictionary.

4. The method according to claim 3, It is characterized in that The step of screening the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary also includes: Deleting entries in the primary dictionary that exceed a preset length; and / or, Stop words in the primary dictionary are deleted.

5. The method according to claim 1, It is characterized in that The generating of the primary dictionary comprises: Get the page content of multiple web pages; Performing word segmentation processing on the page content of each of the web pages to obtain corresponding word segmentation fragments; Combine the M consecutive word segments into one entry, and determine the frequency and mutual information of each entry; The primary dictionary is generated by using the entries whose word frequency is higher than the first word frequency threshold and whose mutual information is higher than the mutual information threshold.

6. The method according to claim 5, It is characterized in that The method further comprises: Based on the primary dictionary, the page content of each web page is segmented using the maximum matching principle to obtain corresponding segmented fragments; The word frequencies corresponding to the word segmentation segments that do not exist in the primary dictionary are determined, and the word segmentation segments that do not exist in the primary dictionary and whose word frequencies are higher than a second word frequency threshold are added to the primary dictionary.

7. An information generating device, It is characterized in that include: A primary dictionary generation module, used for generating a primary dictionary; A closeness generating module, used to determine the closeness corresponding to each entry in the primary dictionary; A target dictionary generation module, used for screening the entries in the primary dictionary according to the closeness of each entry in the primary dictionary to generate a target dictionary; Wherein, the compactness generating module comprises: A closeness calculation submodule, used to calculate the closeness corresponding to each entry in the primary dictionary according to the user search behavior data corresponding to the entry; Among them, the entry includes M word segmentation fragments, and the closeness calculation submodule is used to divide the M word segmentation fragments in the entry into first M1 word segmentation fragments and last M2 word segmentation fragments, wherein M, M1 and M2 are all positive numbers, and M is the sum of M1 and M2; based on the user search behavior data corresponding to the entry, determine the target search terms adjacent to the first M1 word segmentation fragments and the last M2 word segmentation fragments and the target search results clicked on the search result page of the target search terms; determine the first number of times the target search results adjacent to the first M1 word segmentation fragments and the last M2 word segmentation fragments in the title are clicked, and the second number of times the target search results not adjacent to the first M1 word segmentation fragments and the last M2 word segmentation fragments in the title are clicked; based on the first number and the second number, determine the closeness corresponding to the entry.

8. The device according to claim 7, It is characterized in that The compactness generating module comprises: The data acquisition submodule is used to acquire the user search behavior data corresponding to each entry in the primary dictionary.

9. The device according to claim 7, It is characterized in that The term includes at least one closeness; the target dictionary generation module includes: A comparison submodule, for comparing, for each entry in the primary dictionary, the minimum closeness corresponding to the entry with a closeness threshold; The screening submodule is used to screen out the entries whose minimum closeness is less than the closeness threshold in the primary dictionary to obtain the target dictionary.

10. The device according to claim 9, It is characterized in that The target dictionary generation module further includes: The deletion submodule is used to delete entries in the primary dictionary whose length exceeds a preset length; and / or to delete stop words in the primary dictionary.

11. The device according to claim 7, It is characterized in that The primary dictionary generation module is specifically used to obtain the page content of multiple web pages and perform word segmentation processing on the page content of each of the web pages to obtain corresponding word segmentation fragments; sequentially combine M consecutive word segmentation fragments into one entry, and determine the word frequency and mutual information of each entry; and use the entries whose word frequency is higher than the first word frequency threshold and whose mutual information is higher than the mutual information threshold to generate a primary dictionary.

12. The device according to claim 11, It is characterized in that The device also includes: The primary dictionary expansion module is used to perform word segmentation processing on the page content of each web page based on the primary dictionary and adopt the maximum matching principle to obtain corresponding word segmentation fragments; determine the word frequency corresponding to the word segmentation fragments that do not exist in the primary dictionary, and add the word segmentation fragments that do not exist in the primary dictionary and whose word frequency is higher than a second word frequency threshold to the primary dictionary.

13. An electronic device, It is characterized in that The invention comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the information generating method as described in any one of method claims 1-6.

14. A readable storage medium, It is characterized in that When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the information generating method as described in any one of method claims 1-6.