The lines of the text.
The line index at which to start calculating the similarity score.
The lines of the query.
The Levenshtein distance between two strings.
Elementwise sum of similarity scores for query lines against source lines starting at given index.
Calculate the similarity score between a query and source lines at a given source line index.