mirror of
https://github.com/Steffo99/unimore-bda-6.git
synced 2024-11-22 07:54:19 +00:00
Improve rendering of evaluation steps
This commit is contained in:
parent
119483594a
commit
597020ac2d
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class BaseSentimentAnalyzer(metaclass=abc.ABCMeta):
|
||||||
|
|
||||||
for review in evaluation_dataset_func():
|
for review in evaluation_dataset_func():
|
||||||
resulting_category = self.use(review.text)
|
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
|
evaluated += 1
|
||||||
try:
|
try:
|
||||||
perfect += 1 if resulting_category == review.rating else 0
|
perfect += 1 if resulting_category == review.rating else 0
|
||||||
|
|
Loading…
Reference in a new issue