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

The "Options" does not work WHEN the detected script is not in (Latin,Cyrillic,Devanagari,Hebrew,Ethiopic,Arabic) #28

Open
AndyLiu1997 opened this issue Jan 6, 2025 · 0 comments

Comments

@AndyLiu1997
Copy link

AndyLiu1997 commented Jan 6, 2025

func detectLangBaseOnScript(text string, options Options, script *unicode.RangeTable) (Lang, float64)

The options are checked in function "detectLangInProfiles", but if the script is unicode.Han(e.g.), the options does not work at all!
It is really confusing somtimes, the result lang is a lang that I have put it in a BLACKLIST!

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