@yielder
def prepare_housenumbers(doc):
    if (not doc):
        return
    housenumbers = doc.get(config.HOUSENUMBERS_FIELD)
    if housenumbers:
        doc['housenumbers'] = {}
        for (number, data) in housenumbers.items():
            token = ''.join(list(preprocess(number)))
            data['raw'] = number
            doc['housenumbers'][token] = data
    return doc
@yielder
def prepare_housenumbers(doc):
    if (not doc):
        return
    housenumbers = doc.get(config.HOUSENUMBERS_FIELD)
    if housenumbers:
        doc['housenumbers'] = {}
        for (number, data) in housenumbers.items():
            token = .join(list(preprocess(number)))
            data['raw'] = number
            doc['housenumbers'][token] = data
    return doc