icon=folium.Icon(color='green')).add_to(m) for rec in docIncluded: folium.Marker(location=[rec[0], rec[1]], tooltip=rec[2], popup=rec[3], icon=folium.Icon(color='blue')).add_to(m) m.save('index.html') print("Enter comma seperated Cordinates:") cc = input() cor = (float(cc.split(",")[0]), float(cc.split(",")[1])) print("Distance in km: ") dis = float(input()) md = MapDrawer.MapDrawer(cor, dis) md.draw() #dataloading = DataLoading.DataLoading() #preprocessing = Preprocessing.Preprocessing() #textManagement = TextManagement.TextManagement() #textMining = TextMining.TextMining() #displayresults=DisplayResults.DisplayResults() #lists = dataloading.LoadTSVFilesDataIntoString() #data = preprocessing.PreprocessDataForTextManagement(lists) #invertedIndex = textManagement.CreateInvertedIndexWithNewScore(data) ##save table maybe #textManagement.SaveInvertedIndexJson(invertedIndex, "table-custom-scored.json") ##load table from file #invertedIndex = textManagement.LoadInvertedIndexJson("table-custom-scored.json")
def __init__(self): reader = CSVElectionInterpreter(PATH) formatted_info = reader.get_dict() tree = dict_to_tree(formatted_info) self.drawer = MapDrawer(tree, COLOR_ASSIGNMENTS)