#pip3 install alt-profanity-check
#pip3 install spacy
#python -m spacy download en
from profanity_filter import ProfanityFilter def ContainsProfanity(VideoText): pf = ProfanityFilter() result =pf.censor(VideoText) print(result) if (result!=VideoText): return "1" else: return "0"
No comments:
Post a Comment