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

Getting irregular output when setting "returnVectors" parameter in .detect differently #58

Open
bowenyi-pierre opened this issue Nov 30, 2023 · 0 comments

Comments

@bowenyi-pierre
Copy link

bowenyi-pierre commented Nov 30, 2023

Hello,

I was using the .detect function in pycld2 on a Spanish sentence. Ideally, details[0][0] would be "SPANISH".

However, if I set returnVectors=False, details[0][0] was "ENGLISH." If I set returnVectors=False, details[0][0] was "SPANISH." Please see the attachment below for more details.

I am not sure what is going on here, and I think setting "returnVectors" parameter differently won't cause irregular detection of the most dominant language. Is this possibly a bug to fix? Thank you very much!

Best,
BW

Screenshot 2023-11-30 at 11 56 05 AM
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