syntax-prosody-ot / main

A webapp for the syntax-prosody analyst working in Optimality Theory, with automated Gen, Con and Eval. Download build files from syntax-prosody-ot/build
https://spot.sites.ucsc.edu/
GNU General Public License v2.0
12 stars 2 forks source link

Pitch accent constraints requiring tone-marking in built-in system #470

Closed nkalivoda closed 3 years ago

nkalivoda commented 3 years ago

In the Ito & Mester built-in system, accentAsHead and noLapseL stop assigning violations when I uncheck "Annotated with tones". They should still work without the annotations.

jbellik commented 3 years ago

Diagnosis: accentAsHead and noLapse are counting on the ptrees having accent attributes in them. Originally if accent attributes were missing, they would be inferred from the node ids (a --> accent: true, u --> accent: false). but this isn't working now. Possibly due to a change in GEN?

Make the accent constraints more robust by having them call another function to add accents as necessary

jbellik commented 3 years ago

Define a function that takes a tree, and if any of its nodes has an id of the form: 'a' 'A' 'a#' 'A#' where # = any integer, then give it an attribute accent set to true.

Otherwise, accent can be set to false, or left unassigned.