Skip to content

Commit 55bb09e

Browse files
committed
Feedback | added raw score in download csv
1 parent bdc9c53 commit 55bb09e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/map-projects/MapProject.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ const MapProject = () => {
14151415
if(candidate?.id) {
14161416
let algo = candidate.search_meta.algorithm || 'ocl-semantic'
14171417
algo = algo.replaceAll('-', '')
1418-
_candidates[`__candidate__${algo}_${i + 1}__`] = candidate?.id ? compact([`${candidate.id}:${candidate.display_name}`, `Score: ${candidate?.search_meta?.search_normalized_score}`]).join('\n') : null
1418+
_candidates[`__candidate__${algo}_${i + 1}__`] = candidate?.id ? compact([`${candidate.id}:${candidate.display_name}`, `Score: ${candidate?.search_meta?.search_normalized_score}`, `Raw Score: ${candidate?.search_meta?.search_score}`]).join('\n') : null
14191419
}
14201420
})
14211421
forEach(__bridgeCandidates, (candidate, i) => {
@@ -1429,7 +1429,7 @@ const MapProject = () => {
14291429
if(candidate?.id) {
14301430
let algo = candidate.search_meta.algorithm || 'ocl-scispacy-loinc'
14311431
algo = algo.replaceAll('-', '')
1432-
_scispacyCandidates[`__candidate_${algo}_${i + 1}__`] = candidate?.id ? compact([`${candidate.id}:${candidate.display_name}`, `Score: ${candidate?.search_meta?.search_normalized_score}`]).join('\n') : null
1432+
_scispacyCandidates[`__candidate_${algo}_${i + 1}__`] = candidate?.id ? compact([`${candidate.id}:${candidate.display_name}`, `Score: ${candidate?.search_meta?.search_normalized_score}`, `Raw Score: ${candidate?.search_meta?.search_score}`]).join('\n') : null
14331433
}
14341434
})
14351435
return {..._candidates, ..._bridgeCandidates, ..._scispacyCandidates}

0 commit comments

Comments
 (0)