Unlock instant, AI-driven research and patent intelligence for your innovation.

Sensitive word filtering method and device

A filtering method and technology for sensitive words, which is applied in the field of sensitive word detection, can solve problems such as low efficiency and slow filtering speed of sensitive words, and achieve the effects of reducing algorithm complexity, improving computing speed and efficiency, and reducing workload

Inactive Publication Date: 2016-08-10
LETV HLDG BEIJING CO LTD +1
View PDF2 Cites 31 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the embodiment of the present invention, a method and device for filtering sensitive words are provided to solve the problem of slow filtering speed and low efficiency of sensitive words in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Sensitive word filtering method and device
  • Sensitive word filtering method and device
  • Sensitive word filtering method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0051] see figure 1 , is a schematic flowchart of a method for filtering sensitive words provided by an embodiment of the present invention, and the method is applied to a server, for example, a website server. Such as figure 1 As shown, the method may include the following steps:

[0052] S110, acquiring text to be filtered.

[0053]...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

An embodiment of the invention discloses a sensitive word filtering method and device. After a to-be-filtered text is obtained, whether the to-be-filtered text contains characters the same as characters in strings of sensitive words is judged firstly, and if the to-be-filtered text contains the characters in the strings of the sensitive words, the to-be-filtered text probably contains the sensitive words; the characters in the to-be-filtered text are matched with a sensitive word trie, and if matching succeeds, the to-be-filtered text contains the sensitive words; finally, the sensitive words contained in the to-be-filtered text are removed through filtering. The character comparison workload can be reduced greatly by using the sensitive word trie for sensitive word matching, the algorithm complexity is reduced, and the arithmetic speed and efficiency are increased.

Description

technical field [0001] The invention relates to the technical field of sensitive word detection, in particular to a sensitive word filtering method and device. Background technique [0002] Sensitive words generally refer to words with sensitive political tendencies, violent tendencies, unhealthy colors or uncivilized words. Most forums and websites have set sensitive words for the convenience of management, and some websites have set some special sensitive words that are only applicable to this website according to their actual conditions. For example, when the content of the post to be published contains sensitive words, the post cannot be published, or the sensitive words contained in the post are automatically replaced with "*" or "X", etc. [0003] Existing sensitive word filtering algorithms, such as KMP single-mode matching algorithm or BM algorithm, compare the characters contained in the text to be filtered with the sensitive words contained in the sensitive thesau...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/9535
Inventor 谢晓静
Owner LETV HLDG BEIJING CO LTD