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

fs.File -> io.Reader

This commit is contained in:
源文雨
2022-12-03 10:54:06 +08:00
parent 35ac98dc5f
commit 36c17a10b5
11 changed files with 28 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
package jieba
import (
"io/fs"
"io"
"math"
"sync"
@@ -58,7 +58,7 @@ func (d *Dictionary) Frequency(key string) (float64, bool) {
return freq, ok
}
func (d *Dictionary) loadDictionary(file fs.File) error {
func (d *Dictionary) loadDictionary(file io.Reader) error {
return dictionary.LoadDictionary(d, file)
}