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

Clearly define behaviour: leading and trailing whitespace in gazetteer entries #26

Open
johann-petrak opened this issue Apr 27, 2021 · 0 comments

Comments

@johann-petrak
Copy link
Collaborator

The ANNIE DefaultGazetteer accepts trailing (and leading?) spaces as part of a "word".
I think we simply trim leading and trailing whitespace.

This should be clearly defined and justified:

  • would we ever want to match a space token after/before a token as part of an entry?

More generally, the matching between space tokens and whitespace should be more clearly defined.

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