Package: lingdist 2.4.0

lingdist: Fast Linguistic Distance and Alignment Computation

A fast linguistic distance and alignment computation package. It implements generalized edit distance, Pointwise Mutual Information (PMI) distance, and Weighted Jaccard Distance (WJD). For generalized edit distance, the package allows users to define custom cost for every symbol's insertion, deletion, and substitution, and supports treating character combinations as single symbols (e.g., IPA with diacritics). It also provides detailed alignment information. PMI distance automatically learns costs from data. WJD is suitable for hierarchical categorical data with multiple forms. All functions are implemented in 'C++' and distance matrix computation is parallelized leveraging the 'RcppThread' package.

Authors:Chao Kong [aut, cre]

lingdist_2.4.0.tar.gz
lingdist_2.4.0.zip(r-4.7)lingdist_2.4.0.zip(r-4.6)lingdist_2.4.0.zip(r-4.5)
lingdist_2.4.0.tgz(r-4.6-x86_64)lingdist_2.4.0.tgz(r-4.6-arm64)lingdist_2.4.0.tgz(r-4.5-x86_64)lingdist_2.4.0.tgz(r-4.5-arm64)
lingdist_2.4.0.tar.gz(r-4.7-arm64)lingdist_2.4.0.tar.gz(r-4.7-x86_64)lingdist_2.4.0.tar.gz(r-4.6-arm64)lingdist_2.4.0.tar.gz(r-4.6-x86_64)
lingdist_2.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
lingdist/json (API)
NEWS

# Install 'lingdist' in R:
install.packages('lingdist', repos = c('https://fncokg.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/fncokg/lingdist/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

language-distancercppcpp

3.95 score 3 stars 125 downloads 7 exports 2 dependencies

Last updated from:84ed161715. Checks:11 ERROR, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64ERROR128
linux-devel-x86_64ERROR127
source / vignettesOK182
linux-release-arm64ERROR151
linux-release-x86_64ERROR117
macos-release-arm64ERROR86
macos-release-x86_64ERROR197
macos-oldrel-arm64ERROR117
macos-oldrel-x86_64ERROR339
windows-develERROR127
windows-releaseERROR134
windows-oldrelERROR179
wasm-releaseOK128

Exports:check_cost_mat_symbolsgenerate_default_cost_matrixlong2squareformpw_edit_distpw_pmi_distpw_wjdstring_edit_dist

Dependencies:RcppRcppThread