Skip to content
New issue

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

Edge case: "test-1" #83

Open
BlackGlory opened this issue Jun 23, 2021 · 0 comments
Open

Edge case: "test-1" #83

BlackGlory opened this issue Jun 23, 2021 · 0 comments

Comments

@BlackGlory
Copy link

BlackGlory commented Jun 23, 2021

When I tried to cut test-1, the result was wrong.

let words = jieba.cut_for_search("test-1", true);
assert_eq!(words, vec!["test", "-", "1"]);

// panicked at 'assertion failed: `(left == right)
// left: `["test-1"]`,
// right: `["test", "-", "1"]`'

This seems to be related to 7a520c1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant