예제 #1
0
파일: hielo.py 프로젝트: sandersn/dialect
def clean(outname):
    return [(norm(src), norm(dst), sig) for (src, dst, dots, sig) in group(list(open(outname)), 4)]
예제 #2
0
파일: rlist.py 프로젝트: sandersn/dialect
def ice2r():
    return dict(((short[r1],short[r2]),float(value))
                for r1,r2,value in group(list(open('dist-11-100-1000-r-path-gor.txt')), 3)
                if not any(r in ['Scotland\n', 'Wales\n'] for r in [r1,r2]))