match_matrix: Calculate match matrix

View source: R/2-match_matrix.R

match_matrixR Documentation

Calculate match matrix

Description

Calculate match matrix

Usage

match_matrix(
  hypothesis,
  reference,
  clean = TRUE,
  unit = c("word", "letter", "phon", "none"),
  out = c("matrix", "edits")
)

Arguments

hypothesis

Observed string of text

reference

True string of text

clean

Whether to apply clean_text() to the text inputs

unit

How edit distance should be calculated, if at all

out

Whether to return the matrix ("matrix") or a dataframe of edits ("edit")

Value

Matrix


yjunechoe/LingWER documentation built on April 6, 2022, 10:14 p.m.