1
Fork 0
mirror of https://github.com/Steffo99/unimore-bda-6.git synced 2024-11-21 15:34:18 +00:00

Improve rendering of evaluation steps

This commit is contained in:
Steffo 2023-02-13 17:14:56 +01:00
parent 119483594a
commit 597020ac2d
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -48,7 +48,7 @@ class BaseSentimentAnalyzer(metaclass=abc.ABCMeta):
for review in evaluation_dataset_func():
resulting_category = self.use(review.text)
log.debug("Evaluation step: %d for %s", resulting_category, review)
log.debug("Evaluation step: %.1d* for %s", resulting_category, review)
evaluated += 1
try:
perfect += 1 if resulting_category == review.rating else 0