Git Product home page Git Product logo

Comments (7)

stweil avatar stweil commented on May 12, 2024 1

The Tesseract documentation is not clear about the question whether ISO 639-2 or ISO 639-3 is used:

doc/combine_lang_model.1.asc:   Tesseract uses 3-character ISO 639-2 language codes. (See LANGUAGES)
doc/tesseract.1.asc:  Tesseract uses 3-character ISO 639-2 language codes
include/tesseract/baseapi.h:   * The language is (usually) an ISO 639-3 string or nullptr will default to
src/api/baseapi.cpp: * The language is (usually) an ISO 639-3 string or nullptr will default to eng.

I don't mind fixing this and using ISO 639-3 everywhere, but would like to get more feedback here from people who are affected by a renaming of the models for Chinese.

from tessdata_fast.

stweil avatar stweil commented on May 12, 2024 1

So the suggestion is that the OCR models starting with chi_ be renamed to zho_ instead.

Comments from Chinese users of Tesseract are welcome.

from tessdata_fast.

zdenop avatar zdenop commented on May 12, 2024

AFAIK chi is (also) valid code for Chinese:
https://www.w3.org/WAI/ER/IG/ert/iso639.htm
https://www.loc.gov/standards/iso639-2/php/code_list.php
https://iso639-3.sil.org/code/chi

Never rely on one source (especially if anybody can change it).

from tessdata_fast.

Blightbuster avatar Blightbuster commented on May 12, 2024

Here is the official site, I should have probably linked to that instead of wikipedia in the first place.

While yes, chi is also a valid code for chinese, it is the ISO 639-2/B code (as can also be seen on the official site which you also linked to).
All other languages use the ISO 639-3 codes however. For example Czech is ces.traineddata (ISO 639-3) and not cze.traineddata (ISO 639-2/B).

from tessdata_fast.

Blightbuster avatar Blightbuster commented on May 12, 2024

Thats really unfortunate, that tesseract it self isnt even consistent with the used standard.
Note the (usually) 😆

from tessdata_fast.

stweil avatar stweil commented on May 12, 2024

There exist more ISO 639-3 codes for Chinese variants (at least cmn, yue, nan).

from tessdata_fast.

Blightbuster avatar Blightbuster commented on May 12, 2024

Yes those are for variants of the language although Id argue that the model is applicable for the macro language chinese hence zho fits best. Ofcause it would also be possible to have multiple models for individual chinese languages.

from tessdata_fast.

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.