WordToken¶
- class corpustools.corpus.classes.spontaneous.WordToken(update=False, **kwargs)[source]¶
WordToken objects are individual productions of Words
- Parameters
- wordWord
Word that the WordToken is associated with
- transcriptioniterable of str
Transcription for the WordToken (can be different than the transcription of the Word type). Defaults to None if not specified
- spellingstr
Spelling for the WordToken (can be different than the spelling of the Word type). Defaults to None if not specified
- beginfloat or int
Beginning of the WordToken (can be specified as either in seconds of time or in position from the beginning of the Discourse)
- endfloat 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_tokenWordToken
The preceding WordToken in the Discourse, defaults to None if not specified
- following_tokenWordToken
The following WordToken in the Discourse, defaults to None if not specified
- discourseDiscourse
Parent Discourse object that the WordToken belongs to
- speakerSpeaker
The Speaker that produced the token
- Attributes
- transcriptionTranscription
The WordToken’s transcription, or the word type’s transcription if the WordToken’s transcription is None
- spellingstr
The WordToken’s spelling, or the word type’s spelling if the WordToken’s spelling is None
- previous_tokenWordToken
The previous WordToken in the Discourse
- following_tokenWordToken
The following WordToken in the Discourse
- durationfloat
The duration of the WordToken
Methods
__init__
([update])add_attribute
(tier_name, default_value)update
(old_token)