AIAS1/2_nlp_sdks/porn_detection_sdk
2024-11-25 10:43:10 +08:00
..
doc/img no message 2024-11-25 10:43:10 +08:00
models no message 2024-11-25 10:43:10 +08:00
src no message 2024-11-25 10:43:10 +08:00
pom.xml no message 2024-11-25 10:43:10 +08:00
porn_detection_sdk.iml no message 2024-11-25 10:43:10 +08:00
porn-detection-sdk.iml no message 2024-11-25 10:43:10 +08:00
README_CN.md no message 2024-11-25 10:43:10 +08:00
README_EN.md no message 2024-11-25 10:43:10 +08:00

Download the model and put it in the models directory

Text-Text Review SDK [Chinese]

The porn detection model can automatically determine whether the text is yellow and give the corresponding confidence level. It can identify pornographic descriptions, vulgar dating, and obscene text.

Application scenarios: Applicable to video live broadcast barrage, community forum messages, etc., to detect user comment information. Once illegal content is found, automatic review and real-time filtering are performed to ensure a good user experience.

img

SDK algorithm:

The LSTM network structure is used and the word granularity is used for segmentation, which has high classification accuracy. The maximum sentence length of the model is 256 words.

Running example- ReviewExample

After successful operation, the command line should see the following information:

...

[INFO ] - 测试1: 黄色内容
[INFO ] - [0.03643743, 0.96356255]
[INFO ] - not_porn : 0.03643743
[INFO ] - porn : 0.96356255

[INFO ] - 测试2: 黄牛党
[INFO ] - [0.9998598, 1.4011623E-4]
[INFO ] - not_porn : 0.9998598
[INFO ] - porn : 1.4011623E-4

Open source algorithm

1. Open source algorithm used by the SDK

2. How to export the model?