Description Usage Arguments Value Note See Also Examples
Generates an output file of training data to be used by a linguist to select the best alignments from a list of the unique set of possible alignments for each given pair of words.
1 2 | generate.training(raw.data, search.size=1000,table=TRUE,
file.out="candidate_alignments.csv")
|
raw.data |
This is a 2*n matrix containing n ipa encoded cognate pairs. |
search.size |
Number of time to randomize feature parameters while searching for unique alignments. |
table |
table=TRUE will generate a csv file named by the user containing possible alignments in IPA encodings. |
file.out |
Name of CSV file for output. |
A list containing two elements:
standard_ipa_symbol |
A data frame containing input cognate pairs and a list of possible alignemnts. UTF-8 IPA |
ALINE_symbol |
Same as above, but using ALINE symbol for use in internal funcitons |
Expert determinations are used by the genetic algorithm to optimize feature weights. Feature parameters are randomly generated to find possible alignments, so setting search.size to larger values will ensure all possible alignments are found.
To generate the output file set file.out to some value and open the resulting file with a spreadshet program. To ensure correct Unicode IPA formattting, make sure the file encoding is selected as UTF-8 when importing the generated csv file.
The function also returns an list containing two dataframes (IPA and Aline) that are used internally in the optimization process.
1 2 3 4 5 | # some cognates
data<-data.frame(dog=c('dog','perro'),cat=c('cat','gato'),rat=c('rat','rata'))
# write out a CSV file that can be openned in Excel and used for expert determinations
M<-generate.training(raw.data=data,search.size=100,file="open.with.excel.csv")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.