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

AE Evaluation #18

Open
vishnu-itachi opened this issue Mar 18, 2021 · 8 comments
Open

AE Evaluation #18

vishnu-itachi opened this issue Mar 18, 2021 · 8 comments

Comments

@vishnu-itachi
Copy link

After downloading "post-trained Laptop weights" (fine-tuned model). How can I Evaluate using that weights for aspect Extraction?
Thank you.

@howardhsu
Copy link
Owner

howardhsu commented Mar 20, 2021 via email

@vishnu-itachi
Copy link
Author

You need to fine tune on laptop aspect extraction data.
Isn't the "post-trained Laptop weights" already fine-tuned weights of the model on laptop data?

@howardhsu
Copy link
Owner

howardhsu commented Mar 20, 2021 via email

@vishnu-itachi
Copy link
Author

Thanks for the info. While evaluating I am getting this error w.r.t to Main.Aspects

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext
	at gr.ilsp.nlp.semeval.absa.eval.ConsoleAspectsAndCategsExtractionEval.run(ConsoleAspectsAndCategsExtractionEval.java:74)
	at gr.ilsp.nlp.semeval.absa.eval.ConsoleAspectsAndCategsExtractionEval.main(ConsoleAspectsAndCategsExtractionEval.java:243)
	at Main.Aspects.main(Aspects.java:9)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	... 3 more
Traceback (most recent call last):
  File "eval/evaluate_ae.py", line 174, in <module>
    print(evaluate(args.pred_json, command, template) )
  File "eval/evaluate_ae.py", line 158, in evaluate
    acc=check_output(command ).split()
  File "/usr/lib/python3.7/subprocess.py", line 411, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['java', '-cp', 'eval/eval.jar', 'Main.Aspects', 'data/ae/official_data/laptop_pred.xml', 'data/ae/official_data/Laptops_Test_Gold.xml']' returned non-zero exit status 1.

Can you help me with this. Thanks

@howardhsu
Copy link
Owner

howardhsu commented Mar 22, 2021 via email

@vishnu-itachi
Copy link
Author

Thanks a lot for the quick reply. Resolved the problem. Can you explain what is "laptop_pred.xml" which according to the java command should be present along with "Laptops_Test_Gold.xml" and "Laptops_Test_Data_PhaseA.xml" in official_data in ae as it is not mentioned in readme from where we get that. Thanks

@howardhsu
Copy link
Owner

howardhsu commented Mar 22, 2021 via email

@vishnu-itachi
Copy link
Author

put model predictions into a XML file that jar can only read.
Got it thanks a lot.

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