From c0a694cc24c59fb97165f4128803596b33cd0874 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Sun, 19 Jan 2020 22:34:08 +0100 Subject: [PATCH] Backend: Update label rules Signed-off-by: Michael Mayer --- internal/classify/rules.go | 24 ++++++++++++------------ internal/classify/rules.yml | 15 ++++----------- 2 files changed, 16 insertions(+), 23 deletions(-) diff --git a/internal/classify/rules.go b/internal/classify/rules.go index 825ba784f..2e48919be 100644 --- a/internal/classify/rules.go +++ b/internal/classify/rules.go @@ -597,7 +597,7 @@ var rules = LabelRules{ Categories: []string{"animal"}, }, "bell cote": { - Label: "church", + Label: "tower", Threshold: 0.300000, Priority: 0, Categories: []string{"architecture"}, @@ -771,10 +771,10 @@ var rules = LabelRules{ Categories: []string{"architecture", "water", "outdoor"}, }, "bobsled": { - Label: "sports", - Threshold: 0.000000, - Priority: 0, - Categories: []string{"snow"}, + Label: "", + Threshold: 1.000000, + Priority: -2, + Categories: []string{}, }, "bolete": { Label: "mushroom", @@ -1074,7 +1074,7 @@ var rules = LabelRules{ Label: "", Threshold: 0.000000, Priority: 0, - Categories: []string{"boat", "water", "sports"}, + Categories: []string{"boat", "water"}, }, "capuchin": { Label: "monkey", @@ -4023,10 +4023,10 @@ var rules = LabelRules{ Categories: []string{"animal"}, }, "parachute": { - Label: "sports", + Label: "outdoor", Threshold: 0.300000, Priority: 0, - Categories: []string{"outdoor"}, + Categories: []string{}, }, "parallel bars": { Label: "", @@ -4443,9 +4443,9 @@ var rules = LabelRules{ Categories: []string{"animal"}, }, "punching bag": { - Label: "sports", - Threshold: 0.300000, - Priority: 0, + Label: "", + Threshold: 1.000000, + Priority: -2, Categories: []string{}, }, "purse": { @@ -5004,7 +5004,7 @@ var rules = LabelRules{ Label: "", Threshold: 0.330000, Priority: 0, - Categories: []string{"snow", "sports"}, + Categories: []string{"snow"}, }, "ski mask": { Label: "portrait", diff --git a/internal/classify/rules.yml b/internal/classify/rules.yml index 576ec4813..9e7a58588 100644 --- a/internal/classify/rules.yml +++ b/internal/classify/rules.yml @@ -1890,7 +1890,7 @@ beer glass: see: beer bell cote: - label: church + label: tower threshold: 0.3 categories: - architecture @@ -1919,9 +1919,7 @@ boathouse: - outdoor bobsled: - label: sports - categories: - - snow + see: ignore bookcase: categories: @@ -1962,7 +1960,6 @@ canoe: categories: - boat - water - - sports can opener: label: cooking @@ -2600,10 +2597,8 @@ paper towel: threshold: 0.5 parachute: - label: sports + label: outdoor threshold: 0.3 - categories: - - outdoor car: label: car @@ -2741,8 +2736,7 @@ prison: - architecture punching bag: - label: sports - threshold: 0.3 + see: ignore harvester: label: vehicle @@ -2853,7 +2847,6 @@ ski: threshold: 0.33 categories: - snow - - sports sleeping bag: label: camping