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

Errors while splitting a text #997

Open
monsieurpigeon opened this issue Jul 17, 2023 · 1 comment
Open

Errors while splitting a text #997

monsieurpigeon opened this issue Jul 17, 2023 · 1 comment

Comments

@monsieurpigeon
Copy link

I am trying to split a chinese text but in the first sentence "我六岁那年看过一本书" , jieba.cut gives me :
["我", "六岁", "那年", "看过", "一", "本书"]

what I am expecting is :
["我", "六", "岁", "那年", "看过", "一", "本", "书"]

I am splitting the words as I learn them, how could I achieve this result ?
It's maybe already explained in the documentation but i am still learning chinese.
thanks.

@monsieurpigeon
Copy link
Author

I just found a way,

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