Industry field identification method, device, electronic device and storage medium
Through paragraph classification and target vocabulary extraction of application software privacy policy text, combined with the classification model, the problem of low efficiency of privacy policy text parsing in the existing technology is solved, achieving more efficient and accurate industry field identification, and improving user experience. .
Patent Information
- Application Number
- CN202211370948.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-03
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-11-03
AI Technical Summary
In the prior art, the privacy policy text parsing efficiency of application software is low, resulting in low efficiency in identifying the industry field to which the application software belongs.
By classifying the paragraphs of the privacy policy text of the application software to be identified, the target paragraphs are determined and the target words are extracted. Based on this information, a classification model is used to determine the industry field to which it belongs. Specific steps include: obtaining the privacy policy text, classifying the paragraphs, extracting the target vocabulary in the target paragraph, and inputting it into the classification model to determine the industry field.
It improves the parsing efficiency and accuracy of application software privacy policy text, enables more accurate and efficient identification of the industry field to which the application software belongs, and enhances user perception.
Smart Images

Figure CN115757774B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of natural language processing technology, and in particular to an industry field identification method, device, electronic device and storage medium. Background Art
[0002] The privacy policy of an application (APP) refers to the policy on user information processing formulated by the application based on the privacy policy, which usually includes a statement on how the application collects, processes, uses, stores, shares, transfers or publicly discloses user information data.
[0003] With the development of mobile Internet technology, application software has been widely used in various industries, such as e-commerce, social media, catering, automobiles, finance, mobile payment, travel, communications, insurance, medical care, sports, real estate, media, etc. In the prior art, the industry field to which the application software belongs can be identified by parsing the privacy policy of the application software.
[0004] However, the content of the privacy policy text of the application software is usually lengthy, resulting in low efficiency in parsing the privacy policy text of the application software, which in turn leads to low efficiency in identifying the industry field to which the application software belongs. Therefore, how to improve the efficiency of identifying the industry field to which the application software belongs is a technical problem that needs to be solved urgently in this field. Summary of the invention
[0005] The present invention provides an industry field identification method, device, electronic device and storage medium, which are used to solve the defect that the parsing efficiency of the privacy policy of application software in the prior art is low, resulting in low efficiency in identifying the industry field to which the application software belongs, and to improve the efficiency of identifying the industry field to which the application software belongs.
[0006] The present invention provides an industry field identification method, comprising:
[0007] Obtain the privacy policy text of the application to be identified;
[0008] Classifying the paragraphs in the privacy policy text, and determining the paragraphs of the target type in the privacy policy text as the target paragraphs according to the paragraph classification results;
[0009] Extracting target vocabulary from the target paragraph;
[0010] Based on the target words in the target paragraph, the industry field to which the application software to be identified belongs is determined.
[0011] According to an industry field identification method provided by the present invention, classifying paragraphs in the privacy policy text includes:
[0012] Inputting the privacy policy text into a paragraph classification model, and obtaining a paragraph classification result of the privacy policy text output by the paragraph classification model;
[0013] Among them, the paragraph classification model is obtained after training with the sample privacy policy text of the sample application software as the sample and the paragraph classification result of the sample privacy policy text as the sample label; the paragraph classification model is used to extract the semantic features of the privacy policy text, and then obtain the paragraph classification result of the privacy policy text based on the semantic features of the privacy policy text.
[0014] According to an industry field identification method provided by the present invention, the industry field to which the application software to be identified belongs is determined based on the target vocabulary in the target paragraph, including:
[0015] Input the target paragraph, the target words in the target paragraph, and the text name of the privacy policy text into a first classification model, and obtain the industry field to which the application software to be identified belongs output by the first classification model;
[0016] Among them, the first classification model is obtained after training with sample paragraphs, sample words extracted from the sample paragraphs and the text name of the sample privacy policy text as samples, and the industry field to which the sample application software belongs as sample labels; the sample privacy policy text is the privacy policy text of the sample application software; and the sample paragraph is a paragraph of the target type in the sample privacy policy text.
[0017] According to an industry field identification method provided by the present invention, the first classification model includes: a first feature extraction unit, a vocabulary encoding unit, a second feature extraction unit, a first vector splicing unit and a first result output unit;
[0018] The step of inputting the target paragraph, the target vocabulary in the target paragraph, and the text name of the privacy policy text into a first classification model, and obtaining the industry field to which the application software to be identified belongs output by the first classification model includes:
[0019] Inputting the target paragraph into the first feature extraction unit, and having the first feature extraction unit extract semantic features corresponding to the target paragraph, thereby obtaining a first embedding vector corresponding to the target paragraph output by the first feature extraction unit;
[0020] Inputting a target word in the target paragraph into the vocabulary encoding unit, and encoding the target word in the target paragraph by the vocabulary encoding unit, thereby obtaining a second embedding vector corresponding to the target paragraph output by the vocabulary encoding unit;
[0021] Inputting the text name of the privacy policy text into the second feature extraction unit, and having the second feature extraction unit perform feature extraction on the text name of the privacy policy text, thereby obtaining a third embedding vector corresponding to the target paragraph output by the second feature extraction unit;
[0022] Outputting the first embedding vector, the second embedding vector and the third embedding vector to the first vector concatenation unit, and concatenating the first embedding vector, the second embedding vector and the third embedding vector by the first vector concatenation unit, thereby obtaining a first feature representation vector corresponding to the target paragraph output by the first vector concatenation unit;
[0023] The first feature representation vector is input into the first result output unit to obtain the industry field to which the application software to be identified belongs output by the first result output unit.
[0024] According to an industry field identification method provided by the present invention, the first classification model includes: a word and sentence splicing unit, a third feature extraction unit, a fourth feature extraction unit, a second vector splicing unit and a second result output unit;
[0025] The step of inputting the target paragraph, the target vocabulary in the target paragraph, and the text name of the privacy policy text into a first classification model, and obtaining the industry field to which the application software to be identified belongs output by the first classification model includes:
[0026] Inputting the target paragraph and the target vocabulary in the target paragraph into the word-sentence splicing unit, and the word-sentence splicing unit splices the sentences in the target paragraph and the target vocabulary in the sentences, thereby obtaining the word-sentence splicing result of the sentences;
[0027] Inputting the word and sentence concatenation result of the sentence into the third feature extraction unit, the third feature extraction unit obtains a sequence corresponding to the sentence based on the word and sentence concatenation result of the sentence, and then obtains a fourth embedding vector corresponding to the target paragraph output by the third feature extraction unit based on the sequences corresponding to all sentences in the target paragraph;
[0028] Outputting the text name of the privacy policy text to the fourth feature extraction unit, and having the fourth feature extraction unit perform feature extraction on the text name of the privacy policy text, thereby obtaining a fifth embedding vector corresponding to the target paragraph output by the fourth feature extraction unit;
[0029] Outputting the fourth embedding vector and the fifth embedding vector to the second vector concatenation unit, and concatenating the fourth embedding vector and the fifth embedding vector by the second vector concatenation unit, thereby obtaining a second feature representation vector corresponding to the target paragraph output by the second vector concatenation unit;
[0030] The second feature representation vector is input into the second result output unit to obtain the industry field to which the application software to be identified belongs output by the second result output unit.
[0031] According to an industry field identification method provided by the present invention, the industry field to which the application software to be identified belongs is determined based on the target vocabulary in the target paragraph, including:
[0032] Inputting the target vocabulary in the target paragraph into a second classification model, and obtaining the industry field to which the application software to be identified belongs output by the second classification model;
[0033] Among them, the second classification model is built based on a support vector machine, and is obtained after training with sample vocabulary as samples and the industry field to which the sample application software belongs as sample labels; the sample vocabulary is extracted from sample paragraphs; the sample paragraphs are paragraphs of the target type in the sample privacy policy text of the sample application software.
[0034] According to an industry field identification method provided by the present invention, the paragraph classification model includes: a semantic feature extraction unit and a paragraph classification unit;
[0035] The step of inputting the privacy policy text into a paragraph classification model and obtaining a paragraph classification result of the privacy policy text output by the paragraph classification model includes:
[0036] Inputting the privacy policy text into the semantic feature extraction unit, and obtaining a word vector matrix corresponding to the privacy policy text output by the semantic feature extraction unit;
[0037] The word vector matrix corresponding to the privacy policy text is input into the paragraph classification unit to obtain the paragraph classification result of the privacy policy text output by the paragraph classification unit.
[0038] According to an industry field identification method provided by the present invention, the step of extracting target words from the target paragraph includes:
[0039] Preprocessing the target paragraph to obtain the preprocessed target paragraph;
[0040] Performing word segmentation processing on the preprocessed target paragraph to obtain an original vocabulary set corresponding to the target paragraph;
[0041] Based on a preset vocabulary set, extracting target vocabulary from an original vocabulary set corresponding to the target paragraph;
[0042] Wherein, the preprocessing includes removing stop words.
[0043] The present invention also provides an industry field identification device, comprising:
[0044] A text acquisition module, used to acquire the privacy policy text of the application software to be identified;
[0045] A paragraph classification module, used to classify paragraphs in the privacy policy text, and determine the paragraphs of the target type in the privacy policy text as target paragraphs according to the paragraph classification results;
[0046] A vocabulary extraction module, used to extract target vocabulary in the target paragraph;
[0047] The field identification module is used to determine the industry field to which the application software to be identified belongs based on the target vocabulary in the target paragraph.
[0048] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the industry field identification method described above is implemented.
[0049] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described industry field identification methods.
[0050] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the industry field identification method as described above is implemented.
[0051] The industry field identification method, device, electronic device and storage medium provided by the present invention can improve the parsing efficiency and parsing accuracy of the privacy policy text of the application software to be identified, can more accurately and efficiently identify the industry field to which the application software to be identified belongs based on the privacy policy text of the application software to be identified, and can improve user perception. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 It is a flowchart of the industry field identification method provided by the present invention;
[0054] Figure 2 It is a structural schematic diagram of the industry field identification device provided by the present invention;
[0055] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] In the description of the invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0058] Figure 1 Schematic diagram of the process of industry field identification method provided by the present invention. Figure 1 The industry field identification method of the present invention is described. Figure 1 As shown, the method includes: Step 101, obtaining the privacy policy text of the application software to be identified.
[0059] It should be noted that the executor of the embodiment of the present invention is an industry field identification device.
[0060] It should be noted that the application software to be identified is the identification object of the industry field identification method provided by the present invention. Based on the industry field identification method provided by the present invention, the industry field to which the application software to be identified belongs can be identified.
[0061] Optionally, the industry field in the embodiment of the present invention may be any one of "e-commerce", "social media", "catering", "automobile", "finance", "mobile payment", "travel", "communication", "insurance", "medical care", "sports", "real estate" and "media".
[0062] Specifically, in the embodiments of the present invention, the privacy policy text of the application software to be identified can be obtained in a variety of ways, for example: the privacy policy text of the application software to be identified can be obtained by data query; or the privacy policy text of the application software to be identified can be received from other electronic devices; or the privacy policy text of the application software to be identified can be received from the user. The specific method of obtaining the privacy policy text of the application software to be identified is not limited in the embodiments of the present invention.
[0063] It should be noted that the privacy policy text of the application software to be identified in the embodiment of the present invention is in Chinese.
[0064] Step 102: Classify the paragraphs in the privacy policy text, and determine the paragraphs of the target type in the privacy policy text as the target paragraphs according to the paragraph classification results.
[0065] Specifically, after obtaining the privacy policy text of the application software to be identified, the paragraphs in the privacy policy text may be classified, so that the type of each paragraph in the privacy policy text may be obtained as the paragraph classification result of the privacy policy text.
[0066] It should be noted that the type of paragraph in the embodiment of the present invention can be any one of "business function and information collection", "information sharing", "transfer", "public disclosure", "information protection", "information storage", "user rights", "cookies technology", "information collection-exceptions for obtaining authorization and consent", "information sharing-exceptions for obtaining authorization and consent", "withdrawal of consent", "minor protection", "privacy policy update", "complaint feedback mechanism" and "irrelevant text".
[0067] Where any paragraph in the above privacy policy is of the type "Business Functions and Information Collection", the paragraph records the relevant content of the business functions and information collection of the application software to be identified;
[0068] If the type of any paragraph in the above privacy policy text is "Information Sharing", the paragraph records the relevant content about information sharing of the application software to be identified;
[0069] If the type of any paragraph in the above privacy policy text is "transfer", the paragraph records the relevant content about the transfer of the application software to be identified;
[0070] If the type of any paragraph in the above privacy policy text is "public disclosure", the paragraph records the relevant content of the application software to be identified regarding public disclosure;
[0071] If the type of any paragraph in the above privacy policy text is "Information Protection", the paragraph records the relevant content about information protection of the application software to be identified;
[0072] If the type of any paragraph in the above privacy policy text is "information storage", the paragraph records the relevant content about information storage of the application software to be identified;
[0073] If the type of any paragraph in the above privacy policy text is "User Rights", the paragraph records the relevant content about the user rights of the application software to be identified;
[0074] If the type of any paragraph in the above privacy policy text is "cookies technology", the paragraph records the relevant content about cookies technology of the application software to be identified;
[0075] If the type of any paragraph in the above privacy policy text is "Information Collection - Exceptions to Authorization and Consent", the paragraph records the relevant content of the exceptions to information collection and authorization and consent for the application software to be identified;
[0076] If the type of any paragraph in the above privacy policy text is "Information Sharing - Exceptions to Authorization and Consent", the paragraph records the relevant content of the exceptions to information sharing - authorization and consent for the application software to be identified;
[0077] If the type of any paragraph in the above privacy policy text is "authorization to withdraw consent", the paragraph records the relevant content of the authorization to withdraw consent of the application software to be identified;
[0078] If the type of any paragraph in the above privacy policy text is "minor protection", the paragraph records the relevant content about minor protection of the application software to be identified;
[0079] If the type of any paragraph in the above privacy policy text is "Privacy Policy Update", the paragraph records the relevant content about the privacy policy update of the application software to be identified;
[0080] If the type of any paragraph in the above privacy policy text is "complaint feedback mechanism", the paragraph records the relevant content about the complaint feedback mechanism of the application software to be identified;
[0081] In the case that the type of any paragraph in the above privacy policy text is "irrelevant text", the paragraph records the relevant content of the application software to be identified that is irrelevant to this text.
[0082] In the embodiments of the present invention, the paragraphs in the above privacy policy text can be classified in a variety of ways, for example, the paragraphs in the above privacy policy text can be classified based on deep learning technology; or the paragraphs in the above privacy policy text can be classified by keyword extraction and probability distribution calculation. The specific classification method is not limited in the embodiments of the present invention.
[0083] After classifying the paragraphs in the privacy policy text and obtaining the paragraph classification results of the privacy policy text, paragraphs of a target type in the privacy policy text may be determined as target paragraphs based on the paragraph classification results of the privacy policy text.
[0084] It is understandable that business function information is usually strongly related to the industry field. Therefore, in the embodiment of the present invention, this feature is used to determine the target type as "business function and information collection". Accordingly, the paragraphs in the above privacy policy text are classified. After obtaining the paragraph classification results, the paragraphs of the type "business function and information collection" in the above privacy policy text can be determined as the target paragraph based on the above paragraph classification results.
[0085] It can be understood that the number of the target paragraphs can be one or more.
[0086] Step 103: extract target words from the target paragraph.
[0087] Specifically, after determining the target paragraph in the privacy policy text of the application software to be identified, the target vocabulary in the target paragraph may be extracted.
[0088] In the embodiment of the present invention, the target vocabulary in the target paragraph can be extracted in a variety of ways, for example, the target vocabulary in the target paragraph can be extracted based on deep learning technology; or, based on a preset vocabulary set, the vocabulary in the target paragraph that can match any vocabulary in the preset vocabulary set can be extracted as the target vocabulary in the target paragraph. The specific method of extracting the target vocabulary in the target paragraph is not limited in the embodiment of the present invention.
[0089] Step 104: Determine the industry field to which the application software to be identified belongs based on the target vocabulary.
[0090] Specifically, after extracting the target vocabulary in the target paragraph, the industry field to which the application software to be identified belongs can be determined based on the target vocabulary in a variety of ways. For example, based on the target vocabulary, deep learning technology can be used to determine the industry field to which the application software to be identified belongs; or, based on the target vocabulary, the industry field to which the application software to be identified belongs can be determined by numerical calculation. The specific method of determining the industry field to which the application software to be identified belongs based on the target vocabulary is not limited in the embodiment of the present invention.
[0091] The embodiment of the present invention classifies the paragraphs in the privacy policy text of the application software to be identified, determines the paragraphs of the target type in the above privacy policy text as the target paragraphs according to the paragraph classification results, and extracts the target vocabulary in the above target paragraphs. Then, based on the above target vocabulary, the industry field to which the application software to be identified belongs is determined, thereby improving the parsing efficiency and parsing accuracy of the privacy policy text of the application software to be identified, and can more accurately and efficiently identify the industry field to which the application software to be identified belongs based on the privacy policy text of the application software to be identified, thereby improving user perception.
[0092] Based on the contents of the above embodiments, the paragraphs in the privacy policy text are classified, including: inputting the privacy policy text into a paragraph classification model, and obtaining a paragraph classification result of the privacy policy text output by the paragraph classification model;
[0093] Among them, the paragraph classification model is obtained after training with the sample privacy policy text of the sample application software as the sample and the paragraph classification result of the sample privacy policy text as the sample label; the paragraph classification model is used to extract the semantic features of the privacy policy text, and then obtain the paragraph classification result of the privacy policy text based on the semantic features of the privacy policy text.
[0094] It should be noted that the paragraph classification results of the sample privacy policy text of the sample application software may include the type of each paragraph in the above sample privacy policy text. The paragraph classification results of the sample privacy policy text may be pre-labeled.
[0095] Specifically, after the privacy policy text of the application to be identified is input into the paragraph classification model, the paragraph classification model can use deep learning technology to obtain and output the paragraph classification results of the above privacy policy text based on the semantic features of the above privacy policy text and the position information of the paragraphs in the above privacy policy text.
[0096] Optionally, the paragraph classification model includes: a semantic feature extraction unit and a paragraph classification unit.
[0097] Inputting the privacy policy text into a paragraph classification model, and obtaining a paragraph classification result of the privacy policy text output by the paragraph classification model, including: inputting the privacy policy text into a semantic feature extraction unit, and obtaining a word vector matrix corresponding to the privacy policy text output by the semantic feature extraction unit.
[0098] It should be noted that the BERT (Bidirectional Encoder Representation from Transformers) model is a pre-trained model that can provide powerful language representation and feature extraction capabilities based on the Transformer mechanism and the Attention mechanism. When training the BERT model, there is no need to annotate the sample data in advance, and better training results can be obtained based on less sample data.
[0099] Optionally, the semantic feature extraction unit in the embodiment of the present invention is constructed based on the BERT model.
[0100] It should be noted that the above semantic feature extraction unit has been pre-trained.
[0101] Optionally, in an embodiment of the present invention, a semantic feature extraction unit can be constructed based on the BERT-Base model. The number of Transformer blocks in the semantic feature extraction unit can be 12 layers, the number of hidden units can be 768, and the number of multi-head attention heads can be 12.
[0102] Specifically, after the privacy policy text of the application to be identified is input into the semantic feature extraction unit, the semantic feature extraction unit can perform semantic feature extraction on the privacy policy text, and then obtain and output the word vector matrix h corresponding to the privacy policy text.
[0103] The word vector matrix corresponding to the privacy policy text is input into the paragraph classification unit to obtain the paragraph classification result of the privacy policy text output by the paragraph classification unit.
[0104] After obtaining the word vector matrix h corresponding to the privacy policy text of the application software to be identified, h can be input into the paragraph classification unit.
[0105] The paragraph classification unit can perform softmax calculation based on h to obtain the probability P of the above paragraph being each preset type cls (y|X), the specific calculation formula is as follows:
[0106] P clS (y|X)=Softmax(W 2 ×h+b 1 )
[0107] Where y represents probability; X represents the preset type; W 2 represents the parameter matrix; b 1 Represents the parameter vector, with dimension 13.
[0108] It should be noted that the above-mentioned preset types may include "business functions and information collection" and "others"; or, the above-mentioned preset types may include "business functions and information collection" and "information sharing", "transfer", "public disclosure", "information protection", "information storage", "user rights", "cookies technology", "information collection-exceptions for obtaining authorization and consent", "information sharing-exceptions for obtaining authorization and consent", "withdrawal of consent authorization", "minor protection", "privacy policy update", "complaint feedback mechanism" and at least one of "irrelevant text".
[0109] After determining the probability that a paragraph in the privacy policy text of the application software to be identified is of each preset type, the preset type with the highest probability may be determined as the type of the above paragraph.
[0110] The paragraph classification module in the embodiment of the present invention can more accurately and efficiently classify the paragraphs in the privacy policy text of the application software to be identified based on the text features and business function features of the privacy policy text of the application software to be identified, and thus can more accurately and efficiently parse the privacy policy text.
[0111] Based on the contents of the above embodiments, the target vocabulary in the target paragraph is extracted, including: preprocessing the target paragraph and obtaining the preprocessed target paragraph.
[0112] Among them, preprocessing includes removing stop words.
[0113] Specifically, after determining the target paragraph in the privacy policy text of the application software to be identified, the target paragraph may be preprocessed to remove stop words in the target paragraph, so as to obtain the preprocessed target paragraph.
[0114] Perform word segmentation on the preprocessed target paragraph to obtain the original vocabulary set corresponding to the target paragraph.
[0115] It should be noted that the Jieba word segmentation tool is a Python Chinese word segmentation component that can construct a prefix dictionary based on a statistical dictionary, and then use the prefix dictionary to segment the input sentence to obtain all segmentation possibilities. According to the segmentation position, a directed acyclic graph (DAG) is constructed. Through the dynamic programming algorithm, the maximum probability path is calculated, and the final segmentation form is obtained.
[0116] Specifically, after obtaining the preprocessed target paragraph, in the embodiment of the present invention, the Jieba word segmentation tool can be used to segment the preprocessed target paragraph to obtain the original vocabulary set corresponding to the target paragraph.
[0117] Based on the preset vocabulary set, the target vocabulary is extracted from the original vocabulary set corresponding to the target paragraph.
[0118] Specifically, after obtaining the original vocabulary set corresponding to the target paragraph, the target vocabulary may be extracted from the original vocabulary set based on a preset vocabulary set.
[0119] Optionally, if any word in the original vocabulary set is the same as or matches any word in the preset vocabulary set, the word may be determined as the target word.
[0120] It should be noted that the preset vocabulary set is related to the business function information, and accordingly, the target vocabulary is related to the business function information. The preset vocabulary set may be predetermined based on prior knowledge and / or actual conditions. The preset vocabulary set is not specifically limited in the embodiments of the present invention.
[0121] The embodiment of the present invention performs preprocessing such as removing stop words on a target paragraph in the privacy policy text of the application software to be identified, obtains the preprocessed target paragraph, then performs word segmentation processing on the preprocessed target paragraph to obtain an original vocabulary set corresponding to the target paragraph, and extracts target vocabulary from the original vocabulary set based on a preset vocabulary set, thereby being able to more accurately and efficiently extract the target vocabulary in the target paragraph.
[0122] Based on the contents of the above embodiments and based on the target words in the target paragraph, the industry field to which the application software to be identified belongs is determined, including: inputting the target paragraph, the target words in the target paragraph, and the text name of the privacy policy text into the first classification model, and obtaining the industry field to which the application software to be identified belongs output by the first classification model.
[0123] Among them, the first classification model is obtained after training with sample paragraphs, sample words extracted from the sample paragraphs and the text name of the sample privacy policy text as samples, and the industry field to which the sample application software belongs as sample labels; the sample privacy policy text is the privacy policy text of the sample application software; and the sample paragraph is a paragraph of the target type in the sample privacy policy text.
[0124] It should be noted that based on the records of the above embodiments, sample paragraphs can be determined in the sample privacy policy text of the sample application software, and sample words in the sample paragraphs can also be extracted based on the records of the above embodiments.
[0125] It should be noted that the industry field to which the sample application software belongs may be pre-labeled based on prior knowledge and / or actual conditions.
[0126] Specifically, the first classification model is trained with sample paragraphs, sample words in the sample paragraphs, and the text name of the sample privacy policy text as samples, and the industry field to which the sample application software belongs as sample labels, so as to obtain a trained first classification model.
[0127] After extracting the target vocabulary in the target paragraph, the target paragraph, the target vocabulary and the text name of the privacy policy text of the application software to be identified can be input into the trained first classification model.
[0128] The above privacy policy text includes the text name of the above privacy policy. The text name of the above privacy policy can be "A map privacy policy text", "B video privacy policy text" or "C Changba privacy policy text".
[0129] The trained first classification model can obtain and output the industry field to which the application software to be identified belongs based on the target paragraph, the target vocabulary and the text name of the privacy policy text of the application software to be identified.
[0130] As an optional embodiment, the first classification model includes: a first feature extraction unit, a vocabulary encoding unit, a second feature extraction unit, a first vector concatenation unit and a first result output unit.
[0131] Inputting a target paragraph, target words in the target paragraph, and the text name of the privacy policy text into a first classification model, and obtaining the industry field to which the application software to be identified belongs output by the first classification model, including: inputting the target paragraph into a first feature extraction unit, and having the first feature extraction unit extract semantic features from the target paragraph, and then obtaining a first embedding vector corresponding to the target paragraph output by the first feature extraction unit.
[0132] Specifically, the first feature extraction unit in the embodiment of the present invention can be constructed based on the BERT model.
[0133] It should be noted that the above-mentioned first feature extraction unit has been pre-trained.
[0134] After the target paragraph is input into the first feature extraction unit, the first feature extraction unit may perform semantic feature extraction on the target paragraph, and obtain a semantic feature vector of the target paragraph as a first embedding vector corresponding to the target paragraph, thereby outputting the first embedding vector.
[0135] The target vocabulary in the target paragraph is input into the vocabulary encoding unit, and the vocabulary encoding unit encodes the target vocabulary in the target paragraph, thereby obtaining a second embedding vector corresponding to the target paragraph output by the vocabulary encoding unit.
[0136] Specifically, after the target vocabulary in the target paragraph is input into the vocabulary encoding unit, the vocabulary encoding unit may obtain and output the second embedding vector corresponding to the target paragraph by encoding the target vocabulary.
[0137] The text name of the privacy policy text is input into the second feature extraction unit, and the second feature extraction unit performs feature extraction on the text name of the privacy policy text, thereby obtaining a third embedding vector corresponding to the target paragraph output by the second feature extraction unit.
[0138] Specifically, after the text name of the privacy policy text of the application software to be identified is input into the second feature extraction unit, the second feature extraction unit can preprocess the above text name, remove stop words and preset words in the above text name, and obtain the preprocessed text name.
[0139] It should be noted that the above-mentioned preset words can be determined based on prior knowledge and / or actual conditions, and the above-mentioned preset words may include but are not limited to "APP", "application software", "privacy policy" and "text".
[0140] After obtaining the preprocessed text name, the second feature extraction unit may perform word segmentation processing on the preprocessed text name to obtain the text name after word segmentation processing.
[0141] It should be noted that the Word2vec model is a group of related models used to generate word vectors. These models are shallow, two-layer neural networks that are trained to reconstruct linguistic word texts. The network is represented by words and needs to guess the input words in adjacent positions. Under the word bag model assumption in word2vec, the order of words is not important. After training, the word2vec model can be used to map each word to a vector, which can be used to represent the relationship between words.
[0142] The second feature extraction unit in the embodiment of the present invention can be constructed based on the word2vec model, and the second feature extraction unit has been pre-trained.
[0143] After the second feature extraction unit obtains the text name after word segmentation processing, it can perform feature extraction on the text name after word segmentation processing, obtain the semantic features of the text name after word segmentation processing as the third embedding vector corresponding to the target paragraph, and then output the third embedding vector.
[0144] The first embedding vector, the second embedding vector and the third embedding vector are output to a first vector concatenation unit, which concatenates the first embedding vector, the second embedding vector and the third embedding vector to obtain a first feature representation vector corresponding to the target paragraph output by the first vector concatenation unit.
[0145] Specifically, after obtaining the first embedding vector, the second embedding vector, and the third embedding vector corresponding to the target paragraph, the first embedding vector, the second embedding vector, and the third embedding vector may be input into the first vector concatenation unit.
[0146] The first vector concatenation unit may concatenate the first embedding vector, the second embedding vector and the third embedding vector, and then output the concatenated vector as a first feature representation vector corresponding to the target paragraph.
[0147] The first feature representation vector is input into the first result output unit to obtain the industry field to which the application software to be identified belongs output by the first result output unit.
[0148] Specifically, after obtaining the first feature representation vector corresponding to the target paragraph, the first feature representation vector may be input into the first result output unit.
[0149] The first result output unit can perform softmax calculation based on the above-mentioned first feature representation vector, so as to determine and output the industry field to which the application to be identified belongs based on the calculation result.
[0150] Optionally, the first result output unit may perform a softmax calculation based on the first feature representation vector, thereby obtaining the probability that the application software to be identified belongs to each preset industry field.
[0151] It should be noted that the above-mentioned preset industry fields may include "e-commerce", "social media", "catering", "automobile", "finance", "mobile payment", "travel", "communication", "insurance", "medical care", "sports", "real estate" and "media".
[0152] After obtaining the probability that the application software to be identified belongs to each preset industry field, the first result output unit may determine the preset industry field with the highest probability as the industry field to which the application software to be identified belongs.
[0153] The first classification model in the embodiment of the present invention can obtain the first embedding vector, the second embedding vector and the third embedding vector corresponding to the target paragraph by performing semantic feature extraction on the target paragraph, encoding the target vocabulary in the target paragraph, and performing semantic feature extraction on the text name of the privacy policy text to be identified, and then determine the probability that the application software to be identified belongs to each preset industry field based on the above-mentioned first embedding vector, the above-mentioned second embedding vector and the above-mentioned third embedding vector, so as to more accurately and efficiently determine the industry field to which the application software to be identified belongs.
[0154] As an optional embodiment, the first classification model includes: a word and sentence splicing unit, a third feature extraction unit, a fourth feature extraction unit, a second vector splicing unit and a second result output unit.
[0155] Inputting the target paragraph, the target vocabulary in the target paragraph and the text name of the privacy policy text into the first classification model to obtain the industry field to which the application software to be identified belongs output by the first classification model, including: inputting the target paragraph and the target vocabulary in the target paragraph into a word and sentence splicing unit, and the word and sentence splicing unit splices the sentences in the target paragraph with the target vocabulary in the sentences, thereby obtaining the word and sentence splicing result of the sentence.
[0156] Specifically, after the target paragraph and the target vocabulary in the target paragraph are input into the word and sentence splicing unit, the word and sentence splicing unit can splice each sentence in the target paragraph with the target vocabulary contained in each of the above sentences using [sep], and then obtain and output the word and sentence splicing result of each sentence in the target paragraph.
[0157] It should be noted that, in the embodiment of the present invention, a period is used as a sentence separator.
[0158] The word and sentence concatenation result of the sentence is input into the third feature extraction unit. The third feature extraction unit obtains the sequence corresponding to the sentence based on the word and sentence concatenation result of the sentence, and then obtains the fourth embedding vector corresponding to the target paragraph output by the third feature extraction unit based on the sequences corresponding to all sentences in the target paragraph.
[0159] Specifically, the third feature extraction unit in the embodiment of the present invention is constructed based on the BERT model.
[0160] It should be noted that the third feature extraction unit has been pre-trained.
[0161] After the word and sentence concatenation results of each sentence in the target paragraph are input into the third feature extraction unit, the third feature extraction unit may perform feature extraction on the word and sentence concatenation results of each sentence to obtain a sequence [CLS1, CLS2, ...] corresponding to each sentence.
[0162] After the third feature extraction unit obtains the sequence corresponding to each sentence in the target paragraph, the sequences corresponding to all the sentences in the target paragraph can be added, and the vector obtained by the addition can be used as the fourth embedding vector corresponding to the target paragraph, and then the fourth embedding vector can be output.
[0163] The text name of the privacy policy text is output to the fourth feature extraction unit, and the fourth feature extraction unit performs feature extraction on the text name of the privacy policy text, thereby obtaining a fifth embedding vector corresponding to the target paragraph output by the fourth feature extraction unit.
[0164] Specifically, after the text name of the privacy policy text of the application software to be identified is input into the fourth feature extraction unit, the fourth feature extraction unit can preprocess the above text name, remove stop words and preset words in the above text name, and obtain the preprocessed text name.
[0165] It should be noted that the above-mentioned preset words can be determined based on prior knowledge and / or actual conditions, and the above-mentioned preset words may include but are not limited to "APP", "application software", "privacy policy" and "text".
[0166] After obtaining the preprocessed text name, the fourth feature extraction unit may perform word segmentation processing on the preprocessed text name to obtain the text name after word segmentation processing.
[0167] It should be noted that the fourth feature extraction unit in the embodiment of the present invention can be constructed based on the word2vec model, and the fourth feature extraction unit has been pre-trained.
[0168] After the fourth feature extraction unit obtains the text name after word segmentation processing, it can perform feature extraction on the text name after word segmentation processing, obtain the semantic features of the text name after word segmentation processing as the fifth embedding vector corresponding to the target paragraph, and then output the fifth embedding vector.
[0169] The fourth embedding vector and the fifth embedding vector are output to a second vector concatenation unit, and the second vector concatenation unit concatenates the fourth embedding vector and the fifth embedding vector to obtain a second feature representation vector corresponding to the target paragraph output by the second vector concatenation unit.
[0170] Specifically, after obtaining the fourth embedding vector and the fifth embedding vector corresponding to the target paragraph, the fourth embedding vector and the fifth embedding vector may be input into the second vector concatenation unit.
[0171] The second vector concatenation unit may concatenate the fourth embedding vector and the fifth embedding vector, and then output the concatenated vector as a second feature representation vector corresponding to the target paragraph.
[0172] The second feature representation vector is input into the second result output unit to obtain the industry field to which the application software to be identified belongs output by the second result output unit.
[0173] Specifically, after obtaining the second feature representation vector corresponding to the target paragraph, the second feature representation vector may be input into the second result output unit.
[0174] The second result output unit can perform softmax calculation based on the above-mentioned second feature representation vector, so as to determine and output the industry field to which the application to be identified belongs based on the calculation result.
[0175] The first classification model in the embodiment of the present invention obtains the fourth embedding vector corresponding to the target paragraph by concatenating the sentences in the target paragraph and the target words in the above sentences, obtains the fifth embedding vector corresponding to the target paragraph by performing semantic feature extraction on the text name of the privacy policy text to be identified, and then determines the probability that the application software to be identified belongs to each preset industry field based on the above fourth embedding vector and the above fifth embedding vector, so as to more accurately and efficiently determine the industry field to which the application software to be identified belongs.
[0176] As an optional embodiment, based on the target vocabulary in the target paragraph, determining the industry field to which the application software to be identified belongs includes: inputting the target vocabulary into the second classification model, and obtaining the probability of the application software to be identified belonging to each preset industry field output by the second classification model.
[0177] Among them, the second classification model is built based on a support vector machine, which is obtained after training with sample vocabulary as samples and the industry field to which the sample application software belongs as sample labels; the sample vocabulary is extracted from the sample paragraphs; the sample paragraphs are paragraphs of the target type in the sample privacy policy text of the sample application software.
[0178] It should be noted that Support Vector Machine (SVM) is a generalized linear classifier that performs binary classification of data in a supervised learning manner, and its decision boundary is the maximum-margin hyperplane solved for the learning sample. SVM uses the hinge loss function to calculate the empirical risk, and adds a regularization term to the solution system to optimize the structural risk. It is a classifier with sparsity and robustness, and is one of the common kernel learning methods.
[0179] Specifically, in the embodiment of the present invention, a second classification model is constructed based on SVM, and the second classification model constructed based on SVM is trained based on the probability of the sample vocabulary and the industry field to which the sample application software belongs, so as to obtain a trained second classification model.
[0180] In the process of training the second classification model constructed based on the support vector machine, the sample vocabulary can be first converted into digitized text based on a preset vocabulary sequence, and then the second classification model can be trained based on the digitized text.
[0181] For example, when the sample vocabulary includes "positioning", "search", "travel" and "group buying", and the above preset vocabulary sequence is ["positioning", "search", "travel", "group buying", "takeout reservation", "hotel and travel reservation", "travel car", "shared bicycle", "ticketing", "remittance"], based on the above preset vocabulary sequence, the sample vocabulary can be converted into one-hot encoding according to whether the sample vocabulary appears and assigned a value of 1 or 0, that is, the sample vocabulary "positioning" = [1,0,0,0,0,0,0,0,0,0]; the sample vocabulary "search" = [0,1,0,0,0,0,0,0,0,0,0]; the sample vocabulary "travel" = [0,0,1,0,0,0,0,0,0,0,0]; the sample vocabulary "group buying" = [0,0,0,1,0,0,0,0,0,0,0].
[0182] It should be noted that the above-mentioned preset word sequence can be predetermined according to prior knowledge and / or actual conditions. In the embodiment of the present invention, the above-mentioned preset word sequence is not specifically limited.
[0183] After extracting the target vocabulary in the target paragraph, the target vocabulary may be input into the trained second classification model.
[0184] The trained second classification model can obtain and output the probability of the industry field to which the application software to be identified belongs based on the target vocabulary.
[0185] The embodiment of the present invention inputs the target vocabulary in the target paragraph into the second classification model constructed based on the support vector machine, and obtains the industry field to which the application software to be identified belongs output by the above second classification model. Based on the target vocabulary in the target paragraph, the industry field to which the application software to be identified belongs can be determined more accurately and efficiently.
[0186] Figure 2 This is a schematic diagram of the structure of the industry field identification device provided by the present invention. Figure 2The industry field identification device provided by the present invention is described. The industry field identification device described below and the industry field identification method provided by the present invention described above can be referred to each other. Figure 2 As shown, there are a text acquisition module 201, a paragraph classification module 202, a vocabulary extraction module 203, and a domain identification module 204.
[0187] A text acquisition module 201 is used to acquire the privacy policy text of the application software to be identified;
[0188] A paragraph classification module 202 is used to classify paragraphs in the privacy policy text, and determine a paragraph of a target type in the privacy policy text as a target paragraph according to the paragraph classification result;
[0189] A vocabulary extraction module 203 is used to extract target vocabulary in the target paragraph;
[0190] The field identification module 204 is used to determine the industry field to which the application software to be identified belongs based on the target words in the target paragraph.
[0191] Specifically, the text acquisition module 201, the paragraph classification module 202, the vocabulary extraction module 203, and the domain identification module 204 are electrically connected.
[0192] Optionally, the paragraph classification module 202 can be specifically used to input the privacy policy text into a paragraph classification model to obtain a paragraph classification result of the privacy policy text output by the paragraph classification model; wherein the paragraph classification model is obtained after training with a sample privacy policy text of a sample application software as a sample and a paragraph classification result of the sample privacy policy text as a sample label; the paragraph classification model is used to obtain a paragraph classification result of the privacy policy text based on the semantic features of the privacy policy text and the position information of the paragraph in the privacy policy text.
[0193] Optionally, the domain identification module 204 can be specifically used to input the target paragraph, the target vocabulary in the target paragraph, and the text name of the privacy policy text into the first classification model to obtain the industry field to which the application software to be identified belongs output by the first classification model; wherein the first classification model is obtained after training with sample paragraphs, sample vocabulary extracted from the sample paragraphs, and the text name of the sample privacy policy text as samples, and with the industry field to which the sample application software belongs as sample labels; the sample privacy policy text is the privacy policy text of the sample application software; and the sample paragraph is a paragraph of the target type in the sample privacy policy text.
[0194] The domain identification module 204 can also be specifically used to input the target vocabulary in the target paragraph into the second classification model to obtain the industry field to which the application software to be identified belongs output by the second classification model; wherein the second classification model is constructed based on a support vector machine, and is obtained after training with sample vocabulary as samples and the industry field to which the sample application software belongs as sample labels; the sample vocabulary is extracted from the sample paragraph; the sample paragraph is a paragraph of the target type in the sample privacy policy text of the sample application software.
[0195] Optionally, the vocabulary extraction module 203 can be specifically used to preprocess the target paragraph to obtain the preprocessed target paragraph; perform word segmentation on the preprocessed target paragraph to obtain the original vocabulary set corresponding to the target paragraph; based on the preset vocabulary set, extract the target vocabulary from the original vocabulary set corresponding to the target paragraph; wherein the preprocessing includes removing stop words.
[0196] The industry field identification device in the embodiment of the present invention can improve the parsing efficiency and parsing accuracy of the privacy policy text of the application software to be identified, can more accurately and efficiently identify the industry field to which the application software to be identified belongs based on the privacy policy text of the application software to be identified, and can improve user perception.
[0197] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the industry field identification method, which includes: obtaining the privacy policy text of the application software to be identified; classifying the paragraphs in the privacy policy text, and determining the target type paragraphs in the privacy policy text as target paragraphs according to the paragraph classification results; extracting the target vocabulary in the target paragraph; and determining the industry field to which the application software to be identified belongs based on the target vocabulary in the target paragraph.
[0198] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0199] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the industry field identification method provided by the above methods, which includes: obtaining the privacy policy text of the application software to be identified; classifying the paragraphs in the privacy policy text, and determining the target type of paragraphs in the privacy policy text as target paragraphs based on the paragraph classification results; extracting target vocabulary in the target paragraph; and determining the industry field to which the application software to be identified belongs based on the target vocabulary in the target paragraph.
[0200] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the industry field identification method provided by the above-mentioned methods, the method comprising: obtaining the privacy policy text of the application software to be identified; classifying the paragraphs in the privacy policy text, and determining the paragraphs of the target type in the privacy policy text as the target paragraphs according to the paragraph classification results; extracting the target vocabulary in the target paragraph; and determining the industry field to which the application software to be identified belongs based on the target vocabulary in the target paragraph.
[0201] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0202] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0203] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for identifying industry fields, It is characterized in that include: Obtain the privacy policy text of the application to be identified; Classifying the paragraphs in the privacy policy text, and determining the paragraphs of the target type in the privacy policy text as the target paragraphs according to the paragraph classification results; Extracting target vocabulary from the target paragraph; Based on the target words in the target paragraph, determining the industry field to which the application software to be identified belongs; The type of the paragraph is any one of business functions and information collection, information sharing, transfer, public disclosure, information protection, information storage, user rights, cookies technology, information collection-exceptions to obtaining authorization and consent, information sharing-exceptions to obtaining authorization and consent, authorization to withdraw consent, protection of minors, privacy policy updates, complaint feedback mechanism, and irrelevant text; the target type is business functions and information collection; The paragraphs in the privacy policy text are classified as follows: Inputting the privacy policy text into a paragraph classification model, and obtaining a paragraph classification result of the privacy policy text output by the paragraph classification model; The paragraph classification model is obtained after training with the sample privacy policy text of the sample application software as a sample and the paragraph classification result of the sample privacy policy text as a sample label; the paragraph classification model is used to extract semantic features from the privacy policy text and obtain the paragraph classification result of the privacy policy text based on the semantic features of the privacy policy text; The step of determining the industry field to which the application software to be identified belongs based on the target vocabulary in the target paragraph includes: Input the target paragraph, the target words in the target paragraph, and the text name of the privacy policy text into a first classification model, and obtain the industry field to which the application software to be identified belongs output by the first classification model; The first classification model is obtained after training with sample paragraphs, sample words extracted from the sample paragraphs and the text name of the sample privacy policy text as samples, and the industry field to which the sample application software belongs as sample labels; the sample privacy policy text is the privacy policy text of the sample application software; the sample paragraph is a paragraph of the target type in the sample privacy policy text; The first classification model includes: a first feature extraction unit, a vocabulary encoding unit, a second feature extraction unit, a first vector concatenation unit and a first result output unit; The step of inputting the target paragraph, the target vocabulary in the target paragraph, and the text name of the privacy policy text into a first classification model, and obtaining the industry field to which the application software to be identified belongs output by the first classification model includes: Inputting the target paragraph into the first feature extraction unit, and having the first feature extraction unit extract semantic features corresponding to the target paragraph, thereby obtaining a first embedding vector corresponding to the target paragraph output by the first feature extraction unit; Inputting a target word in the target paragraph into the vocabulary encoding unit, and encoding the target word in the target paragraph by the vocabulary encoding unit, thereby obtaining a second embedding vector corresponding to the target paragraph output by the vocabulary encoding unit; Inputting the text name of the privacy policy text into the second feature extraction unit, and having the second feature extraction unit perform feature extraction on the text name of the privacy policy text, thereby obtaining a third embedding vector corresponding to the target paragraph output by the second feature extraction unit; Outputting the first embedding vector, the second embedding vector and the third embedding vector to the first vector concatenation unit, and concatenating the first embedding vector, the second embedding vector and the third embedding vector by the first vector concatenation unit, thereby obtaining a first feature representation vector corresponding to the target paragraph output by the first vector concatenation unit; Inputting the first feature representation vector into the first result output unit, and obtaining the industry field to which the application software to be identified belongs output by the first result output unit; Alternatively, the first classification model includes: a word and sentence splicing unit, a third feature extraction unit, a fourth feature extraction unit, a second vector splicing unit, and a second result output unit; The step of inputting the target paragraph, the target vocabulary in the target paragraph, and the text name of the privacy policy text into a first classification model, and obtaining the industry field to which the application software to be identified belongs output by the first classification model includes: Inputting the target paragraph and the target vocabulary in the target paragraph into the word-sentence splicing unit, and the word-sentence splicing unit splices the sentences in the target paragraph and the target vocabulary in the sentences, thereby obtaining the word-sentence splicing result of the sentences; Inputting the word and sentence concatenation result of the sentence into the third feature extraction unit, the third feature extraction unit obtains a sequence corresponding to the sentence based on the word and sentence concatenation result of the sentence, and then obtains a fourth embedding vector corresponding to the target paragraph output by the third feature extraction unit based on the sequences corresponding to all sentences in the target paragraph; Outputting the text name of the privacy policy text to the fourth feature extraction unit, and having the fourth feature extraction unit perform feature extraction on the text name of the privacy policy text, thereby obtaining a fifth embedding vector corresponding to the target paragraph output by the fourth feature extraction unit; Outputting the fourth embedding vector and the fifth embedding vector to the second vector concatenation unit, and concatenating the fourth embedding vector and the fifth embedding vector by the second vector concatenation unit, thereby obtaining a second feature representation vector corresponding to the target paragraph output by the second vector concatenation unit; The second feature representation vector is input into the second result output unit to obtain the industry field to which the application software to be identified belongs output by the second result output unit.
2. The industry field identification method according to claim 1, It is characterized in that The step of determining the industry field to which the application software to be identified belongs based on the target vocabulary in the target paragraph includes: Inputting the target vocabulary in the target paragraph into a second classification model, and obtaining the industry field to which the application software to be identified belongs output by the second classification model; Among them, the second classification model is built based on a support vector machine, and is obtained after training with sample vocabulary as samples and the industry field to which the sample application software belongs as sample labels; the sample vocabulary is extracted from sample paragraphs; the sample paragraphs are paragraphs of the target type in the sample privacy policy text of the sample application software.
3. The industry field identification method according to claim 1, It is characterized in that The paragraph classification model includes: a semantic feature extraction unit and a paragraph classification unit; The step of inputting the privacy policy text into a paragraph classification model and obtaining a paragraph classification result of the privacy policy text output by the paragraph classification model includes: Inputting the privacy policy text into the semantic feature extraction unit, and obtaining a word vector matrix corresponding to the privacy policy text output by the semantic feature extraction unit; The word vector matrix corresponding to the privacy policy text is input into the paragraph classification unit to obtain the paragraph classification result of the privacy policy text output by the paragraph classification unit.
4. The industry field identification method according to claim 1, It is characterized in that The extracting the target vocabulary in the target paragraph includes: Preprocessing the target paragraph to obtain the preprocessed target paragraph; Performing word segmentation processing on the preprocessed target paragraph to obtain an original vocabulary set corresponding to the target paragraph; Based on a preset vocabulary set, extracting target vocabulary from an original vocabulary set corresponding to the target paragraph; Wherein, the preprocessing includes removing stop words.
5. An industry field identification device, It is characterized in that include: A text acquisition module, used to acquire the privacy policy text of the application software to be identified; A paragraph classification module, used to classify paragraphs in the privacy policy text, and determine the paragraphs of the target type in the privacy policy text as target paragraphs according to the paragraph classification results; A vocabulary extraction module, used to extract target vocabulary in the target paragraph; A field identification module, used to determine the industry field to which the application software to be identified belongs based on the target vocabulary in the target paragraph; The type of the paragraph is any one of business functions and information collection, information sharing, transfer, public disclosure, information protection, information storage, user rights, cookies technology, information collection-exceptions to obtaining authorization and consent, information sharing-exceptions to obtaining authorization and consent, authorization to withdraw consent, protection of minors, privacy policy updates, complaint feedback mechanism, and irrelevant text; the target type is business functions and information collection; The paragraph classification module classifies paragraphs in the privacy policy text, including: Inputting the privacy policy text into a paragraph classification model, and obtaining a paragraph classification result of the privacy policy text output by the paragraph classification model; The paragraph classification model is obtained after training with the sample privacy policy text of the sample application software as a sample and the paragraph classification result of the sample privacy policy text as a sample label; the paragraph classification model is used to extract semantic features from the privacy policy text and obtain the paragraph classification result of the privacy policy text based on the semantic features of the privacy policy text; The field identification module determines the industry field to which the application software to be identified belongs based on the target vocabulary in the target paragraph, including: Input the target paragraph, the target words in the target paragraph, and the text name of the privacy policy text into a first classification model, and obtain the industry field to which the application software to be identified belongs output by the first classification model; The first classification model is obtained after training with sample paragraphs, sample words extracted from the sample paragraphs and the text name of the sample privacy policy text as samples, and the industry field to which the sample application software belongs as sample labels; the sample privacy policy text is the privacy policy text of the sample application software; the sample paragraph is a paragraph of the target type in the sample privacy policy text; Alternatively, the first classification model includes: a first feature extraction unit, a vocabulary encoding unit, a second feature extraction unit, a first vector concatenation unit and a first result output unit; The step of inputting the target paragraph, the target vocabulary in the target paragraph, and the text name of the privacy policy text into a first classification model, and obtaining the industry field to which the application software to be identified belongs output by the first classification model includes: Inputting the target paragraph into the first feature extraction unit, and having the first feature extraction unit extract semantic features corresponding to the target paragraph, thereby obtaining a first embedding vector corresponding to the target paragraph output by the first feature extraction unit; Inputting a target word in the target paragraph into the vocabulary encoding unit, and encoding the target word in the target paragraph by the vocabulary encoding unit, thereby obtaining a second embedding vector corresponding to the target paragraph output by the vocabulary encoding unit; Inputting the text name of the privacy policy text into the second feature extraction unit, and having the second feature extraction unit perform feature extraction on the text name of the privacy policy text, thereby obtaining a third embedding vector corresponding to the target paragraph output by the second feature extraction unit; Outputting the first embedding vector, the second embedding vector and the third embedding vector to the first vector concatenation unit, and concatenating the first embedding vector, the second embedding vector and the third embedding vector by the first vector concatenation unit, thereby obtaining a first feature representation vector corresponding to the target paragraph output by the first vector concatenation unit; Inputting the first feature representation vector into the first result output unit, and obtaining the industry field to which the application software to be identified belongs output by the first result output unit; The first classification model includes: a word and sentence splicing unit, a third feature extraction unit, a fourth feature extraction unit, a second vector splicing unit and a second result output unit; The step of inputting the target paragraph, the target vocabulary in the target paragraph, and the text name of the privacy policy text into a first classification model, and obtaining the industry field to which the application software to be identified belongs output by the first classification model includes: Inputting the target paragraph and the target vocabulary in the target paragraph into the word-sentence splicing unit, and the word-sentence splicing unit splices the sentences in the target paragraph and the target vocabulary in the sentences, thereby obtaining the word-sentence splicing result of the sentences; Inputting the word and sentence concatenation result of the sentence into the third feature extraction unit, the third feature extraction unit obtains a sequence corresponding to the sentence based on the word and sentence concatenation result of the sentence, and then obtains a fourth embedding vector corresponding to the target paragraph output by the third feature extraction unit based on the sequences corresponding to all sentences in the target paragraph; Outputting the text name of the privacy policy text to the fourth feature extraction unit, and having the fourth feature extraction unit perform feature extraction on the text name of the privacy policy text, thereby obtaining a fifth embedding vector corresponding to the target paragraph output by the fourth feature extraction unit; Outputting the fourth embedding vector and the fifth embedding vector to the second vector concatenation unit, and concatenating the fourth embedding vector and the fifth embedding vector by the second vector concatenation unit, thereby obtaining a second feature representation vector corresponding to the target paragraph output by the second vector concatenation unit; The second feature representation vector is input into the second result output unit to obtain the industry field to which the application software to be identified belongs output by the second result output unit.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, it implements the industry field identification method as described in any one of claims 1 to 4.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the industry field identification method as described in any one of claims 1 to 4 is implemented.
