2019-04-26 14:49:06 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
import numpy, pandas
|
|
|
|
|
2019-04-26 15:02:00 +02:00
|
|
|
input_data = pandas.read_csv('ASR-eval/wikiniews_results.tsv', encoding='latin1', error_bad_lines=False, sep='\t', header=None)
|
2019-04-26 14:49:06 +02:00
|
|
|
sentences = input_data[1]
|
|
|
|
references = input_data[2]
|
|
|
|
|
|
|
|
numpy.savetxt('zadanie3/sentences.txt', sentences, '%s')
|
|
|
|
numpy.savetxt('zadanie3/references.txt', references, '%s')
|