View source: R/compareLemmas.R
compLemma | R Documentation |
Compute pairwise distances between the lemmas, store the distance matrix,
reduce to two dimensions with metaMDS
, store and return summary.
compLemma( lemma, input_dir, output_dir, transformed = TRUE, fun = "euclidean", tokens_suffix = ".ttmx.dist.pac", row_selection = vector(), overwrite = FALSE )
lemma |
Name of the lemma, for the filenames |
input_dir |
Directory where the models are stored. |
output_dir |
Directory where the model information is and will be stored |
transformed |
Whether the distance matrices |
fun |
Function to calculate the distances. |
tokens_suffix |
Suffix to add to the model name in the file names of the distance matrices. |
row_selection |
List of row (and column) names to subset the matrices. |
overwrite |
If FALSE and the models.dist file exists, it will not be created again. |
a tibble with minimal information
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.