• Home
  • Raw
  • Download

Lines Matching full:sequences

20 This module provides classes and functions for comparing sequences. It
29 This is a flexible class for comparing pairs of sequences of any type, so long
37 idea is then applied recursively to the pieces of the sequences to the left and
39 sequences, but does tend to yield matches that "look right" to people.
44 complicated way on how many elements the sequences have in common; best case
61 This is a class for comparing sequences of lines of text, and producing
63 both to compare sequences of lines, and to compare sequences of characters
75 | ``' '`` | line common to both sequences |
82 the sequences contain tab characters.
200 sequences against which to match *word* (typically a list of strings).
261 Return one of the two sequences that generated a delta.
379 if you're comparing lines as sequences of characters, and don't want to synch up
382 The optional arguments *a* and *b* are sequences to be compared; both default to
383 empty strings. The elements of both sequences must be :term:`hashable`.
405 Set the two sequences to be compared.
409 sequences, use :meth:`set_seq2` to set the commonly used sequence once and
410 call :meth:`set_seq1` repeatedly, once for each of the other sequences.
510 | ``'equal'`` | ``a[i1:i2] == b[j1:j2]`` (the sub-sequences |
542 Return a measure of the sequences' similarity as a float in the range [0,
545 Where T is the total number of elements in both sequences, and M is the
547 sequences are identical, and ``0.0`` if they have nothing in common.
601 sequences. As a rule of thumb, a :meth:`ratio` value over 0.6 means the
602 sequences are close matches:
607 If you're only interested in where the sequences match,
679 Compare two sequences of lines, and generate the delta (a sequence of lines).
682 newlines. Such sequences can be obtained from the
694 This example compares two texts. First we set up the texts, sequences of
695 individual single-line strings ending with newlines (such sequences can also be