Skip to main content

Interface: RankingContext

util/allocateHats/getHatRankingContext.RankingContext

Properties

graphemeTokenRanks

graphemeTokenRanks: Object

Maps from a grapheme to the list of ranks of the tokens in which the given grapheme appears.

Index signature

[key: string]: number[]

Defined in

util/allocateHats/getHatRankingContext.ts:25


hatOldTokenRanks

hatOldTokenRanks: CompositeKeyMap<{ grapheme: string ; hatStyle: string }, number>

Maps from a hat candidate (grapheme+style combination) to the score of the token that used the given hat in the previous hat allocation.

Defined in

util/allocateHats/getHatRankingContext.ts:13