Learn R Programming

SpeedReader (version 0.9.1)

edit_metrics: Calculate Edit Metrics Between Two Document Versions

Description

Calculate Scope and Granularity of Document Edits.

Usage

edit_metrics(document_1, document_2, ngram_sizes = c(1:50))

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.

ngram_sizes

A numeric vector of N-Gram lengths for us in calculating Dice coefficients.

Value

A data.frame with Dice coefficients based on different N-Gram lengths.