raw.alignment {alineR} | R Documentation |
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).
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)
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. |
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. |
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.
s<-c("digNgNira","dinnira") raw.alignment(s)