1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-12 21:20:26 +08:00

refactor variable name

This commit is contained in:
Wang Bin
2015-02-26 16:07:08 +08:00
parent ecf2da12f4
commit aa9ad48b1c
4 changed files with 25 additions and 28 deletions

View File

@@ -121,7 +121,7 @@ func cut_DAG(sentence string) []WordTag {
buf = make([]rune, 0)
} else {
bufString := string(buf)
if v, ok := jiebago.T.Freq[bufString]; !ok || v == 0.0 {
if v, ok := jiebago.Trie.Freq[bufString]; !ok || v == 0.0 {
recognized := cutDetail(bufString)
for _, t := range recognized {
result = append(result, t)
@@ -160,7 +160,7 @@ func cut_DAG(sentence string) []WordTag {
}
} else {
bufString := string(buf)
if v, ok := jiebago.T.Freq[bufString]; !ok || v == 0.0 {
if v, ok := jiebago.Trie.Freq[bufString]; !ok || v == 0.0 {
recognized := cutDetail(bufString)
for _, t := range recognized {
result = append(result, t)