samdei-type-base / rerank.json
mengsay's picture
v1: reranks with itself as the channel model
43645ba verified
Raw History Blame Contribute Delete
968 Bytes
{
"model": "Samdei Type Base",
"version": "v1",
"backend": "torch",
"beam": 5,
"chunk_max_words": 8,
"chunk_rule": "samdei_type.evaluation.chunk_source: at most 8 words per piece, break after any punctuation mark; pieces are decoded and reranked on their own and joined with a space",
"output_rule": "samdei_type.text.drop_commas: a comma that is not between two digits becomes a space",
"score": "log P(y|x) + char*log P_char(y) + word*log P_word(y) - oov*#OOV(y) + channel*log P_ch(x|y)",
"rerank_weights": {
"char": 0.2,
"word": 0.3,
"oov": 0.0,
"channel": 0.5
},
"char_lm": "lm/char5_nowiki.npz",
"word_lm": "lm/wordfull_nowiki.json.gz",
"channel_model": null,
"channel_self": true,
"channel_rule": "P_ch is this model itself: log P(x|y) with y after the character U+E000 as input",
"max_input_chars": 249,
"weights_tuned_on": "closed development set, whole input, 2-fold cross-validated grid search; applied unchanged to 8-word pieces"
}