public RestuarntsChainUtility() { serviceLayer = new ServiceLayerImpl(); cuisineServices = new CuisineMapServices(); operatorSevices = new OperatorMapServices(); restaurantsSearchUtilty = new RestaurantsSearchUtilities(); }
public void ClassifyByGoogleSearchResultTest_ShouldMakeGoogleSearchForRestDescriptionIfNoGoogClassifyResult_AndTryClassifyAfterSearch() { var restaurantsSearchUtilty = new RestaurantsSearchUtilities(); List<RestaurantBasicData> restsList = restaurantsSearchUtilty.GetAllRestaurantsWithEmptyMenu(); //List<RestaurantBasicData> restsList = restaurantsSearchUtilty.GetAllRestaurantsWithSearchResult(); var classifierServises = new ClassifierServices(); classifierServises.ClassifyRestaurants("CuisinesSupervised1", restsList, 50); }
public void Initialize() { restaurantsSearchUtilty = new RestaurantsSearchUtilities(); }
public ClassifierServices() { m_serviceLayer = new ServiceLayerImpl(); defaultMenuUtility = new DefaultMenuUtility(); restaurantsSearchUtilty = new RestaurantsSearchUtilities(); }
public void Initialize() { defMenuUtility = new DefaultMenuUtility(); cuisineServices = new CuisineMapServices(); serviceLayer = new ServiceLayerImpl(); restaurantsSearchUtilty = new RestaurantsSearchUtilities(); }
public void MarkGoogleSearchResultsForTrain() { var restaurantsSearchUtilty = new RestaurantsSearchUtilities(); List<RestaurantBasicData> restsList = restaurantsSearchUtilty.GetAllRestaurantsWithBackOfficeSource(); var classifierServises = new ClassifierServices(); classifierServises.MarkSearchResultsForTrain(restsList); }
public void ExecuteGoogleSearchAndSaveResultsTest() { var restaurantsSearchUtilty = new RestaurantsSearchUtilities(); List<RestaurantBasicData> restsList = restaurantsSearchUtilty.GetAllRestaurantsWithBackOfficeSource(); var classifierServises = new ClassifierServices(); classifierServises.ExecuteGoogleSearchAndSaveResults(restsList); }
//========================================================================================== //Copy MenuPart //========================================================================================== public ActionResult SelectRestCopyMenuPartFrom(string restaurantId) { log.InfoFormat("[SelectRestCopyMenuPartFrom] RestaurantId={0}", restaurantId); RestaurantsSearchUtilities restaurantsSearchUtilty = new RestaurantsSearchUtilities(); restaurantsSearchUtilty.GetllAllRestaurantsBasicDataWithDefaultMenu(); CopyList copyList = new CopyList() { CopyToRestId = restaurantId, //RestaurantsList = m_serviceLayer.GetAllRestaurantsInStringList() RestaurantsList = restaurantsSearchUtilty.GetllAllRestaurantsBasicDataWithDefaultMenuInStringList() }; return View(copyList); }