Giter Site home page Giter Site logo

witch-language's Introduction

Witch-language

Massively multilingual, easy language identification. It currently works on 380 languages.

Prerequisites

Install NLTK:

pip3 install --user nltk

Download the UDHR2 dataset:

echo "import nltk; nltk.download('udhr2')" | python3

Usage

echo "Fufú kele madya ya bilûmbu nyonso na Afelika ya Kati." | python3 langid.py

    Top 10 Guesses:
Koongo (kng): 0.519163
Kituba (Democratic Republic of Congo) (ktu): 0.479616
Lozi (loz): 0.000642021
Kaonde (kqn): 0.00050906
Nyamwezi (nym): 3.45846e-05
Luba-Lulua (lua): 2.30121e-05
Lingala (lin): 5.39564e-06
Bemba (Zambia) (bem): 2.98133e-06
Swahili (individual language) (swh): 2.55979e-06
Sukuma (suk): 6.94787e-07

You can add the --help command-line flag to see more options. Using Python3 gives much better performance than Python2 for this task.

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.