A method and device for generating enterprise industry labels

By extracting the characteristic words in the enterprise name and calculating the group probability of the business scope information, the industry classification model is used to automatically determine the enterprise's industry label, which solves the problems of low accuracy and low efficiency of label generation in the existing technology, and achieves high efficiency and accuracy. Industry label generation.

CN113947079BActive Publication Date: 2024-10-29CHINA CONSTRUCTION BANK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111266471.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-28
Publication Date
2024-10-29
Estimated Expiration
2041-10-28

AI Technical Summary

Technical Problem

Existing enterprise industry label generation methods have low accuracy and efficiency, rely on manual annotation and are slow in efficiency.

Method used

By obtaining the company name and business scope information, extracting feature words and using the pre-trained industry classification model to calculate the word frequency and group probability of the feature words in each industry, the company's industry label is automatically determined.

Benefits of technology

It realizes automated enterprise industry label generation, improves the accuracy and comprehensiveness of labels, and improves labeling efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113947079B_ABST
    Figure CN113947079B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for generating an enterprise industry label, the method comprising: obtaining the name and business scope information of a target enterprise; extracting a target feature word from the name of the target enterprise; based on the correspondence between each feature word and the industry, determining the industry corresponding to the target feature word as the industry label of the target enterprise; if the business scope information of the target enterprise is obtained, processing the business scope information using a grouping model in a pre-trained industry classification model to obtain the probability that the target enterprise belongs to each group; based on the probability that the target enterprise belongs to each group, selecting at least one target group, and processing the business scope information using the model corresponding to the target group to obtain the preliminary industry to which the target enterprise belongs; selecting at least one preliminary industry from the preliminary industries to which the target enterprise belongs, and determining it as the industry label of the target enterprise; summarizing and outputting the determined industry labels of all target enterprises.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of industry classification, and in particular to a method and device for generating an enterprise industry label. Background Art

[0002] Nowadays, in industries where this is needed, it is usually necessary to label each enterprise with the industry to which it belongs, so as to facilitate association of enterprises or to conduct business with enterprises based on the industry label.

[0003] The industry labels of existing enterprises are usually generated by staff based on relevant information of the enterprise, relying on personal experience or previous labels to generate records, determine the industry of the current enterprise to be determined, and enter the corresponding industry label.

[0004] However, since a company does not necessarily belong to one industry and some industries are less popular, the accuracy of manual labeling is relatively low and the efficiency is relatively slow. Summary of the invention

[0005] Based on the above-mentioned deficiencies of the prior art, the present application provides a method and device for generating enterprise industry labels to solve the problems of relatively low accuracy and efficiency of the existing method for generating industry labels.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] The first aspect of the present application provides a method for generating an enterprise industry label, comprising:

[0008] Obtain the name and business scope information of the target enterprise;

[0009] If the name of the target enterprise is obtained, extracting target characteristic words from the name of the target enterprise;

[0010] Based on the predetermined correspondence between each feature word and the industry, the industry corresponding to the target feature word is determined as the industry label of the target enterprise; wherein the industry corresponding to one of the feature words is the industry corresponding to the maximum value of the probability that the feature word belongs to each industry; the probability that the feature word belongs to each industry is calculated using the statistically obtained word frequency of the feature word in each industry;

[0011] If the business scope information of the target enterprise is obtained, the business scope information is processed using the grouping model in the pre-trained industry classification model to obtain the probability that the target enterprise belongs to each group;

[0012] Based on the probability that the target enterprise belongs to each group, at least one target group is selected, and the business scope information is processed by the model corresponding to the target group to obtain the preliminary industry to which the target enterprise belongs; wherein the models corresponding to each group constitute the second layer network of the industry classification model;

[0013] Selecting at least one preliminary industry from the preliminary industries to which the target enterprise belongs, and determining it as the industry label of the target enterprise;

[0014] The industry labels of all the target enterprises determined are summarized and output.

[0015] Optionally, in the above method, based on the probability that the target enterprise belongs to each group, at least one target group is selected, and the business scope information is processed by the model corresponding to the target group to obtain the preliminary industry to which the target enterprise belongs, including:

[0016] If the target enterprise is a small-scale enterprise and the target characteristic word is not extracted from the name of the target enterprise, then the group to which the target enterprise has the highest probability of belonging is taken as the target group;

[0017] Processing the business scope information through the model corresponding to the target group to obtain the probability that the target enterprise belongs to multiple industries;

[0018] The industry corresponding to the maximum value of the probabilities that the target enterprise belongs to multiple industries is determined as the primary selected industry to which the target enterprise belongs.

[0019] Optionally, in the above method, based on the probability that the target enterprise belongs to each group, at least one target group is selected, and the business scope information is processed by the model corresponding to the target group to obtain the preliminary industry to which the target enterprise belongs, including:

[0020] If the target enterprise is not a small-scale enterprise, and the target feature word is extracted from the name of the target enterprise, it is determined whether the difference between the maximum probability and the second highest probability among the probabilities that the target enterprise belongs to each group is less than a first threshold; wherein the second highest probability is a probability value that is only less than the maximum probability;

[0021] If it is determined that the difference between the maximum probability and the second maximum probability among the probabilities that the target enterprise belongs to each group is less than a first threshold, the group corresponding to the maximum probability and the group corresponding to the second maximum probability are determined as the target group;

[0022] For each target group, the business scope information is processed by a model corresponding to the target group to obtain the probability that the target enterprise corresponding to the target group belongs to multiple industries;

[0023] Determine the industry corresponding to the maximum value of the probability that the target enterprise corresponding to each target group belongs to multiple industries as the primary selected industry to which the target enterprise belongs;

[0024] If it is determined that the difference between the maximum probability and the second maximum probability among the probabilities that the target enterprise belongs to each group is not less than a first threshold, the group corresponding to the maximum probability is determined as the target group;

[0025] Processing the business scope information through the model corresponding to the target group to obtain the probability that the target enterprise belongs to multiple industries;

[0026] The industry corresponding to the maximum value of the probabilities that the target enterprise belongs to multiple industries is determined as the primary selected industry to which the target enterprise belongs.

[0027] Optionally, in the above method, based on the probability that the target enterprise belongs to each group, at least one target group is selected, and the business scope information is processed by the model corresponding to the target group to obtain the preliminary industry to which the target enterprise belongs, including:

[0028] If the target enterprise is not a small-scale enterprise and the target feature word is not extracted from the name of the target enterprise, determining whether the difference between the maximum probability and the second maximum probability is less than a second threshold;

[0029] If the difference between the maximum probability and the second maximum probability is less than a second threshold, the group corresponding to the maximum probability and the group corresponding to the second maximum probability are determined as target groups;

[0030] For each target group, the business scope information is processed by a model corresponding to the target group to obtain the probability that the target enterprise corresponding to the target group belongs to multiple industries;

[0031] In order from largest to smallest, the industries corresponding to the top two of the probabilities that the target enterprise corresponding to each target group belongs to multiple industries are determined as the preliminary selected industries to which the target enterprise belongs.

[0032] Optionally, in the above method, selecting at least one preliminary industry from the preliminary industries to which the target enterprise belongs and determining it as the industry label of the target enterprise includes:

[0033] If the preliminary selected industries to which each of the target enterprises belongs are obtained by models corresponding to different target groups, then the preliminary selected industries to which each of the target enterprises belongs are determined as the industry labels of the target enterprises;

[0034] If the preliminary selected industries to which any two target enterprises belong are obtained by the same model corresponding to the target group, the preliminary selected industries are sorted in descending order according to the probability that the target enterprise belongs to each of the preliminary selected industries;

[0035] The preliminary industry ranked first and each of the preliminary industries that meet the preset conditions are determined as the industry label of the target enterprise; wherein the preset condition is that among the current preliminary industry and all the preliminary industries ranked before the current preliminary industry, the probability that the target enterprise belongs to any two adjacent preliminary industries is less than a third threshold.

[0036] Optionally, in the above method, it also includes:

[0037] Get text corpus;

[0038] Extracting a plurality of candidate words from the text corpus;

[0039] Calculate the score corresponding to each candidate word;

[0040] Sorting the candidate words in descending order of scores to obtain a sorting result;

[0041] The candidate words ranked in the top N positions in the sorting result are used as target candidate words;

[0042] For each of the target candidate words, if the target candidate word does not exist in the word list, the target candidate word is determined as a new word; wherein the word list stores the keywords of various industries that have been determined.

[0043] Optionally, in the above method, it also includes:

[0044] For each determined industry label of the target enterprise, the industry corresponding to the industry label is used as the target industry;

[0045] Identify representative enterprises in the target industry;

[0046] Obtaining comparative information of representative enterprises in the target industry and comparative information of the target enterprise; wherein the comparative information is the business scope information of the upstream counterparty enterprises of the enterprise;

[0047] If the semantic similarity between the comparative information of the representative enterprises in the target industry and the comparative information of the target enterprise is less than a preset similarity, then calculating the semantic similarity between the comparative information of the target enterprise and the comparative information of the representative enterprises in other industries;

[0048] The target industry is replaced by the industry corresponding to the maximum value of the semantic similarities between the comparison information of the representative enterprises under other industries and the comparison information of the target enterprise, and the step of determining the representative enterprises under the target industry is returned to the replaced target industry until the semantic similarity between the comparison information of the representative enterprises under the target industry and the comparison information of the target enterprise is not less than the preset similarity.

[0049] A second aspect of the present application provides a device for generating an enterprise industry label, including:

[0050] The first acquisition unit is used to acquire the name and business scope information of the target enterprise;

[0051] A first extraction unit is used to extract a target characteristic word from the name of the target enterprise if the name of the target enterprise is obtained;

[0052] A matching unit is used to determine the industry corresponding to the target feature word as the industry label of the target enterprise based on the predetermined correspondence between each feature word and the industry; wherein the industry corresponding to one of the feature words is the industry corresponding to the maximum value of the probability that the feature word belongs to each industry; the probability that the feature word belongs to each industry is calculated using the word frequency of the feature word in each industry obtained by statistics;

[0053] A grouping model is used to process the business scope information of the target enterprise using the grouping model in the pre-trained industry classification model to obtain the probability that the target enterprise belongs to each group;

[0054] A preliminary selection unit, used to select at least one target group based on the probability that the target enterprise belongs to each group, and process the business scope information through the models corresponding to the target groups to obtain the preliminary selected industry to which the target enterprise belongs; wherein the models corresponding to the respective groups constitute the second layer network of the industry classification model;

[0055] A screening unit, used to select at least one preliminary selected industry from the preliminary selected industries to which the target enterprise belongs, and determine it as the industry label of the target enterprise;

[0056] The summarizing unit is used to summarize and output the determined industry labels of all the target enterprises.

[0057] Optionally, in the above-mentioned device, when the target enterprise is a small-scale enterprise and the target feature word is not extracted from the name of the target enterprise, the preliminary selection unit executes the probability of the target enterprise belonging to each group, selects at least one target group, and processes the business scope information through the model corresponding to the target group respectively, and obtains the preliminary industry to which the target enterprise belongs, which is used to:

[0058] Then the group with the highest probability that the target enterprise belongs to is taken as the target group;

[0059] Processing the business scope information through the model corresponding to the target group to obtain the probability that the target enterprise belongs to multiple industries;

[0060] The industry corresponding to the maximum value of the probabilities that the target enterprise belongs to multiple industries is determined as the primary selected industry to which the target enterprise belongs.

[0061] Optionally, in the above-mentioned device, when the target enterprise is not a small-scale enterprise and a target feature word is extracted from the name of the target enterprise, the preliminary selection unit performs the operation based on the probability that the target enterprise belongs to each group, selects at least one target group, and processes the business scope information through the model corresponding to the target group, respectively, and obtains the preliminary industry to which the target enterprise belongs, for:

[0062] Determine whether the difference between the maximum probability and the second highest probability among the probabilities that the target enterprise belongs to each group is less than a first threshold; wherein the second highest probability is a probability value that is only less than the maximum probability;

[0063] If it is determined that the difference between the maximum probability and the second maximum probability among the probabilities that the target enterprise belongs to each group is less than a first threshold, the group corresponding to the maximum probability and the group corresponding to the second maximum probability are determined as the target group;

[0064] For each target group, the business scope information is processed by a model corresponding to the target group to obtain the probability that the target enterprise corresponding to the target group belongs to multiple industries;

[0065] Determine the industry corresponding to the maximum value of the probability that the target enterprise corresponding to each target group belongs to multiple industries as the primary selected industry to which the target enterprise belongs;

[0066] If it is determined that the difference between the maximum probability and the second maximum probability among the probabilities that the target enterprise belongs to each group is not less than a first threshold, the group corresponding to the maximum probability is determined as the target group;

[0067] Processing the business scope information through the model corresponding to the target group to obtain the probability that the target enterprise belongs to multiple industries;

[0068] The industry corresponding to the maximum value of the probabilities that the target enterprise belongs to multiple industries is determined as the primary selected industry to which the target enterprise belongs.

[0069] Optionally, in the above-mentioned device, when the target enterprise is not a small-scale enterprise and the target feature word is not extracted from the name of the target enterprise, the preliminary selection unit executes the probability of the target enterprise belonging to each group, selects at least one target group, and processes the business scope information through the model corresponding to the target group respectively, and obtains the preliminary industry to which the target enterprise belongs, which is used to:

[0070] Determine whether the difference between the maximum probability and the second maximum probability is less than a second threshold;

[0071] If the difference between the maximum probability and the second maximum probability is less than a second threshold, the group corresponding to the maximum probability and the group corresponding to the second maximum probability are determined as target groups;

[0072] For each target group, the business scope information is processed by a model corresponding to the target group to obtain the probability that the target enterprise corresponding to the target group belongs to multiple industries;

[0073] In order from largest to smallest, the industries corresponding to the top two of the probabilities that the target enterprise corresponding to each target group belongs to multiple industries are determined as the preliminary selected industries to which the target enterprise belongs.

[0074] Optionally, in the above device, the screening unit comprises:

[0075] A first determining unit is used to determine the preliminary selected industry to which each target enterprise belongs as the industry label of the target enterprise if the preliminary selected industry to which each target enterprise belongs is obtained by models corresponding to different target groups;

[0076] A first sorting unit is used to sort the preliminary selected industries in descending order according to the probability that the target enterprise belongs to each preliminary selected industry if the preliminary selected industries to which any two target enterprises belong are obtained by the same model corresponding to the target group;

[0077] The second determination unit is used to determine the preliminary industry ranked first and each of the preliminary industries that meet the preset conditions as the industry label of the target enterprise; wherein the preset condition is that the probability that the target enterprise belongs to any two adjacent preliminary industries among the current preliminary industry and all the preliminary industries ranked before the current preliminary industry is less than a third threshold.

[0078] Optionally, in the above device, it also includes:

[0079] A second acquisition unit, used for acquiring text corpus;

[0080] A second extraction unit, used to extract a plurality of candidate words from the text corpus;

[0081] A scoring unit, used to calculate a score corresponding to each of the candidate words;

[0082] A second sorting unit is used to sort the candidate words in descending order of scores to obtain a sorting result;

[0083] A selection unit, configured to select the candidate words ranked in the top N positions in the ranking result as target candidate words;

[0084] The new word determination unit is used for determining each target candidate word as a new word if the target candidate word does not exist in the word list; wherein the word list stores the keywords of various industries that have been determined.

[0085] Optionally, in the above device, it also includes:

[0086] A target industry determination unit, configured to determine the industry label of each target enterprise and take the industry corresponding to the industry label as the target industry;

[0087] A representative determination unit, used to determine representative enterprises under the target industry;

[0088] A third acquisition unit is used to acquire comparative information of representative enterprises under the target industry and comparative information of the target enterprise; wherein the comparative information is business scope information of the upstream transaction counterparty of the enterprise;

[0089] a calculation unit, configured to calculate the semantic similarity between the comparison information of the target enterprise and the comparison information of the representative enterprises in other industries if the semantic similarity between the comparison information of the representative enterprises in the target industry and the comparison information of the target enterprise is less than a preset similarity;

[0090] A replacement unit is used to replace the target industry with the industry corresponding to the maximum value of the semantic similarity between the comparison information of the representative enterprises under other industries and the comparison information of the target enterprise, and return to the representative determination unit to execute the determination of the representative enterprises under the target industry for the replaced target industry, until the semantic similarity between the comparison information of the representative enterprises under the target industry and the comparison information of the target enterprise is not less than a preset similarity.

[0091] The present application provides a method for generating an enterprise industry label, which generates an enterprise industry label through the enterprise name and business scope information, and specifically obtains the name and business scope information of the target enterprise. When the name of the target enterprise is obtained, the target feature word is extracted from the name of the target enterprise, and based on the predetermined correspondence between each feature word and the industry, the industry corresponding to the target feature word is determined as the industry label of the target enterprise. Among them, the industry corresponding to a feature word is the industry corresponding to the maximum value of the probability that the feature word belongs to each industry. The probability that the feature word belongs to each industry is calculated using the word frequency of the feature word in each industry obtained by statistics. When the business scope information of the target enterprise is obtained, the grouping model in the pre-trained industry classification model is used to process the business scope information to obtain the probability that the target enterprise belongs to each group. Then, based on the probability that the target enterprise belongs to each group, at least one target group is selected, and the business scope information is processed by the model corresponding to the target group respectively to obtain the preliminary selected industry to which the target enterprise belongs, and then at least one preliminary selected industry is selected from the preliminary selected industries to which the target enterprise belongs, and determined as the industry label of the target enterprise. Finally, the industry labels of all the identified target enterprises are summarized and output, thus realizing an automatic generation of industry labels for enterprises based on enterprise names and business scope information, effectively ensuring the accuracy and comprehensiveness of industry labels and improving the efficiency of marking industry labels. BRIEF DESCRIPTION OF THE DRAWINGS

[0092] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0093] Figure 1 A flowchart of a method for generating an enterprise industry label provided in an embodiment of the present application;

[0094] Figure 2 A schematic diagram of a framework of a grouping model provided in an embodiment of the present application;

[0095] Figure 3A flow chart of a method for obtaining the preliminary selected industry to which a target enterprise belongs provided in an embodiment of the present application;

[0096] Figure 4 A flowchart of another method for obtaining the preliminary selected industry to which the target enterprise belongs provided in an embodiment of the present application;

[0097] Figure 5 A flowchart of another method for obtaining the preliminary selected industry to which the target enterprise belongs provided in an embodiment of the present application;

[0098] Figure 6 A flowchart of an industry label optimization method provided in an embodiment of the present application;

[0099] Figure 7 A flowchart of a method for discovering new industry keywords provided in an embodiment of the present application;

[0100] Figure 8 A schematic diagram of the structure of a device for generating an enterprise industry label provided in an embodiment of the present application. DETAILED DESCRIPTION

[0101] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0102] In this application, relational terms such as first and second, etc. are used only 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 "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or 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 device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0103] The present application embodiment provides a method for generating an enterprise industry label, such as Figure 1 As shown, including:

[0104] S101. Obtain the name and business scope information of the target enterprise.

[0105] The experience scope information may specifically include company profile, description of experience scope in industry and commerce, project description, and description of winning bid, etc.

[0106] It should be noted that the various industries to which the enterprise belongs can be more comprehensively determined through the experience scope information of the enterprise. However, since the experience scope information of the enterprise may not be obtained, the name of the enterprise is usually available, and the name of the enterprise can also reflect the industry to which the enterprise belongs, the embodiment of the present application simultaneously obtains the name of the target enterprise and the experience scope information.

[0107] When only one of the information is obtained, the industry label of the target enterprise is determined based on only one of the information. If both information of the target enterprise can be obtained at the same time, the industry label of the target enterprise is determined based on both information. That is, when the name of the target enterprise is obtained in step S101, step S102 is executed, and when it is determined in step S104 that the business scope information of the target enterprise is obtained, step S105 and subsequent steps are executed.

[0108] S102. Extract target feature words from the name of the target enterprise.

[0109] It should be noted that in the embodiment of the present application, the feature word refers to the industry mark feature word. The target feature word refers to the feature word contained in the name of the target enterprise and the corresponding relationship with the industry has been determined. Optionally, the corresponding relationship between each feature word and the industry can be stored in a feature word table. Therefore, the target feature word can refer to the word contained in the name of the target enterprise and stored in the feature word table.

[0110] Optionally, the name of the target enterprise may be segmented, and each segmented word may be compared with a feature word in the feature word list to extract the target feature word. Optionally, since the feature word is usually the last three words of the enterprise name, only the last three words in the name of the target enterprise may be compared to determine the target feature word in the name of the bidding enterprise.

[0111] It should be noted that after executing step S102 to extract the target feature word, step S103 is executed. Optionally, if the target feature word may not be extracted, step S104 is directly executed.

[0112] S103: Based on the predetermined correspondence between each feature word and the industry, the industry corresponding to the target feature word is determined as the industry label of the target enterprise.

[0113] The industry corresponding to a feature word is the industry corresponding to the maximum value of the probability that the feature word belongs to each industry. The probability that the feature word belongs to each industry is calculated using the statistically obtained word frequency of the feature word in each industry.

[0114] In an embodiment of the present application, a pre-segmentation tool performs segmentation on a set of company names of known industries in a database, and divides each company name into several words. Then, the word frequency of the feature words in the corresponding industry is counted. Specifically, since the feature words of most companies are generally located in the last three words of the company name. So all the name records in the set are scanned until all the records are scanned. For each company name, if a certain word is one of the last three words of the company, the word frequency of the word in the corresponding industry of the company is added by one. Then, based on the word frequency of each feature word in each industry, the total word frequency of the feature word in all industries is calculated, and finally the probability of the word in each industry is calculated, and the industry corresponding to the maximum probability is selected to establish a corresponding relationship with the word. Optionally, the corresponding relationship between all feature words and industries can be manually screened to filter out those useless words and form an industry feature word list.

[0115] Therefore, after extracting the target feature words, the industry corresponding to the target feature words can be determined as the industry label of the target enterprise.

[0116] S104: Determine whether the business scope information of the target enterprise is obtained.

[0117] It should be noted that step S104 is not necessarily executed after step S103. The execution order in the embodiment of the present application is only one optional method. Step S104 only needs to be executed after step S101.

[0118] If it is determined that the business scope information of the target enterprise is obtained, step S105 is executed, that is, when the business scope information of the target enterprise is obtained, step S105 is executed.

[0119] S105. Using the grouping model in the pre-trained industry classification model, the business scope information is processed to obtain the probability that the target enterprise belongs to each group.

[0120] In the embodiment of the present application, the industry classification model used includes two layers. The first layer is a grouping model, which is mainly used to group enterprises, that is, to classify enterprises, and the second layer includes models corresponding to multiple groups, and the model corresponding to each group is specifically used to determine the industry to which the enterprise belongs based on the enterprise's experience range information.

[0121] It should be noted that the industry classification model uses a two-layer network for two main reasons: First, there are too many industries, with a total of about 1,281 industries. If all industries are classified together, it is easy to cause the categories of companies in similar industries to overlap. Second, in the training data set, the sample distribution is very uneven. Some industries have fewer training samples. If they are put together to train the model, they are easily covered by samples of other categories.

[0122] Among them, in the grouping model, all industries are mainly grouped, for example, they can be divided into 40 groups. The industry grouping can be based on the industrial chain in which it is located, or on the number and scale of samples. Usually, the grouping is based on the number and scale of samples, that is, categories with more samples are placed in more groups, and categories with fewer samples are placed in groups with fewer categories. Since the number of samples of different industry categories in each group is different, the model corresponding to each group can adopt different network models, such as fastText, TextCNN, TextRNN, RCNN, hierarchical attention network, seq2seq model with attention mechanism (Seq2seqAttn), Transformer model, dynamic memory network (DynamicMemory), entity network (EntityNet), and traditional machine learning algorithms.

[0123] Optionally, after comparing the performance of multiple models, in the present embodiment, the TextCNN model is preferably selected as the grouping model. Specifically, the framework of the grouping model can be as follows: Figure 2 As shown, and see Figure 2 When the grouping model groups a sentence, it first performs a convolution operation on the input matrix. Because it is text data, it does not slide horizontally during the filtering process, but moves downward to extract the local correlation between characters. After obtaining the convolution feature vector, it performs a maximum pooling operation on each vector and concatenates the pooled feature values ​​to finally obtain the feature representation of the sentence. Then, this sentence feature vector is provided to the grouping model for grouping to obtain the probability of each group.

[0124] Optionally, the model corresponding to each group can be determined based on the sample size in the group and the classification performance of different models in the group. For example, if the sample size of an industry is large enough, the TextCNN method can be used to classify the industry. If the sample size is very small, other methods can be used, such as Bayesian network, SVM, GBDT and other models.

[0125] S106. Based on the probability that the target enterprise belongs to each group, at least one target group is selected, and the business scope information is processed using the model corresponding to the target group to obtain the preliminary industry to which the target enterprise belongs.

[0126] Among them, the models corresponding to each group constitute the second layer network of the industry classification model.

[0127] Specifically, based on the probability that the target enterprise belongs to each group, the target group can be selected in descending order of probability. Specifically, one or more can be selected, so that the preliminary industry to which the target enterprise belongs can be output through different models.

[0128] It should be noted that the preliminary industry to which the target enterprise output by the model corresponding to the target group belongs is not yet the final industry that needs to be labeled for the target enterprise. It is only that the target enterprise output by the model corresponding to the target group belongs to the industry with a high probability and meets the requirements, so it is necessary to further execute step S107 to screen out the final industry.

[0129] It should also be noted that the model corresponding to each target group obtains at least one preliminary industry to which the target enterprise belongs. The model corresponding to the target group obtains the probability that the target enterprise belongs to multiple industries, and then selects one or more industries from them in descending order of probability as the preliminary industry to which the target enterprise belongs output by the model. Therefore, the number of preliminary industries described in the target output of a model can change dynamically according to demand.

[0130] Optionally, in another embodiment of the present application, before executing step S106, it further includes first determining whether the target enterprise is a small-scale enterprise, and determining whether a target feature word is extracted from the name of the target enterprise.

[0131] In the embodiment of the present application, if it is determined that the target enterprise is a small-scale enterprise and the target characteristic word is not extracted from the name of the target enterprise, the specific implementation method of step S106 is as follows: Figure 3 As shown, including:

[0132] S301. The group with the highest probability of belonging to the target enterprise is taken as the target group.

[0133] It should be noted that in the embodiment of the present application, for small-scale enterprises, that is, for small and micro enterprises, their business scope is relatively small, usually involving only a single industry, and their names can accurately reflect the industry to which they belong. Therefore, if the target enterprise is a small-scale enterprise and the target feature words are extracted from the name of the target enterprise, only the target feature words are needed to obtain the industry label of the target enterprise, and the industry label of the target enterprise is no longer obtained based on the business scope information, that is, step S105 and subsequent steps are no longer executed.

[0134] If the target feature word is not extracted from the name of the target enterprise, the enterprise label of the target enterprise needs to be obtained from the business scope information. Since there are fewer small-scale enterprises in the design industry, in this embodiment of the application, only the group with the highest probability of belonging to the target enterprise is selected as the target group.

[0135] S302. Process the business scope information through the model corresponding to the target group to obtain the probability that the target enterprise belongs to multiple industries.

[0136] S303. Determine the industry corresponding to the maximum value of the probability that the target enterprise belongs to multiple industries as the primary selected industry to which the target enterprise belongs.

[0137] Since there are fewer design industries for small-scale enterprises, in the embodiment of the present application, only one industry is selected as the primary industry for the target enterprise.

[0138] If it is determined that the target enterprise is not a small-scale enterprise, that is, the target enterprise is a medium-sized or large-sized enterprise, and the target characteristic word is extracted from the name of the target enterprise, then the specific implementation method of the corresponding step S106 is as follows: Figure 4 As shown, including:

[0139] S401. Determine whether the difference between the maximum probability and the second maximum probability among the probabilities that the target enterprise belongs to each group is less than a first threshold.

[0140] The second highest probability is a probability value that is only less than the maximum probability. That is, the second highest probability refers to the probability that is ranked second in descending order of probability.

[0141] Optionally, the first threshold may be obtained by a maximum entropy method.

[0142] It should be noted that if the difference between the maximum probability and the second highest probability among the probabilities that the target enterprise belongs to each group is less than the first threshold, it means that the probability that the target enterprise belongs to the top two groups is close, so step S402 is executed at this time. If the difference between the maximum probability and the second highest probability among the probabilities that the target enterprise belongs to each group is not less than the first threshold, it means that the probability that the target enterprise belongs to the top two groups is quite different, and an industry label of the target enterprise can be obtained according to the name of the target enterprise, so step S405 is executed at this time.

[0143] S402, determining the group corresponding to the maximum probability and the group corresponding to the second largest probability as the target group.

[0144] S403 . For each target group, the business scope information is processed by a model corresponding to the target group to obtain the probability that the target enterprise corresponding to the target group belongs to multiple industries.

[0145] S404. Determine the industry corresponding to the maximum value of the probability that the target enterprise corresponding to each target group belongs to multiple industries as the primary selected industry to which the target enterprise belongs.

[0146] Since two target groups are selected, after step S404, the preliminary industries to which the two target enterprises belong will be obtained accordingly.

[0147] S405. Determine the group corresponding to the maximum probability as the target group.

[0148] S406. Process the business scope information through the model corresponding to the target group to obtain the probability that the target enterprise belongs to multiple industries.

[0149] S407. Determine the industry corresponding to the maximum value of the probability that the target enterprise belongs to multiple industries as the primary selected industry to which the target enterprise belongs.

[0150] If the target enterprise is not a small-scale enterprise and the target characteristic word is not extracted from the name of the target enterprise, the specific implementation method of the corresponding step S106 is as follows: Figure 5 As shown, including:

[0151] S501: Determine whether the difference between the maximum probability and the second maximum probability is less than a second threshold.

[0152] It should be noted that since it is impossible to obtain the target feature words and determine the industry label of the target enterprise based on the target feature words, it is necessary to obtain multiple industry labels from the model corresponding to the group. Therefore, multiple groups need to be selected as target groups, so the second threshold is usually greater than the first threshold.

[0153] Optionally, the first threshold may be obtained by a maximum entropy method.

[0154] It should be noted that if the difference between the maximum probability and the second maximum probability is determined to be less than the second threshold, step S502 is performed. If the difference between the maximum probability and the second maximum probability is determined to be not less than the second threshold, the group corresponding to the maximum probability can be determined as the target group.

[0155] S502: Determine the group corresponding to the maximum probability and the group corresponding to the second maximum probability as the target group.

[0156] S503 , for each target group, the business scope information is processed by a model corresponding to the target group to obtain the probability that the target enterprise corresponding to the target group belongs to multiple industries.

[0157] S504. In descending order, the industries corresponding to the top two probabilities of the target enterprise corresponding to each target group belonging to multiple industries are determined as the preliminary selected industries to which the target enterprise belongs.

[0158] The models corresponding to the two target groups both obtained the probability that the target enterprise belonged to multiple industries. From the results obtained by each model, the two largest numbers were taken as the preliminary industries described by the target enterprise, that is, a total of four preliminary industries to which the target enterprise belonged were obtained.

[0159] S107. Select at least one preliminary industry from the preliminary industries to which the target enterprise belongs, and determine it as the industry label of the target enterprise.

[0160] It should be noted that when there is only one preliminary industry to which the target enterprise belongs, the preliminary industry will be directly determined as the industry label of the preliminary industry. If there are multiple preliminary industries described by the target enterprise, all or some of them can be selected as the industry label of the target enterprise. The selection is based on the probability of the target enterprise belonging to each preliminary industry, and the preliminary industry with a higher probability is usually selected first.

[0161] Optionally, in another embodiment of the present application, a specific implementation of step S107 includes:

[0162] If the preliminary selected industries to which each target enterprise belongs are obtained by models corresponding to different target groups, the preliminary selected industries to which each target enterprise belongs are determined as the industry labels of the target enterprises.

[0163] That is to say, for Figure 3 The scenes corresponding to the embodiments shown and Figure 4 The illustrated embodiment corresponds to the scenario in which all the initially selected industries to which the target enterprises with the shortcomings belong are determined as the industry labels of the target enterprises.

[0164] If the preliminary industries to which any two target enterprises belong are obtained by the model corresponding to the same target group, then the preliminary industries will be sorted in descending order according to the probability that the target enterprise belongs to each of the preliminary industries, and the preliminary industry ranked first and the preliminary industries that meet the preset conditions will be determined as the industry labels of the target enterprises.

[0165] The preset condition is that the probability that the target enterprise belongs to any two adjacent preliminary industries in the current preliminary industry and all the preliminary industries ranked before the current preliminary industry is less than the third threshold.

[0166] Specifically, since at least one industry label is required, the primary industry with the highest probability is selected first. Therefore, the primary industry ranked first is determined as the industry label of the target enterprise, and then each of the subsequent primary industries is selected in order of sorting. If the difference in probability between the current primary industry and the previous primary industry is small, it means that the current primary industry can also be selected, so the current primary industry is selected as the industry label of the target enterprise. If the difference in probability between the current primary industry and the previous primary industry is large, it means that the difference in probability between the current primary industry and the subsequent primary industries and the previous primary industry is too large, so the selection of the primary industry is stopped.

[0167] S108. Summarize and output the industry labels of all the determined target enterprises.

[0168] Specifically, the industry labels of the target enterprises determined in step S103 and step S107 are summarized, and the relatively same industry labels are regarded as the same and output to establish an association relationship between the target enterprise and the output industry label, thereby achieving labeling of the target enterprise.

[0169] Optionally, in another embodiment of the present application, after executing step S108, the industry label of the determined target enterprise may be further optimized. Figure 6 As shown, the industry label optimization method provided in the embodiment of the present application includes:

[0170] S601. For each determined industry label of a target enterprise, the industry corresponding to the industry label is used as the target industry.

[0171] S602. Identify representative enterprises in the target industry.

[0172] Optionally, for each enterprise in the target industry, the number of upstream counterparties of the enterprise is calculated from the training data set, and the top 25% of enterprises with the most upstream counterparties are taken as representative enterprises of the industry.

[0173] S603: Obtain comparative information of representative enterprises in the target industry and comparative information of the target enterprise.

[0174] Among them, the comparative information is the business scope information of the enterprise's upstream counterparty.

[0175] Optionally, for each representative enterprise in the target industry, the proportion of the transaction amount and the proportion of the transaction number between the enterprise and each upstream counterparty enterprise are calculated, and the business scope information of the upstream counterparty enterprises whose proportions of these two items are greater than the preset value is obtained as the comparative information of the representative enterprises in the target industry. And, for the target enterprise, the comparative information of the target enterprise is determined in the same way.

[0176] S604: Determine whether the semantic similarity between the comparison information of the representative enterprise under the target industry and the comparison information of the target enterprise is less than a preset similarity.

[0177] If the semantic similarity between the comparison information of the representative enterprise under the target industry and the comparison information of the target enterprise is less than the preset similarity, it means that the marked target industry is not accurate, so step S605 is executed. If the semantic similarity between the comparison information of the representative enterprise under the target industry and the comparison information of the target enterprise is not less than the preset similarity, step S607 is executed.

[0178] S605: Calculate the semantic similarity between the comparative information of the target enterprise and the comparative information of representative enterprises in other industries.

[0179] The method for obtaining comparative information of representative enterprises in each industry is the same as the method for obtaining comparative information of representative enterprises in the target industry.

[0180] S606: Replace the target industry with the industry corresponding to the maximum value of the semantic similarity between the comparison information of the representative enterprises in other industries and the comparison information of the target enterprise.

[0181] That is, the current target industry is replaced by the industry whose comparative information among other industries excluding the target industry has the greatest semantic similarity with the comparative information of the target enterprise, which is called the new target industry corresponding to the target enterprise.

[0182] It should be noted that after replacing the target industry and obtaining a new target industry, it is necessary to return to execute step S602 for the replaced target industry to determine whether further optimization is required.

[0183] S607. End the optimization of the target industry.

[0184] Optionally, in another embodiment of the present application, a method for discovering new industry keywords is further included, such as Figure 7 As shown, including:

[0185] S701. Obtain text corpus.

[0186] The text corpus may be the business scope information of multiple companies.

[0187] S702: extract multiple candidate words from the text corpus.

[0188] Specifically, the text may be first segmented into multiple sentences according to punctuation marks, and then 2-tuples, 3-tuples, ..., m-tuples of each sentence may be extracted as candidate words.

[0189] S703: Calculate the score corresponding to each candidate word.

[0190] Optionally, the sum of the degree of freedom and the degree of cohesion of the candidate words may be used as the score corresponding to the selected word.

[0191] S704: Sort the candidate words in descending order of scores to obtain a sorting result.

[0192] S705: Take the candidate words ranked in the top N positions in the sorting result as target candidate words.

[0193] S706: For each target candidate word, if the target candidate word does not exist in the word list, determine the target candidate word as a new word.

[0194] The word list stores the determined keywords of various industries, that is, the word list may be the industry characteristic word list in step S103.

[0195] Optionally, after obtaining the new words, the semantic Xi'an four-degree method can be used to select texts similar to these new words as training sample corpora for new industries, and these corpora can be added to the training sample data set to retrain the industry classification model.

[0196] The embodiment of the present application provides a method for generating an enterprise industry label, which generates an enterprise industry label through the enterprise name and business scope information, and specifically obtains the name and business scope information of the target enterprise. When the name of the target enterprise is obtained, the target feature word is extracted from the name of the target enterprise, and based on the predetermined correspondence between each feature word and the industry, the industry corresponding to the target feature word is determined as the industry label of the target enterprise. Among them, the industry corresponding to a feature word is the industry corresponding to the maximum value of the probability that the feature word belongs to each industry. The probability that the feature word belongs to each industry is calculated using the word frequency of the feature word in each industry obtained by statistics. When the business scope information of the target enterprise is obtained, the grouping model in the pre-trained industry classification model is used to process the business scope information to obtain the probability that the target enterprise belongs to each group. Then, based on the probability that the target enterprise belongs to each group, at least one target group is selected, and the business scope information is processed by the model corresponding to the target group respectively to obtain the preliminary selected industry to which the target enterprise belongs, and then at least one preliminary selected industry is selected from the preliminary selected industries to which the target enterprise belongs, and determined as the industry label of the target enterprise. Finally, the industry labels of all the identified target enterprises are summarized and output, thus realizing an automatic generation of industry labels for enterprises based on enterprise names and business scope information, effectively ensuring the accuracy and comprehensiveness of industry labels and improving the efficiency of marking industry labels.

[0197] Another embodiment of the present application provides a device for generating an enterprise industry label, such as Figure 8As shown, including:

[0198] The first acquisition unit 801 is used to acquire the name and business scope information of the target enterprise.

[0199] The first extraction unit 802 is used to extract target feature words from the name of the target enterprise if the name of the target enterprise is obtained.

[0200] The matching unit 803 is used to determine the industry corresponding to the target feature word as the industry label of the target enterprise based on the predetermined correspondence between each feature word and the industry.

[0201] The industry corresponding to a feature word is the industry corresponding to the maximum value of the probability that the feature word belongs to each industry. The probability that the feature word belongs to each industry is calculated using the statistically obtained frequency of the feature word in each industry.

[0202] The grouping model 804 is used to process the business scope information of the target enterprise using the grouping model in the pre-trained industry classification model to obtain the probability that the target enterprise belongs to each group.

[0203] The preliminary selection unit 805 is used to select at least one target group based on the probability that the target enterprise belongs to each group, and process the business scope information through the model corresponding to the target group to obtain the preliminary selected industry to which the target enterprise belongs. The model corresponding to each group constitutes the second layer network of the industry classification model.

[0204] The screening unit 806 is used to select at least one preliminary selected industry from the preliminary selected industries to which the target enterprise belongs, and determine it as the industry label of the target enterprise.

[0205] The summarizing unit 807 is used to summarize and output the industry labels of all determined target enterprises.

[0206] Optionally, in the device for generating an enterprise industry label provided by another embodiment, when the target enterprise is a small-scale enterprise and the target feature word is not extracted from the name of the target enterprise, the preliminary selection unit selects at least one target group based on the probability that the target enterprise belongs to each group, and processes the business scope information through the model corresponding to the target group respectively, and obtains the preliminary selected industry to which the target enterprise belongs, it is used to:

[0207] Then the group with the highest probability of belonging to the target enterprise is taken as the target group.

[0208] The business scope information is processed through the model corresponding to the target group to obtain the probability that the target enterprise belongs to multiple industries.

[0209] The industry corresponding to the maximum value of the probability that the target enterprise belongs to multiple industries is determined as the primary industry to which the target enterprise belongs.

[0210] Optionally, in the device for generating an enterprise industry label provided by another embodiment, when the target enterprise is not a small-scale enterprise and the target feature word is extracted from the name of the target enterprise, the preliminary selection unit selects at least one target group based on the probability that the target enterprise belongs to each group, and processes the business scope information through the model corresponding to the target group respectively, and obtains the preliminary selected industry to which the target enterprise belongs, for:

[0211] It is determined whether the difference between the maximum probability and the second maximum probability among the probabilities that the target enterprise belongs to each group is less than a first threshold.

[0212] The second most likely probability is a probability value that is just smaller than the maximum probability.

[0213] If it is determined that the difference between the maximum probability and the second maximum probability among the probabilities that the target enterprise belongs to each group is less than the first threshold, the group corresponding to the maximum probability and the group corresponding to the second maximum probability are determined as the target group.

[0214] For each target group, the business scope information is processed through the model corresponding to the target group to obtain the probability that the target enterprise corresponding to the target group belongs to multiple industries.

[0215] The industry corresponding to the maximum value of the probability that the target enterprise corresponding to each target group belongs to multiple industries is determined as the preliminary industry to which the target enterprise belongs.

[0216] If it is determined that the difference between the maximum probability and the second maximum probability among the probabilities that the target enterprise belongs to each group is not less than the first threshold, the group corresponding to the maximum probability is determined as the target group.

[0217] The business scope information is processed through the model corresponding to the target group to obtain the probability that the target enterprise belongs to multiple industries.

[0218] The industry corresponding to the maximum value of the probability that the target enterprise belongs to multiple industries is determined as the primary industry to which the target enterprise belongs.

[0219] Optionally, in the device for generating an enterprise industry label provided by another embodiment, when the target enterprise is not a small-scale enterprise and the target feature word is not extracted from the name of the target enterprise, the preliminary selection unit selects at least one target group based on the probability that the target enterprise belongs to each group, and processes the business scope information through the model corresponding to the target group respectively, and obtains the preliminary industry to which the target enterprise belongs, for:

[0220] It is determined whether the difference between the maximum probability and the second maximum probability is less than a second threshold.

[0221] If the difference between the maximum probability and the second maximum probability is less than the second threshold, the group corresponding to the maximum probability and the group corresponding to the second maximum probability are determined as the target groups.

[0222] For each target group, the business scope information is processed through the model corresponding to the target group to obtain the probability that the target enterprise corresponding to the target group belongs to multiple industries.

[0223] In order from large to small, the industries corresponding to the top two probabilities that the target enterprises corresponding to each target group belong to multiple industries are determined as the preliminary industries to which the target enterprises belong.

[0224] Optionally, in the device for generating an enterprise industry label provided in another embodiment, the screening unit includes:

[0225] The first determination unit is used to determine the preliminary selected industry to which each target enterprise belongs as the industry label of the target enterprise if the preliminary selected industry to which each target enterprise belongs is obtained by models corresponding to different target groups.

[0226] The first sorting unit is used to sort the preliminary industries in descending order according to the probability that the target enterprise belongs to each preliminary industry if the preliminary industries to which any two target enterprises belong are obtained by the model corresponding to the same target group.

[0227] The second determination unit is used to determine the first ranked preliminary industry and each preliminary industry that meets the preset condition as the industry label of the target enterprise. The preset condition is that the probability that the target enterprise belongs to any two adjacent preliminary industries in the current preliminary industry and all preliminary industries ranked before the current preliminary industry is less than a third threshold.

[0228] Optionally, in the device for generating an enterprise industry label provided in another embodiment, the device further includes:

[0229] The second acquisition unit is used to acquire text corpus.

[0230] The second extraction unit is used to extract multiple candidate words from the text corpus.

[0231] The scoring unit is used to calculate the score corresponding to each candidate word.

[0232] The second sorting unit is used to sort the candidate words in descending order of scores to obtain a sorting result.

[0233] The selection unit is used to select the candidate words ranked in the top N positions in the sorting result as the target candidate words.

[0234] The new word determination unit is used for determining each target candidate word as a new word if the target candidate word does not exist in the word list, wherein the word list stores the determined keywords of various industries.

[0235] Optionally, in the device for generating an enterprise industry label provided in another embodiment, the device further includes:

[0236] The target industry determination unit is used to determine the industry label of each target enterprise and take the industry corresponding to the industry label as the target industry.

[0237] The representative determination unit is used to determine representative enterprises under the target industry.

[0238] The third acquisition unit is used to acquire the comparative information of representative enterprises in the target industry and the comparative information of the target enterprise, wherein the comparative information is the business scope information of the upstream transaction counterparty of the enterprise.

[0239] The calculation unit is used to calculate the semantic similarity between the comparison information of the target enterprise and the comparison information of the representative enterprises in other industries if the semantic similarity between the comparison information of the representative enterprises in the target industry and the comparison information of the target enterprise is less than a preset similarity.

[0240] The replacement unit is used to replace the target industry with the industry corresponding to the maximum value of the semantic similarity between the comparison information of the representative enterprises under other industries and the comparison information of the target enterprise, and return the result to the representative determination unit for determining the representative enterprises under the target industry for the replaced target industry, until the semantic similarity between the comparison information of the representative enterprises under the target industry and the comparison information of the target enterprise is not less than the preset similarity.

[0241] It should be noted that the specific working process of each unit provided in the above embodiments of the present application can refer to the corresponding steps in the above method embodiments, which will not be repeated here.

[0242] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0243] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for generating an enterprise industry label, characterized in that: include: Obtain the name and business scope information of the target enterprise; If the name of the target enterprise is obtained, extracting target characteristic words from the name of the target enterprise; Based on the predetermined correspondence between each feature word and the industry, the industry corresponding to the target feature word is determined as the industry label of the target enterprise; wherein the industry corresponding to one of the feature words is the industry corresponding to the maximum value of the probability that the feature word belongs to each industry; the probability that the feature word belongs to each industry is calculated using the statistically obtained word frequency of the feature word in each industry; If the business scope information of the target enterprise is obtained, the business scope information is processed using the grouping model in the pre-trained industry classification model to obtain the probability that the target enterprise belongs to each group; Based on the probability that the target enterprise belongs to each group, at least one target group is selected, and the business scope information is processed by the model corresponding to the target group to obtain the preliminary industry to which the target enterprise belongs; wherein the models corresponding to each group constitute the second layer network of the industry classification model; Selecting at least one preliminary industry from the preliminary industries to which the target enterprise belongs, and determining it as the industry label of the target enterprise; The industry labels of all the target enterprises determined are summarized and output.

2. The method according to claim 1, characterized in that The method of selecting at least one target group based on the probability that the target enterprise belongs to each group, and processing the business scope information by using a model corresponding to the target group to obtain the preliminary selected industry to which the target enterprise belongs includes: If the target enterprise is a small-scale enterprise and the target characteristic word is not extracted from the name of the target enterprise, then the group to which the target enterprise has the highest probability of belonging is taken as the target group; Processing the business scope information through the model corresponding to the target group to obtain the probability that the target enterprise belongs to multiple industries; The industry corresponding to the maximum value of the probabilities that the target enterprise belongs to multiple industries is determined as the primary selected industry to which the target enterprise belongs.

3. The method according to claim 2, characterized in that The method of selecting at least one target group based on the probability that the target enterprise belongs to each group, and processing the business scope information by using a model corresponding to the target group to obtain the preliminary selected industry to which the target enterprise belongs includes: If the target enterprise is not a small-scale enterprise, and the target feature word is extracted from the name of the target enterprise, it is determined whether the difference between the maximum probability and the second highest probability among the probabilities that the target enterprise belongs to each group is less than a first threshold; wherein the second highest probability is a probability value that is only less than the maximum probability; If it is determined that the difference between the maximum probability and the second maximum probability among the probabilities that the target enterprise belongs to each group is less than a first threshold, the group corresponding to the maximum probability and the group corresponding to the second maximum probability are determined as the target group; For each target group, the business scope information is processed by a model corresponding to the target group to obtain the probability that the target enterprise corresponding to the target group belongs to multiple industries; Determine the industry corresponding to the maximum value of the probability that the target enterprise corresponding to each target group belongs to multiple industries as the primary selected industry to which the target enterprise belongs; If it is determined that the difference between the maximum probability and the second maximum probability among the probabilities that the target enterprise belongs to each group is not less than a first threshold, the group corresponding to the maximum probability is determined as the target group; Processing the business scope information through the model corresponding to the target group to obtain the probability that the target enterprise belongs to multiple industries; The industry corresponding to the maximum value of the probabilities that the target enterprise belongs to multiple industries is determined as the primary selected industry to which the target enterprise belongs.

4. The method according to claim 3, characterized in that The method of selecting at least one target group based on the probability that the target enterprise belongs to each group, and processing the business scope information by using a model corresponding to the target group to obtain the preliminary selected industry to which the target enterprise belongs includes: If the target enterprise is not a small-scale enterprise and the target feature word is not extracted from the name of the target enterprise, determining whether the difference between the maximum probability and the second maximum probability is less than a second threshold; If the difference between the maximum probability and the second maximum probability is less than a second threshold, the group corresponding to the maximum probability and the group corresponding to the second maximum probability are determined as target groups; For each target group, the business scope information is processed by a model corresponding to the target group to obtain the probability that the target enterprise corresponding to the target group belongs to multiple industries; In order from largest to smallest, the industries corresponding to the top two of the probabilities that the target enterprise corresponding to each target group belongs to multiple industries are determined as the preliminary selected industries to which the target enterprise belongs.

5. The method according to any one of claims 1 to 4, characterized in that: The selecting at least one preliminary selected industry from the preliminary selected industries to which the target enterprise belongs and determining it as the industry label of the target enterprise includes: If the preliminary selected industries to which each of the target enterprises belongs are obtained by models corresponding to different target groups, then the preliminary selected industries to which each of the target enterprises belongs are determined as the industry labels of the target enterprises; If the preliminary selected industries to which any two target enterprises belong are obtained by the same model corresponding to the target group, the preliminary selected industries are sorted in descending order according to the probability that the target enterprise belongs to each of the preliminary selected industries; The preliminary industry ranked first and each of the preliminary industries that meet the preset conditions are determined as the industry label of the target enterprise; wherein the preset condition is that among the current preliminary industry and all the preliminary industries ranked before the current preliminary industry, the probability that the target enterprise belongs to any two adjacent preliminary industries is less than a third threshold.

6. The method according to claim 1, characterized in that Also includes: Get text corpus; Extracting a plurality of candidate words from the text corpus; Calculate the score corresponding to each candidate word; Sorting the candidate words in descending order of scores to obtain a sorting result; The candidate words ranked in the top N positions in the sorting result are used as target candidate words; For each of the target candidate words, if the target candidate word does not exist in the word list, the target candidate word is determined as a new word; wherein the word list stores the determined keywords of various industries.

7. The method according to claim 1, characterized in that Also includes: For each determined industry label of the target enterprise, the industry corresponding to the industry label is used as the target industry; Identify representative enterprises in the target industry; Obtaining comparative information of representative enterprises in the target industry and comparative information of the target enterprise; wherein the comparative information is the business scope information of the upstream counterparty enterprises of the enterprise; If the semantic similarity between the comparative information of the representative enterprises in the target industry and the comparative information of the target enterprise is less than a preset similarity, then calculating the semantic similarity between the comparative information of the target enterprise and the comparative information of the representative enterprises in other industries; The target industry is replaced by the industry corresponding to the maximum value of the semantic similarities between the comparison information of the representative enterprises under other industries and the comparison information of the target enterprise, and the step of determining the representative enterprises under the target industry is returned to the replaced target industry until the semantic similarity between the comparison information of the representative enterprises under the target industry and the comparison information of the target enterprise is not less than the preset similarity.

8. A device for generating enterprise industry labels, characterized in that: include: The first acquisition unit is used to acquire the name and business scope information of the target enterprise; A first extraction unit is used to extract a target characteristic word from the name of the target enterprise if the name of the target enterprise is obtained; A matching unit is used to determine the industry corresponding to the target feature word as the industry label of the target enterprise based on the predetermined correspondence between each feature word and the industry; wherein the industry corresponding to one of the feature words is the industry corresponding to the maximum value of the probability that the feature word belongs to each industry; the probability that the feature word belongs to each industry is calculated using the word frequency of the feature word in each industry obtained by statistics; A grouping model is used to process the business scope information of the target enterprise using the grouping model in the pre-trained industry classification model to obtain the probability that the target enterprise belongs to each group; A preliminary selection unit, used to select at least one target group based on the probability that the target enterprise belongs to each group, and process the business scope information through the model corresponding to the target group to obtain the preliminary industry to which the target enterprise belongs; wherein the models corresponding to each of the groups constitute the second layer network of the industry classification model; A screening unit, used to select at least one preliminary selected industry from the preliminary selected industries to which the target enterprise belongs, and determine it as the industry label of the target enterprise; The summarizing unit is used to summarize and output the determined industry labels of all the target enterprises.

9. The device according to claim 8, characterized in that When the target enterprise is a small-scale enterprise and the target feature word is not extracted from the name of the target enterprise, the preliminary selection unit performs the selection based on the probability that the target enterprise belongs to each group, selects at least one target group, and processes the business scope information through the model corresponding to the target group to obtain the preliminary selected industry to which the target enterprise belongs, which is used to: Then the group with the highest probability that the target enterprise belongs to is taken as the target group; Processing the business scope information through the model corresponding to the target group to obtain the probability that the target enterprise belongs to multiple industries; The industry corresponding to the maximum value of the probabilities that the target enterprise belongs to multiple industries is determined as the primary selected industry to which the target enterprise belongs.

10. The device according to claim 9, characterized in that When the target enterprise is not a small-scale enterprise and a target feature word is extracted from the name of the target enterprise, the preliminary selection unit performs the operation based on the probability that the target enterprise belongs to each group, selects at least one target group, and processes the business scope information through the model corresponding to the target group to obtain the preliminary industry to which the target enterprise belongs, and is used to: Determine whether the difference between the maximum probability and the second highest probability among the probabilities that the target enterprise belongs to each group is less than a first threshold; wherein the second highest probability is a probability value that is only less than the maximum probability; If it is determined that the difference between the maximum probability and the second maximum probability among the probabilities that the target enterprise belongs to each group is less than a first threshold, the group corresponding to the maximum probability and the group corresponding to the second maximum probability are determined as the target group; For each target group, the business scope information is processed by a model corresponding to the target group to obtain the probability that the target enterprise corresponding to the target group belongs to multiple industries; Determine the industry corresponding to the maximum value of the probability that the target enterprise corresponding to each target group belongs to multiple industries as the primary selected industry to which the target enterprise belongs; If it is determined that the difference between the maximum probability and the second maximum probability among the probabilities that the target enterprise belongs to each group is not less than a first threshold, the group corresponding to the maximum probability is determined as the target group; Processing the business scope information through the model corresponding to the target group to obtain the probability that the target enterprise belongs to multiple industries; The industry corresponding to the maximum value of the probabilities that the target enterprise belongs to multiple industries is determined as the primary selected industry to which the target enterprise belongs.

Citation Information

Patent Citations

  • Enterprise industry multi-label classification method

    CN109783818A

  • Industry classification method and device, terminal equipment and storage medium

    CN112487794A