Socket
Book a DemoInstallSign in
Socket

github.com/huminghe/nlpt-detect

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/huminghe/nlpt-detect

Source
Go
Version
v0.0.0-20210623054911-bddadd7e0264
Version published
Created
Source

nlpt_detect

Uses a go wrapper around the cld2 project, which is a c++ Naïve Bayesian classifier open-sourced by Google Chrome team. It "probabilistically detects over 80 languages in Unicode UTF-8 text, either plain text or HTML/XML."

Get it

go get github.com/jbowles/cld2_nlpt

Use it

	english := "This is an english sentence"
	got := Detect(english, "name", len(english), 3, 3, 3)
  // -> ENGLISH

So far there are only 5 functions that employ only 3 different ways to use CLD2.

Dependencies

The go wrapper: cld2_nlpt, which is itself dependent on cld2 itself.

nlpt

natural language processing toolkit

FAQs

Package last updated on 23 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts