mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-13 13:40:28 +08:00
move dictPath function private
This commit is contained in:
@@ -53,11 +53,7 @@ func NewStopWordLoader() *StopWordLoader {
|
||||
// Set the stop words file path, could be absolute path of stop words file, or
|
||||
// file name in current directory.
|
||||
func (s *StopWordLoader) SetStopWords(stopWordsFileName string) error {
|
||||
stopWordsFilePath, err := jiebago.DictPath(stopWordsFileName)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return jiebago.LoadDict(s, stopWordsFilePath, false)
|
||||
return jiebago.LoadDict(s, stopWordsFileName, false)
|
||||
}
|
||||
|
||||
func (s StopWordLoader) IsStopWord(word string) bool {
|
||||
|
||||
Reference in New Issue
Block a user