AspectExtractor returns aspects only if pred_sentiments=True in extract_aspect
method but I don't want sentiments
#386
Labels
bug
Something isn't working
Version
See the console output for PyABSA, Torch, Transformers Version
Describe the bug
The problem is that I should be able to set the parameter
pred_sentiment=False
inextract_aspect
method and get back aspects without sentiments, but instead I get no aspects.Code To Reproduce
Expected behavior
with
pred_sentiment=True
, the output of the above example is:with
pred_sentiment=False
, the output of the above example is:I am not sure where the problem is, but it might have to do with the extract function
_extract()
in line 372 inaspect_extractor.py
The text was updated successfully, but these errors were encountered: