WO2021169499A1 - Network bad data monitoring method, apparatus and system, and storage medium - Google Patents

Network bad data monitoring method, apparatus and system, and storage medium Download PDF

Info

Publication number
WO2021169499A1
WO2021169499A1 PCT/CN2020/136403 CN2020136403W WO2021169499A1 WO 2021169499 A1 WO2021169499 A1 WO 2021169499A1 CN 2020136403 W CN2020136403 W CN 2020136403W WO 2021169499 A1 WO2021169499 A1 WO 2021169499A1
Authority
WO
WIPO (PCT)
Prior art keywords
bad
word
words
vocabulary
preset
Prior art date
Application number
PCT/CN2020/136403
Other languages
French (fr)
Chinese (zh)
Inventor
张国辉
钱柏丞
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021169499A1 publication Critical patent/WO2021169499A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Machine Translation (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A network bad data monitoring method and apparatus, and a computer readable storage medium. The method comprises: performing word segmentation on a target text (S110); comparing words in a word segmentation set with a preset bad vocabulary comparison table, screening out bad words from the word segmentation set, and loading the bad words into a first bad vocabulary list (S120); by means of a word similarity calculation formula, calculating a mean similarity of each word to be selected, and loading the word to be selected the mean similarity of which is greater than a preset similarity threshold into the first bad vocabulary list (S130); screening out words that do not satisfy a preset bad word emotion tendency rule by using a sentiment analysis algorithm (S140); and screening out words that do not conform to a bad vocabulary sentence position structure by means of a word position structure method (S150). The method can more accurately discover unregistered bad vocabulary, and in comparison with the existing technology, the precision and accuracy of recorded bad vocabulary are higher.

Description

网络不良数据监控方法、装置、系统及存储介质Network bad data monitoring method, device, system and storage medium
本申请要求于2020年2月26日提交中国专利局、申请号为202010119614.7,发明名称为“网络不良数据监控方法、装置及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on February 26, 2020, the application number is 202010119614.7, and the invention title is "Network Bad Data Monitoring Method, Device, and Storage Medium", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请涉及大数据处理技术领域,尤其涉及一种网络不良数据监控方法、装置及计算机可读存储介质。This application relates to the technical field of big data processing, and in particular to a method, device and computer-readable storage medium for monitoring network bad data.
背景技术Background technique
随着互联网的迅猛发展,信息爆炸的时代早已来临。网络文本作为互联网信息传播的主要载体也得到了飞速的发展,网络语言日新月异,同时网络语言的低俗化日益严重,针对网络不良词汇的监控和发现面临极大的挑战。With the rapid development of the Internet, the era of information explosion has already arrived. As the main carrier of Internet information dissemination, Internet text has also been developed rapidly. Internet languages are changing with each passing day. At the same time, the vulgarization of Internet languages is becoming more and more serious. The monitoring and discovery of malicious Internet vocabulary is facing great challenges.
随着互联网的普遍,各种网络论坛、网络文章和网络媒体等不断出现,每天都有大量的文本产生,在网络上存在大量的不良词汇。发明人意识到,网络不良词汇监控的最大难点在于网络语言更新的速度较快、词汇变化多样,且无明显规律。很多检测模型不具有针对未登录词的自动识别功能,或者仅依赖简单的词语之间的相似性计算收集未登录词。这也导致了随着时间的发展,未被系统收录的未登录词越来越多,或者已经收录的未登录词的质量越来越差。这样就会导致现有的监控模型的精度下降,效果大打折扣,不能精准的发现未登录的不良词汇。With the popularity of the Internet, various online forums, online articles, and online media continue to appear, and a large number of texts are produced every day, and there are a large number of bad words on the Internet. The inventor realizes that the biggest difficulty in network bad vocabulary monitoring lies in the fast update speed of the network language, diversified vocabulary changes, and no obvious regularity. Many detection models do not have an automatic recognition function for unregistered words, or only rely on simple similarity calculations between words to collect unregistered words. This has also led to more and more unregistered words that have not been included in the system over time, or the quality of unregistered words that have been included is getting worse and worse. This will cause the accuracy of the existing monitoring model to decrease, the effect is greatly reduced, and the unregistered bad vocabulary cannot be accurately found.
发明内容Summary of the invention
基于上述现有技术中存在的问题,本申请提供一种网络不良数据监控方法、装置及计算机可读存储介质,其主要目的在于,通过对目标文本进行分词处理后将每个分词与预设的不良词汇对照表中的不良词汇进行比对,将相同的不良词语加载到第一不良词汇表,由于不良词汇对照表中的不良词汇有限,可能存在与不良词语相似的不良词存在,所以通过词语相似度计算公式对目标文本中的分词再次进行计算,将符合预设相似度阈值范围的词语加载到第一不良词汇表中,由于相似度计算发现的不良词并非是一定的,所以再通过情感分析算法和词语位置结构法对第一不良词汇表中非不良词进行筛除处理,最后输出第三不良词汇表。能够更加精准的发现未登录的不良词汇,与现有技术相比较,收录的不良词汇的精确度更高,提高了准确度。Based on the above-mentioned problems in the prior art, this application provides a method, device, and computer-readable storage medium for monitoring network bad data. The main purpose of the method is to divide each word with a preset The bad words in the bad vocabulary comparison table are compared, and the same bad words are loaded into the first bad vocabulary list. Because the bad words in the bad vocabulary comparison table are limited, there may be bad words similar to the bad words, so through the words The similarity calculation formula calculates the word segmentation in the target text again, and loads the words that meet the preset similarity threshold range into the first bad vocabulary. Since the bad words found by the similarity calculation are not certain, the emotions The analysis algorithm and word position structure method screen out the non-bad words in the first bad vocabulary, and finally output the third bad vocabulary. The unregistered bad vocabulary can be found more accurately. Compared with the prior art, the accuracy of the recorded bad vocabulary is higher and the accuracy is improved.
第一方面,为实现上述目的,本申请提供一种网络不良数据监控方法,该方法包括:In the first aspect, in order to achieve the above objective, this application provides a method for monitoring network bad data, which includes:
对目标文本进行分词处理,得到分词集合;Perform word segmentation processing on the target text to obtain a word segmentation set;
将所述分词集合中的词语与预设不良词汇对照表比对,从所述分词集合中筛选出不良词语,将所述不良词语加载到第一不良词汇表,将所述分词集合中筛选后的剩余词语作为待选词语;Compare the words in the word segmentation set with a preset bad vocabulary comparison table, filter out bad words from the word segmentation set, load the bad words into the first bad vocabulary list, and filter out the word segmentation set The remaining words of as candidates for selection;
通过词语相似度计算公式,计算出每个所述待选词语与预设不良词汇对照表中词语的相似度均值,将所述相似度均值大于预设相似度阈值的待选词语加载到所述第一不良词汇表;Through the word similarity calculation formula, calculate the average similarity of each candidate word and the words in the preset bad vocabulary comparison table, and load the candidate words with the average similarity greater than the preset similarity threshold to the The first bad vocabulary list;
通过情感分析算法,从所述第一不良词汇表中筛除不满足预设不良词情感趋向规则的词语,得到第二不良词汇表;Through the sentiment analysis algorithm, the words that do not meet the preset sentiment trend rule of the bad words are screened out from the first bad vocabulary to obtain the second bad vocabulary;
通过词语位置结构法,从所述第二不良词汇表中筛除不符合不良词汇语句位置结构的词语,得到第三不良词汇表并输出。Through the word position structure method, words that do not conform to the position structure of the bad vocabulary sentence are screened out from the second bad vocabulary list, and the third bad vocabulary list is obtained and output.
第二方面,为实现上述目的,本申请还提供一种电子装置,该电子装置包括:存储器、 处理器,所述存储器中存储有网络不良数据监控程序,所述网络不良数据监控程序被所述处理器执行时实现如下步骤:In a second aspect, in order to achieve the above object, the present application also provides an electronic device, the electronic device comprising: a memory, a processor, and a network bad data monitoring program is stored in the memory, and the network bad data monitoring program is When the processor executes, the following steps are implemented:
对目标文本进行分词处理,得到分词集合;Perform word segmentation processing on the target text to obtain a word segmentation set;
将所述分词集合中的词语与预设不良词汇对照表比对,从所述分词集合中筛选出不良词语,将所述不良词语加载到第一不良词汇表,将所述分词集合中筛选后的剩余词语作为待选词语;Compare the words in the word segmentation set with a preset bad vocabulary comparison table, filter out bad words from the word segmentation set, load the bad words into the first bad vocabulary list, and filter out the word segmentation set The remaining words of as candidates for selection;
通过词语相似度计算公式,计算出每个所述待选词语与预设不良词汇对照表中词语的相似度均值,将所述相似度均值大于预设相似度阈值的待选词语加载到所述第一不良词汇表;Through the word similarity calculation formula, calculate the average similarity of each candidate word and the words in the preset bad vocabulary comparison table, and load the candidate words with the average similarity greater than the preset similarity threshold to the The first bad vocabulary list;
通过情感分析算法,从所述第一不良词汇表中筛除不满足预设不良词情感趋向规则的词语,得到第二不良词汇表;Through the sentiment analysis algorithm, the words that do not meet the preset sentiment trend rule of the bad words are screened out from the first bad vocabulary to obtain the second bad vocabulary;
通过词语位置结构法,从所述第二不良词汇表中筛除不符合不良词汇语句位置结构的词语,得到第三不良词汇表并输出。Through the word position structure method, words that do not conform to the position structure of the bad vocabulary sentence are screened out from the second bad vocabulary list, and the third bad vocabulary list is obtained and output.
第三方面,为实现上述目的,为实现上述目的,本申请还提供一种网络不良数据监控系统,包括:In the third aspect, in order to achieve the above objectives, in order to achieve the above objectives, this application also provides a network bad data monitoring system, including:
分词处理单元,用于对目标文本进行分词处理,得到分词集合;The word segmentation processing unit is used to perform word segmentation processing on the target text to obtain a word segmentation set;
不良词语筛选单元,用于将所述分词集合中的词语与预设不良词汇对照表比对,从所述分词集合中筛选出不良词语,将所述不良词语加载到第一不良词汇表,将所述分词集合中筛选后的剩余词语作为待选词语;The bad word screening unit is used to compare words in the word segmentation set with a preset bad vocabulary comparison table, filter bad words from the word segmentation set, load the bad words into the first bad vocabulary list, and load the bad words into the first bad vocabulary list. The remaining words after screening in the word segmentation set are used as candidate words;
词语相似度计算单元,用于通过词语相似度计算公式,计算出每个所述待选词语与预设不良词汇对照表中词语的相似度均值,将所述相似度均值大于预设相似度阈值的待选词语加载到所述第一不良词汇表;The word similarity calculation unit is used to calculate the average similarity between each of the candidate words and the words in the preset bad vocabulary comparison table through a word similarity calculation formula, and make the average similarity greater than the preset similarity threshold Load the candidate words of to the first bad vocabulary list;
情感分析单元,用于通过情感分析算法,从所述第一不良词汇表中筛除不满足预设不良词情感趋向规则的词语,得到第二不良词汇表;The sentiment analysis unit is used to screen out words that do not meet the preset sentiment trend rule of undesirable words from the first unhealthy vocabulary through an sentiment analysis algorithm to obtain a second unhealthy vocabulary;
词语位置结构筛选单元,用于通过词语位置结构法,从所述第二不良词汇表中筛除不符合不良词汇语句位置结构的词语,得到第三不良词汇表并输出。The word position structure screening unit is used to filter out words that do not conform to the position structure of the bad vocabulary sentence from the second bad vocabulary list through the word position structure method to obtain and output the third bad vocabulary list.
第四方面,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有网络不良数据监控程序,所述网络不良数据监控程序被处理器执行时,实现如上所述的网络不良数据监控方法中的任意步骤。In a fourth aspect, in order to achieve the above objective, the present application also provides a computer-readable storage medium in which a network bad data monitoring program is stored, and when the network bad data monitoring program is executed by a processor, Realize any step in the method for monitoring network bad data as described above.
本申请提出的网络不良数据监控方法、装置及计算机可读存储介质,通过对目标文本进行分词处理后将每个分词与预设的不良词汇对照表中的不良词汇进行比对,将相同的不良词语加载到第一不良词汇表,由于不良词汇对照表中的不良词汇有限,可能存在与不良词语相似的不良词存在,所以通过词语相似度计算公式对目标文本中的分词再次进行计算,将符合预设相似度阈值范围的词语加载到第一不良词汇表中,由于相似度计算发现的不良词并非是一定的,所以再通过情感分析算法和词语位置结构法对第一不良词汇表中非不良词进行筛除处理,最后输出第三不良词汇表。能够更加精准的发现未登录的不良词汇,与现有技术相比较,收录的不良词汇的精确度更高,提高了准确度。The network bad data monitoring method, device and computer readable storage medium proposed in this application compare each word segment with the bad words in the preset bad vocabulary comparison table after word segmentation processing of the target text, and compare the same bad words. The words are loaded into the first bad vocabulary list. Due to the limited bad words in the bad vocabulary comparison table, there may be bad words similar to the bad words. Therefore, the word similarity calculation formula is used to calculate the word segmentation in the target text again. The words with the preset similarity threshold range are loaded into the first bad vocabulary. Since the bad words found by the similarity calculation are not certain, the sentiment analysis algorithm and word position structure method are used to analyze the non-bad words in the first bad vocabulary. Words are screened out, and finally the third bad vocabulary list is output. The unregistered bad vocabulary can be found more accurately. Compared with the prior art, the accuracy of the recorded bad vocabulary is higher and the accuracy is improved.
附图说明Description of the drawings
图1为本申请网络不良数据监控方法较佳实施例的流程图;FIG. 1 is a flowchart of a preferred embodiment of a method for monitoring bad network data according to this application;
图2为本申请网络不良数据监控方法较佳实施例的应用环境示意图;FIG. 2 is a schematic diagram of an application environment of a preferred embodiment of a method for monitoring bad network data according to this application;
图3为图2中网络不良数据监控程序较佳实施例的模块示意图;3 is a schematic diagram of modules of a preferred embodiment of the network bad data monitoring program in FIG. 2;
图4为本申请网络不良数据监控方法对应的系统逻辑图。Figure 4 is a system logic diagram corresponding to the method for monitoring bad network data in this application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics, and advantages of the purpose of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not used to limit the present application.
实施例1Example 1
本申请提供一种网络不良数据监控方法,参照图1所示,为本申请网络不良数据监控方法较佳实施例的应用环境示意图。该方法可以由一个装置执行,该装置可以由软件和/或硬件实现。The present application provides a method for monitoring bad network data. Referring to FIG. 1, it is a schematic diagram of an application environment of a preferred embodiment of the method for monitoring bad network data according to this application. The method can be executed by a device, and the device can be implemented by software and/or hardware.
在本实施例中,网络不良数据监控方法包括:步骤S110-步骤S150。In this embodiment, the method for monitoring network bad data includes: step S110-step S150.
步骤S110,对目标文本进行分词处理,得到分词集合。Step S110: Perform word segmentation processing on the target text to obtain a word segmentation set.
随着互联网的普及,网络文本信息越来越多,为了维护互联网秩序,通常需要对网络上的不良词汇进行监控,当检查一篇网络文章中是否存在不良词语时,需要先对目标文章进行分词处理,分词处理是对文本情感分析的基础步骤,在现有技术中,对文本进行分词的常用的中文分词工具有:With the popularization of the Internet, there are more and more online text information. In order to maintain the order of the Internet, it is usually necessary to monitor the bad words on the Internet. When checking whether there are bad words in an online article, you need to segment the target article first. Processing and word segmentation processing is the basic step of text sentiment analysis. In the prior art, the commonly used Chinese word segmentation tools for text segmentation include:
结巴分词、HanLP、pynlpir分词、ansj分词器、LTP、thulac分词等。对目标文本进行分词处理后,获得分词集合。Stuttering word segmentation, HanLP, pynlpir word segmentation, ansj word segmentation, LTP, thulac word segmentation, etc. After performing word segmentation processing on the target text, a word segmentation set is obtained.
步骤S120,将分词集合中的词语与预设不良词汇对照表比对,从分词集合中筛选出不良词语,将不良词语加载到第一不良词汇表,将分词集合中筛选后的剩余词语作为待选词语。Step S120: Compare the words in the word segmentation set with a preset bad vocabulary comparison table, filter out bad words from the word segmentation set, load the bad words into the first bad vocabulary list, and use the remaining words filtered in the word segmentation set as waiting Choose words.
具体地,将分词集合中的每个词语与预设不良词汇对照表中的不良词比对,预设不良词汇对照表中储存有大量的不良词汇,通过比对,能够确定分词集合中的不良词语,将分词集合中确定为不良词语的词语筛选出来,并加载到第一不良词汇表。Specifically, each word in the word segmentation set is compared with the bad words in the preset bad vocabulary comparison table. The preset bad vocabulary comparison table stores a large number of bad words. Through the comparison, the bad words in the word segmentation set can be determined. Words, filter out the words identified as bad words in the word segmentation set, and load them into the first bad vocabulary list.
其中,预设不良词汇对照表中的不良词语可来源于网络中常见的不良词语,当将分词集合中的词语与预设不良词汇对照表比对时,分词集合中的词语与预设不良词汇对照表中的不良词完全相同,则从分词集合中将该词语筛选出来加载到第一不良词汇表中,例如,在分词集合中存在“智障”这个词语,在预设不良词汇对照表中也记载着“智障”这个词语,则将分词集合中的“智障”筛选出来,记载到第一不良词汇表。Among them, the bad words in the preset bad vocabulary comparison table can be derived from common bad words in the Internet. When the words in the word segmentation set are compared with the preset bad vocabulary comparison table, the words in the word segmentation set are compared with the preset bad words If the bad words in the comparison table are exactly the same, the words are selected from the word segmentation set and loaded into the first bad vocabulary list. For example, if the word "mentally retarded" exists in the word segmentation set, it is also in the default bad vocabulary comparison table. If the word "mentally retarded" is recorded, the "mentally retarded" in the word segmentation set will be filtered out and recorded in the first bad vocabulary list.
其中,将分词集合中的词语与预设不良词汇对照表比对,从分词集合中筛选出不良词语,将不良词语加载到第一不良词汇表,将分词集合中筛选后的剩余词语作为待选词语的步骤包括:Among them, the words in the word segmentation set are compared with the preset bad vocabulary comparison table, bad words are selected from the word segmentation set, the bad words are loaded into the first bad vocabulary list, and the remaining words after screening in the word segmentation set are selected as candidates The word steps include:
将分词集合中的词语和预设不良词汇对照表输入预设相同词语筛选模型中,通过预设相同词语筛选模型从分词集合中筛选出不良词语;Input the words in the word segmentation set and the preset bad vocabulary comparison table into the preset same word screening model, and filter out bad words from the word segmentation set through the preset same word screening model;
将不良词语加载到第一不良词汇表,将分词集合中筛选后的剩余词语作为待选词语。Load bad words into the first bad vocabulary list, and use the remaining words filtered in the word segmentation set as candidate words.
具体的,预设相同词语筛选模型包括:Specifically, the preset same word screening model includes:
用于输入分词集合中的词语的第一输入层、用于输入预设不良词汇对照表的第二输入层、用于将第一输入层输入的词语与第二输入层输入的预设不良词汇对照表进行比对分析的相同词语筛选层、用于将相同词语筛选层中从分词集合中筛选出的不良词语输出的第一输出层和用于将相同词语筛选层中从分词集合中筛选出不良词语后的剩余词语输出的第二输出层。The first input layer for inputting words in the word segmentation set, the second input layer for inputting the preset bad vocabulary comparison table, the words input for the first input layer and the preset bad words input for the second input layer The same word filtering layer for comparison and analysis of the comparison table, the first output layer used to output bad words from the word segmentation set in the same word filtering layer, and the first output layer used to filter the same word filtering layer from the word segmentation set The second output layer where the remaining words after bad words are output.
步骤S130,通过词语相似度计算公式,计算出每个待选词语与预设不良词汇对照表中词语的相似度均值,将相似度均值大于预设相似度阈值的待选词语加载到第一不良词汇表。Step S130: Calculate the average similarity between each candidate word and the words in the preset bad vocabulary comparison table through the word similarity calculation formula, and load the candidate words with the average similarity greater than the preset similarity threshold to the first bad word. Glossary.
由于预设不良词汇对照表中的不良词汇通常都是已经被记载的不良词语,记载的不良词语有限,如果分词集合中存在没有记载在预设不良词汇对照表中的不良词语,则对分词集合中的不良词语筛选不够彻底,因此通过词语相似度计算公式能够从分词集合中剩余的词语中筛选出与预设不良词汇对照表中的不良词相似的不良词语,例如,分词集合中剩余的词语中有“弱智”这个词语,而预设不良词汇对照表中没有记载“弱智”这个词语,但 记载了“智障”这个词语,则通过相似度计算,得到相似度均值,通过相似度均值与预设相似度阈值的比较,最终从分词集合中剩余的词语中筛选出与不良词相似的词语。Since the bad words in the preset bad vocabulary comparison table are usually bad words that have been recorded, the recorded bad words are limited. If there are bad words in the word segmentation set that are not recorded in the preset bad vocabulary comparison table, the word segmentation set The screening of bad words in is not thorough enough, so the word similarity calculation formula can filter out bad words similar to bad words in the preset bad word comparison table from the remaining words in the word segmentation set, for example, the remaining words in the word segmentation set There is the word "mentally retarded" in the presupposed bad vocabulary comparison table, but the word "mentally retarded" is not recorded, but the word "mentally retarded" is recorded. Set the comparison of similarity thresholds, and finally screen out words similar to bad words from the remaining words in the word segmentation set.
其中,通过词语相似度计算公式,计算出每个待选词语与预设不良词汇对照表中词语的相似度均值的步骤包括:Among them, the steps of calculating the mean value of the similarity between each candidate word and the words in the predetermined bad vocabulary comparison table through the word similarity calculation formula include:
对每个待选词语进行向量化处理,得到待选词语的词向量;Vectorize each word to be selected to obtain the word vector of the word to be selected;
将每个待选词语的词向量分别与预设的不良词的词向量集合中的不良词向量通过词语相似度计算公式进行相似度计算,得到N个相似度值,其中,预设的不良词的词向量集合是通过将预设不良词汇对照表中词语进行向量化处理得到的词向量集合;The word vector of each candidate word and the bad word vector in the preset bad word word vector set are calculated by the word similarity calculation formula to calculate the similarity, and N similarity values are obtained. Among them, the preset bad word The word vector set of is the word vector set obtained by vectorizing the words in the preset bad vocabulary comparison table;
根据N个相似度值,获得待选词语与预设不良词汇对照表中词语的相似度均值。According to the N similarity values, the mean value of the similarity between the words in the comparison table of the candidate words and the preset bad words is obtained.
其中,根据N个相似度值,获得待选词语与预设不良词汇对照表中词语的相似度均值包括:Among them, according to the N similarity values, obtaining the mean similarity value of the words in the comparison table of the candidate words and the preset bad words includes:
将N个相似度值加和处理,得到相似度总值;其中,N为预设不良词汇对照表中词语的个数;The N similarity values are added and processed to obtain the total similarity value; where N is the number of words in the preset bad vocabulary comparison table;
将相似度总值除以N,得到待选词语与预设不良词汇对照表中词语的相似度均值。Divide the total value of similarity by N to obtain the mean value of similarity between the candidate words and the words in the predetermined bad vocabulary comparison table.
具体地,将分词集合中筛选后的剩余词语作为待选词语,每个待选词语进行量化处理后得到待选词语的词向量,预先对预设不良词汇对照表中词语进行向量化处理,得到预设的不良词的词向量集合,以任一待选词语的词向量为例,将该待选词语的词向量与预设的不良词的词向量集合中的每个不良词向量通过词语相似度计算公式进行相似度计算,得到N个相似度值,其中,N为预设不良词汇对照表中词语的个数,再将N个相似度值加和后求平均值,即为该待选词语与预设不良词汇对照表中词语的相似度均值,每个待选词语均按照上述方法进行相似度计算,得到相似度均值。Specifically, the remaining words after screening in the word segmentation set are used as candidate words, each candidate word is quantified to obtain the word vector of the candidate word, and the words in the preset bad vocabulary comparison table are vectorized in advance to obtain The preset word vector set of bad words, taking the word vector of any candidate word as an example, the word vector of the candidate word is similar to each bad word vector in the preset bad word word vector set through words The degree calculation formula performs similarity calculation to obtain N similarity values, where N is the number of words in the preset bad vocabulary comparison table, and then the N similarity values are added and averaged, which is the candidate to be selected The mean value of similarity between words and the words in the predetermined bad vocabulary comparison table. Each candidate word is calculated according to the above method to obtain the mean value of similarity.
其中,词语相似度计算公式为:Among them, the formula for calculating word similarity is:
Figure PCTCN2020136403-appb-000001
Figure PCTCN2020136403-appb-000001
其中,W1为待选词语的词向量,W2为预设的不良词的词向量集合中任一词向量,n为词向量维度,W1 i为W1在i个维度下W1的值,W2 i为W2在i个维度下W2的值。 Among them, W1 is the word vector of the word to be selected, W2 is any word vector in the preset word vector set of bad words, n is the word vector dimension, W1 i is the value of W1 in the i dimensions of W1, and W2 i is W2 is the value of W2 in i dimensions.
预先设置好相似度阈值范围,从分词集合的剩余词语中筛选出符合预设相似度阈值范围的词语,加载到第一不良词汇表中。The similarity threshold range is preset, and words that meet the preset similarity threshold range are selected from the remaining words in the word segmentation set and loaded into the first bad vocabulary list.
步骤S140,通过情感分析算法,从第一不良词汇表中筛除不满足预设不良词情感趋向规则的词语,得到第二不良词汇表。In step S140, through the sentiment analysis algorithm, words that do not meet the preset sentiment trend rule of the undesirable words are screened out from the first unhealthy vocabulary to obtain the second unhealthy vocabulary.
通过相似度筛选出的不良词语可能存在非不良词语,所以需要对第一不良词汇表中的词语进行筛除非不良词的处理,通过情感分析算法(其英文缩写为SO-PMI算法),从第一不良词汇表中筛除不满足预设不良词情感趋向规则的词语,其中,情感分析算法(其英文缩写为SO-PMI算法)为点互信息算法,用来计算词语情感倾向强度值。The bad words selected by the similarity may have non-bad words, so it is necessary to screen the words in the first bad vocabulary to deal with non-bad words, through the sentiment analysis algorithm (its English abbreviation is SO-PMI algorithm), from the first A bad vocabulary is used to filter out words that do not satisfy the preset bad words sentiment tendency rule, where the sentiment analysis algorithm (its English abbreviation is SO-PMI algorithm) is a point mutual information algorithm, which is used to calculate the value of the word sentiment tendency strength.
其中,通过情感分析算法,从第一不良词汇表中筛除不满足预设不良词情感趋向规则的词语,得到第二不良词汇表的步骤包括:Among them, through the sentiment analysis algorithm, the words that do not meet the preset emotional tendency rules of the bad words are filtered out from the first bad vocabulary, and the steps of obtaining the second bad vocabulary include:
对第一不良词汇表中的词语进行向量化处理,得到待计算词向量;Perform vectorization processing on the words in the first bad vocabulary to obtain the word vector to be calculated;
通过词共现频率计算公式分别计算出待计算词向量与预构建文明词汇库中词向量的词共现频率和待计算词向量与预构建不文明词汇库中词向量的词共现频率,作为待用词共现频率;The word co-occurrence frequency calculation formula is used to calculate the word co-occurrence frequency of the word vector to be calculated and the word vector in the pre-built civilized vocabulary and the word co-occurrence frequency of the word vector to be calculated and the word vector in the pre-built uncivilized vocabulary, as Co-occurrence frequency of unused words;
根据待用词共现频率,通过情感分析计算公式计算出第一不良词汇表中各词语的情感倾向强度值;According to the co-occurrence frequency of the words to be used, the emotional tendency intensity value of each word in the first bad vocabulary is calculated through the calculation formula of sentiment analysis;
将第一不良词汇表中各词语的情感倾向强度值与预设情感倾向强度阈值规则比对,根 据情感倾向强度阈值规则筛除第一不良词汇表中不满足预设不良词情感趋向规则的词语,得到第二不良词汇表。Compare the emotional tendency intensity value of each word in the first bad vocabulary list with the preset emotional tendency intensity threshold rule, and filter out the words in the first bad vocabulary that do not meet the preset bad word emotional tendency rule according to the emotional tendency intensity threshold rule , Get the second bad vocabulary list.
其中,词共现频率计算公式为:Among them, the calculation formula of word co-occurrence frequency is:
Figure PCTCN2020136403-appb-000002
Figure PCTCN2020136403-appb-000002
其中,F(N1,N2)指的是在全部n篇文章中,N1,N2在设定大小的窗口内同时出现的频率,F(N1),F(N2)指的是在全部n篇文章中N1,N2分别出现的频率。Among them, F(N1, N2) refers to the frequency at which N1 and N2 appear simultaneously in a window of a set size in all n articles, F(N1), F(N2) refers to all n articles The frequency at which N1 and N2 appear respectively.
其中,情感分析计算公式为:Among them, the calculation formula of sentiment analysis is:
Figure PCTCN2020136403-appb-000003
Figure PCTCN2020136403-appb-000003
其中,Q为第一不良词汇表中的词语,Cwords为预构建文明词汇库,Iwords为预构建不文明词汇库,PMI(Q,cword)为第一不良词汇表中的词语与预构建文明词汇库中词向量的共现频率,PMI(Q,Iword)为第一不良词汇表中的词语与预构建不文明词汇库中词向量的共现频率,SO-PMI(Q)为第一不良词汇表中词语Q的情感倾向强度值。Among them, Q is the words in the first bad vocabulary, Cwords is the pre-built civilized vocabulary, Iwords is the pre-built uncivilized vocabulary, PMI (Q, cword) is the words in the first bad vocabulary and the pre-built civilized vocabulary Co-occurrence frequency of word vectors in the library, PMI(Q, Iword) is the co-occurrence frequency of words in the first bad vocabulary and word vectors in the pre-built uncivilized vocabulary, SO-PMI(Q) is the first bad word The value of the emotional tendency intensity of the word Q in the table.
优选地,情感倾向强度阈值规则为:Preferably, the threshold rule for the intensity of sentimentality is:
若第一不良词汇表中的词语的情感倾向强度值大于或等于零,则该词语为不满足预设不良词情感趋向规则的词语;If the emotional tendency intensity value of the words in the first bad vocabulary list is greater than or equal to zero, the word is a word that does not meet the preset bad words emotional tendency rule;
若第一不良词汇表中的词语的情感倾向强度值小于零,则该词语为满足预设不良词情感趋向规则的词语。If the emotional tendency intensity value of the words in the first bad vocabulary list is less than zero, the words are words that meet the preset bad words emotional tendency rules.
具体地,采用情感分析算法判断词语极性是基于大规模语料挖掘词语的极性,依据的是未登录的词汇与已经判断出极性的现有的词汇共现的频率来判断未登录词的极性。词共现指的是在一定的词语窗口内,两个词语同时出现。Specifically, the use of sentiment analysis algorithm to determine the polarity of words is based on the polarity of large-scale corpus mining words, and the unregistered words are judged based on the frequency of unregistered words co-occurring with existing vocabulary whose polarity has been determined polarity. Word co-occurrence means that two words appear at the same time in a certain word window.
例如,我们一般会形容一个人既“积极”又“乐观”,很少会说一个人既“积极”又“丧气”。这就是两个词语之间的点互关系,也就是这两个词之间的关联程度,即PMI值(词语共现值),PMI就是两个随机变量之间的点互信息。For example, we generally describe a person as both "active" and "optimistic", and we rarely say that a person is both "active" and "frustrated". This is the point mutual relationship between two words, that is, the degree of association between the two words, that is, the PMI value (word co-occurrence value). PMI is the point mutual information between two random variables.
使用情感分析算法判断词汇极性需要构建种子词库,预构建不文明词汇库作为不良种子词汇库,收录同等数量的文明词汇作为预构建文明词汇词库,再根据情感分析计算公式进行计算得到的词语w的情感倾向强度值,再根据情感倾向强度阈值规则判断该词语为不良词汇的可能性。Using sentiment analysis algorithms to determine the polarity of words requires the construction of a seed vocabulary, pre-built uncivilized vocabulary as a bad seed vocabulary, including the same number of civilized vocabulary as the pre-built civilized vocabulary, and then calculated according to the sentiment analysis calculation formula The emotional tendency intensity value of the word w, and then judge the possibility that the word is a bad vocabulary according to the emotional tendency intensity threshold rule.
步骤S150,通过词语位置结构法,从第二不良词汇表中筛除不符合不良词汇语句位置结构的词语,得到第三不良词汇表并输出。In step S150, words that do not meet the position structure of the bad vocabulary sentence are screened out from the second bad vocabulary list through the word position structure method, and the third bad vocabulary list is obtained and output.
为了进一步将第二不良词汇表中存在的非不良词语筛除,还需要进一步对第二不良词汇表中的词语进行筛除处理,通过词语位置结构法,从第二不良词汇表中筛除不符合不良词汇语句位置结构的词语,得到第三不良词汇表。In order to further filter out the non-bad words in the second bad vocabulary list, it is necessary to further filter out the words in the second bad vocabulary list. The word position structure method is used to filter out the bad words from the second bad vocabulary list. Words conforming to the positional structure of the bad vocabulary sentence get the third bad vocabulary list.
其中,通过词语位置结构法,从第二不良词汇表中筛除不符合不良词汇语句位置结构的词语的步骤包括:Among them, through the word position structure method, the steps of screening words that do not conform to the position structure of the bad vocabulary sentence from the second bad vocabulary include:
将第二不良词汇表中的词语与预先构建的不良词汇语句模板中的不良词汇所在的语句位置结构进行比较;Compare the words in the second bad vocabulary list with the sentence position structure where bad words in the pre-built bad vocabulary sentence template are located;
从第二不良词汇表中筛除不符合不良词汇语句模板中的不良词汇所在的语句位置结构的词语,得到第三不良词汇表。From the second bad vocabulary list, words that do not conform to the sentence position structure of the bad vocabulary in the bad vocabulary sentence template are filtered out to obtain the third bad vocabulary list.
具体地,由于在用词语相似度计算两个词w1和w2的过程中,往往会引入很多“杂质”,即两个词语的相似度很高,但是却不是表达同一意思,比如“智障”和“障碍”这两个词的相似度高达0.5324,但是明显“智障”是一个不文明词,而“障碍”是一个中性词。为了减少引入这种“杂质”,设计了一个词语位置结构判断方法。例如,一个不文明用户形 容一个人的时候,“你真是个弱智”、“你真是个智障”,但是我们不会形容一个人“你真是个障碍”。所以词语位置结构判断是对词语相似度计算的一个很好的补充。虽然会有“你真是个好人”这种句式相同,但语义完全不同的句子,但是“好人”和“智障”的相似度很低,所以位置结构判断法是基于相似度很高的不文明词语做进一步判断,所以一般不会遇到上述的情况。Specifically, in the process of calculating the two words w1 and w2 with the word similarity, many "impurities" are often introduced, that is, the two words have a high similarity, but they do not express the same meaning, such as "mental disability" and The similarity of the two words "barrier" is as high as 0.5324, but it is clear that "mental disability" is an uncivilized word, and "barrier" is a neutral word. In order to reduce the introduction of such "impurities", a method for judging the position and structure of words is designed. For example, when an uncivilized user looks like a person, "you are really mentally handicapped" and "you are really mentally handicapped", but we will not describe a person as "you are really a handicap". Therefore, the judgment of word position structure is a good supplement to the calculation of word similarity. Although there will be sentences like "You are really a good person" with the same pattern but completely different semantics, the similarity between "good guy" and "mentally retarded" is very low, so the location structure judgment method is based on the uncivilized with high similarity. Words make further judgments, so the above-mentioned situations are generally not encountered.
具体的做法是根据切词工具提供的词性标注和句法分析功能,以“你真是个智障”为例,它的词性标注为:你(r)/真是(d)/个(q)/智障(n)。可以将此句式和词性结构作为一个模板收录。而“这是个障碍”的词性标注为:这(r)/是(v)/个(q)/障碍(n)。障碍这个词和智障这个词无论是句法结构还是词性结构的用法都不同,所以根据总结的词语句法词性结构模板可以减少引入这种“杂质”。The specific method is based on the part-of-speech tagging and syntactic analysis functions provided by the word segmentation tool. Take "You are really mentally retarded" as an example. Its part-of-speech tagging is: you(r)/真是(d)/个(q)/mentally retarded( n). This sentence pattern and part of speech structure can be included as a template. The part-of-speech tag of "this is an obstacle" is: this (r)/is (v)/a (q)/obstacle (n). The word handicap and the word mentally handicapped are used differently in terms of syntactic structure and part-of-speech structure. Therefore, the introduction of such "impurities" can be reduced according to the summarized lexical-syntactic part-of-speech structure template.
实施例2Example 2
本申请提供一种网络不良数据监控方法,应用于一种电子装置1。参照图2所示,为本申请网络不良数据监控方法较佳实施例的应用环境示意图。This application provides a method for monitoring bad network data, which is applied to an electronic device 1. Referring to FIG. 2, it is a schematic diagram of the application environment of the preferred embodiment of the method for monitoring network bad data according to the present application.
在本实施例中,电子装置1可以是服务器、智能手机、平板电脑、便携计算机、桌上型计算机等具有运算功能的终端设备。In this embodiment, the electronic device 1 may be a terminal device with a computing function such as a server, a smart phone, a tablet computer, a portable computer, a desktop computer, and the like.
该电子装置1包括:处理器12、存储器11、网络接口13及通信总线14。The electronic device 1 includes a processor 12, a memory 11, a network interface 13, and a communication bus 14.
存储器11包括至少一种类型的可读存储介质。该至少一种类型的可读存储介质可为如闪存、硬盘、多媒体卡、卡型存储器11等的非易失性存储介质。在一些实施例中,可读存储介质可以是电子装置1的内部存储单元,例如该电子装置1的硬盘。在另一些实施例中,可读存储介质也可以是电子装置1的外部存储器11,例如电子装置1上配备的插接式硬盘、智能存储卡(Smart Media Card,SMC)、安全数字(Secure Digital,SD)卡、闪存卡(Flash Card)等。The memory 11 includes at least one type of readable storage medium. The at least one type of readable storage medium may be a non-volatile storage medium such as flash memory, hard disk, multimedia card, card-type memory 11, and the like. In some embodiments, the readable storage medium may be an internal storage unit of the electronic device 1, for example, the hard disk of the electronic device 1. In other embodiments, the readable storage medium may also be the external memory 11 of the electronic device 1, such as a plug-in hard disk, a smart media card (SMC), and a secure digital (Secure Digital) equipped on the electronic device 1. , SD) card, flash card (Flash Card), etc.
在本实施例中,存储器11的可读存储介质通常用于存储安装于电子装置1的网络不良数据监控程序10、预设不良词汇对照表等。存储器11还可以用于暂时地存储已经输出或者将要输出的数据。In this embodiment, the readable storage medium of the memory 11 is generally used to store the network bad data monitoring program 10 installed in the electronic device 1, a preset bad word comparison table, and the like. The memory 11 can also be used to temporarily store data that has been output or will be output.
处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,例如执行网络不良数据监控程序10等。In some embodiments, the processor 12 may be a central processing unit (CPU), a microprocessor, or other data processing chip, which is used to run program codes or process data stored in the memory 11, for example, execute network bad data. Monitoring program 10 etc.
网络接口13可选地可以包括标准的有线接口、无线接口(如WI-FI接口),通常用于在该电子装置1与其他电子设备之间建立通信连接。The network interface 13 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface), and is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
通信总线14用于实现上述这些组件之间的连接通信。The communication bus 14 is used to realize the connection and communication between the above-mentioned components.
图2仅示出了具有组件11-14的电子装置1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。FIG. 2 only shows the electronic device 1 with the components 11-14, but it should be understood that it is not required to implement all the illustrated components, and more or fewer components may be implemented instead.
在图2所示的装置实施例中,作为一种计算机存储介质的存储器11中可以包括操作系统以及网络不良数据监控程序10;处理器12执行存储器11中存储的网络不良数据监控程序10时,实现实施例1中网络不良数据监控方法的各个步骤,例如图1所示。或者,处理器12执行网络不良数据监控方法时实现上述各装置实施例中各模块/单元的功能,例如图3所示的网络不良数据监控程序10可以被分割为:分词处理模块110、不良词语筛选模块120、词语相似度计算模块130、情感分析模块140、词语位置结构筛选模块150。In the device embodiment shown in FIG. 2, the memory 11 as a computer storage medium may include an operating system and a network bad data monitoring program 10; when the processor 12 executes the network bad data monitoring program 10 stored in the memory 11, The steps of the method for monitoring bad network data in Embodiment 1 are implemented, as shown in Fig. 1 for example. Alternatively, the processor 12 implements the functions of the modules/units in the foregoing device embodiments when executing the network bad data monitoring method. For example, the network bad data monitoring program 10 shown in FIG. 3 can be divided into: a word segmentation processing module 110, bad words The screening module 120, the word similarity calculation module 130, the sentiment analysis module 140, and the word location structure screening module 150.
所述模块110-150所实现的功能或操作步骤均与上文类似,此处不再详述,示例性地,例如其中:The functions or operation steps implemented by the modules 110-150 are all similar to the above, and will not be described in detail here. Illustratively, for example:
分词处理模块110:用于对目标文本进行分词处理,得到分词集合。The word segmentation processing module 110 is used to perform word segmentation processing on the target text to obtain a word segmentation set.
不良词语筛选模块120:用于将分词集合中的词语与预设不良词汇对照表比对,从分词集合中筛选出不良词语,将不良词语加载到第一不良词汇表,将分词集合中筛选后的剩余词语作为待选词语。Bad word screening module 120: used to compare words in the word segmentation set with a preset bad vocabulary comparison table, filter bad words from the word segmentation set, load the bad words into the first bad vocabulary list, and filter out the word segmentation set The remaining words as candidates for selection.
词语相似度计算模块130:用于通过词语相似度计算公式,计算出每个待选词语与预设不良词汇对照表中词语的相似度均值,将相似度均值大于预设相似度阈值的待选词语加载到第一不良词汇表。Word similarity calculation module 130: used to calculate the average similarity between each candidate word and the words in the preset bad vocabulary comparison table through the word similarity calculation formula, and calculate the average similarity greater than the preset similarity threshold for candidates The words are loaded into the first bad vocabulary list.
情感分析模块140:用于通过情感分析算法,从第一不良词汇表中筛除不满足预设不良词情感趋向规则的词语,得到第二不良词汇表。Sentiment analysis module 140: used to filter out words that do not meet the preset emotional tendency rule of bad words from the first bad vocabulary through the sentiment analysis algorithm to obtain the second bad vocabulary.
词语位置结构筛选模块150:用于通过词语位置结构法,从第二不良词汇表中筛除不符合不良词汇语句位置结构的词语,得到第三不良词汇表并输出。Word position structure screening module 150: used to filter out words that do not conform to the position structure of the bad vocabulary sentence from the second bad vocabulary list through the word position structure method to obtain and output the third bad vocabulary list.
实施例3Example 3
与上述方法相对应,本申请的实施例还提出一种网络不良数据监控系统400,包括分词处理单元410、不良词语筛选单元420、词语相似度计算单元430、情感分析单元440、词语位置结构筛选单元450,其中,分词处理单元410、不良词语筛选单元420、词语相似度计算单元430、情感分析单元440、词语位置结构筛选单元450的实现功能与实施例中网络不良数据监控方法的步骤一一对应。Corresponding to the above method, the embodiment of the present application also proposes a network bad data monitoring system 400, which includes a word segmentation processing unit 410, a bad word screening unit 420, a word similarity calculation unit 430, an sentiment analysis unit 440, and word location structure screening Unit 450, in which the word segmentation processing unit 410, the bad word screening unit 420, the word similarity calculation unit 430, the sentiment analysis unit 440, and the word location structure screening unit 450 realize the functions and the steps of the network bad data monitoring method in the embodiment one by one correspond.
分词处理单元410,用于对目标文本进行分词处理,得到分词集合;The word segmentation processing unit 410 is configured to perform word segmentation processing on the target text to obtain a word segmentation set;
不良词语筛选单元420,用于将分词集合中的词语与预设不良词汇对照表比对,从分词集合中筛选出不良词语,将不良词语加载到第一不良词汇表,将分词集合中筛选后的剩余词语作为待选词语;The bad word screening unit 420 is used to compare words in the word segmentation set with a preset bad vocabulary comparison table, filter out bad words from the word segmentation set, load the bad words into the first bad vocabulary list, and filter out the word segmentation set The remaining words of as candidates for selection;
词语相似度计算单元430,用于通过词语相似度计算公式,计算出每个待选词语与预设不良词汇对照表中词语的相似度均值,将相似度均值大于预设相似度阈值的待选词语加载到所述第一不良词汇表;The word similarity calculation unit 430 is used to calculate the average similarity between each candidate word and the words in the preset bad vocabulary comparison table through a word similarity calculation formula, and to select candidates whose average similarity is greater than the preset similarity threshold Words are loaded into the first bad vocabulary list;
情感分析单元440,用于通过情感分析算法,从第一不良词汇表中筛除不满足预设不良词情感趋向规则的词语,得到第二不良词汇表;The sentiment analysis unit 440 is configured to filter out words that do not meet the preset sentiment trend rule of the bad words from the first bad vocabulary through the sentiment analysis algorithm to obtain the second bad vocabulary;
词语位置结构筛选单元450,用于通过词语位置结构法,从第二不良词汇表中筛除不符合不良词汇语句位置结构的词语,得到第三不良词汇表并输出。The word position structure screening unit 450 is used to filter out words that do not meet the position structure of the bad vocabulary sentence from the second bad vocabulary list through the word position structure method to obtain and output the third bad vocabulary list.
实施例4Example 4
本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质可以是非易失性,也可以是易失性;所述计算机可读存储介质中包括网络不良数据监控程序,所述网络不良数据监控程序被处理器执行时实现实施例1中网络不良数据监控方法,为避免重复,这里不再赘述。或者,该计算机程序被处理器执行时实现实施例4中网络不良数据监控系统中各模块/单元的功能,为避免重复,这里不再赘述。The embodiment of the present application also proposes a computer-readable storage medium. The computer-readable storage medium may be non-volatile or volatile; the computer-readable storage medium includes a network bad data monitoring program, so The network bad data monitoring program is executed by the processor to implement the network bad data monitoring method in Embodiment 1. In order to avoid repetition, it will not be repeated here. Or, when the computer program is executed by the processor, the function of each module/unit in the network bad data monitoring system in Embodiment 4 is realized. To avoid repetition, it will not be repeated here.
本申请之计算机可读存储介质的具体实施方式与上述网络不良数据监控方法、电子装置、系统的具体实施方式大致相同,在此不再赘述。The specific implementation of the computer-readable storage medium of the present application is substantially the same as the specific implementation of the foregoing network bad data monitoring method, electronic device, and system, and will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements not only includes those elements, It also includes other elements not explicitly listed, or elements inherent to the process, device, article, or method. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, device, article, or method that includes the element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。The serial numbers of the foregoing embodiments of the present application are for description only, and do not represent the superiority or inferiority of the embodiments. Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM) as described above. , Magnetic disks, optical disks), including several instructions to make a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) execute the method described in each embodiment of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of the application, and do not limit the scope of the patent for this application. Any equivalent structure or equivalent process transformation made using the content of the description and drawings of the application, or directly or indirectly applied to other related technical fields , The same reason is included in the scope of patent protection of this application.

Claims (20)

  1. 一种网络不良数据监控方法,应用于电子装置,其中,所述方法包括:A method for monitoring bad network data, applied to an electronic device, wherein the method includes:
    对目标文本进行分词处理,得到分词集合;Perform word segmentation processing on the target text to obtain a word segmentation set;
    将所述分词集合中的词语与预设不良词汇对照表比对,从所述分词集合中筛选出不良词语,将所述不良词语加载到第一不良词汇表,将所述分词集合中筛选后的剩余词语作为待选词语;Compare the words in the word segmentation set with a preset bad vocabulary comparison table, filter out bad words from the word segmentation set, load the bad words into the first bad vocabulary list, and filter out the word segmentation set The remaining words of as candidates for selection;
    通过词语相似度计算公式,计算出每个所述待选词语与预设不良词汇对照表中词语的相似度均值,将所述相似度均值大于预设相似度阈值的待选词语加载到所述第一不良词汇表;Through the word similarity calculation formula, calculate the average similarity of each candidate word and the words in the preset bad vocabulary comparison table, and load the candidate words with the average similarity greater than the preset similarity threshold to the The first bad vocabulary list;
    通过情感分析算法,从所述第一不良词汇表中筛除不满足预设不良词情感趋向规则的词语,得到第二不良词汇表;Through the sentiment analysis algorithm, the words that do not meet the preset sentiment trend rule of the bad words are screened out from the first bad vocabulary to obtain the second bad vocabulary;
    通过词语位置结构法,从所述第二不良词汇表中筛除不符合不良词汇语句位置结构的词语,得到第三不良词汇表并输出。Through the word position structure method, words that do not conform to the position structure of the bad vocabulary sentence are screened out from the second bad vocabulary list, and the third bad vocabulary list is obtained and output.
  2. 根据权利要求1所述的网络不良数据监控方法,其中,所述通过词语相似度计算公式,计算出每个待选词语与预设不良词汇对照表中词语的相似度均值的步骤包括:The method for monitoring network bad data according to claim 1, wherein the step of calculating the mean similarity between each candidate word and the words in the preset bad word comparison table by using a word similarity calculation formula comprises:
    对每个所述待选词语进行向量化处理,得到待选词语的词向量;Performing vectorization processing on each candidate word to obtain a word vector of the candidate word;
    将每个待选词语的词向量分别与预设的不良词的词向量集合中的不良词向量通过词语相似度计算公式进行相似度计算,得到N个相似度值,其中,所述预设的不良词的词向量集合是通过将所述预设不良词汇对照表中词语进行向量化处理得到的词向量集合;The word vector of each word to be selected and the bad word vector in the preset bad word word vector set are calculated by the word similarity calculation formula to calculate the similarity to obtain N similarity values, where the preset The word vector set of bad words is a word vector set obtained by vectorizing words in the preset bad word comparison table;
    根据N个相似度值,获得所述待选词语与预设不良词汇对照表中词语的相似度均值。According to the N similarity values, the mean value of the similarity between the candidate words and the words in the predetermined bad vocabulary comparison table is obtained.
  3. 根据权利要求2所述的网络不良数据监控方法,其中,所述根据N个相似度值,获得所述待选词语与预设不良词汇对照表中词语的相似度均值包括:The method for monitoring network bad data according to claim 2, wherein said obtaining the mean value of similarity between the candidate words and the words in the predetermined bad word comparison table according to the N similarity values comprises:
    将所述N个相似度值加和处理,得到相似度总值;其中,所述N为所述预设不良词汇对照表中词语的个数;The N similarity values are added and processed to obtain a total similarity value; wherein, the N is the number of words in the preset bad vocabulary comparison table;
    将所述相似度总值除以N,得到所述待选词语与预设不良词汇对照表中词语的相似度均值。The total value of similarity is divided by N to obtain the mean value of similarity between the candidate words and the words in the predetermined bad vocabulary comparison table.
  4. 根据权利要求1所述的网络不良数据监控方法,其中,所述词语相似度计算公式为:The method for monitoring network bad data according to claim 1, wherein the word similarity calculation formula is:
    Figure PCTCN2020136403-appb-100001
    Figure PCTCN2020136403-appb-100001
    其中,W1为待选词语的词向量,W2为预设的不良词的词向量集合中任一词向量,n为词向量维度,W1 i为W1在i个维度下W1的值,W2 i为W2在i个维度下W2的值。 Among them, W1 is the word vector of the word to be selected, W2 is any word vector in the preset word vector set of bad words, n is the word vector dimension, W1 i is the value of W1 in the i dimensions of W1, and W2 i is W2 is the value of W2 in i dimensions.
  5. 根据权利要求1所述的网络不良数据监控方法,其中,通过情感分析算法,从所述第一不良词汇表中筛除不满足预设不良词情感趋向规则的词语,得到第二不良词汇表的步骤包括:The method for monitoring network bad data according to claim 1, wherein words that do not meet the preset bad words emotional tendency rule are filtered out from the first bad vocabulary through an sentiment analysis algorithm to obtain the second bad vocabulary The steps include:
    对所述第一不良词汇表中的词语进行向量化处理,得到待计算词向量;Performing vectorization processing on words in the first bad vocabulary list to obtain word vectors to be calculated;
    通过词共现频率计算公式分别计算出所述待计算词向量与预构建文明词汇库中词向量的词共现频率和所述待计算词向量与预构建不文明词汇库中词向量的词共现频率,作为待用词共现频率;The word co-occurrence frequency of the word vector to be calculated and the word vector in the pre-built civilized vocabulary and the word co-occurrence frequency of the word vector to be calculated and the word vector in the pre-built uncivilized vocabulary are respectively calculated by the word co-occurrence frequency calculation formula. Current frequency, as the co-occurrence frequency of the word to be used;
    根据所述待用词共现频率,通过情感分析计算公式计算出所述第一不良词汇表中各词语的情感倾向强度值;According to the co-occurrence frequency of the words to be used, the emotional tendency intensity value of each word in the first bad vocabulary is calculated through an emotional analysis calculation formula;
    将所述第一不良词汇表中各词语的情感倾向强度值与预设情感倾向强度阈值规则比对,根据所述情感倾向强度阈值规则筛除所述第一不良词汇表中不满足预设不良词情感趋向规则的词语,得到第二不良词汇表。Compare the emotional tendency intensity value of each word in the first bad vocabulary list with a preset emotional tendency intensity threshold rule, and screen out the first bad vocabulary list that does not meet the preset badness according to the emotional tendency intensity threshold rule Words with emotions tend to be regular words, and get the second bad vocabulary list.
  6. 根据权利要求5所述的网络不良数据监控方法,其中,所述词共现频率计算公式为:The method for monitoring network bad data according to claim 5, wherein the formula for calculating the word co-occurrence frequency is:
    Figure PCTCN2020136403-appb-100002
    Figure PCTCN2020136403-appb-100002
    其中,F(N1,N2)指的是在全部n篇文章中,N1,N2在设定大小的窗口内同时出现的频率,F(N1),F(N2)指的是在全部n篇文章中N1,N2分别出现的频率。Among them, F(N1, N2) refers to the frequency at which N1 and N2 appear simultaneously in a window of a set size in all n articles, F(N1), F(N2) refers to all n articles The frequency at which N1 and N2 appear respectively.
  7. 根据权利要求5所述的网络不良数据监控方法,其中,所述情感分析计算公式为:The method for monitoring network bad data according to claim 5, wherein the sentiment analysis calculation formula is:
    Figure PCTCN2020136403-appb-100003
    Figure PCTCN2020136403-appb-100003
    其中,Q为第一不良词汇表中的词语,Cwords为预构建文明词汇库,Iwords为预构建不文明词汇库,PMI(Q,cword)为第一不良词汇表中的词语与预构建文明词汇库中词向量的共现频率,PMI(Q,Iword)为第一不良词汇表中的词语与预构建不文明词汇库中词向量的共现频率,SO-PMI(Q)为第一不良词汇表中词语Q的情感倾向强度值。Among them, Q is the words in the first bad vocabulary, Cwords is the pre-built civilized vocabulary, Iwords is the pre-built uncivilized vocabulary, PMI (Q, cword) is the words in the first bad vocabulary and the pre-built civilized vocabulary Co-occurrence frequency of word vectors in the library, PMI(Q, Iword) is the co-occurrence frequency of words in the first bad vocabulary and word vectors in the pre-built uncivilized vocabulary, SO-PMI(Q) is the first bad word The value of the emotional tendency intensity of the word Q in the table.
  8. 根据权利要求5所述的网络不良数据监控方法,其中,所述情感倾向强度阈值规则为:The method for monitoring network bad data according to claim 5, wherein the emotional tendency intensity threshold rule is:
    若所述第一不良词汇表中的词语的情感倾向强度值大于或等于零,则该词语为不满足预设不良词情感趋向规则的词语;If the emotional tendency intensity value of the words in the first bad vocabulary list is greater than or equal to zero, the words are words that do not meet the preset bad word emotional tendency rules;
    若所述第一不良词汇表中的词语的情感倾向强度值小于零,则该词语为满足预设不良词情感趋向规则的词语。If the emotional tendency intensity value of a word in the first bad vocabulary list is less than zero, the word is a word that satisfies the preset bad word emotional tendency rule.
  9. 根据权利要求1所述的网络不良数据监控方法,其中,通过词语位置结构法,从所述第二不良词汇表中筛除不符合不良词汇语句位置结构的词语的步骤包括:The method for monitoring network bad data according to claim 1, wherein the step of screening words that do not conform to the position structure of bad vocabulary sentences from the second bad vocabulary through the word position structure method comprises:
    将所述第二不良词汇表中的词语与预先构建的不良词汇语句模板中的不良词汇所在的语句位置结构进行比较;Comparing the words in the second bad vocabulary list with the sentence position structure where the bad words in the pre-built bad vocabulary sentence template are located;
    从所述第二不良词汇表中筛除不符合所述不良词汇语句模板中的不良词汇所在的语句位置结构的词语,得到第三不良词汇表。From the second bad vocabulary list, words that do not conform to the sentence position structure of the bad vocabulary in the bad vocabulary sentence template are filtered out to obtain a third bad vocabulary list.
  10. 根据权利要求1所述的网络不良数据监控方法,其中,将所述分词集合中的词语与预设不良词汇对照表比对,从所述分词集合中筛选出不良词语,将所述不良词语加载到第一不良词汇表,将所述分词集合中筛选后的剩余词语作为待选词语的步骤包括:The method for monitoring network bad data according to claim 1, wherein the words in the word segmentation set are compared with a preset bad vocabulary comparison table, bad words are screened out from the word segmentation set, and the bad words are loaded To the first bad vocabulary list, the step of using the remaining words filtered in the word segmentation set as candidate words includes:
    将所述分词集合中的词语和所述预设不良词汇对照表输入预设相同词语筛选模型中,通过所述预设相同词语筛选模型从所述分词集合中筛选出不良词语;Input the words in the word segmentation set and the preset bad vocabulary comparison table into a preset same word screening model, and filter bad words from the word segmentation set through the preset same word screening model;
    将所述不良词语加载到第一不良词汇表,将所述分词集合中筛选后的剩余词语作为待选词语。The bad words are loaded into the first bad vocabulary list, and the remaining words after screening in the word segmentation set are used as candidate words.
  11. 根据权利要求10所述的网络不良数据监控方法,其中,所述预设相同词语筛选模型包括:The method for monitoring network bad data according to claim 10, wherein the preset same word screening model comprises:
    用于输入所述分词集合中的词语的第一输入层、用于输入预设不良词汇对照表的第二输入层、用于将所述第一输入层输入的词语与所述第二输入层输入的预设不良词汇对照表进行比对分析的相同词语筛选层、用于将所述相同词语筛选层中从所述分词集合中筛选出的不良词语输出的第一输出层和用于将所述相同词语筛选层中从所述分词集合中筛选出不良词语后的剩余词语输出的第二输出层。A first input layer for inputting words in the word segmentation set, a second input layer for inputting a preset bad vocabulary comparison table, and words input by the first input layer and the second input layer The same word screening layer for comparing and analyzing the input preset bad vocabulary comparison table, the first output layer for outputting bad words selected from the word segmentation set in the same word screening layer, and the first output layer for comparing all the bad words. The second output layer for outputting the remaining words after filtering out bad words from the word segmentation layer in the same word filtering layer.
  12. 一种电子装置,其中,该电子装置包括:存储器、处理器,所述存储器中存储有网络不良数据监控程序,所述网络不良数据监控程序被所述处理器执行时实现如下步骤:An electronic device, wherein the electronic device includes a memory and a processor, and a network bad data monitoring program is stored in the memory, and the following steps are implemented when the network bad data monitoring program is executed by the processor:
    对目标文本进行分词处理,得到分词集合;Perform word segmentation processing on the target text to obtain a word segmentation set;
    将所述分词集合中的词语与预设不良词汇对照表比对,从所述分词集合中筛选出不良词语,将所述不良词语加载到第一不良词汇表,将所述分词集合中筛选后的剩余词语作为待选词语;Compare the words in the word segmentation set with a preset bad vocabulary comparison table, filter out bad words from the word segmentation set, load the bad words into the first bad vocabulary list, and filter out the word segmentation set The remaining words of as candidates for selection;
    通过词语相似度计算公式,计算出每个所述待选词语与预设不良词汇对照表中词语的相似度均值,将所述相似度均值大于预设相似度阈值的待选词语加载到所述第一不良词汇表;Through the word similarity calculation formula, calculate the average similarity of each candidate word and the words in the preset bad vocabulary comparison table, and load the candidate words with the average similarity greater than the preset similarity threshold to the The first bad vocabulary list;
    通过情感分析算法,从所述第一不良词汇表中筛除不满足预设不良词情感趋向规则的词语,得到第二不良词汇表;Through the sentiment analysis algorithm, the words that do not meet the preset sentiment trend rule of the bad words are screened out from the first bad vocabulary to obtain the second bad vocabulary;
    通过词语位置结构法,从所述第二不良词汇表中筛除不符合不良词汇语句位置结构的词语,得到第三不良词汇表并输出。Through the word position structure method, words that do not conform to the position structure of the bad vocabulary sentence are screened out from the second bad vocabulary list, and the third bad vocabulary list is obtained and output.
  13. 根据权利要求12所述的电子装置,其中,所述通过词语相似度计算公式,计算出每个待选词语与预设不良词汇对照表中词语的相似度均值的步骤包括:11. The electronic device according to claim 12, wherein the step of calculating the mean similarity between each candidate word and the words in the predetermined bad vocabulary comparison table through a word similarity calculation formula comprises:
    对每个所述待选词语进行向量化处理,得到待选词语的词向量;Performing vectorization processing on each candidate word to obtain a word vector of the candidate word;
    将每个待选词语的词向量分别与预设的不良词的词向量集合中的不良词向量通过词语相似度计算公式进行相似度计算,得到N个相似度值,其中,所述预设的不良词的词向量集合是通过将所述预设不良词汇对照表中词语进行向量化处理得到的词向量集合;The word vector of each word to be selected and the bad word vector in the preset bad word word vector set are calculated by the word similarity calculation formula to calculate the similarity to obtain N similarity values, where the preset The word vector set of bad words is a word vector set obtained by vectorizing words in the preset bad word comparison table;
    根据N个相似度值,获得所述待选词语与预设不良词汇对照表中词语的相似度均值。According to the N similarity values, the mean value of the similarity between the candidate words and the words in the predetermined bad vocabulary comparison table is obtained.
  14. 根据权利要求13所述的电子装置,其中,所述根据N个相似度值,获得所述待选词语与预设不良词汇对照表中词语的相似度均值包括:The electronic device according to claim 13, wherein said obtaining the mean value of similarity between the candidate words and the words in the predetermined bad vocabulary comparison table according to the N similarity values comprises:
    将所述N个相似度值加和处理,得到相似度总值;其中,所述N为所述预设不良词汇对照表中词语的个数;The N similarity values are added and processed to obtain a total similarity value; wherein, the N is the number of words in the preset bad vocabulary comparison table;
    将所述相似度总值除以N,得到所述待选词语与预设不良词汇对照表中词语的相似度均值。The total value of similarity is divided by N to obtain the mean value of similarity between the candidate words and the words in the predetermined bad vocabulary comparison table.
  15. 根据权利要求12所述的电子装置,其中,所述词语相似度计算公式为:The electronic device according to claim 12, wherein the word similarity calculation formula is:
    Figure PCTCN2020136403-appb-100004
    Figure PCTCN2020136403-appb-100004
    其中,W1为待选词语的词向量,W2为预设的不良词的词向量集合中任一词向量,n为词向量维度,W1 i为W1在i个维度下W1的值,W2 i为W2在i个维度下W2的值。 Among them, W1 is the word vector of the word to be selected, W2 is any word vector in the preset word vector set of bad words, n is the word vector dimension, W1 i is the value of W1 in the i dimensions of W1, and W2 i is W2 is the value of W2 in i dimensions.
  16. 根据权利要求12所述的电子装置,其中,通过情感分析算法,从所述第一不良词汇表中筛除不满足预设不良词情感趋向规则的词语,得到第二不良词汇表的步骤包括:11. The electronic device according to claim 12, wherein the step of filtering out words that do not meet the preset emotional tendency rule of bad words from the first bad vocabulary through an sentiment analysis algorithm, and obtaining the second bad vocabulary comprises:
    对所述第一不良词汇表中的词语进行向量化处理,得到待计算词向量;Performing vectorization processing on words in the first bad vocabulary list to obtain word vectors to be calculated;
    通过词共现频率计算公式分别计算出所述待计算词向量与预构建文明词汇库中词向量的词共现频率和所述待计算词向量与预构建不文明词汇库中词向量的词共现频率,作为待用词共现频率;The word co-occurrence frequency of the word vector to be calculated and the word vector in the pre-built civilized vocabulary and the word co-occurrence frequency of the word vector to be calculated and the word vector in the pre-built uncivilized vocabulary are respectively calculated by the word co-occurrence frequency calculation formula. Current frequency, as the co-occurrence frequency of the word to be used;
    根据所述待用词共现频率,通过情感分析计算公式计算出所述第一不良词汇表中各词语的情感倾向强度值;According to the co-occurrence frequency of the words to be used, the emotional tendency intensity value of each word in the first bad vocabulary is calculated through an emotional analysis calculation formula;
    将所述第一不良词汇表中各词语的情感倾向强度值与预设情感倾向强度阈值规则比对,根据所述情感倾向强度阈值规则筛除所述第一不良词汇表中不满足预设不良词情感趋向规则的词语,得到第二不良词汇表。Compare the emotional tendency intensity value of each word in the first bad vocabulary list with a preset emotional tendency intensity threshold rule, and screen out the first bad vocabulary list that does not meet the preset badness according to the emotional tendency intensity threshold rule Words with emotions tend to be regular words, and get the second bad vocabulary list.
  17. 根据权利要求16所述的电子装置,其中,所述词共现频率计算公式为:The electronic device according to claim 16, wherein the formula for calculating the word co-occurrence frequency is:
    Figure PCTCN2020136403-appb-100005
    Figure PCTCN2020136403-appb-100005
    其中,F(N1,N2)指的是在全部n篇文章中,N1,N2在设定大小的窗口内同时出现的频率,F(N1),F(N2)指的是在全部n篇文章中N1,N2分别出现的频率。Among them, F(N1, N2) refers to the frequency at which N1 and N2 appear simultaneously in a window of a set size in all n articles, F(N1), F(N2) refers to all n articles The frequency at which N1 and N2 appear respectively.
  18. 根据权利要求16所述的电子装置,其中,所述情感分析计算公式为:The electronic device according to claim 16, wherein the emotion analysis calculation formula is:
    Figure PCTCN2020136403-appb-100006
    Figure PCTCN2020136403-appb-100006
    其中,Q为第一不良词汇表中的词语,Cwords为预构建文明词汇库,Iwords为预构建不文明词汇库,PMI(Q,cword)为第一不良词汇表中的词语与预构建文明词汇库中词向量的共现频率,PMI(Q,Iword)为第一不良词汇表中的词语与预构建不文明词汇库中词向量的共现频率,SO-PMI(Q)为第一不良词汇表中词语Q的情感倾向强度值。Among them, Q is the words in the first bad vocabulary, Cwords is the pre-built civilized vocabulary, Iwords is the pre-built uncivilized vocabulary, PMI (Q, cword) is the words in the first bad vocabulary and the pre-built civilized vocabulary Co-occurrence frequency of word vectors in the library, PMI(Q, Iword) is the co-occurrence frequency of words in the first bad vocabulary and word vectors in the pre-built uncivilized vocabulary, SO-PMI(Q) is the first bad word The value of the emotional tendency intensity of the word Q in the table.
  19. 一种网络不良数据监控系统,其中,包括:A monitoring system for network bad data, which includes:
    分词处理单元,用于对目标文本进行分词处理,得到分词集合;The word segmentation processing unit is used to perform word segmentation processing on the target text to obtain a word segmentation set;
    不良词语筛选单元,用于将所述分词集合中的词语与预设不良词汇对照表比对,从所述分词集合中筛选出不良词语,将所述不良词语加载到第一不良词汇表,将所述分词集合中筛选后的剩余词语作为待选词语;The bad word screening unit is used to compare words in the word segmentation set with a preset bad vocabulary comparison table, filter bad words from the word segmentation set, load the bad words into the first bad vocabulary list, and load the bad words into the first bad vocabulary list. The remaining words after screening in the word segmentation set are used as candidate words;
    词语相似度计算单元,用于通过词语相似度计算公式,计算出每个所述待选词语与预设不良词汇对照表中词语的相似度均值,将所述相似度均值大于预设相似度阈值的待选词语加载到所述第一不良词汇表;The word similarity calculation unit is used to calculate the average similarity between each of the candidate words and the words in the preset bad vocabulary comparison table through a word similarity calculation formula, and make the average similarity greater than the preset similarity threshold Load the candidate words of to the first bad vocabulary list;
    情感分析单元,用于通过情感分析算法,从所述第一不良词汇表中筛除不满足预设不良词情感趋向规则的词语,得到第二不良词汇表;The sentiment analysis unit is used to screen out words that do not meet the preset sentiment trend rule of undesirable words from the first unhealthy vocabulary through an sentiment analysis algorithm to obtain a second unhealthy vocabulary;
    词语位置结构筛选单元,用于通过词语位置结构法,从所述第二不良词汇表中筛除不符合不良词汇语句位置结构的词语,得到第三不良词汇表并输出。The word position structure screening unit is used to filter out words that do not conform to the position structure of the bad vocabulary sentence from the second bad vocabulary list through the word position structure method to obtain and output the third bad vocabulary list.
  20. 一种计算机可读存储介质,其中,所述计算机可读存储介质中存储有网络不良数据监控程序,所述网络不良数据监控程序被处理器执行时,实现如权利要求1至8中任一项所述的网络不良数据监控方法的步骤。A computer-readable storage medium, wherein a network bad data monitoring program is stored in the computer-readable storage medium, and when the network bad data monitoring program is executed by a processor, it implements any one of claims 1 to 8 The steps of the method for monitoring bad network data.
PCT/CN2020/136403 2020-02-26 2020-12-15 Network bad data monitoring method, apparatus and system, and storage medium WO2021169499A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010119614.7A CN111400439A (en) 2020-02-26 2020-02-26 Network bad data monitoring method and device and storage medium
CN202010119614.7 2020-02-26

Publications (1)

Publication Number Publication Date
WO2021169499A1 true WO2021169499A1 (en) 2021-09-02

Family

ID=71428466

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/136403 WO2021169499A1 (en) 2020-02-26 2020-12-15 Network bad data monitoring method, apparatus and system, and storage medium

Country Status (2)

Country Link
CN (1) CN111400439A (en)
WO (1) WO2021169499A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114897566A (en) * 2022-03-21 2022-08-12 晨雨初听(武汉)文化艺术传播有限公司 Short video compliance online diagnosis and analysis method and diagnosis and analysis system based on big data

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400439A (en) * 2020-02-26 2020-07-10 平安科技(深圳)有限公司 Network bad data monitoring method and device and storage medium
CN113627179B (en) * 2021-10-13 2021-12-21 广东机电职业技术学院 Threat information early warning text analysis method and system based on big data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520802A (en) * 2009-04-13 2009-09-02 腾讯科技(深圳)有限公司 Question-answer pair quality evaluation method and system
CN101639824A (en) * 2009-08-27 2010-02-03 北京理工大学 Text filtering method based on emotional orientation analysis against malicious information
CN107992471A (en) * 2017-11-10 2018-05-04 北京光年无限科技有限公司 Information filtering method and device in a kind of interactive process
CN108984600A (en) * 2018-06-04 2018-12-11 百度在线网络技术(北京)有限公司 Interaction processing method, device, computer equipment and readable medium
US10262059B2 (en) * 2014-03-14 2019-04-16 Tencent Technology (Shenzhen) Company Limited Method, apparatus, and storage medium for text information processing
CN111400439A (en) * 2020-02-26 2020-07-10 平安科技(深圳)有限公司 Network bad data monitoring method and device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464898B (en) * 2009-01-12 2011-09-21 腾讯科技(深圳)有限公司 Method for extracting feature word of text
CN104142913A (en) * 2013-05-07 2014-11-12 株式会社日立制作所 Distinguishing method and distinguishing system for polarities of words and expressions
CN110825840B (en) * 2019-11-08 2023-02-17 北京声智科技有限公司 Word bank expansion method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520802A (en) * 2009-04-13 2009-09-02 腾讯科技(深圳)有限公司 Question-answer pair quality evaluation method and system
CN101639824A (en) * 2009-08-27 2010-02-03 北京理工大学 Text filtering method based on emotional orientation analysis against malicious information
US10262059B2 (en) * 2014-03-14 2019-04-16 Tencent Technology (Shenzhen) Company Limited Method, apparatus, and storage medium for text information processing
CN107992471A (en) * 2017-11-10 2018-05-04 北京光年无限科技有限公司 Information filtering method and device in a kind of interactive process
CN108984600A (en) * 2018-06-04 2018-12-11 百度在线网络技术(北京)有限公司 Interaction processing method, device, computer equipment and readable medium
CN111400439A (en) * 2020-02-26 2020-07-10 平安科技(深圳)有限公司 Network bad data monitoring method and device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114897566A (en) * 2022-03-21 2022-08-12 晨雨初听(武汉)文化艺术传播有限公司 Short video compliance online diagnosis and analysis method and diagnosis and analysis system based on big data
CN114897566B (en) * 2022-03-21 2023-08-04 深圳市单仁牛商科技股份有限公司 Short video compliance online diagnosis analysis method and diagnosis analysis system based on big data

Also Published As

Publication number Publication date
CN111400439A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
WO2021169499A1 (en) Network bad data monitoring method, apparatus and system, and storage medium
US11093854B2 (en) Emoji recommendation method and device thereof
US10262059B2 (en) Method, apparatus, and storage medium for text information processing
CN109471944B (en) Training method and device of text classification model and readable storage medium
Altowayan et al. Improving Arabic sentiment analysis with sentiment-specific embeddings
CN110083832B (en) Article reprint relation identification method, device, equipment and readable storage medium
CN107924398B (en) System and method for providing a review-centric news reader
CN110059156A (en) Coordinate retrieval method, apparatus, equipment and readable storage medium storing program for executing based on conjunctive word
CN108959259B (en) New word discovery method and system
WO2019041528A1 (en) Method, electronic apparatus, and computer readable storage medium for determining polarity of news sentiment
CN112818686A (en) Domain phrase mining method and device and electronic equipment
CN106663123B (en) Comment-centric news reader
CN114330343A (en) Part-of-speech-aware nested named entity recognition method, system, device and storage medium
CN115730597A (en) Multi-level semantic intention recognition method and related equipment thereof
CN112906368B (en) Industry text increment method, related device and computer program product
CN114048288A (en) Fine-grained emotion analysis method and system, computer equipment and storage medium
US11669574B2 (en) Method, apparatus, and computer-readable medium for determining a data domain associated with data
CN112989235A (en) Knowledge base-based internal link construction method, device, equipment and storage medium
US9336197B2 (en) Language recognition based on vocabulary lists
CN116451072A (en) Structured sensitive data identification method and device
US20220335070A1 (en) Method and apparatus for querying writing material, and storage medium
US20190087086A1 (en) Method for providing cognitive semiotics based multimodal predictions and electronic device thereof
CN114491038A (en) Flow mining method, device and equipment based on session scene
CN112926297B (en) Method, apparatus, device and storage medium for processing information
WO2014114117A1 (en) Language recognition based on vocabulary lists

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20921970

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20921970

Country of ref document: EP

Kind code of ref document: A1