public AnalyzeEngine(bool tf)
 {
     categoryPoints = new ConcurrentDictionary <string, double>();
     this.Categorie = CheckinOperations.getCategorie();
     pCategories    = CheckinOperations.getPlaceCategories();
     likeCategories = CheckinOperations.listLikeCategories();
 }
        public void _Load()
        {
            categoryPoints = new ConcurrentDictionary <string, double>();
            this.Categorie = CheckinOperations.getCategorie();

            Engine eng = new Engine(popularityThreshold, CategoryQualityThreshold);

            List <string> list_lines = new List <string>();

            Parallel.ForEach(Categorie, (cat) =>
            {
                var catPoint = eng.getCategoryPoint(cat.CATEGORIEID);
                categoryPoints.AddOrUpdate(cat.NAME, catPoint, (key, oldvalue) => oldvalue + catPoint);
            });
            pCategories    = CheckinOperations.getPlaceCategories();
            likeCategories = CheckinOperations.listLikeCategories();
            //var catPoint = eng.getCategoryPoint(896);
            //categoryPoints.AddOrUpdate("Amphitheater", catPoint, (key, oldvalue) => oldvalue + catPoint);
        }