|
|
|
@ -121,7 +121,7 @@ class Moderation:
|
|
|
|
|
@staticmethod
|
|
|
|
|
def determine_moderation_result(text, response):
|
|
|
|
|
warn_set = ThresholdSet(0.005, 0.05, 0.05, 0.91, 0.1, 0.04, 0.1)
|
|
|
|
|
delete_set = ThresholdSet(0.1, 0.1, 0.1, 0.95, 0.03, 0.6, 0.4)
|
|
|
|
|
delete_set = ThresholdSet(0.26, 0.1, 0.1, 0.95, 0.03, 0.6, 0.4)
|
|
|
|
|
|
|
|
|
|
warn_result, flagged_warn = warn_set.moderate(text, response)
|
|
|
|
|
delete_result, flagged_delete = delete_set.moderate(text, response)
|
|
|
|
|