unstructured
unstructured copied to clipboard
fix: use raw strings for regex patterns
Summary
Avoid SyntaxWarning and/or SyntaxError messages when importing unstructured.nlp.patterns by using raw strings ("r" prefix) for regex patterns which may contain \x character sequences not recognized by the Python parser for normal strings.
Fixes: #2495