Python and PHP Trie Tree class to filter sensetive word
it also return the word and frequency
php和python字典树类 用于过滤敏感词
它可以返回敏感词和频率
result:
敏感词数量: 47863
文章总长度: 86
字典构建耗时:0.18301844596862793
检索耗时: 0.0
here is the content that you want to filter the sensetive word like **** ****ed ******
{'fuck': 2, 'fucker': 1}