Skip to contents

Compute pairwise distances between the lemmas, store the distance matrix, reduce to two dimensions with metaMDS, store and return summary.

Usage

compLemma(
  lemma,
  input_dir,
  output_dir,
  transformed = TRUE,
  fun = "euclidean",
  tokens_suffix = ".ttmx.dist.pac",
  row_selection = vector(),
  overwrite = FALSE
)

Arguments

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.

Value

a tibble with minimal information