We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func main() { seg := new(gse.Segmenter) seg.Dict = gse.NewDict() seg.Init() seg.AddToken("bj", 100, "n") fmt.Println(seg.Dictionary()) fmt.Println(seg.Find("bj")) seg.AddToken("", 100, "n") fmt.Println(seg.Dictionary()) fmt.Println(seg.Find("bj")) } // output: // &{0xc000140000 1 [{[[98 106]] 100 n 0 []}] 100} // 100 n true // &{0xc000140000 1 [{[[98 106]] 100 n 0 []} {[] 100 n 0 []}] 200} // 0 false
The Find func of dict will lose efficacy when I set an empty string, the instance will be unable to cutting string.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
The Find func of dict will lose efficacy when I set an empty string, the instance will be unable to cutting string.
The text was updated successfully, but these errors were encountered: