create sentences file
This commit is contained in:
parent
1d91d349f7
commit
b2ba027fc9
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -31,7 +31,9 @@ pipeline {
|
|||||||
stage('Zadanie 3 - Metryki') {
|
stage('Zadanie 3 - Metryki') {
|
||||||
steps {
|
steps {
|
||||||
sh 'python3 --version'
|
sh 'python3 --version'
|
||||||
sh 'python3 ./zadanie3/script.py'
|
sh 'python3 ./zadanie3/sentences.py'
|
||||||
|
sh 'chmod 755 ./zadanie3/trn.sh'
|
||||||
|
sh './zadanie3/trn.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
|
|
||||||
import numpy, pandas
|
import numpy, pandas
|
||||||
|
|
||||||
input_data = pandas.read_csv('ASR-eval/wikiniews_results.tsv', error_bad_lines=False, sep='\t', header=None)
|
input_data = pandas.read_csv('ASR-eval/wikiniews_results.tsv', encoding='latin1', error_bad_lines=False, sep='\t', header=None)
|
||||||
|
|
||||||
sentences = input_data[1]
|
sentences = input_data[1]
|
||||||
|
|
||||||
numpy.savetxt('zadanie3/sentences.tsv', input_data[1], '%s')
|
numpy.savetxt('zadanie3/sentences.txt', sentences, '%s')
|
1
zadanie3/trn.sh
Normal file
1
zadanie3/trn.sh
Normal file
@ -0,0 +1 @@
|
|||||||
|
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < zadanie3/reference.txt > zadanie3/sentences.trn
|
Loading…
Reference in New Issue
Block a user