raw.alignment: R/C++ Interface

Description Usage Arguments Value References Examples

Description

The R/C++ interface functions to ALINE. It is called by aline(), which is the preferred way to access it in most cases. The default features weights are those defined in Kondrak (2000).

Usage

1
2
3
4
5
raw.alignment(s, 
	Syllabic = 5, Place = 40, Stop = 50, 
	Voice = 10, Nasal = 10, Retroflex = 10,
	Lateral = 10, Aspirated = 5, Long = 1,
	High = 5, Back = 5, Round = 5, sk=10)

Arguments

s

A pair of ASCII-encoded words as defined by ALINE.map().

Syllabic, Place, Stop, Voice, Nasal, Retroflex, Lateral, Aspirated, Long, High, Back, Round

Feature weights used to determine the optimal alignment.

sk

The skip penalty used to determine the optimal alignment.

Value

A list containing the following elements:

'word pairs'

The original word pair in ALINE ASCII encoding.

'similarity score'

The similarity score returned by ALINE.

alignment1

The alignment of the first word presented in ALINE symbols.

alignment2

The alignment of the second word presented in ALINE symbols.

References

Kondrak, G. (2000). A new algorithm for the alignment of phonetic sequences. In Proceedings of the 1st North American Chapter of the Association for Computational Linguistics Conference.

Examples

1
2
s<-c("digNgNira","dinnira")
raw.alignment(s)

alineR documentation built on May 2, 2019, 11:26 a.m.

Related to raw.alignment in alineR...