in DST/dst.py [0:0]
def fix_mismatch_jason(slot, value):
# miss match slot and value
if slot == "type" and value in ["nigh", "moderate -ly priced", "bed and breakfast",
"centre", "venetian", "intern", "a cheap -er hotel"] or \
slot == "internet" and value == "4" or \
slot == "pricerange" and value == "2" or \
slot == "type" and value in ["gastropub", "la raza", "galleria", "gallery",
"science", "m"] or \
"area" in slot and value in ["moderate"] or \
"day" in slot and value == "t":
value = "none"
elif slot == "type" and value in ["hotel with free parking and free wifi", "4",
"3 star hotel"]:
value = "hotel"
elif slot == "star" and value == "3 star hotel":
value = "3"
elif "area" in slot:
if value == "no":
value = "north"
elif value == "we":
value = "west"
elif value == "cent":
value = "centre"
elif "day" in slot:
if value == "we":
value = "wednesday"
elif value == "no":
value = "none"
elif "price" in slot and value == "ch":
value = "cheap"
elif "internet" in slot and value == "free":
value = "yes"
# some out-of-define classification slot values
if slot == "area" and value in ["stansted airport", "cambridge", "silver street"] or \
slot == "area" and value in ["norwich", "ely", "museum", "same area as hotel"]:
value = "none"
return slot, value