-
Notifications
You must be signed in to change notification settings - Fork 266
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
Add ability to set language detector Seed #1513
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
The language detector produces different results from same input because it uses random number.
https://github.com/validator/language-detection/blob/575f9b99a978a0594dfbebc47663f9dd2db42363/src/com/cybozu/labs/langdetect/Detector.java#L239-L246
Using random number is probably good practice in general though we need reproducible results in some cases.
Describe the solution you'd like
If you don’t mind, we would like to add a new system property to set language detector seed.
Example:
Describe alternatives you've considered
Disabling language detector is possible alternatives to make Nu Html Checker more reproducible. Howerver, the language detector catches some type of errors so that we want to continue using language detector.
Additional context
None.
The text was updated successfully, but these errors were encountered: