This commit is contained in:
Ufnow 2020-04-22 01:25:06 +02:00
parent 7899a5f0b0
commit 2451e45321

View File

@ -5,22 +5,22 @@ fig_srr, ax_srr = plt.subplots()
X1, Y1 = [], [] X1, Y1 = [], []
X2, Y2 = [], [] X2, Y2 = [], []
y_num=1 y_num = 1
for line in open('wer.txt', 'r'): for line in open('wer.txt', 'r'):
Y1.append(float(line[:-1])) Y1.append(float(line[:-1]))
X1.append(y_num) X1.append(y_num)
y_num=y_num+1 y_num = y_num + 1
ax_wer.plot(X1, Y1) ax_wer.plot(X1, Y1)
ax_wer.set_title("WER") ax_wer.set_title("WER")
fig_wer.savefig('wer.png') fig_wer.savefig('wer.png')
y_num=1 y_num = 1
for line in open('srr.txt', 'r'): for line in open('srr.txt', 'r'):
Y2.append(float(line[:-1])) Y2.append(float(line[:-1]))
X2.append(y_num) X2.append(y_num)
y_num=y_num+1 y_num = y_num + 1
ax_srr.plot(X2, Y2) ax_srr.plot(X2, Y2)
ax_srr.set_title("SRR") ax_srr.set_title("SRR")
fig_srr.savefig('srr.png') fig_srr.savefig('srr.png')