def load_tag_dict(filename):
    tag_dict = {}
    with open(filename, 'rb') as f:
        code = 0
        for tag in f:
            tag = unicode(tag, 'utf-8').strip()
            if tag:
                tag_dict[tag] = code
                code += 1
    
    return tag_dict
Test that factory can create a portal adder
dataset/ETHPy150Open erickrf/nlpnet/nlpnet/reader.py/load_tag_dict--crossover with--dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/unit/test_portaladder.py/TestPortalAdderFactory.test_create_portal_adder