neuralset.events.etypes.BaseText

pydantic model neuralset.events.etypes.BaseText[source][source]

Base class for text-based events.

Parameters:
  • language (str, optional) – ISO language code (e.g., ‘en’, ‘fr’). Default: “”

  • text (str) – The text content (must be non-empty)

  • context (str, optional) – Contextual information (e.g., preceding words). Default: “”

  • modality (Literal["heard", "read", "imagined", "typed", "written", "caption"], optional) – Modality of the text event. Default: None

Raises:

ValidationError – If text is empty (min_length=1)

Fields:
field text: str [Required][source]
field language: str = ''[source]
field context: str = ''[source]
field modality: Literal['heard', 'read', 'imagined', 'typed', 'written', 'caption'] | None = None[source]
requirements: tp.ClassVar[tuple[str, ...]] = ()[source]
type: tp.ClassVar[str] = 'BaseText'[source]