Lines Matching full:sequences
17 This module provides classes and functions for comparing sequences. It
24 This is a flexible class for comparing pairs of sequences of any type, so long
30 idea is then applied recursively to the pieces of the sequences to the left and
32 sequences, but does tend to yield matches that "look right" to people.
37 complicated way on how many elements the sequences have in common; best case
53 This is a class for comparing sequences of lines of text, and producing
55 both to compare sequences of lines, and to compare sequences of characters
67 | ``' '`` | line common to both sequences |
74 the sequences contain tab characters.
190 sequences against which to match *word* (typically a list of strings).
252 Return one of the two sequences that generated a delta.
357 if you're comparing lines as sequences of characters, and don't want to synch up
360 The optional arguments *a* and *b* are sequences to be compared; both default to
361 empty strings. The elements of both sequences must be :term:`hashable`.
373 Set the two sequences to be compared.
377 sequences, use :meth:`set_seq2` to set the commonly used sequence once and
378 call :meth:`set_seq1` repeatedly, once for each of the other sequences.
479 | ``'equal'`` | ``a[i1:i2] == b[j1:j2]`` (the sub-sequences |
513 Return a measure of the sequences' similarity as a float in the range [0,
516 Where T is the total number of elements in both sequences, and M is the
518 sequences are identical, and ``0.0`` if they have nothing in common.
562 sequences. As a rule of thumb, a :meth:`ratio` value over 0.6 means the
563 sequences are close matches:
568 If you're only interested in where the sequences match,
633 Compare two sequences of lines, and generate the delta (a sequence of lines).
636 newlines. Such sequences can be obtained from the
648 This example compares two texts. First we set up the texts, sequences of
649 individual single-line strings ending with newlines (such sequences can also be