use cut instead of python
This commit is contained in:
parent
79032fc1d7
commit
e508a430d4
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -30,11 +30,8 @@ pipeline {
|
||||
|
||||
stage('Zadanie 3 - Metryki') {
|
||||
steps {
|
||||
sh 'python3 --version'
|
||||
sh 'python3 ./zadanie3/script.py'
|
||||
sh 'chmod 755 ./zadanie3/trn.sh'
|
||||
sh './zadanie3/trn.sh zadanie3/sentences.txt zadanie3/sentences.trn'
|
||||
sh './zadanie3/trn.sh zadanie3/references.txt zadanie3/references.trn'
|
||||
sh './zadanie3/trn.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
import numpy, pandas
|
||||
|
||||
input_data = pandas.read_csv('ASR-eval/wikiniews_results.tsv', encoding='utf8', 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]
|
||||
references = input_data[2]
|
||||
|
||||
|
@ -1 +1,6 @@
|
||||
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < $S1 > $S2
|
||||
|
||||
cut -f 2 ASR-eval/wikiniews_results.tsv > zadanie3/sentences.txt
|
||||
cut -f 3 ASR-eval/wikiniews_results.tsv > zadanie3/references.txt
|
||||
|
||||
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < zadanie3/sentences.txt > zadanie3/sentences.trn
|
||||
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < zadanie3/references.txt > zadanie3/references.trn
|
Loading…
Reference in New Issue
Block a user