Description Usage Arguments Value References See Also Examples
Parse a Toolbox (SIL) text file
1 2 | read.toolbox(path, text.fields.suppl = NULL, sentence.fields.suppl = c("tx",
"nt", "ft"), word.fields.suppl = NULL, morpheme.fields.suppl = NULL)
|
path |
length-1 character vector: the path to a toolbox text file. |
text.fields.suppl |
character vector: the code of supplementary fields to be searched for each text (genre, ...). "id" is mandatory and need not to be listed here. |
sentence.fields.suppl |
character vector: the code of supplementary fields to be searched for each sentence (such as ft, nt). "ref" is mandatory and need not to be listed here. |
word.fields.suppl |
character vector: the code of supplementary fields to be searched for each word. "tx" is mandatory and need not to be listed here. |
morpheme.fields.suppl |
character vector: the code of supplementary fields to be searched for each morpheme. "mb", "ge", "ps" are mandatory and need not to be listed here. |
a list with four slots "texts", "sentences", "words" and "morphemes", each one containing a data frame. In these data frame, each row describe an occurrence of the corresponding unit.
https://software.sil.org/toolbox/
read.emeld (XML vocabulary for interlinearized glossed texts)
1 2 | corpuspath <- system.file("exampleData", "tuwariToolbox.txt", package="interlineaR")
corpus <- read.toolbox(corpuspath)
|
Loading required package: xml2
Loading required package: reshape2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.