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

Command Line API Error #18

Open
ShivamP63 opened this issue Mar 3, 2023 · 0 comments
Open

Command Line API Error #18

ShivamP63 opened this issue Mar 3, 2023 · 0 comments

Comments

@ShivamP63
Copy link

Hi I was trying to use command line API and I got this error.

C:\Users\shiva\OneDrive\Desktop\SLP-Core>java -jar slp-core.jar train --train "C:\Users\shiva\OneDrive\Desktop\SLP-Core\java_projects\train" --counter "C:\Users\shiva\OneDrive\Desktop\SLP-Core\train.counts" --vocabulary "C:\Users\shiva\OneDrive\Desktop\SLP-Core\train.vocab" --closed --order 4 --per-line -l simple --delims
Using lexer PunctuationLexer
Retrieving vocabulary from file
Counting: 1M tokens processed in 6s
Counting: 2M tokens processed in 12s
Counting: 3M tokens processed in 18s
Counting: 4M tokens processed in 23s
Counting complete: 4123657 tokens processed in 24s
Writing counter to file
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.marshalling.Marshalling$OptionalDataExceptionCreateAction$1 (file:/C:/Users/shiva/OneDrive/Desktop/SLP-Core/slp-core.jar) to constructor java.io.OptionalDataException(boolean)
WARNING: Please consider reporting this to the maintainers of org.jboss.marshalling.Marshalling$OptionalDataExceptionCreateAction$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Writing counter to: C:\Users\shiva\OneDrive\Desktop\SLP-Core\train.counts
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.jboss.marshalling.river.RiverMarshaller.(RiverMarshaller.java:1233)
at org.jboss.marshalling.river.RiverMarshallerFactory.createMarshaller(RiverMarshallerFactory.java:54)
at slp.core.counting.io.CounterIO.writeCounter(CounterIO.java:43)
at slp.core.CLI.train(CLI.java:369)
at slp.core.CLI.main(CLI.java:114)
Caused by: java.lang.IllegalStateException: No standard field found for reverse order comparator!
at org.jboss.marshalling.river.Protocol.(Protocol.java:220)
... 5 more

I am running this code on Java 10. I was able to successfully create a vocabulary file. But when I try to train the model and write to counter file , I got the error shown above. I tried upgrading to latest Java but got the same error.

Is there any solution to this issue that you can suggest ?

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

1 participant