WordToken¶
-
class
corpustools.corpus.classes.spontaneous.
WordToken
(**kwargs)[source]¶ WordToken objects are individual productions of Words
Parameters: word : Word
Word that the WordToken is associated with
transcription : iterable of str
Transcription for the WordToken (can be different than the transcription of the Word type). Defaults to None if not specified
spelling : str
Spelling for the WordToken (can be different than the spelling of the Word type). Defaults to None if not specified
begin : float or int
Beginning of the WordToken (can be specified as either in seconds of time or in position from the beginning of the Discourse)
end : float or int
End of the WordToken (can be specified as either in seconds of time or in position from the beginning of the Discourse)
previous_token : WordToken
The preceding WordToken in the Discourse, defaults to None if not specified
following_token : WordToken
The following WordToken in the Discourse, defaults to None if not specified
discourse : Discourse
Parent Discourse object that the WordToken belongs to
speaker : Speaker
The Speaker that produced the token
Attributes
transcription (Transcription) The WordToken’s transcription, or the word type’s transcription if the WordToken’s transcription is None spelling (str) The WordToken’s spelling, or the word type’s spelling if the WordToken’s spelling is None previous_token (WordToken) The previous WordToken in the Discourse following_token (WordToken) The following WordToken in the Discourse duration (float) The duration of the WordToken Methods
__init__
(**kwargs)add_attribute
(tier_name, default_value)