pyrit.prompt_converter.TextSelectionStrategy#
- class TextSelectionStrategy[source]#
Bases:
ABCBase class for text selection strategies used by SelectiveTextConverter and WordLevelConverter. Defines how to select a region of text or words for conversion.
- __init__()#
Methods
__init__()select_range(*, text)Selects a range of characters in the text to be converted.