peacock-data-public-datasets-idc-temp-code
/
cc-multilingual-main
/cc_net
/third_party
/kenlm
/include
/lm
/weights.hh
// Weights for n-grams. Probability and possibly a backoff. | |
namespace lm { | |
struct Prob { | |
float prob; | |
}; | |
// No inheritance so this will be a POD. | |
struct ProbBackoff { | |
float prob; | |
float backoff; | |
}; | |
struct RestWeights { | |
float prob; | |
float backoff; | |
float rest; | |
}; | |
} // namespace lm | |