-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated testing for other alignment constraints #486
Comments
Let stree = [a.foc [b.foc [c.foc]]], where all terminal nodes have foc:true alignFocLeft(stree, {(((a.foc) b.foc) c.foc)}, phi) = 2 alignFocLeft(stree, {(a.foc b.foc c.foc)}, phi) = 2 alignFocLeft(stree, {a.foc b.foc c.foc}, phi) = 3 alignFocLeft(stree, {a.foc {b.foc {c.foc}}}, i) = 0 The maximum number of violations is the number of focused terminals in the output. |
Expected results for alignLeftMorpheme(stree, ptree, 'x') (where x is supposed to be aligned all the way left): Also test that alignLeftMorpheme can handle a space separated string of morphemes to check for. Expected results for alignLeftMorpheme(stree, ptree, 'x y'): Mirror image results should obtain for alignRightMorpheme. |
Create an html file with Mocha tests for:
Align left/right Focus
Align left/right lexical item
The text was updated successfully, but these errors were encountered: