editRatio: Calculate the edit distance ratio for phonetic transcriptions

Description Usage Arguments Value References Examples

Description

editRatio returns the edit distance ratio comparing the target transcription(s) to the produced transcription(s).

Usage

1

Arguments

x

a data frame that contains target transcription and produced transcription on alternating rows

Value

The edit distance ratio, the number of edits (Levenshtein, 1966) divided by the number of target or produced segments, whichever is greater.

References

Levenshtein, V. I. (1966). Binary codes capable of correcting deletions, insertions and reversals. Soviet Physics Doklady, 10 (8).

Examples

1
2
x<- data.frame("Transcription"=c("Saul", "Paul"))
editRatio(x)

unccard/editRatio documentation built on May 8, 2019, 7:31 a.m.