New keyword mining method, device and electronic equipment
By obtaining Internet text in the new keyword mining method, enumerating segmented segments and calculating their cohesion and left-right entropy, the problem of difficulty in processing massive text and accuracy with traditional methods is solved, and new keywords can be mined quickly and accurately from massive text. Keyword capabilities.
Patent Information
- Application Number
- CN202010664165.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-10
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-07-10
AI Technical Summary
Traditional new keyword mining methods are difficult to accurately segment the latest industry characteristic words, and cannot process massive text data, resulting in the challenge of capturing industry trends in real time in Internet marketing.
By obtaining Internet text, enumerate segmented segments and extract left and right adjacent characters, calculate the cohesion and left and right entropy of each segmented segment, associate them, output a new keyword result table, and repair the result table to improve accuracy.
It realizes the rapid and accurate mining of new keywords from massive Internet texts, is suitable for processing massive text data, and significantly improves the accuracy and efficiency of mining results.
Smart Images

Figure CN111898010B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of information processing technology, and specifically relates to a new keyword mining method, device and electronic equipment. Background Art
[0002] With the vigorous development of the Internet industry, Internet marketing has gradually emerged. Internet marketing refers to a new type of marketing activity based on the Internet platform, which uses information technology and tools to meet the process of exchanging concepts, products and services between companies and customers, creating, promoting and delivering customer value through online activities, and managing customer relationships to achieve certain marketing goals. In the battlefield of industry marketing in the context of the Internet era, almost every brand owner is very concerned about the latest changes in industry dynamics. Changes in industry dynamics include the latest competitive brands, the hotly debated industry pain points and user needs, and the eye-catching words used by peers. In order to capture these important industry dynamics in the shortest time, as a brand marketing technology company, we provide brand owners with the latest industry intelligence through various technical analysis and mining methods in the most timely response time.
[0003] The traditional method of mining new keywords is to collect recent Internet texts, filter and screen the relevant industry categories in the Internet text collection through word segmentation tools, and then mine the latest industry characteristic words (brand, demand, pain point, topic, etc.), and then hand them over to subsequent model analysis and business judgment. However, due to the latest industry characteristic words, traditional word segmentation tools are often difficult to accurately segment. In addition, with the rapid growth of text data, it is often necessary to mine new keywords from a larger text collection, and the new keyword mining method is only suitable for small sample data mining and cannot undertake the task of processing massive text collections. Summary of the invention
[0004] In order to at least overcome to some extent the problem that traditional new keyword mining methods are difficult to accurately segment text, and with the rapid growth of text data, it is often necessary to mine new keywords from more massive text collections, and the new keyword mining methods are unable to undertake the task of processing massive text collections, the present application provides a new keyword mining method, device and electronic device.
[0005] In a first aspect, the present application provides a new keyword mining method, comprising:
[0006] Get Internet text;
[0007] Enumerate multiple segmented segments according to the Internet text, and extract left and right adjacent characters of the segmented segments in the current context;
[0008] Calculate the cohesion of each segment;
[0009] Calculate the left and right entropy of each segmented segment according to the left and right adjacent characters;
[0010] Correlate the cohesion and left-right entropy of each segmented fragment and output a new keyword result table.
[0011] Furthermore, the method further comprises:
[0012] Repair the new keywords in the new keyword result table.
[0013] Furthermore, the repairing of the new keyword in the new keyword result table includes:
[0014] Set the left and right entropy difference threshold and character length threshold;
[0015] Get the left and right entropy difference and character length of the current segment;
[0016] Identify an erroneous segmentation segment according to the relationship between the left-right entropy difference and the character length of the current segmentation segment and the set left-right entropy difference threshold and the character length threshold;
[0017] The erroneous segmentation fragment is repaired.
[0018] Furthermore, the repairing of the erroneously segmented segments includes:
[0019] Performing substring segmentation on the erroneously segmented segment to obtain sub-segmented segments;
[0020] Performing an association search on each sub-segment in the new keyword result table;
[0021] If the corresponding new keyword is found, the wrong segmentation segment is replaced with the sub-segmentation segment;
[0022] and / or;
[0023] Performing string externalization on the erroneous segmented fragments to obtain string externalization segmented fragments;
[0024] Performing an association search on each string external segment in the new keyword result table;
[0025] If the corresponding new keyword is found, the erroneous segmentation segment is replaced with the string external segmentation segment.
[0026] Furthermore, the method further comprises:
[0027] Obtain Internet texts with industry category annotations and their corresponding segmentation results;
[0028] Extracting new characteristic words representative of each industry from the segmentation results;
[0029] Performing semantic clustering and classification processing on the new feature words and the new keywords in the new keyword result table;
[0030] Based on the processing results, new keywords representative of the industry are output.
[0031] Furthermore, the calculation of the cohesion of each segmented fragment includes:
[0032] Get the character length of each segment;
[0033] Perform binary segmentation on each segmented segment whose character length is greater than 1 to obtain a sub-segmented segment corresponding to the segmented segment;
[0034] Obtaining the occurrence frequency of the segmented fragment and the occurrence frequency of the sub-segmented fragment;
[0035] The cohesion of the segmented fragments is calculated according to the ratio of the occurrence frequency of the segmented fragments to the occurrence frequency of the sub-segmented fragments.
[0036] Further, the new keyword result table is a hive table, and the obtaining of the occurrence frequency of the segmented fragments and the occurrence frequency of the sub-segmented fragments includes:
[0037] Counting the occurrence frequency of the segmented fragments and the occurrence frequency of the sub-segmented fragments through the distributed computing API in the hive table;
[0038] The distributed computing APIs include select, group by and join.
[0039] Further, the calculating the left and right entropies of each segmented segment according to the left and right adjacent characters includes:
[0040] Distributed traversal of the segmented fragments;
[0041] Count the occurrence frequency of the left and right adjacent characters of each segmented segment;
[0042] The left and right entropies of each segmented segment are calculated according to the left and right adjacent characters and their occurrence frequencies.
[0043] In a second aspect, the present application provides a new keyword mining device, comprising:
[0044] An acquisition module, used to acquire Internet text;
[0045] An extraction module, used for enumerating a plurality of segmented segments according to the Internet text, and extracting left and right adjacent characters of the segmented segments in a current context;
[0046] A first calculation module is used to calculate the cohesion of each segmented segment;
[0047] A second calculation module is used to calculate the left and right entropies of each segmented segment according to the left and right adjacent characters;
[0048] The association module is used to associate the cohesion and left-right entropy of each segmented segment and output a new keyword result table.
[0049] In a third aspect, the present application provides an electronic device, including:
[0050] Processor; and
[0051] A memory having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by the processor, implement the new keyword mining method as described in any one of the first aspects.
[0052] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0053] The new keyword mining method, device and electronic device provided by the embodiments of the present invention enumerate multiple segmented segments based on Internet text, extract the left and right adjacent characters of the segmented segments in the current context, calculate the cohesion of each segmented segment, calculate the left and right entropies of each segmented segment based on the left and right adjacent characters, associate the cohesion and left and right entropies of each segmented segment, and output a new keyword result table. New keywords can be quickly mined from massive Internet text data, and the mining results are more accurate.
[0054] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0056] Figure 1 A flowchart of a new keyword mining method provided for one embodiment of the present application.
[0057] Figure 2 A flowchart of a new keyword mining method provided in another embodiment of the present application.
[0058] Figure 3 A flowchart of a new keyword mining method provided in another embodiment of the present application.
[0059] Figure 4 A functional structure diagram of a new keyword mining device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other implementation methods obtained by ordinary technicians in the field without creative work belong to the scope of protection of the present application.
[0061] Figure 1 A flowchart of a new keyword mining method provided by an embodiment of the present application is as follows: Figure 1 As shown, the new keyword mining method includes:
[0062] S11: Get Internet text;
[0063] S12: enumerate multiple segmented segments according to the Internet text, and extract left and right adjacent characters of the segmented segments in the current context;
[0064] S13: Calculate the cohesion of each segment;
[0065] S14: Calculate the left and right entropy of each segmented segment according to the left and right adjacent characters;
[0066] S15: Correlate the cohesion and left-right entropy of each segmented segment, and output a new keyword result table.
[0067] The traditional method of mining new keywords is to collect recent Internet texts, filter and screen the relevant industry categories in the Internet text collection through word segmentation tools, and then mine the latest industry characteristic words (brand, demand, pain point, topic, etc.), and then hand them over to subsequent model analysis and business judgment. However, due to the latest industry characteristic words, traditional word segmentation tools are often difficult to accurately segment. In addition, with the rapid growth of text data, it is often necessary to mine new keywords from a larger text collection, and the new keyword mining method cannot bear the task of processing a large text collection.
[0068] In this embodiment, the cohesion and left-right entropy of each segment are calculated respectively; and the cohesion and left-right entropy of each segment are associated with each other to output a new keyword result table, so that the new keywords in the new keyword result table are more accurate. In addition, since the cohesion and left-right entropy of each segment are calculated, there is no limit on the number of files, which is more suitable for mining new keywords in massive Internet texts.
[0069] The traditional method of obtaining the left and right adjacent characters is to traverse all the texts, then divide all possible segments, and then search for all adjacent characters of each segment. The present application directly extracts the left and right adjacent characters of the segment in the current context while dividing all possible segments, which can greatly save the subsequent computing power consumed for searching all adjacent characters of each segment.
[0070] The traditional segmentation process uses a single-machine computing strategy, which consumes a lot of computing time and memory resources; in this embodiment, a distributed cluster streaming processing (hadoop streaming) technology is used to speed up the processing speed.
[0071] In this embodiment, by enumerating multiple segmented segments based on Internet text, and extracting the left and right adjacent characters of the segmented segments in the current context, the cohesion of each segmented segment is calculated, the left and right entropies of each segmented segment are calculated based on the left and right adjacent characters, the cohesion and left and right entropies of each segmented segment are associated, and a new keyword result table is output; new keywords can be quickly mined from massive Internet text data, and the mining results are more accurate.
[0072] The embodiment of the present invention provides another new keyword mining method, such as Figure 2 As shown in the flowchart, the new keyword mining method also includes:
[0073] S21: Obtain Internet text;
[0074] In some embodiments, Internet text is acquired periodically through a preset acquisition cycle. It can be understood that the shorter the acquisition cycle, the more real-time the acquired Internet text is. It should be noted that this application does not limit the acquisition cycle, and the technical personnel of this application can set it according to needs.
[0075] S22: enumerate multiple segmented segments according to the Internet text, and extract left and right adjacent characters of the segmented segments in the current context;
[0076] Multiple segmentation segments are enumerated according to the Internet text, including a preset maximum segmentation length, and as many segmentation segments as possible are enumerated under the maximum segmentation length.
[0077] S23: Calculate the cohesion of each segment;
[0078] In some embodiments, the cohesion of each segment is calculated including but not limited to the following methods:
[0079] S231: Obtain the character length of each segmented segment;
[0080] S232: performing binary segmentation on each segmented segment whose character length is greater than 1 to obtain sub-segments corresponding to the segmented segment;
[0081] S233: Obtain the occurrence frequency of the segmented fragment and the occurrence frequency of the sub-segmented fragment;
[0082] S234: Calculate the cohesion of the segmented fragments according to the ratio of the occurrence frequency of the segmented fragments to the occurrence frequency of the sub-segments.
[0083] In some embodiments, the new keyword result table is a hive table, and obtaining the occurrence frequency of the segmented segments and the occurrence frequency of the sub-segmented segments includes:
[0084] Use the distributed computing API in the Hive table to count the occurrence frequency of the segmented fragments and the occurrence frequency of the sub-segmented fragments;
[0085] Distributed computing APIs include but are not limited to select, group by and join.
[0086] For example, for a segment with a character length of 4: ABCD, all its binary division methods are: (A, BCD), (AB, CD), (ABC, D). And these binary sub-segments have also been segmented in step S22. At this time, you only need to use the distributed computing APIs such as select, group by and join of the hive script to count and associate the frequency of each segment with all its sub-segments and the ratio of the two to calculate the cohesion of the current segment. Due to the use of distributed computing, these query, counting and association operations are the processing methods that distributed framework scripts are best at, which have greatly improved the processing scale and computing efficiency compared to single-machine computing.
[0087] S24: Calculate the left and right entropy of each segmented segment according to the left and right adjacent characters;
[0088] In some embodiments, the left and right entropies of each segmented segment are calculated based on the left and right adjacent characters, including:
[0089] Distributed traversal segmentation;
[0090] Count the occurrence frequency of the left and right adjacent characters of each segmented segment;
[0091] The left and right entropy of each segment is calculated based on the left and right adjacent characters and their occurrence frequencies.
[0092] It should be noted that the distributed traversal segmentation fragments and the left and right adjacent characters of the context of each segmentation fragment have been obtained in step S22. Here, we only need to directly use the output result of step S22, and count the frequency of occurrence of the left and right adjacent characters of each segmentation fragment in the context of each appearance according to the output result of step S22, and calculate the left and right entropy of each segmentation fragment according to the left and right adjacent characters and their occurrence frequency.
[0093] S25: Correlate the cohesion and left-right entropy of each segmented segment, and output a new keyword result table;
[0094] Although traditional data mining methods also use calculation indicators such as cohesion or left-right entropy, since only one calculation indicator, cohesion or left-right entropy, is used, the mining results are stored in different mining result tables, not only the number of output files is large, but also the accuracy of the results in each file is low. In this application, the cohesion and left-right entropy of each segmented segment are associated, and the associated results are displayed in the same new keyword result table, which not only facilitates subsequent repair processing, but also improves the accuracy of new keyword mining.
[0095] S26: Repair the new keywords in the new keyword result table.
[0096] In actual computational mining, it is often the case that erroneous segmentation fragments are placed at a relatively early selection position in the new keyword result table (for example, segmentation fragments with missing characters or containing extra characters). Therefore, it is necessary to further identify and repair errors of new keywords.
[0097] In some embodiments, repairing the new keywords in the new keyword result table includes:
[0098] Set the left and right entropy difference threshold and character length threshold;
[0099] Get the left and right entropy difference and character length of the current segment;
[0100] Identify the wrong segmentation segment according to the relationship between the left-right entropy difference and the character length of the current segmentation segment and the set left-right entropy difference threshold and the character length threshold;
[0101] Repair the incorrect segmentation fragment.
[0102] As an optional implementation of the present invention, repairing the erroneous segmentation fragments includes:
[0103] Perform substring segmentation on the incorrect segmentation segment to obtain sub-segmentation segments;
[0104] Perform an association search on each sub-segment in the new keyword result table;
[0105] If the corresponding new keyword is found, the wrong segmentation segment is replaced with the sub-segmentation segment.
[0106] As an optional implementation of the present invention, repairing the erroneous segmentation fragments includes:
[0107] Performing string externalization on the wrong segmented fragments to obtain string externalization segmented fragments;
[0108] Perform an associated search for each externally circumscribed segmentation fragment of the string in the new keyword result table;
[0109] If a corresponding new keyword is found, replace the incorrect segmentation fragment with the externally circumscribed segmentation fragment.
[0110] For example, first, efficiently screen through a distributed script to obtain data results with high cohesion and both left and right entropies greater than a preset threshold. Since the left and right entropies are used to represent the uncertainty of adjacent characters on the left and right, the greater the left and right entropies, the higher the likelihood that the current segmentation fragment constitutes a keyword independently.
[0111] Then, for segmentation fragments with a character length less than the character length threshold (e.g., 5), when the absolute value of the difference in left and right entropies is greater than the left and right entropy difference threshold (e.g., 0.2), there is likely a problem of character omission on both sides of the current segmentation fragment (e.g., a segmentation fragment with character omission like "Lancôme Little Black", while the complete segmentation fragment should be "Lancôme Little Black Bottle"). Here, by performing substring segmentation on segmentation fragments with a character length of at least 5 and the absolute value of the difference in left and right entropies not greater than 0.2, and conducting an associated query with the shorter segmentation fragments that may have character omissions, it can be determined whether there are more optimal and longer segmentation fragments to replace the current shorter segmentation fragments that may have character omissions. (For example, the substring segmentation of "Lancôme Little Black Bottle" includes "Lancôme Little Black", "Lancôme Little", "Lancôme", "Little Black Bottle", "Little Black", "Little", etc.)
[0112] Similarly, for segmentation fragments with a character length greater than the character length threshold and the difference in left and right entropies also greater than the left and right entropy difference threshold, there will be a problem of redundant characters on both sides (e.g., "Estée Lauder's"). Here, by performing substring segmentation on this segmentation fragment and conducting an associated search with segmentation fragments with a shorter character length and a smaller absolute value of the difference in left and right entropies, it can be determined whether the current longer segmentation fragment can be replaced with a shorter and potentially more accurate segmentation fragment.
[0113] It should be noted that when performing an associated search, for segmentation fragments that do not match better results, they can be selected to be retained, and it can be analyzed whether there is a recognition deviation due to insufficient context data for this segmentation fragment.
[0114] In this embodiment, multiple segmented segments are enumerated according to the Internet text, and the left and right adjacent characters of the segmented segments in the current context are extracted at the same time, the cohesion and left and right entropies of each segmented segment are associated, and a new keyword result table is output. It is found in practical verification that this method can compress the calculation time from several days to 1 to 2 hours in the new keyword mining of tens of millions of text volumes, and the mining results are more accurate and reliable. By identifying and repairing erroneous segmented segments, the accuracy of new keyword output can be further improved.
[0115] Figure 3 A flowchart of a new keyword mining method provided in another embodiment of the present application is shown in FIG. Figure 3 As shown, based on the above embodiment, the new keyword mining method also includes:
[0116] S31: Obtain Internet texts with industry category annotations and their corresponding segmentation results;
[0117] S32: Extract new characteristic words representative of each industry from the segmentation results;
[0118] It should be noted that methods for extracting new feature words that are representative of various industries include but are not limited to statistical methods such as chi-square distribution and information gain.
[0119] S33: semantically clustering and classifying the new feature words and the new keywords in the new keyword result table;
[0120] S34: Output new keywords representative of the industry according to the processing results.
[0121] In this embodiment, by combining with industry characteristic words, it can help brand owners to more efficiently and accurately discover the latest industry characteristics; and play an important role in tracking industry trends and improving the accuracy and completeness of data reports.
[0122] The embodiment of the present invention provides a new keyword mining device, such as Figure 4 As shown in the functional structure diagram, the new keyword mining device includes:
[0123] An acquisition module 41 is used to acquire Internet text;
[0124] An extraction module 42, used for enumerating a plurality of segmented segments according to the Internet text, and extracting left and right adjacent characters of the segmented segments in the current context;
[0125] A first calculation module 43, used to calculate the cohesion of each segmented segment;
[0126] A second calculation module 44 is used to calculate the left and right entropies of each segmented segment according to the left and right adjacent characters;
[0127] The association module 45 is used to associate the cohesion and left-right entropy of each segmented segment and output a new keyword result table.
[0128] In some embodiments, a repair module 46 is further included to repair the new keywords in the new keyword result table.
[0129] In some embodiments, an output module 47 is also included, which is used to obtain Internet texts labeled with industry categories and their corresponding segmentation results, extract new feature words that are representative of each industry from the segmentation results, semantically cluster and classify the new feature words and new keywords in the new keyword result table, and output new keywords that are representative of the industry based on the processing results.
[0130] In this embodiment, an acquisition module is selected to acquire Internet text; an extraction module enumerates a plurality of segmented segments according to the Internet text, and simultaneously extracts the left and right adjacent characters of the segmented segments in the current context; a first calculation module calculates the cohesion of each segmented segment; a second calculation module calculates the left and right entropies of each segmented segment according to the left and right adjacent characters; an association module associates the cohesion and left and right entropies of each segmented segment, and outputs a new keyword result table, so that new keywords can be quickly mined from massive Internet text data, and the mining results are more accurate.
[0131] This embodiment provides an electronic device, including:
[0132] Processor; and
[0133] A memory having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by the processor, implement the new keyword mining method as described in any one of the above embodiments.
[0134] It should be noted that the above-mentioned new keyword mining method, new keyword mining device and electronic device belong to a general inventive concept, and the contents in the embodiments of the new keyword mining method, new keyword mining device and electronic device are applicable to each other.
[0135] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0136] It should be noted that, in the description of this application, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0137] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0138] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0139] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0140] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0141] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0142] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0143] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
[0144] It should be noted that the present invention is not limited to the above-mentioned optimal implementation mode. Those skilled in the art can derive other various forms of products under the guidance of the present invention. However, no matter what changes are made in the shape or structure, all technical solutions that are the same or similar to those of the present application fall within the protection scope of the present invention.
Claims
1. A new keyword mining method, It is characterized in that include: Get Internet text; Enumerate multiple segmented segments according to the Internet text, and extract left and right adjacent characters of the segmented segments in the current context; Calculate the cohesion of each segment; Calculate the left and right entropy of each segmented segment according to the left and right adjacent characters; Correlate the cohesion and left-right entropy of each segmented fragment and output a new keyword result table; Repairing the new keywords in the new keyword result table; The repairing of the new keyword in the new keyword result table includes: Set the left and right entropy difference threshold and character length threshold; Get the left and right entropy difference and character length of the current segment; Identify the wrong segmented segment according to the relationship between the left-right entropy difference and the character length of the current segmented segment and the set left-right entropy difference threshold and the character length threshold; Repairing the erroneous segmentation fragment; The calculation of the cohesion of each segmented fragment includes: Get the character length of each segment; Perform binary segmentation on each segmented segment whose character length is greater than 1 to obtain a sub-segmented segment corresponding to the segmented segment; Obtaining the occurrence frequency of the segmented fragment and the occurrence frequency of the sub-segmented fragment; Calculating the cohesion of the segmented fragments according to the ratio of the occurrence frequency of the segmented fragments to the occurrence frequency of the sub-segmented fragments; The new keyword result table is a hive table, and the obtaining of the occurrence frequency of the segmented fragments and the occurrence frequency of the sub-segmented fragments includes: Counting the occurrence frequency of the segmented fragments and the occurrence frequency of the sub-segmented fragments through the distributed computing API in the hive table; The distributed computing APIs include select, group by and join; The repairing of the erroneously segmented fragments includes: Performing substring segmentation on the erroneously segmented segment to obtain sub-segmented segments; Perform an association search on each sub-segment in the new keyword result table; If the corresponding new keyword is found, the wrong segmentation segment is replaced with the sub-segmentation segment; and / or; Performing string externalization on the erroneous segmented fragments to obtain string externalization segmented fragments; Performing an association search on each string external segment in the new keyword result table; If the corresponding new keyword is found, the wrong segmentation segment is replaced with the string external segmentation segment; Also includes: Obtain Internet texts with industry category annotations and their corresponding segmentation results; Extracting new characteristic words representative of each industry from the segmentation results; Performing semantic clustering and classification processing on the new feature words and the new keywords in the new keyword result table; Output new keywords representative of the industry based on the processing results; The calculating the left and right entropies of each segmented segment according to the left and right adjacent characters includes: Distributed traversal of the segmented fragments; Count the occurrence frequency of the left and right adjacent characters of each segmented segment; The left and right entropies of each segmented segment are calculated according to the left and right adjacent characters and their occurrence frequencies.
2. A new keyword mining device, applied to the new keyword mining method described in claim 1, It is characterized in that include: An acquisition module, used to acquire Internet text; An extraction module, used for enumerating a plurality of segmented segments according to the Internet text, and extracting left and right adjacent characters of the segmented segments in a current context; A first calculation module is used to calculate the cohesion of each segmented segment; A second calculation module is used to calculate the left and right entropies of each segmented segment according to the left and right adjacent characters; The association module is used to associate the cohesion and left-right entropy of each segmented segment and output a new keyword result table.
3. An electronic device, It is characterized in that include Processor; and A memory having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by the processor, implement the new keyword mining method as claimed in claim 1.
