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

Error: Could not find or load main class .main.class=edu.berkeley.cs.nlp.ocular.main.InitializeLanguageModel #16

Open
BlueSkyLT opened this issue Oct 7, 2021 · 1 comment

Comments

@BlueSkyLT
Copy link

Hello, I am trying to train an OCR model for some WW2 documents. I have no previous experience with Java. When I try to set up and run the program I encounter this error when initializing a language model for English. Does anyone know what is happening?

PS F:\ocr\ocular>   java -Done-jar.main.class=edu.berkeley.cs.nlp.ocular.main.InitializeLanguageModel -mx7g -jar ocular-0.3-SNAPSHOT-with_dependencies.jar \
>>     -inputTextPath mytext.txt \
>>     -outputLmPath lm/english.lmser
>>
Error: Could not find or load main class .main.class=edu.berkeley.cs.nlp.ocular.main.InitializeLanguageModel
-inputTextPath : The term '-inputTextPath' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:2 char:5
+     -inputTextPath mytext.txt \
+     ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (-inputTextPath:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

-outputLmPath : The term '-outputLmPath' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:3 char:5
+     -outputLmPath lm/english.lmser
+     ~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (-outputLmPath:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
@taineleau
Copy link

I think the inputTextPath should be a folder instead of the filename.

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

2 participants