Skip to main content

Choices

Type Alias Choices 

Source
pub type Choices = HashMap<Pair, Weights>;
Expand description

Maps character pairs to their successor probability distributions.

This is the core data structure that drives word generation. Each pair of characters maps to an array of weights indicating how likely each character in the alphabet is to follow that pair.

Aliased Typeยง

pub struct Choices { /* private fields */ }