Skip to content

Polly  >  Structures  >  LexiconAttributes

LexiconAttributes

Structure Class

LexiconAttributes dataclass

Contains metadata describing the lexicon such as the number of lexemes, language code, and so on. For more information, see Managing Lexicons.

Attributes

alphabet class-attribute instance-attribute
alphabet: str | None = None

Phonetic alphabet used in the lexicon. Valid values are ipa and x-sampa.

language_code class-attribute instance-attribute
language_code: LanguageCode | None = None

Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.

last_modified class-attribute instance-attribute
last_modified: datetime | None = None

Date lexicon was last modified (a timestamp value).

lexemes_count class-attribute instance-attribute
lexemes_count: int = 0

Number of lexemes in the lexicon.

lexicon_arn class-attribute instance-attribute
lexicon_arn: str | None = None

Amazon Resource Name (ARN) of the lexicon.

size class-attribute instance-attribute
size: int = 0

Total size of the lexicon, in characters.