Esempio n. 1
0
def extract_presup(resp):
    """From a bunch of responses, extract the T/F presups."""
    out = []
    for k in resp:
        if is_undef(k): out.append(False)
        else:           out.append(True)
    return out
Esempio n. 2
0
def extract_presup(resp):
    """From a bunch of responses, extract the T/F presups."""
    out = []
    for k in resp:
        if is_undef(k): out.append(False)
        else: out.append(True)
    return out
Esempio n. 3
0
def collapse_undefs(resp):
    """Collapse together our multiple kinds of undefs so that we can compare vectors."""
    out = []
    for k in resp:
        if is_undef(k):
            out.append("undef")
        else:
            out.append(k)
    return out
Esempio n. 4
0
def collapse_undefs(resp):
    """Collapse together our multiple kinds of undefs so that we can compare vectors."""
    out = []
    for k in resp:
        if is_undef(k):
            out.append("undef")
        else:
            out.append(k)
    return out