Documentation
¶
Overview ¶
Package cld2 implements language detection using the Compact Language Detector.
This package includes the relevant sources from the cld2 project, so it doesn't require any external dependencies. For more information about CLD2, see https://code.google.com/p/cld2/.
Index ¶
Constants ¶
View Source
const UnknownLanguage = "un"
UnknownLanguage language code for unknown languages.
View Source
const UnknownLanguageName = "UNKNOWN_LANGUAGE"
UnknownLanguageName label for unknown languages.
Variables ¶
This section is empty.
Functions ¶
func DetectLang ¶
DetectLang returns the language code for detected language in the given text.
func LanguageNameFromCode ¶
LanguageNameFromCode returns a human readable language name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.