s407323-mlworkshops/zadanie3/script.py

11 lines
365 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy, pandas
input_data = pandas.read_csv('ASR-eval/wikiniews_results.tsv', encoding='utf8', error_bad_lines=False, sep='\t', header=None)
sentences = input_data[1]
references = input_data[2]
numpy.savetxt('zadanie3/sentences.txt', sentences, '%s')
numpy.savetxt('zadanie3/references.txt', references, '%s')