mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-28 16:10:32 +08:00
fs.File -> io.Reader
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package analyse
|
||||
|
||||
import (
|
||||
"io/fs"
|
||||
"io"
|
||||
"sync"
|
||||
|
||||
"github.com/fumiama/jieba/dictionary"
|
||||
@@ -83,7 +83,7 @@ func (s *StopWord) Load(tokens ...dictionary.Token) {
|
||||
s.Unlock()
|
||||
}
|
||||
|
||||
func (s *StopWord) loadDictionary(file fs.File) error {
|
||||
func (s *StopWord) loadDictionary(file io.Reader) error {
|
||||
return dictionary.LoadDictionary(s, file)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user