Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hauptklasse eu.digitisation.Main konnte nicht gefunden oder geladen werden #29

Open
imlabormitlea-code opened this issue Dec 6, 2022 · 5 comments

Comments

@imlabormitlea-code
Copy link

imlabormitlea-code commented Dec 6, 2022

Hei!
I tried to run something like

java -cp ocrevaluation.jar eu.digitisation.Main \
    -gt {ground_truth_file} [{encoding}] \
    -ocr {ocr_file} [encoding] \
    -d {output_directory} [-r {equivalences_file}] 

from the directory where I downloaded ocrevalUAtion-1.3.4-jar-with-dependencies.jar to and got the following error:
"Fehler: Hauptklasse eu.digitisation.Main konnte nicht gefunden oder geladen werden
Ursache: java.lang.ClassNotFoundException: eu.digitisation.Main"
Could you help me with that?

@cneud
Copy link
Member

cneud commented Dec 6, 2022

Hi @imlabormitlea-code, can you try with java -cp ocrevalUAtion-1.3.4-jar-with-dependencies.jar eu.digitisation.Main ... (or rename ocrevalUAtion-1.3.4-jar-with-dependencies.jar to ocrevaluation.jar and check if this fixed the problem?

@imlabormitlea-code
Copy link
Author

Yes renaming helped. Thx a lot. I also had to made a few changes to the provided example from the wiki:

java -cp ocrevaluation.jar eu.digitisation.Main \
    -gt groundtruth.xml -ocr ocr.txt **-e** utf8 \
    **-o** output -r equivalences.csv

@imlabormitlea-code
Copy link
Author

Nevertheless I get a bug for ALTO-XML

Dez. 06, 2022 5:07:58 PM eu.digitisation.utils.log.Messages info
INFORMATION: http://www.loc.gov/standards/alto/alto-v2.0.xsd http://schema.ccs-gmbh.com/ALTO http://www.loc.gov/standards/alto/v2/alto-2-0.xsd http://www.loc.gov/standards/alto/ns-v2#
Dez. 06, 2022 5:07:58 PM eu.digitisation.utils.log.Messages info
INFORMATION: eu.digitisation.Main: Unknown schema location http://www.loc.gov/standards/alto/ns-v4# https://www.loc.gov/standards/alto/v4/alto.xsd for file type ALTO

@kba
Copy link
Contributor

kba commented Dec 6, 2022

We need a new release to include #25 which fixes that.

IIRC workaround was to add

  <entry key="schemaLocation.ALTO">
    http://www.loc.gov/standards/alto/alto-v2.0.xsd 
    http://schema.ccs-gmbh.com/ALTO 
    http://www.loc.gov/standards/alto/v2/alto-2-0.xsd 
    http://www.loc.gov/standards/alto/ns-v2#
    http://www.loc.gov/standards/alto/v3/alto-3-0.xsd
    http://www.loc.gov/standards/alto/ns-v3#
    http://www.loc.gov/standards/alto/v4/alto-4-0.xsd
    http://www.loc.gov/standards/alto/v4/alto-4-1.xsd
    http://www.loc.gov/standards/alto/v4/alto-4-2.xsd
    http://www.loc.gov/standards/alto/ns-v4#
  </entry>

to the userProperties.xml.

@cneud
Copy link
Member

cneud commented Dec 8, 2022

I will try to make a new release that includes ALTO v4 via #25 next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants