Contents:
Data
Data.__init__()
Data.score
Data.m
Data.p
Data.q
Data.backtrack
Data.prefilled
Data.backtracked
Data.arrow()
Data.__str__()
Data.html()
Data.str_size()
Aligner
Aligner.__init__()
Aligner.start_score
Aligner.open_score
Aligner.extend_score
Aligner.align()
Aligner.align_debug()
NGrams
NGrams.__init__()
NGrams.load()
NGrams.__str__()
NGrams.similarity()
This module implements the NGrams class.
A class that compares two strings using N-Grams.
Split a string into N-Grams.
s – the string to split into N-Grams
n – puts the N in N-Grams
Return str(self).
Return similarity between two NGrams objects.
The similarity score is 2 times the count of common N-Grams divided by the total count of N-Grams.