Skip to content

Commit

Permalink
Merge pull request #1 from humanmade/threshold-or
Browse files Browse the repository at this point in the history
Make Confidence/Relevence threshold OR
  • Loading branch information
mattheu authored Nov 26, 2024
2 parents d046194 + 97bc8d6 commit 2b1feb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/extract.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function extract_entities( WP_Post $post ): array {
// Ensure we meet minimum confidence and relevance scores.
if (
( $entity['confidenceScore'] ?? 0 ) < (float) get_option( Admin\OPTION_MIN_CONFIDENCE, 0 )
&& ( $entity['relevanceScore'] ?? 0 ) < (float) get_option( Admin\OPTION_MIN_RELEVANCE, 0 )
|| ( $entity['relevanceScore'] ?? 0 ) < (float) get_option( Admin\OPTION_MIN_RELEVANCE, 0 )
) {
Utils\debug_log( sprintf( '❌ Minimum score not met: %s', $entity['entityId'] ) );

Expand Down

0 comments on commit 2b1feb2

Please sign in to comment.