Dep-IO

Constraint Information

Dep-IO
Superset OfDep-IO<Segment>, Dep-IO<Feature>
Subset OfDep
NameDep-IO
DescriptionEvery segment in the output must appear in the input

Constraint Definition

def depIO(i,o):
    """Name=Dep-IO
Description=Every segment in the output must appear in the input
Superset Of=Dep-IO<Segment>, Dep-IO<Feature>
Subset Of=Dep"""
    return _optimal_path(_levenshtein(i,o), i, o)[0] # (_dels_,ins,subs)
# assert maxIO('art','cat') == 1
# assert depIO('art','cat') == 1
# assert maxIO('bad','dog') == 2
# assert depIO('bad','dog') == 2
# assert maxIO('ant','anti') == 1

Constraint Evaluation

Input: (only needed for faithfulness constraints)
Output:

Back to main page TODO:Put examples here, or automatically import test cases from the wiki, or something.