Пример #1
0
def create_cube():
	hier_meta_dict = {}
	hier_meta_dict['Location'] = '../data/raw/lochier.hier'
	# hier_meta_dict['Location'] = '../data/raw/new2_lochier.hier'
	# hier_meta_dict['Topic'] = '../data/raw/topichier.hier'

	# hier_meta_dict['Org'] = '../data/raw/orgtype.hier'
	# hier_meta_dict['Per'] = '../data/raw/pertype.hier'


	data_file = "../data/raw/data_table_4dim.csv"
	# data_file = "../data/raw/data_table.csv"
	# data_file = "../data/raw/new_data_table_no_ner.csv"
	pure_freq_file = "../data/processed/pure_freq_qualified_newid.txt"

	freq_data = load_simple_measure(pure_freq_file)
	# print freq_data[0]
	dt = DataTable(data_file, hier_meta_dict)

	count_ne_cells(dt, freq_data)
Пример #2
0
 def __init__(self, measure_file):
   self.measure_data = load_simple_measure(measure_file)