17 lines
371 B
Python
17 lines
371 B
Python
from app.moderation.profanity.dictionary import ProfanityDictionary
|
|
from app.moderation.profanity.lemmatizer import Lemmatizer
|
|
from app.moderation.profanity.detector import ProfanityDetector
|
|
|
|
|
|
dictionary = ProfanityDictionary(
|
|
"app/resources/profanity_words.txt"
|
|
)
|
|
|
|
|
|
lemmatizer = Lemmatizer()
|
|
|
|
|
|
profanity_detector = ProfanityDetector(
|
|
dictionary,
|
|
lemmatizer
|
|
) |