Skip to content

Lexicon

Lexicon dataclass

A set of scores assigned to tokens, along with the center of the scoring scale

Attributes:

Name Type Description
lf LazyFrame

The (lazy) dataframe containing the lexicon's tokens and their scores. Contains one row per token.

df DataFrame

The eager dataframe containing the lexicon's tokens and their scores. Contains one row per token.

center float

The center of the lexicon's scoring scale, which scores are interpreted relative to

token_col str

The column in lf that contains the tokens

score_col str

The column in lf that contains the scores

revision str | None

The commit of the HuggingFace repository that the lexicon was downloaded at, if it was downloaded from HuggingFace

Source