def test_us50(self): test_file = 'measure_performance/test_data/us50_test_tagged.xml' data = list(readTrainingData([test_file], GROUP_LABEL)) for labeled_address in data : address_text, components = labeled_address _, labels_true = list(zip(*components)) _, labels_pred = list(zip(*parse(address_text))) yield fuzzyEquals, address_text, labels_pred, labels_true
def test_synthetic_addresses(self): test_file = 'measure_performance/test_data/synthetic_osm_data.xml' data = list(readTrainingData([test_file], GROUP_LABEL)) for labeled_address in data : address_text, components = labeled_address _, labels_true = list(zip(*components)) _, labels_pred = list(zip(*parse(address_text))) yield equals, address_text, labels_pred, labels_true
def test_performance(self): test_file = "tests/test_data_labeled.xml" test_data = list(readTrainingData([test_file], GROUP_LABEL)) for labeled_name in test_data: raw_string, components = labeled_name _, labels_true = list(zip(*components)) _, labels_pred = list(zip(*parse(raw_string))) yield equals, raw_string, labels_pred, labels_true
def test_us50(self): test_file = "measure_performance/test_data/us50_test_tagged.xml" data = list(readTrainingData([test_file], GROUP_LABEL)) for labeled_address in data: address_text, components = labeled_address _, labels_true = list(zip(*components)) _, labels_pred = list(zip(*parse(address_text))) yield fuzzyEquals, address_text, labels_pred, labels_true
def test_synthetic_addresses(self): test_file = "measure_performance/test_data/synthetic_osm_data.xml" data = list(readTrainingData([test_file], GROUP_LABEL)) for labeled_address in data: address_text, components = labeled_address _, labels_true = list(zip(*components)) _, labels_pred = list(zip(*parse(address_text))) yield equals, address_text, labels_pred, labels_true
def test_performance(self) : test_file = 'tests/test_data_labeled.xml' test_data = list(readTrainingData([test_file], GROUP_LABEL)) for labeled_name in test_data : raw_string, components = labeled_name _, labels_true = list(zip(*components)) _, labels_pred = list(zip(*parse(raw_string))) yield equals, raw_string, labels_pred, labels_true