edit_metrics: Calculate Edit Metrics Between Two Document Versions

Description Usage Arguments Value

View source: R/edit_metrics.R

Description

Calculate Scope and Granularity of Document Edits.

Usage

1
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.


matthewjdenny/SpeedReader documentation built on March 25, 2020, 5:32 p.m.