Code Monkey home page Code Monkey logo

nlpt-cld2's Introduction

cld2 nlpt

DEPRECATED for whatlanggo: https://github.com/abadojack/whatlanggo

This is a separate fork of rainycape's wrapper of cld2.

From the README of rainycape wrapper of cld2:

Go wrapper for the cld2 language detection library by Google Chrome.

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

The nlpt part is a side project of mine for a Natural Language Processing Toolkit in go.

External Sources

This wrapper owes its existence to 3 projects:

  • cld2 project -- original code cld2
  • cld2 go wrapper -- cld2
  • rust-cld2 wrapper rust-cld2

I'm not very good at C/C++ so I leaved heavily on wrapper projects in Go and Rust mentioned.

Get it

go get github.com/jbowles/nlpt-cld2

Using it

package main

import (
	"fmt"

	"github.com/jbowles/nlpt-cld2"
)

var s1 = "this sentence is in english dooode"

func this() {
}

func main() {
	res, err := cld2.SimpleDetect(s1)
	fmt.Printf("%v %v \n", res, err)
}

nlpt-cld2's People

Contributors

jbowles avatar drekar avatar

Stargazers

 avatar  avatar abdul dakkak avatar Manuel Bardea avatar Stefan Haacker avatar Randy Reddig avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.