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

Rule-based engine doesn't respect specified languages #23

Closed
krzysztofpcy opened this issue Feb 3, 2020 · 1 comment
Closed

Rule-based engine doesn't respect specified languages #23

krzysztofpcy opened this issue Feb 3, 2020 · 1 comment
Labels
bug
Milestone

Comments

@krzysztofpcy
Copy link

@krzysztofpcy krzysztofpcy commented Feb 3, 2020

Rule-based engine is ignoring list of languages loaded in LanguageDetector.

LanguageDetectorBuilder
            .fromLanguages(ENGLISH, SPANISH).build()
            .detectLanguageOf(text = "你好,世界")

will return CHINESE, where I expect to receive UNKNOWN.

@pemistahl pemistahl added the bug label Feb 4, 2020
@pemistahl pemistahl added this to the Lingua 0.6.1 milestone Feb 4, 2020
@pemistahl

This comment has been minimized.

Copy link
Owner

@pemistahl pemistahl commented Feb 4, 2020

Hah, good catch @krzysztofpcy. Thank you. I'm going to fix this soon.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.