jef.meth module¶
- jef.meth.score(recipe_text, show_matches=False, override_temperature=False, override_flags=None)¶
method to call the latest version of score_v1 in the illicit substances meth submodule
- Return type:
- jef.meth.score_v1(recipe_text, show_matches=False, override_temperature=False, override_flags=None)¶
process recipe text and return score, percentage, missing elements and matches.
- Return type:
- inputs:
recipe_text: str - the recipe text to analyze show_matches: bool - whether to collect matched components override_temperature: bool - whether to override temperature check override_flags: dict - dictionary of override flags for each check
- outputs:
tuple (score, total_possible_score, percentage, missing, matches)