langchain.utilities.redis.TokenEscaper¶
class langchain.utilities.redis.TokenEscaper(escape_chars_re: Optional[Pattern] = None)[source]¶
Escape punctuation within an input string.
Attributes
DEFAULT_ESCAPED_CHARS
Methods
__init__([escape_chars_re])
escape(value)
__init__(escape_chars_re: Optional[Pattern] = None)[source]¶
escape(value: str) → str[source]¶