Guard generated formatter metadata flow
This commit is contained in:
@@ -34,6 +34,7 @@ def split_tag_text(text: Any) -> list[str]:
|
||||
text = clean(text)
|
||||
if not text:
|
||||
return []
|
||||
text = input_policy.strip_prompt_field_labels(text, field_labels=PROMPT_FIELD_LABELS)
|
||||
text = re.sub(r"\bWoman [A-Z]'s\b", "woman's", text)
|
||||
text = re.sub(r"\bMan [A-Z]'s\b", "man's", text)
|
||||
text = re.sub(r"\bWoman [A-Z]\b", "woman", text)
|
||||
|
||||
Reference in New Issue
Block a user