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

Get all detected languages from Result instance #5

Open
cgr71ii opened this issue Feb 8, 2023 · 0 comments
Open

Get all detected languages from Result instance #5

cgr71ii opened this issue Feb 8, 2023 · 0 comments

Comments

@cgr71ii
Copy link

cgr71ii commented Feb 8, 2023

Hi!

I'm currently using this wrapper in order to detect languages from HTML files. I've checked out https://github.com/commoncrawl/language-detection-cld2/blob/master/src/test/java/org/commoncrawl/langdetect/cld2/DetectionTest.java and I'm using

The method detect returns a Result instance, and I'm using the method toJSON in order to obtain the data from all the detected languages. The problem is that it seems that only returns 3 languages. Is there a way in order to get all of them? If is a limitation from CLD2, sorry, I haven't been using it that much.

Thank you!

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