added image ai-moderation
This commit is contained in:
17
ai-moderation/app/container.py
Normal file
17
ai-moderation/app/container.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
)
|
||||
Reference in New Issue
Block a user