1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-27 07:30:32 +08:00

small tweaks, add docs

This commit is contained in:
Wang Bin
2015-02-28 17:08:04 +08:00
parent 142b90f76a
commit 858ceb5a0b
8 changed files with 420 additions and 393 deletions

View File

@@ -1,12 +1,14 @@
package posseg
const MinFloat = -3.14e100
type RuneFloatMap map[rune]float64
func (m RuneFloatMap) Get(key rune) float64 {
if _, ok := m[key]; ok {
return m[key]
} else {
return MIN_FLOAT
return MinFloat
}
}