modbot.preprocessing.check_probs
- modbot.preprocessing.check_probs(config, infile, outfile, bounds, wc)[source]
Check messages for reclassification if they have a non-wholesome probability above the minimum threshold
- Parameters
config (ProcessingConfig) – Class storing preprocessing configuration parameters
infile (str) – Input file path
outfile (str) – Output file path
bounds (list) – List with starting and ending message index to check
wc (WholesomeCheck) – WholesomeCheck class to use for probability predictions