Example #1
0
    def test_simple_addresses(self):
        test_file = 'training/test_data/simple_address_patterns.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 = 'training/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
Example #3
0
    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
Example #4
0
    def test_us_ia_linn(self):

        test_file = 'training/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 = 'training/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
Example #6
0
    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