基于ac算法实现的快速高效的敏感词匹配,检查,过滤功能
$ rebar3 escriptize -> genAcs
$ rebar3 compile
创建 acsTree.erl
脚本生成:./genAcs SWordFile OutputDir
函数调用: genAcs:main([SWordFile, OutputDir])
匹配 检查 过滤 敏感词
eAcs:matchSw/1 %% 返回匹配的敏感词列表
eAcs:isHasSw/1 %% 检查是否包含敏感词
eAcs:replaceSw/1 %% 替换敏感词