PyABSA icon indicating copy to clipboard operation
PyABSA copied to clipboard

the output is empty

Open ChrisXULC opened this issue 1 year ago • 3 comments

hi, when I try to extract the aspect item by using the aspect_extractor.predict, but the output is empty, is there any limitation for the length of the text?

ChrisXULC avatar Mar 12 '23 08:03 ChrisXULC

Yes. Them max sequence length is set to 128 generally, which improves the efficiency. If you want to have better performance, try to train on your own dataset and set larger max length.

yangheng95 avatar Mar 12 '23 11:03 yangheng95

Could you let us know where this max_length parameter is set? Any way to override it?

chen-bowen avatar Mar 31 '23 21:03 chen-bowen

In the config object, e.g., set config.max_seq_length=512

yangheng95 avatar Apr 01 '23 18:04 yangheng95