Package: cld2 1.2.5

Jeroen Ooms

cld2: Google's Compact Language Detector 2

Bindings to Google's C++ library Compact Language Detector 2 (see <https://github.com/cld2owners/cld2#readme> for more information). Probabilistically detects over 80 languages in plain text or HTML. For mixed-language input it returns the top three detected languages and their approximate proportion of the total classified text bytes (e.g. 80% English and 20% French out of 1000 bytes). There is also a 'cld3' package on CRAN which uses a neural network model instead.

Authors:Jeroen Ooms [aut, cre], Dirk Sites [cph]

cld2_1.2.5.tar.gz
cld2_1.2.5.zip(r-4.5)cld2_1.2.5.zip(r-4.4)cld2_1.2.5.zip(r-4.3)
cld2_1.2.5.tgz(r-4.4-x86_64)cld2_1.2.5.tgz(r-4.4-arm64)cld2_1.2.5.tgz(r-4.3-x86_64)cld2_1.2.5.tgz(r-4.3-arm64)
cld2_1.2.5.tar.gz(r-4.5-noble)cld2_1.2.5.tar.gz(r-4.4-noble)
cld2_1.2.5.tgz(r-4.4-emscripten)cld2_1.2.5.tgz(r-4.3-emscripten)
cld2.pdf |cld2.html
cld2/json (API)
NEWS

# Install 'cld2' in R:
install.packages('cld2', repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/ropensci/cld2/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

cldcld2language-detectionlanguage-detector

2 exports 37 stars 7.75 score 1 dependencies 3 dependents 4 mentions 144 scripts 1.5k downloads

Last updated 6 days agofrom:a72cb049a7 (on master). Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 03 2024
R-4.5-win-x86_64OKOct 03 2024
R-4.5-linux-x86_64OKOct 03 2024
R-4.4-win-x86_64OKOct 03 2024
R-4.4-mac-x86_64OKOct 03 2024
R-4.4-mac-aarch64OKOct 03 2024
R-4.3-win-x86_64OKOct 03 2024
R-4.3-mac-x86_64OKOct 03 2024
R-4.3-mac-aarch64OKOct 03 2024

Exports:detect_languagedetect_language_mixed

Dependencies:Rcpp

Readme and manuals

Help Manual

Help pageTopics
Compact Language Detector 2cld2 detect_language detect_language_mixed detect_language_multi