You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you can try below code like test code :
sents, _ = read_line_examples_from_file(f'data/{args.task}/{args.dataset}/dev.txt')
dev_result = evaluate(dev_loader, model, args.paradigm, args.task, sents)
Thanks @kingbuff for answering the question. Since I did not use "do_eval" in the final experiment, I forgot to change the code of that part when releasing. You can modify that part similar to "do_direct_eval". I will update the code later when I have more free time. Thanks.
the evaluate func is define as : def evaluate(data_loader, model, paradigm, task, sents):
but parameter not passed in :
Generative-ABSA/main.py
Line 332 in 8f4671b
It seems that the eval process is not finished, can you add the complete code?
The text was updated successfully, but these errors were encountered: