Learn R Programming

SpeedReader (version 0.9.1)

dice_coefficient_diff_table: Lines In Both Documents via Dice Coefficients

Description

Calculate termwise Deice coefficeints for pairs of lines and determine which lines are in both documents

Usage

dice_coefficient_diff_table(document_1, document_2, dice_matching_results,
  output_string = FALSE, compare_consecutive_line_pairs = TRUE)

Arguments

document_1

A vector of strings (one per line or one per sentence), or a list of vectors of tokens (one per line or one per sentence).

document_2

Same as document_1, will be used for comparison.

dice_matching_results

Output from dice_coefficient_line_matching(), with dice_matrix included.

output_string

Logical indicating whether a string vector should be returned. If TRUE, then all output is in string vector, if FALSE, the output is concatenated to the screen.

compare_consecutive_line_pairs

Logical indicating whether consecutive pairs of lines should be compared. Defaults to TRUE.

Value

A character vector (optionally).