neuralset.events.transforms.text.AddSentenceToWords¶
- pydantic model neuralset.events.transforms.text.AddSentenceToWords[source][source]¶
Adds sentence-level information to word events based on Text rows.
This transform processes a DataFrame containing word-level (Word) and text-level (Text) events. For each sentence found in the Text rows, it:
Creates a new Sentence row for each sentence.
Assigns sentence and sentence_char annotations to Word rows to indicate which sentence each word belongs to, and which character the word starts at in the sentence.
- Parameters:
- Fields: