akihikodaki / cld3-ruby

cld3-ruby is an interface of Compact Language Detector v3 (CLD3) for Ruby.
Apache License 2.0
78 stars 22 forks source link

MAX_NUM_INPUT_BYTES_TO_CONSIDER isn't used #33

Closed coezbek closed 2 years ago

coezbek commented 2 years ago

The documentation mentions the constant MAX_NUM_INPUT_BYTES_TO_CONSIDER as the maximum number of bytes which are processed for find_top_n_most_freq_langs, but it seems the variable isn't really used.

Is this intentional just to show the constant as used by CLD3 or is there an issue that this constants isn't used to initialize a buffer?

akihikodaki commented 2 years ago

It is intentional.