Update moderations delete hate threshold

Kaveen Kumarasinghe 2 years ago
parent 4aa20f832f
commit 429ea37a44

@ -121,7 +121,7 @@ class Moderation:
@staticmethod @staticmethod
def determine_moderation_result(text, response): def determine_moderation_result(text, response):
warn_set = ThresholdSet(0.005, 0.05, 0.05, 0.91, 0.1, 0.04, 0.1) 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) warn_result, flagged_warn = warn_set.moderate(text, response)
delete_result, flagged_delete = delete_set.moderate(text, response) delete_result, flagged_delete = delete_set.moderate(text, response)

Loading…
Cancel
Save