首页 > 代码库 > 代码7

代码7

 

技术分享

 

技术分享

 

 

错误代码

for i in range(183):
    num = 79*i+1
    f = open(/home/xbwang/xingyu/predictions old/results-dependency.1l.150d.epoch-1.0.02215.10005.pred,r).readlines()[num:num+80]
    #print f
    max = 0
    index = 0
    for j in range(79):
        x = f[j:j+1]
        print x
        #y = x[0].strip()
        #print y
        #z = int(y)
        #print z
        if(x >= max):
            max = x
            index = j
    #f1 = open(‘/home/xbwang/Desktop/maxscore.txt‘,‘a‘)
    #f1.write(str(max)+‘\n‘)
    #f2 = open(‘/home/xbwang/Desktop/test.txt‘,‘a‘)
    #f2.write(str(index)+‘\n‘)

 

代码7