1
Fork 0

Fixing spelling mistake

This commit is contained in:
Alex Yatskov 2015-11-15 17:26:24 +09:00
parent 10062c847b
commit 905fbeb814
6 changed files with 17 additions and 17 deletions

View File

@ -39,15 +39,15 @@ import (
// semantics
//
type semantics struct {
Accomodating float64
Affordable float64
Atmospheric float64
Delicious float64
Accommodating float64
Affordable float64
Atmospheric float64
Delicious float64
}
func (s semantics) combine(other semantics, weight float64) semantics {
return semantics{
s.Accomodating + other.Accomodating*weight,
s.Accommodating + other.Accommodating*weight,
s.Affordable + other.Affordable*weight,
s.Atmospheric + other.Atmospheric*weight,
s.Delicious + other.Delicious*weight,
@ -56,7 +56,7 @@ func (s semantics) combine(other semantics, weight float64) semantics {
func (s semantics) reduce(weight float64) semantics {
return semantics{
s.Accomodating / weight,
s.Accommodating / weight,
s.Affordable / weight,
s.Atmospheric / weight,
s.Delicious / weight,

View File

@ -20,7 +20,7 @@ domains = ["tabelog.com"]
[item.props]
[item.props.service]
accomodating = 1.0
accommodating = 1.0
affordable = 0.0
atmospheric = 0.0
delicious = 0.0
@ -29,7 +29,7 @@ domains = ["tabelog.com"]
path = "dl#js-rating-detail > dd:nth-child(4)"
[item.props.dishes]
accomodating = 0.0
accommodating = 0.0
affordable = 0.0
atmospheric = 0.0
delicious = 0.8
@ -38,7 +38,7 @@ domains = ["tabelog.com"]
path = "dl#js-rating-detail > dd:nth-child(2)"
[item.props.drinks]
accomodating = 0.0
accommodating = 0.0
affordable = 0.0
atmospheric = 0.0
delicious = 0.2
@ -47,7 +47,7 @@ domains = ["tabelog.com"]
path = "dl#js-rating-detail > dd:nth-child(10)"
[item.props.cost]
accomodating = 0.0
accommodating = 0.0
affordable = 1.0
atmospheric = 0.0
delicious = 0.0
@ -56,7 +56,7 @@ domains = ["tabelog.com"]
path = "dl#js-rating-detail > dd:nth-child(8)"
[item.props.atmosphere]
accomodating = 0.0
accommodating = 0.0
affordable = 0.0
atmospheric = 1.0
delicious = 0.0

View File

@ -21,7 +21,7 @@ domains = ["www.tripadvisor.com"]
[item.props]
[item.props.service]
accomodating = 1.0
accommodating = 1.0
affordable = 0.0
atmospheric = 0.0
delicious = 0.0
@ -32,7 +32,7 @@ domains = ["www.tripadvisor.com"]
attr = "alt"
[item.props.food]
accomodating = 0.0
accommodating = 0.0
affordable = 0.0
atmospheric = 0.0
delicious = 1.0
@ -43,7 +43,7 @@ domains = ["www.tripadvisor.com"]
attr = "alt"
[item.props.value]
accomodating = 0.0
accommodating = 0.0
affordable = 1.0
atmospheric = 0.0
delicious = 0.0
@ -54,7 +54,7 @@ domains = ["www.tripadvisor.com"]
attr = "alt"
[item.props.atmosphere]
accomodating = 0.0
accommodating = 0.0
affordable = 0.0
atmospheric = 1.0
delicious = 0.0

View File

@ -20,7 +20,7 @@ domains = ["www.yelp.co.jp"]
[item.props]
[item.props.overall]
accomodating = 1.0
accommodating = 1.0
affordable = 1.0
atmospheric = 1.0
delicious = 1.0

Binary file not shown.

View File

@ -150,7 +150,7 @@ func dumpData(dbPath string, restaraunts map[uint32]*restaurant) error {
rest.name,
rest.address,
rest.sem.Delicious,
rest.sem.Accomodating,
rest.sem.Accommodating,
rest.sem.Affordable,
rest.sem.Atmospheric,
rest.latitude,