confilter

package module
v0.0.0-...-0069990 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2016 License: MIT Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README


View in [English][中文]


confilter

敏感词判定工具

Build Status Coverage Status

Feature

  • 支持加载多个词库,并返回是否包含各词库中的敏感词
  • 使用[Aho-Corasick算法]

Useage

安装

go get github.com/hanguofeng/confilter

Quick Start

参考 confilter_test.go

参考 server/

文档

[confilter Wiki]

TODO

  • 支持插件机制以实现对文本的预加工、排除干扰等

LICENCE

confilter使用[MIT许可协议]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Confilter

type Confilter struct {
	// contains filtered or unexported fields
}

func CreateConfilter

func CreateConfilter(config *ConfilterConfig) (*Confilter, error)

func (*Confilter) InitMatchers

func (this *Confilter) InitMatchers() error

func (*Confilter) Judge

func (this *Confilter) Judge(s string) (matches []string)

func (*Confilter) JudgeBytes

func (this *Confilter) JudgeBytes(s []byte) (matches []string)

type ConfilterConfig

type ConfilterConfig struct {
	Dictionaries map[string]string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址