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

Trailing spaces in encoder name can lead to illegal argument exception #77

Closed
jaumeortola opened this issue Mar 3, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@jaumeortola
Copy link
Contributor

A trailing space in "fsa.dict.encoder=SUFFIX " causes an error: "java.lang.IllegalArgumentException: No enum constant morfologik.stemming.EncoderType.SUFFIX ". This should be fixed. The cause of the error was very hard to find.

@dweiss
Copy link
Member

dweiss commented Mar 3, 2016

These are standard Java property files, we don't do the parsing. I can add a trim before value lookup though, this should help (and we know it's a constant).

@dweiss dweiss changed the title trailing spaces in metadata file Trailing spaces in encoder name can lead to illegal argument exception Mar 3, 2016
@dweiss dweiss closed this as completed Mar 3, 2016
@dweiss dweiss added the task label Mar 3, 2016
@dweiss dweiss added this to the 2.1.1 milestone Mar 3, 2016
@dweiss dweiss self-assigned this Mar 3, 2016
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

2 participants