fixed code
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
from app.moderation.profanity.detector import ProfanityDetector
|
||||
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