1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-21 11:20:31 +08:00

removed unused idx parameter from Calc function, this is correpsonding to jieba commit #8a2e7f0e7ed205429ae545f5b875af4eaa8490d1

This commit is contained in:
Wang Bin
2015-02-25 12:18:24 +08:00
parent 73cb677aca
commit 2515d2e5a0
3 changed files with 5 additions and 6 deletions

View File

@@ -115,7 +115,7 @@ type cutAction func(sentence string) []WordTag
func cut_DAG(sentence string) []WordTag {
dag := jiebago.GetDAG(sentence)
routes := jiebago.Calc(sentence, dag, 0)
routes := jiebago.Calc(sentence, dag)
x := 0
var y int
runes := []rune(sentence)
@@ -205,7 +205,7 @@ func cut_DAG_NO_HMM(sentence string) []WordTag {
result := make([]WordTag, 0)
re_eng := regexp.MustCompile(`[[:alnum:]]`)
dag := jiebago.GetDAG(sentence)
routes := jiebago.Calc(sentence, dag, 0)
routes := jiebago.Calc(sentence, dag)
x := 0
var y int
runes := []rune(sentence)