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

Tokenizer eats hyphen between words #81

Open
victorbocharov opened this issue Nov 18, 2018 · 1 comment
Open

Tokenizer eats hyphen between words #81

victorbocharov opened this issue Nov 18, 2018 · 1 comment
Assignees
Labels

Comments

@victorbocharov
Copy link
Contributor

Line "June-July 2000" is tokenized into "June", "July", "2000". Hyphen disappeared.
Probably not a bug. But the problem happens in case you need to distinguish "June July" from "June-July" on rule level.

@kleag kleag self-assigned this Dec 10, 2018
@kleag
Copy link
Contributor

kleag commented Dec 10, 2018

If I remember well, the tokenizer itself should keep the hyphen untouched and produce one unique token for "June-July". It is then the role of the hyphen alternatives module to either keep the original token with hyphen if it is known from the dictionary or to split the token in the two tokens (here June and July) othewise.
But, if it is splitted, I think it currently just removes the hyphen. In fact, I think that a third token should be created for the hyphen.
@romaricb what do you think about it ?

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

No branches or pull requests

3 participants