diff --git a/orfeo/data/treebank/add_time_and_speaker.perl b/orfeo/data/treebank/add_time_and_speaker.perl index 32225360d38e63dcc068e79ad1d83852d90a6efc..ea2c9170814e0bd84d92d635b273b798b36b8d22 100755 --- a/orfeo/data/treebank/add_time_and_speaker.perl +++ b/orfeo/data/treebank/add_time_and_speaker.perl @@ -28,9 +28,18 @@ while(<>){ else{ $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$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; $speaker_prec = $speaker; } diff --git a/orfeo/maca_trans_parser/maca_trans_parser.fm b/orfeo/maca_trans_parser/maca_trans_parser.fm index 4aae299ae63efbcb1124164ea3b8b2fdb213a5cc..04e95c491a4941fa2f6f66dc0548377cc1ddf828 100644 --- a/orfeo/maca_trans_parser/maca_trans_parser.fm +++ b/orfeo/maca_trans_parser/maca_trans_parser.fm @@ -104,3 +104,43 @@ b0A b1f b0B b1f b1A 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 + + +