langdetect

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 4 Imported by: 0

README

langdetect

Build

export CGO_LDFLAGS_ALLOW=".*"

go build

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LangMap = map[string]string{}/* 184 elements not displayed */

Functions

func LoadModel

func LoadModel(path string) bool

func Restore

func Restore(ptr unsafe.Pointer) (v interface{})

func Save

func Save(v interface{}) unsafe.Pointer

func Unref

func Unref(ptr unsafe.Pointer)

Types

type DetectResult

type DetectResult struct {
	Language   string
	Confidence float64
}

func Detect

func Detect(text string) []DetectResult

type UserData

type UserData struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳