While trying to run ATEPCC example encountered this error.
Tried running the code in following sequence -
import pyabsa
from pyabsa import ATEPCCheckpointManager
examples = ['But the staff was so nice to us .',
'But the staff was so horrible to us .',
r'Not only was the food outstanding , but the little ` perks \' were great .',
'It took half an hour to get our check , which was perfect since we could sit , have drinks and talk !',
'It was pleasantly uncrowded , the service was delightful , the garden adorable , '
'the food -LRB- from appetizers to entrees -RRB- was delectable .',
'How pretentious and inappropriate for MJ Grill to claim that it provides power lunch and dinners !'
]
aspect_extractor = ATEPCCheckpointManager.get_aspect_extractor(checkpoint='lcf_atepc_cdw_apcacc_95.2_apcf1_94.28_atef1_90.49.zip',
auto_device=True # False means load model on CPU
)
Failed here - the ATEPCCheckpointManager doesn't have get_aspect_extractor attribute it says.
While trying to run ATEPCC example encountered this error.
Tried running the code in following sequence -
import pyabsa from pyabsa import ATEPCCheckpointManager
examples = ['But the staff was so nice to us .', 'But the staff was so horrible to us .', r'Not only was the food outstanding , but the little ` perks \' were great .', 'It took half an hour to get our check , which was perfect since we could sit , have drinks and talk !', 'It was pleasantly uncrowded , the service was delightful , the garden adorable , ' 'the food -LRB- from appetizers to entrees -RRB- was delectable .', 'How pretentious and inappropriate for MJ Grill to claim that it provides power lunch and dinners !' ]
sentiment_map = {0: 'Negative', 1: "Neutral", 2: 'Positive', -999: ''}
aspect_extractor = ATEPCCheckpointManager.get_aspect_extractor(checkpoint='lcf_atepc_cdw_apcacc_95.2_apcf1_94.28_atef1_90.49.zip', auto_device=True # False means load model on CPU )
Failed here - the ATEPCCheckpointManager doesn't have get_aspect_extractor attribute it says.
Let me know if I have missed anything here.
Version - 0.9.2.1