Code Monkey home page Code Monkey logo

Comments (5)

Olamyy avatar Olamyy commented on August 30, 2024 1

Awesome.
I came across an approach here https://github.com/eginhard/word-level-language-id that I've been planning to go through for sometime now. Never had the time to. It's based on the vertibi algorithm so it's rule based.

from iranlowo.

ruohoruotsi avatar ruohoruotsi commented on August 30, 2024

This is a great idea and API suggestion!

from iranlowo.

ruohoruotsi avatar ruohoruotsi commented on August 30, 2024

I've assigned it to myself, so that I can investigate the algos for text-langauge-id.

Offhand, I know of https://github.com/saffsd/langid.py and there maybe some others based on measures of perplexity wrt to a simple n-gram or RNN language model.

from iranlowo.

ruohoruotsi avatar ruohoruotsi commented on August 30, 2024

Instead of sleeping I'm researching text language id 😆 . . .

Fasttext (from Facebook, 2017) is claiming superiority over langid.py:
https://fasttext.cc/blog/2017/10/02/blog-post.html

They support Yorùbá (per their supported lang ISO code list) and it seems like its pretty straightforward to train.

Next steps are to try out the FastText tools, to see if giving it text from yoruba-text, it can learn to id Yorùbá text accurately enough at the sentence and then word level.

from iranlowo.

ruohoruotsi avatar ruohoruotsi commented on August 30, 2024

Cool, we have some options!

While examining the FastText last night, I pulled down some 65M words from a dozen languages (their training corpus) and I thought that rather than have a model that only does Yorùbá {True, False} <-- single class classification (logistic regression) maybe:

  1. We can retrain it with other text (multi-class classification: so EN, JP, KO, ES, ...TUR, PT, .. YO, SWAHILI, ZULU} ...i.e. to be more robust in lang-id amongst other texts of the web
  2. Or train in in a way compatible with their APIs, text embeddings, so that we can submit these text-derived data-products back to the community (https://fasttext.cc/docs/en/crawl-vectors.html) I think we chatted about this on Slack, but they're using unclean Wikipedia text and I think we can do MUCH MUCH better with now our almost 1.5M words!!!

from iranlowo.

Related Issues (16)

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.