def test_us_ia_linn(self) : test_file = 'training_data/openaddress_us_ia_linn.xml' for address_text, components in parseTrainingData(test_file) : _, labels_true = zip(*components) _, labels_pred = zip(*parse(address_text)) yield equals, address_text, labels_pred, labels_true
def test_Parser(self): test_file = 'test_data/synthetic_osm_data_xml.xml' for address_text, components in parseTrainingData(test_file) : _, labels_true = zip(*components) _, labels_pred = zip(*parse(address_text)) yield equals, address_text, labels_pred, labels_true
def test_Parser(self): test_file = 'test_data/us50_test_tagged.xml' for address_text, components in parseTrainingData(test_file) : _, labels_true = zip(*components) _, labels_pred = zip(*parse(address_text)) yield fuzzyEquals, address_text, labels_pred, labels_true