Natural Language Processing: Find obscenities in English?

后端 未结 11 1249
自闭症患者
自闭症患者 2021-02-09 21:15

Given a set of words tagged for part of speech, I want to find those that are obscenities in mainstream English. How might I do this? Should I just make a huge list, and check f

11条回答
  •  后悔当初
    2021-02-09 22:17

    It depends what your text source is, but I'd go for some kind of established and proven pattern matching algorithm, using a Trie for example.

提交回复
热议问题