Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
normalize commas to dots, update readme
  • Loading branch information
newpavlov committed Jul 15, 2019
1 parent 182d4dc commit 0cc56f3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "icevision-score"
version = "0.2.3"
version = "0.2.4"
authors = ["Artyom Pavlov <newpavlov@gmail.com>"]
license = "MIT OR Apache-2.0"
description = "Scoring software used in the IceVision competition"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2,7 +2,7 @@

Scoring software used in the IceVision competition.

The version used during online stage had version [`v0.1.5`](https://github.com/icevision/score/tree/v0.1.5).
During online stage version [`v0.1.5`](https://github.com/icevision/score/tree/v0.1.5) was used.

## Input file formats

Expand Down
6 changes: 5 additions & 1 deletion src/score.rs
Expand Up @@ -67,7 +67,11 @@ fn compute_k1(gt: SignClass, det: SignClass) -> Option<i32> {

fn compute_k2(gt: &SignAnnotation, det: &SignDetection) -> i32 {
fn normalize(s: &str) -> String {
s.chars().filter(|&c| c != ' ').collect::<String>().to_lowercase()
s.chars()
.filter(|&c| c != ' ')
.map(|c| if c == ',' { '.' } else { c })
.collect::<String>()
.to_lowercase()
}

match (&gt.data, &det.data) {
Expand Down

0 comments on commit 0cc56f3

Please sign in to comment.