Giter Club home page Giter Club logo

Comments (10)

stweil avatar stweil commented on June 9, 2024

https://github.com/tesseract-ocr/langdata_lstm/tree/main/ell contains training text and a word list with the same issues, so the model was trained to produce such results.

from tessdata.

chopinesque avatar chopinesque commented on June 9, 2024

Right, so how can this be fixed? For example I can see in https://github.com/tesseract-ocr/langdata_lstm/blob/main/ell/desired_characters and https://github.com/tesseract-ocr/langdata_lstm/blob/main/ell/ell.unicharset the existence of polytonic characters which should not be there.

from tessdata.

stweil avatar stweil commented on June 9, 2024

In a first step you could send a pull request for langdata_lstm which fixes the files there. But finally new trainings are required, maybe based on the existing models for Greek.

from tessdata.

chopinesque avatar chopinesque commented on June 9, 2024

OK, I may need some guidance please. I created a fork. So do I simply have to remove non-valid characters from above mentioned files?

I also see

tessedit_load_sublangs grc
https://github.com/chopinesque/langdata_lstm_modern_greek/blob/main/ell/ell.config#L2

I am not sure whether this line should be there going forward.

from tessdata.

stweil avatar stweil commented on June 9, 2024

So do I simply have to remove non-valid characters from above mentioned files?

Remove or replace, what fits better.

from tessdata.

chopinesque avatar chopinesque commented on June 9, 2024

Thanks. If I replace, I need to know about the structure, for example,

ὶ 3 0,255,0,255,0,0,0,0,0,0 Greek 124 0 124 ὶ # ὶ [1f76 ]a

How is the 124 0 124 derived?

from tessdata.

stweil avatar stweil commented on June 9, 2024

You can keep the unicharset file unmodified. A replacement will be created when a new training is run.

from tessdata.

stweil avatar stweil commented on June 9, 2024

tessedit_load_sublangs grc

That line tells Tesseract to always use grc in addition to ell. Therefore wrong glyphs can also come from grc as long as that configuration is there.

from tessdata.

chopinesque avatar chopinesque commented on June 9, 2024

You can keep the unicharset file unmodified. A replacement will be created when a new training is run.

Not sure then which files I should change. I don't think I have the knowledge to do any training (I also use Windows).

from tessdata.

chopinesque avatar chopinesque commented on June 9, 2024

tessedit_load_sublangs grc

That line tells Tesseract to always use grc in addition to ell. Therefore wrong glyphs can also come from grc as long as that configuration is there.

So this line should be removed.

from tessdata.

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.