Labels: Update rules for more accurate results

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-02-02 08:29:59 +01:00
parent 9c6fbf02c3
commit 382a5a89f8
2 changed files with 20 additions and 21 deletions

View File

@ -141,7 +141,7 @@ var rules = LabelRules{
Categories: []string{"reptile", "animal"},
},
"alp": {
Label: "alpine hut",
Label: "alpine",
Threshold: 0.200000,
Priority: 0,
Categories: []string{"landscape", "mountains"},
@ -1353,10 +1353,10 @@ var rules = LabelRules{
Categories: []string{},
},
"cliff": {
Label: "",
Label: "landscape",
Threshold: 0.200000,
Priority: 0,
Categories: []string{"landscape", "rocks"},
Categories: []string{"water", "rocks"},
},
"cliff dwelling": {
Label: "building",
@ -2319,10 +2319,10 @@ var rules = LabelRules{
Categories: []string{"animal"},
},
"geyser": {
Label: "water",
Label: "landscape",
Threshold: 0.400000,
Priority: 0,
Categories: []string{},
Categories: []string{"water"},
},
"giant panda": {
Label: "panda",
@ -4449,10 +4449,10 @@ var rules = LabelRules{
Categories: []string{},
},
"promontory": {
Label: "rocks",
Label: "landscape",
Threshold: 0.200000,
Priority: 0,
Categories: []string{"landscape"},
Categories: []string{"water", "rocks"},
},
"ptarmigan": {
Label: "bird",

View File

@ -2038,6 +2038,9 @@ coffee:
categories:
- beverage
espresso:
see: coffee
coffee mug:
see: coffee
@ -3323,37 +3326,33 @@ pitcher:
see: beverage
goblet:
label: beverage
threshold: 0.2
espresso:
see: coffee
see: beverage
eggnog:
see: beverage
alp:
label: alpine hut
label: alpine
threshold: 0.2
categories:
- landscape
- mountains
cliff:
label: landscape
threshold: 0.2
categories:
- landscape
- water
- rocks
geyser:
label: water
threshold: 0.4
promontory:
label: rocks
threshold: 0.2
see: cliff
geyser:
label: landscape
threshold: 0.4
categories:
- landscape
- water
sandbar:
label: beach