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

Irish AMP system with SS(phi max) #468

Closed jbellik closed 3 years ago

jbellik commented 3 years ago

Nick, let's discuss this set up when we Skype.

jbellik commented 3 years ago

Testing revealed that StrongStart(phi max) with evaluation of immediate daughters only as implemented here did not replicate the effects of StrongStartInitial (i). So any built in systems published need to refer to SSInit. However, SS init needed two changes:

I tried to make both of these changes but have created some kind of bug that is causing SSInit to assign too many violations. @maxTarlov , can you take a look? I don't think I've quite understood what your code is doing.

maxTarlov commented 3 years ago

Long story short: the while-loop in the sub-function violation() was not running for nodes with only one child, so the function never falsified the assertion that a unary node incurs a violation of strongStartInit. For this reason, every unary node received a violation when it should not have. Fixed this off-by-one and added check for unary nodes before loop starts.

@jbellik is there a reason the loop ran while i<parent.children.length-1 instead of i<parent.children.length?

jbellik commented 3 years ago

A very belated reply -- thanks, Max. That was just a mistake.

Something is still off since {({b (c d)})} is getting 4 violations of strongStartDeep(i) -- a note to myself to look into this further.

jbellik commented 3 years ago

Giving up on this constraint / analysis for now since we concluded for theoretical reasons that SS(phi max) was a better implementation.