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

Tokenize begins with full stop. #28

Closed
haampie opened this issue Jun 18, 2019 · 1 comment
Closed

Tokenize begins with full stop. #28

haampie opened this issue Jun 18, 2019 · 1 comment

Comments

@haampie
Copy link

haampie commented Jun 18, 2019

tokenize("hello world.")
3-element Array{String,1}:
 "."    
 "hello"
 "world"

Shouldn't this return ["hello", "world", "."]?

@oxinabox
Copy link
Member

oxinabox commented Jun 18, 2019

Hmm how did the tests miss this?
Bug is in https://github.com/JuliaText/WordTokenizers.jl/blob/master/src/words/TokTok.jl#L118
(And again later in that function)
That function should not flush.
It should return the final character(s).
To be flushed at the end.

PR would be appreciated

@Ayushk4 Ayushk4 mentioned this issue Jun 20, 2019
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

2 participants