1
0
forked from tdwojak/Python2018
Python2018/labs04/cw5.py

18 lines
348 B
Python
Raw Normal View History

2018-06-02 22:23:24 +02:00
import glob
2018-06-03 08:21:19 +02:00
sciezka = "/scores/model.iter*.npz.bleu"
2018-06-02 22:23:24 +02:00
for file in glob.glob(sciezka):
with open(file, 'r') as plik:
for line in plik.readlines():
bleu = float(line[line.find("=")+ 1:line.find(",")])
if bleu >0:
max = bleu
maxi = file
plik.close()
print ( maxi )