Description Usage Arguments Value Examples
View source: R/identify_language.R
This function performs language detection by using Compact Language Detector 2 from CRAN library cld2
.
It is vectorised and guesses the language of each string. Note that it is not designed to do well on very short text,
lists of proper names, part numbers, etc. CLD2 has the highest F1 score and is an order of magnitude faster than CLD3.
1 |
text |
A string with text to classify or a connection to read from.
|
A character vector with ISO-639-1 two-letter language codes.
1 2 | txt <- c("English is a West Germanic language ", "In espaniol, le lingua castilian")
identify_language(txt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.