Simple Bayes v1.0.0 SimpleBayes.Trainer.TokenWeight

Link to this section Summary

Functions

Gets the token weight from either the training or the default config

Link to this section Functions

Gets the token weight from either the training or the default config.

Examples

iex> SimpleBayes.Trainer.TokenWeight.from(weight: 2)
2

iex> SimpleBayes.Trainer.TokenWeight.from(default_weight: 1)
1