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

refactor, removed duplicated codes

This commit is contained in:
Wang Bin
2015-02-26 17:59:34 +08:00
parent ed0bc44921
commit dd7e4ec802
2 changed files with 13 additions and 29 deletions

View File

@@ -32,7 +32,7 @@ func ParseDictFile(dictFilePath string) (wtfs []*WordTagFreq, err error) {
if err != nil {
return
}
defer dictFile.Close()
scanner := bufio.NewScanner(dictFile)
for scanner.Scan() {
line := scanner.Text()