Skip to contents

Open nephosem files

Functions to read nephosem files.

focdistsFromCsv()
Open type level distance matrices Open a distance matrix stored as a .csv file. Replaces tokensFromPac for type level matrices.
tokensFromPac()
Open token distance matrix

Process distance matrices

Functions to obtain coordinates and create clouds.

getClouds()
Get Clouds from distance matrix
getCoords()
Extract coordinates from fit
getFit()
Dimensionality reduction for visualization

Compare models

Functions to compute distances between models.

getDistMtx()
Get Distance Matrix
matricizeCloud()
Turn tibble into matrix
compLemma()
Compare models of a lemma
customDist()
Compute distances between models
eucliMats()
Mean euclidean distance
mantelMats()
Mantel statistic between two matrices
procMats()
Procrustes between two matrices
transformMats()
Log-transform distance matrices

Weight context words

Functions to create weighted concordance lines.

getContext()
Context from concordance dataframe
setupConcordancer()
Set up Concordancer
weightConcordance()
Create weighted concordance lines
weightLemma()
Tailor weighting function to a lemma
filterFoc()
Filter by First Order Parameters
filterWeight()
Filter by Weighting Information
posFilter()
Extract part-of-speech filter
windowFilter()
Extract window filter
reorderPpmi()
Reorder PPMI columns
cleanWord()
Clean Word column
correctDistance()
Correct Distance values

Add HDBSCAN data

Functions to integrate model data with HDBSCAN output.

summarizeHDBSCAN()
Summarize HDBSCAN data for a model
extractHDBSCAN()
Extract HDBSCAN info
cwsForClusters()
Map context words and HDBSCAN clusters
fscore()
F-score

Classify clouds

Functions to classify clusters in nephological shapes.

classifyModel()
Classify clouds in a model
clusterDistance()
Compute distances per cluster
clusterHDBSCAN()
Summarize HDBSCAN data per cluster
clusterSeparation()
Compute Semvar values on clusters
separationkNN()
Proportion of same-class nearest neighbours