How to filter sensitive words free text sensitive word detection interface API

Preface

Sensitive word filtering is a technical method developed with the development of the Internet community to prevent cybercrime and cyberviolence. Through targeted screening and blocking of keywords that may be criminal or cyberviolent, many times we It can nip crimes in the bud and nip crimes with serious consequences in the bud.

1. Text Sensitive Word Detection API

A directly available free interface for detecting sensitive words in text content

2. Usage steps

1. Interface

Important note: It is recommended to use https protocol. When https protocol cannot be used, try to use http protocol.
Request method: POST

http(s)://luckycola.com.cn/tools/sensiWords

2. Request parameters

serial number parameter Is it necessary illustrate
1 ColaKey yes The only verification ColaKey can be obtained from the official website ( http(s): //luckycola.com.cn )
2 wordStr yes Content that requires sensitive word detection
3 isStrict no 0 or 1 (whether to enable strict detection mode, this mode is very strict, the default value 0 is not enabled)

Note!!!: If you don’t have Colakey yet, please go to the official website to get it first.
Official website address: http(s): //luckycola.com.cn/

3. Cases and demos

Response return example

{
    
    
	"code": 0,
	"msg": "检测成功",
	// 是否通过检测
	"isPass": false,
	"data": {
    
    
		// 敏感词数组
		"words": [
			"日本"
		],
		// 被检测的文本
		"text": "你还真不行不好说日本"
	}
}

Guess you like

Origin blog.csdn.net/qq_48896417/article/details/131253853