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

Difference with reality in Chinese: the word segmentation #74

Open
lyx1213812138 opened this issue Dec 25, 2024 · 0 comments
Open

Difference with reality in Chinese: the word segmentation #74

lyx1213812138 opened this issue Dec 25, 2024 · 0 comments

Comments

@lyx1213812138
Copy link

Maybe need some patch when search Chinese? When we use Chinese, we don't split word by space. Just like this below.

When we run this code :

func main() {
	str := "猫和狗"
	pattern := "猫 狗"
	fmt.Print(fuzzy.Match(pattern, str))
}

the output is: false
But I think it may should be true, because and is two words in str, "猫和狗".

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