Skip to content

Commit

Permalink
Improving ToBI rules for Italian (Issue marytts-it#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
ftesser authored and giuliopaci committed Apr 30, 2013
1 parent ba7b509 commit fc280c7
Showing 1 changed file with 63 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,22 @@ Possible values are only: "enfofpar"(end of paragraph) and "endofvorfeld"(end of
"Andiamo a mangiare assieme stasera?"
-->

<list name="firstPosInQuestionW" items="PQ:PR:DQ:B:E:CS"/>

<!-- è, ho, ha, TOCHECK ma anche coniugazioni: erano sono avevano-->
<!--
<list name="all_interrog" items="interrog:interrogW"/>
-->


<!-- R1: è, ho, ha, TOCHECK ma anche coniugazioni: erano sono avevano-->
<list name="verbs0" items="è:ho:ha"/>


<!-- R2: DE, DQ, PQ ad inizio frase ricevono accento -->
<list name="det0" items="DE:DQ:PQ"/>

<!-- R3: -->
<list name="nouns0" items="S:SP"/>

<!-- the following information should always be present -->
Expand All @@ -138,63 +149,65 @@ Possible values are only: "enfofpar"(end of paragraph) and "endofvorfeld"(end of
<!-- the accentposition rules determine if a token gets a tone accent or if it doesn't receive any accent (no force accents in English) -->
<accentposition>

<!--
R1: se non una tra

V+S
V+SP
V+A+S
V+A+SP
<!--
R1: se non una tra
Allora pitch accent su verbo (solo sul verbo?)
V+S
V+SP
V+A+S
V+A+SP
*
Mangia Antonio.
Lui nasconde Fabio.
*
Corri grande Fabio.
Allora pitch accent su verbo (solo sul verbo?)
Corri Fabio.
*
Mangia Antonio.
Lui nasconde Fabio.
*
Corri grande Fabio.
Corri Fabio.
-->

<rule>
<previousAttributes pos="V"/>
<attributes pos="INLIST:nouns0"/>
<action accent=""/>
</rule>


<rule>
<rule>
<previousAttributes pos="V"/>
<attributes pos="A"/>
<nextAttributes pos="INLIST:nouns0"/>
<action accent=""/>
</rule>

<rule>
<rule>
<previousMinus2Attributes pos="V"/>
<previousAttributes pos="A"/>
<attributes pos="INLIST:nouns0"/>
<action accent=""/>
</rule>

<!--
R2: DE, DQ, PQ ad inizio frase ricevono accento
Quale anno è il migliore.
Quanta neve sulla strada.
-->
<rule> <!-- a fronted VVPP receives an accent -->
<prevWords num="0"/>
<attributes pos="INLIST:det0"/>
<action accent="tone"/>
</rule>






<!-- R3 pos = BN + è ho ha
R3:
BN + V se il verbo è {è, ho, ha}
non riceve PA (chi? il verbo o BN, il verbo direi...TOCHECK chiedi conferma cinzia)
-->
<!-- R3 pos = BN + è ho ha
R3:
BN + V se il verbo è {è, ho, ha}
non riceve PA (chi? il verbo o BN, il verbo direi...TOCHECK chiedi conferma cinzia)
-->
<rule>
<previousAttributes pos="BN"/>
<text word="INLIST:verbs0"/>
<action accent=""/>
</rule>


<!-- -->

<rule> <!-- list of words that usually receive an accent(content words) -->
<attributes pos="INLIST:pos_tonal_accent"/>
Expand Down Expand Up @@ -269,6 +282,12 @@ non riceve PA (chi? il verbo o BN, il verbo direi...TOCHECK chiedi conferma cinz
<attributes accent="tone"/>
<action accent="H*"/>
</rule>
<rule> <!-- prenuclear accent in interrogative sentence -->
<sentence type="interrogW"/>
<prosodicPosition type="prenuclear"/>
<attributes accent="tone"/>
<action accent="H*"/>
</rule>


<rule> <!-- nuclear accent in interrogative sentence, not at end of paragraph -->
Expand All @@ -277,13 +296,26 @@ non riceve PA (chi? il verbo o BN, il verbo direi...TOCHECK chiedi conferma cinz
<attributes accent="tone"/>
<action accent="H+L*"/> <!-- Oppure H* -->
</rule>
<rule> <!-- nuclear accent in interrogative sentence, not at end of paragraph -->
<sentence type="interrogW"/>
<prosodicPosition type="nuclearNonParagraphFinal"/>
<attributes accent="tone"/>
<action accent="H+L*"/> <!-- Oppure H* -->
</rule>

<rule> <!-- nuclear accent in interrogative sentence, at end of paragraph -->
<sentence type="interrog"/>
<prosodicPosition type="nuclearParagraphFinal"/>
<attributes accent="tone"/>
<action accent="H+L*"/> <!-- Oppure H* -->
</rule>
<rule> <!-- nuclear accent in interrogative sentence, at end of paragraph -->
<sentence type="interrogW"/>
<prosodicPosition type="nuclearParagraphFinal"/>
<attributes accent="tone"/>
<action accent="H+L*"/> <!-- Oppure H* -->
</rule>


<rule> <!-- catchall rule in case none of the others fired -->
<attributes accent="tone"/>
Expand Down

0 comments on commit fc280c7

Please sign in to comment.