Пример #1
0
    def interpret(self, match):
        location = LocationOf(match.thing)
        location_name = NameOf(location)

        return location_name, "enum"
Пример #2
0
 def interpret(self, match):
     SpokenInLocations = SpokenIn(match.language)
     return NameOf(SpokenInLocations), "enum"
Пример #3
0
 def interpret(self, match):
     city = HasKeyword(match.city.tokens)
     restaurants = IsRestaurant() + CityOf(city)
     return NameOf(restaurants), "enum"
Пример #4
0
 def interpret(self, match):
     University = IsUniversity()
     return NameOf(University), "enum"
Пример #5
0
 def interpret(self, match):
     own = UniversityOwnerOf(match.university)
     return NameOf(own), "enum"
Пример #6
0
 def interpret(self, match):
     name = match.species.tokens
     species = IsSpecies() + HasKeyword(name)
     Ingredient = IngredientOf(species)
     label = NameOf(Ingredient)
     return label, "enum"
Пример #7
0
 def interpret(self, match):
     Owner = OwnerOf(match.hotel)
     return NameOf(Owner), "enum"
Пример #8
0
 def interpret(self, match):
     hotels = IsHotel()
     return NameOf(hotels), "enum"