Fix function parameter
Sense numbers start at 1, not 0
This commit is contained in:
parent
ef1e74447d
commit
96358e3eb5
@ -85,7 +85,7 @@ func createSearchTerm(headword headword, entry jmdict.JmdictEntry, meta jmdictMe
|
|||||||
term.addRules(rules...)
|
term.addRules(rules...)
|
||||||
}
|
}
|
||||||
term.addTermTags(headword.TermTags...)
|
term.addTermTags(headword.TermTags...)
|
||||||
term.Score = calculateTermScore(0, headword)
|
term.Score = calculateTermScore(1, headword)
|
||||||
|
|
||||||
redirectHeadword := meta.seqToMainHeadword[entry.Sequence]
|
redirectHeadword := meta.seqToMainHeadword[entry.Sequence]
|
||||||
expHash := redirectHeadword.ExpHash()
|
expHash := redirectHeadword.ExpHash()
|
||||||
|
@ -225,7 +225,7 @@ func formsExportDb(inputPath, outputPath, languageName, title string, stride int
|
|||||||
term.Expression = h.Expression
|
term.Expression = h.Expression
|
||||||
term.Reading = h.Reading
|
term.Reading = h.Reading
|
||||||
term.addTermTags(h.TermTags...)
|
term.addTermTags(h.TermTags...)
|
||||||
term.Score = calculateTermScore(0, h)
|
term.Score = calculateTermScore(1, h)
|
||||||
}
|
}
|
||||||
terms = append(terms, term)
|
terms = append(terms, term)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user