Description Usage Arguments Value Examples
View source: R/detect_language.R
Detect language(s) in a source text
1 |
text |
A character string containing a textual source, or a character vector to detect languages separately for each element. |
... |
Additional arguments passed to |
A data frame of language probabilities.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# simple example
detect_language("This is a test sentence in English")
# two languages in a single text
txt <- "A: ¡Hola! ¿Como está, usted?\nB: Ça va bien. Merci. Et toi?"
detect_language(txt)
# "batch" mode
detect_language(c("A: ¡Hola! ¿Como está, usted?",
"B: Ça va bien. Merci. Et toi?"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.