TextHighlight Class
Refers to a substring of content within another field.
Constructor
pydantic model TextHighlight
Parameters
| Name | Description |
|---|---|
|
text
Required
|
Defines the snippet of text to highlight |
|
occurrence
Required
|
Occurrence of the text field within the referenced text, if multiple exist. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
text
Required
|
|
|
occurrence
Required
|
|
Attributes
occurrence
field occurrence: int [Required]
text
field text: str [Required]