Coder Social home page Coder Social logo

Comments (3)

pemistahl avatar pemistahl commented on May 18, 2024 2

Hello Michael, thank you very much for trying my library.

I'm sorry, the compilation problem you are describing is actually my fault. I updated the include_dir dependency in the language model crates but forgot to tell the lingua crate that it should keep using the older version of the include_dir dependency for Lingua version 1.3.2. The cause was a wrong declaration of the language model crate versions in the Cargo.toml file.

I've just committed a fix for this and made a new Lingua release 1.3.3. Please use this new release and the compilation problem will disappear.

from lingua-rs.

pemistahl avatar pemistahl commented on May 18, 2024 1

Do you know the best way to get the proper IsoCode639_3 code from the full name that LanguageDetector returns?

Please take a look at the API docs. There are methods that return the ISO codes for a given language.

from lingua-rs.

mabushey avatar mabushey commented on May 18, 2024

Thank you! I have it working now, and it's working quite well.

isocode.rs appears to be a to_upper and to_lower system that only works for valid 2 letter and 3 letter Country abbreviations. Do you know the best way to get the proper IsoCode639_3 code from the full name that LanguageDetector returns? I could probably just grep/regex the isocode.rs file into a rust hashmap (ie ("Russian", "RUS"), etc as the language name is in the comment.

Have a great day!

from lingua-rs.

Related Issues (20)

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.