-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3753: WER and CER qualification of donations #56
Conversation
51a7ab2
to
a4bd5ec
Compare
} | ||
|
||
$gds->save(); | ||
$donationIds = $query->accessCheck()->execute(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the access check, will commands not alway be runned as user 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commands are actually ran as the anonymous user. The access check however is still needed cf. https://www.drupal.org/node/3201242.
@@ -95,7 +104,9 @@ public function buildRow(EntityInterface $entity) { | |||
} | |||
|
|||
$row['whisper_guess'] = $entity->getWhisperGuess() ?? '-'; | |||
$row['similar_text_score'] = $entity->getWhisperGuessSimilarTextScore() ? round($entity->getWhisperGuessSimilarTextScore(), 2) . '%' : '-'; | |||
$row['similar_text_score'] = $entity->getWhisperGuessSimilarTextScore() ? (100 - round($entity->getWhisperGuessSimilarTextScore(), 2)) / 100 : '-'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the math here with /100
when the other do not have changes to the value from the database. Please comment in the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated README
and added comment explaining why.
To align the similar_text score with WER and CER we report the dissimilarity score as a decimal,
such that all three metrics have 0 being good and 1 (or more) being bad.
f227f84
to
850ed38
Compare
https://leantime.itkdev.dk/#/tickets/showTicket/3753
WER
,CER
andsimilar_text
)Note that previous commands have changed name.