Google’s Compact Language Detector 3 is a neural network model for language identification and the successor of CLD2 (available from) CRAN. This version is still experimental and uses a novell algorithm with different properties and outcomes. For more information see: https://github.com/google/cld3#readme
detect_language() is vectorised and guesses the the language of each string in text or returns NA if the language could not reliably be determined.
detect_language_multi() is not vectorised and detects all languages inside the entire character vector as a whole.
Binary packages for OS-X or Windows can be installed directly from CRAN:
sudo apt-get install -y libprotobuf-dev protobuf-compiler
On Fedora we need protobuf-devel:
sudo yum install protobuf-devel
On CentOS / RHEL we install protobuf-devel via EPEL:
sudo yum install epel-release sudo yum install protobuf-devel
On OS-X use protobuf from Homebrew:
brew install protobuf