Skip to content

Commit

Permalink
update code and fixed godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
vcaesar committed Mar 16, 2021
1 parent 0efb4b0 commit eb1d617
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dict_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ func (seg *Segmenter) Size(size int, text, freqText string) (frequency float64)
if !seg.LoadNoFreq {
// 无效行
return
} else {
freqText = seg.TextFreq
}

freqText = seg.TextFreq
}

// 解析词频
Expand Down
4 changes: 2 additions & 2 deletions trim.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func FilterLang(text, lang string) (new string) {
return
}

// Rang rang text to []string
// Range range text to []string
func Range(text string) (new []string) {
for _, value := range text {
new = append(new, string(value))
Expand All @@ -247,7 +247,7 @@ func Range(text string) (new []string) {
return
}

// RangText rang text to string
// RangeText range text to string
func RangeText(text string) (new string) {
for _, value := range text {
new += string(value) + " "
Expand Down

0 comments on commit eb1d617

Please sign in to comment.