Skip to content
Snippets Groups Projects
Commit 03e99565 authored by Alexis Nasr's avatar Alexis Nasr
Browse files

modified script that adds duration and speaker change, modified fm file for orfeo parser

parent 32168603
No related branches found
No related tags found
No related merge requests found
...@@ -28,9 +28,18 @@ while(<>){ ...@@ -28,9 +28,18 @@ while(<>){
else{ else{
$change_speaker = 0; $change_speaker = 0;
} }
# print "$word_prec\t$intervalle_int\t$change_speaker\t$pos_prec\t$lemma_prec\t$head_prec\t$label_prec\t$eos_prec\n";
} }
# print "$word\t$pos\t$lemma\t$head\t$label\t$eos\t$intervalle_int\t$change_speaker\n"; # print "$word\t$pos\t$lemma\t$head\t$label\t$eos\t$intervalle_int\t$change_speaker\n";
print "$word\t$intervalle_int\t$change_speaker\t$pos\t$lemma\t$head\t$label\t$eos\n"; print "$word\t$intervalle_int\t$change_speaker\t$pos\t$lemma\t$head\t$label\t$eos\n";
$word_prec = $word;
$pos_prec = $pos;
$lemma_prec = $lemma;
$head_prec = $head;
$label_prec = $label;
$eos_prec = $eos;
$start_prec = $start;
$end_prec = $end; $end_prec = $end;
$speaker_prec = $speaker; $speaker_prec = $speaker;
} }
...@@ -104,3 +104,43 @@ b0A b1f ...@@ -104,3 +104,43 @@ b0A b1f
b0B b1f b0B b1f
b1A b1f b1A b1f
b1B b1f b1B b1f
#new features taking into account speaker change and duration
#b0A
#b0B
#
#b0A b0p
#b0B b0p
#b0A b0B b0p
#
#b0A bm1p
#b0B bm1p
#b0A b0B bm1p
#
#b0A b1p
#b0B b1p
#b0A b0B b1p
#
#b0A b0f
#b0B b0f
#b0A b0B b0f
#
#b0A b1f
#b0B b1f
#b0A b0B b1f
#
#b0A s0p b0p
#b0B s0p b0p
#b0A b0B s0p b0p
#
#b0A bm1p b0p
#b0B bm1p b0p
#b0A b0B bm1p b0p
#
#b0A b0p b1p
#b0B b0p b1p
#b0A b0B b0p b1p
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment