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

A dot added in dates #52

Open
starkadur opened this issue Oct 7, 2024 · 3 comments
Open

A dot added in dates #52

starkadur opened this issue Oct 7, 2024 · 3 comments

Comments

@starkadur
Copy link

If I send in "17 júní" the tokenizer returns 17. júní". Even though I use tokenized() (and not split_itsentences()) and use the txt-property (which should contain the original source text for the token) I still get this extra dot.

@peturorri
Copy link
Member

I think you're looking for the original property of the tokens, not txt. See: https://github.com/mideind/Tokenizer/blob/master/src/tokenizer/tokenizer.py#L95

@starkadur
Copy link
Author

Do all tokens have the original property? I always get error when trying to access it:
txt = token.original
causes an error while
txt = token.txt
does not.

@peturorri
Copy link
Member

They should all have original although it can sometimes be None.

Can you provide a complete example of the code you're trying to run, and the version of the tokenizer package.

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