Word

class corpustools.corpus.classes.lexicon.Word(**kwargs)[source]

An object representing a word in a corpus

Information about the attributes are contained in the Corpus’ attributes.

Attributes
spellingstr

A representation of a word that lacks phonological information.

transcriptionTranscription

A representation of a word that includes phonological information.

frequencyfloat

Token frequency in a corpus

Methods

__init__(**kwargs)

add_abstract_tier(tier_name, tier_segments)

Add an abstract tier to the Word

add_attribute(tier_name, value)

Add an arbitrary attribute to the Word

add_tier(tier_name, tier_segments)

Adds a new tier attribute to the Word

enumerate_symbols(tier_name[, reversed])

get_len(tier_name)

initDefaults()

remove_attribute(attribute_name)

Deletes a tier attribute from a Word

update(old_word)

variants([sequence_type])

Get variants and frequencies for a Word