Пример #1
0
def _is_khorsi_neighbor(w, query, freq_base, sequence_type, max_distance):
    return khorsi(w, query, freq_base, sequence_type,
                  max_distance) >= max_distance
def khorsi_wrapper(w1, w2, freq_base,sequence_type, max_distance):
    score = khorsi(w1, w2, freq_base = freq_base, sequence_type = sequence_type)
    if score >= max_distance:
        return score
    else:
        return None
Пример #3
0
def khorsi_wrapper(w1, w2, freq_base, sequence_type, max_distance):
    score = khorsi(w1, w2, freq_base=freq_base, sequence_type=sequence_type)
    if score >= max_distance:
        return score
    else:
        return None
def _is_khorsi_neighbor(w, query, freq_base, sequence_type, max_distance):
    return khorsi(w, query, freq_base, sequence_type, max_distance) >= max_distance