Robitx / cld2

CLD2 (Compact Language Detector 2) bindings for Go (golang)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cld2

-- import "cld2"

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/.

Usage

func Detect

func Detect(text string) string

Detect returns the language code for detected language in the given text.

About

CLD2 (Compact Language Detector 2) bindings for Go (golang)

License:Apache License 2.0


Languages

Language:C++ 98.8%Language:C 1.1%Language:Objective-C 0.0%Language:Shell 0.0%Language:Go 0.0%