GithubHelp home page GithubHelp logo

isabella232 / langid.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mapbox/langid.js

0.0 0.0 0.0 2.53 MB

An off-the-shelf client-side language identification module for JavaScript.

License: Other

HTML 33.10% JavaScript 66.90%

langid.js's Introduction

Introduction
------------
`langid.js` is a direct port of the language identifier implemented by `langid.py`. 
The theory behind the method is described in two published research papers 
[1,2]. `langid.js` does not implement the training of the model, and instead
provides a tool `ldpy2ldjs.py` to convert models trained with the langid.py training tools.

Demonstration
-------------
Open `demo.html` in a browser. `langid.js` uses TypedArrays so a browser that supports
them is required.

Usage
-----
The models and the actual classifier are distributed as two separate javascript files, and both
must be included in a page for the `langid.js` to work. In this repository, I initially provide
`langid-model-acquis.js`, a toy 4-language model based on only JRC-Acquis data, useful for
testing and development purposes, as well as `langid-model-full.js`, the same model that
is packaged by default with `langid.py`.

References
----------
[1] http://aclweb.org/anthology-new/I/I11/I11-1062.pdf
[2] http://www.aclweb.org/anthology/P/P12/P12-3005.pdf

langid.js's People

Contributors

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