Simple Bayes v0.7.1 SimpleBayes.Trainer.TokenWeight

Summary

Functions

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

Functions

from(opts)

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