neuralset.events.transforms.text.AddContextToWords¶
- class neuralset.events.transforms.text.AddContextToWords(*, infra: Backend | None = None, sentence_only: bool = True, max_context_len: int | None = None, split_field: str = 'split')[source][source]¶
Add a context field to the events dataframe, for each word event, by concatenating the sentence fields.
Warning
Unstable API — the context representation (per-word concatenated strings) will be replaced with compact indices in a future release.