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

code refactor, added more documents

This commit is contained in:
Wang Bin
2015-05-06 12:55:04 +08:00
parent 87caff09cb
commit 122bad0a8d
23 changed files with 228 additions and 142 deletions

View File

@@ -1,15 +1,14 @@
package posseg
const MinFloat = -3.14e100
const minFloat = -3.14e100
type runeFloatMap map[rune]float64
func (m runeFloatMap) get(key rune) float64 {
if value, ok := m[key]; ok {
return value
} else {
return MinFloat
}
return minFloat
}
var probEmit = map[uint16]runeFloatMap{