Comments are contained in a text file with each comment on a new line. The comments file is opened and the comments are read into a list. The list consists of comments which are tokenized before they are checked with a list of words containing racial slurs. If a match is found, the counter is incremented and the degree of profanity is calculated for that comment.
-
Notifications
You must be signed in to change notification settings - Fork 0
Ayushi1011/OffensiveCommentDetector
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Degree of profanity using python
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published