Git Product home page Git Product logo

Comments (35)

amitdo avatar amitdo commented on May 12, 2024 4

As said before here, it is supported.

You need Tesseract 4.0 or newer version, and to download the hye.traineddata.

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

Vahe, Please add the following info.

  • Which language code - arm or hye

  • Modern Armenian or Classical Armenian

  • Sources for primary texts in unicode the Armenian language to use for training

  • Freely available unicode fonts to render the text

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

langdata has https://github.com/tesseract-ocr/langdata/blob/master/Armenian.unicharset

but no folders for armenian languages.

@theraysmith Is this one of the new languages included in your current training?

I had closed an earlier issue - #51

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

http://crubadan.org/languages/hy
(zip file has word frequency lists, unigrams, bigrams etc)

http://hy.wikipedia.org/

https://en.wikipedia.org/wiki/Armenian_language

https://en.wikipedia.org/wiki/Eastern_Armenian

https://en.wikipedia.org/wiki/Western_Armenian

https://en.wikipedia.org/wiki/Classical_Armenian_orthography

https://en.wikipedia.org/wiki/Armenian_orthography_reform

from langdata.

amitdo avatar amitdo commented on May 12, 2024

https://en.wikipedia.org/wiki/Armenian_alphabet

from langdata.

vahenr avatar vahenr commented on May 12, 2024

Thank for all comments (sorry for being late to response):
Language code is: arm
Modern Armenian: Eastern_Armenian
For fonts please refer to this link: http://armunicode.com/en/fonts/unicode/

from langdata.

vahenr avatar vahenr commented on May 12, 2024

For this one:
Sources for primary texts in unicode the Armenian language to use for training

Do you need any Armenian text pages ?

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

from langdata.

vahenr avatar vahenr commented on May 12, 2024

Yes there is an Armenian wikipedia, this is the link:
https://hy.wikipedia.org/wiki/%D4%B3%D5%AC%D5%AD%D5%A1%D5%BE%D5%B8%D6%80_%D5%A7%D5%BB

I will try to get some unicode text resources and share it with you.

Thank you once again.

from langdata.

vahenr avatar vahenr commented on May 12, 2024

text-v2.docx

I attached some text file Armenian unicode hope it help, if you need any more please let me know.

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

Thanks, I will give a try and let you know.

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

Attached is a zip file with arm.traineddata for use with --oem 0 i.e. legacy engine only for testing. Please give it a try, I have not done any eval on it.

I did training using the following command:


training/tesstrain.sh  \
--fonts_dir  /mnt/c/Windows/Fonts \
 --lang arm   \
 --exposures "0"    \
 --langdata_dir ../langdata \
 --tessdata_dir ../tessdata  \
 --output_dir ~/tesstutorial/arm  \
 --fontlist   "Arial" \
  "Consolas" \
  "Courier New" \
  "DejaVu Sans" \
  "DejaVu Sans Mono" \
  "DejaVu Serif" \
  "FreeMono" \
  "FreeSans" \
  "FreeSerif" \
  "Microsoft Sans Serif" \
  "Segoe UI" \
  "Sylfaen" \
  "Tahoma" \
  "Times New Roman," \
  "Trebuchet MS" \
  "Verdana" \
  "Verdana Bold" \
  "Verdana Bold Italic" \
  "Verdana Italic" 

arm.zip

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

Attached is an eval report using one of the training text images - arm.Sylfaen.exp0.txt

CER 2.91
WER 5.02
WER (order independent) 4.63

arm_report.zip

from langdata.

vahenr avatar vahenr commented on May 12, 2024

Thanks a lot for the files, could you please tell me what to do exactly for the next step, and what we are missing ?
Thank you very much once again.

from langdata.

vahenr avatar vahenr commented on May 12, 2024

I did some tests, for the fist one I got:
Error in pixGenHalftoneMask: pix too small: w = 270, h = 97
But the output in overall is not bad (attaching the original and the output) there some characters wrong.
armeniantext
armeniantext.txt

from langdata.

vahenr avatar vahenr commented on May 12, 2024

The next test was better, no errors.
fedrasansarmenian
second.txt

from langdata.

vahenr avatar vahenr commented on May 12, 2024

Waiting for your suggestions.

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

Please see attached zip file.

arm-2.zip

It has a newer arm.traineddata as well as the training_text, fonts list etc that I used. You can test so see if this is better than the earlier version - use --oem 0 since it does not have lstm traineddata.

You can do training by modifying training text etc.
You will need to add arm as a valid language code in

https://github.com/tesseract-ocr/tesseract/blob/master/training/language-specific.sh#L21

and also add a line similar to https://github.com/tesseract-ocr/tesseract/blob/master/training/language-specific.sh#L921 for arm.

from langdata.

vahenr avatar vahenr commented on May 12, 2024

Thank you very much once again.
I will try to do the test on Monday and post the result, I tested this new one arm-2.zip got the same output no big difference.

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

from langdata.

vahenr avatar vahenr commented on May 12, 2024

Could you please help me with this issue:
training/./tesstrain.sh --fonts_dir /root/ocr/training/Fonts --lang arm --exposures "0" --langdata_dir ../langdata --tessdata_dir ../tessdata --output_dir /root/ocr/training_output --fontlist "Aramian Normal" "Arial AM"

=== Starting training for language 'arm'
ERROR: Error: arm is not a valid language code

Thank you once again.

from langdata.

theraysmith avatar theraysmith commented on May 12, 2024

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

Thanks, Ray.

However, hye is marked as unusable language code. Also there is no folder for hye in langdata.

https://github.com/tesseract-ocr/tesseract/blob/master/training/language-specific.sh#L36

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

@vahenr Please see earlier comment at #67 (comment)

You will need to add arm as a valid language code in

https://github.com/tesseract-ocr/tesseract/blob/master/training/language-specific.sh#L21

and also add a line similar to https://github.com/tesseract-ocr/tesseract/blob/master/training/language-specific.sh#L921 for arm.

Or as suggested by Ray, use hye as the language code.

from langdata.

vahenr avatar vahenr commented on May 12, 2024

What do I need to put in this file: arm.training_text ? This is for the option: --langdata_dir ../langdata

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

https://github.com/tesseract-ocr/langdata/files/923560/arm-2.zip

The above zip file has the files that I used. Put them in a folder named arm under langdata. The training text I used has the text from the doc file you sent, Unicode text for udhr and some text copied from Wikipedia.

The wordlist is taken from crubdan site, link is given in some earlier comment in this thread.

These will be sufficient for legacy training. My trial for LSTM training were not successful. Hopefully Ray will provide new traineddata for Armenian soon.

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

Also download other required files from langdata repo. Read the readme file for requirements or just clone the whole repo.

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

See https://github.com/tesseract-ocr/tesseract/wiki/Training-Tesseract-%E2%80%93-tesstrain.sh for info on training.

from langdata.

gelinger777 avatar gelinger777 commented on May 12, 2024

Thank you @Shreeshrii for your help in adding armenian to tessa !!!

from langdata.

amitdo avatar amitdo commented on May 12, 2024

https://github.com/tesseract-ocr/tessdata/tree/master/best

Armenian.traineddata
hye.traineddata

from langdata.

Shreeshrii avatar Shreeshrii commented on May 12, 2024

@vahenr @gelinger777 Please test Armenian support with the newly posted best traineddata for use with the LSTM engine

from langdata.

arm2arm avatar arm2arm commented on May 12, 2024

are there any progress on this ticket?

from langdata.

gurgendav avatar gurgendav commented on May 12, 2024

Is there any updates?

from langdata.

amitdo avatar amitdo commented on May 12, 2024

@Shreeshrii, you opened this issue in 2017. I think you can close it now.

from langdata.

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.