Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/sentencepiece.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/unigram_model.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unigram_model.cc b/src/unigram_model.cc
index 083097d..4af85ef 100644
--- a/src/unigram_model.cc
+++ b/src/unigram_model.cc
@@ -403,7 +403,7 @@ void Model::PopulateNodes(Lattice *lattice) const {
Lattice::Node *node = lattice->Insert(begin_pos, length);
node->id = id; // the value of Trie stores vocab_id.
// User defined symbol receives extra bonus to always be selected.
- node->score = IsUserDefinedInlined(id) ? (length * max_score_ + 1.0)
+ node->score = IsUserDefinedInlined(id) ? (length * max_score_ - 0.1)
: GetScoreInlined(id);
if (!has_single_node && node->length == 1) {
has_single_node = true;