2020-04-22 00:45:51 +02:00
|
|
|
import matplotlib.pyplot as plt
|
|
|
|
|
2020-04-22 01:12:16 +02:00
|
|
|
fig_wer, ax_wer = plt.subplots()
|
|
|
|
fig_srr, ax_srr = plt.subplots()
|
|
|
|
|
|
|
|
X1, Y1 = [], []
|
|
|
|
X2, Y2 = [], []
|
2020-04-22 01:25:06 +02:00
|
|
|
y_num = 1
|
2020-04-22 01:12:16 +02:00
|
|
|
for line in open('wer.txt', 'r'):
|
2020-04-22 01:25:06 +02:00
|
|
|
Y1.append(float(line[:-1]))
|
|
|
|
X1.append(y_num)
|
|
|
|
y_num = y_num + 1
|
2020-04-22 01:12:16 +02:00
|
|
|
|
|
|
|
ax_wer.plot(X1, Y1)
|
|
|
|
ax_wer.set_title("WER")
|
|
|
|
fig_wer.savefig('wer.png')
|
|
|
|
|
2020-04-22 01:25:06 +02:00
|
|
|
y_num = 1
|
2020-04-22 01:12:16 +02:00
|
|
|
for line in open('srr.txt', 'r'):
|
2020-04-22 01:25:06 +02:00
|
|
|
Y2.append(float(line[:-1]))
|
|
|
|
X2.append(y_num)
|
|
|
|
y_num = y_num + 1
|
2020-04-22 01:12:16 +02:00
|
|
|
|
|
|
|
ax_srr.plot(X2, Y2)
|
|
|
|
ax_srr.set_title("SRR")
|
2020-04-22 01:25:06 +02:00
|
|
|
fig_srr.savefig('srr.png')
|