MyNixOS website logo
Description

A Model for Semi-Supervised Keyword Extraction from Word Embedding Models.

A fast and computationally efficient algorithm designed to enable researchers to efficiently and quickly extract semantically-related keywords using a fitted embedding model. For more details about the methods applied, see Chester (2025). <doi:10.17605/OSF.IO/5B7RQ>.

About

An R package designed to enable researchers to quickly and efficiently generate customized sets of keywords.

For more information about the methods underlying this package see Chester (2025).

Installation

Install the package from CRAN:

install.packages("keyclust")

Or install the development version from GitHub:

install.packages("devtools") # If not already installed

devtools::install_github("pchest/keyclust")

Usage

Creating a cosimilarity matrix from a pre-fitted word embeddings model

library(keyclust)

simmat <- wordemb_FasttextEng_sample |>
    process_embed(words = "words") |>
    similarity_matrix(words = "words")

Extracting a semantically-related set of keywords from a cosimilarity matrix

seed_months <- c("october", "november")

out_months <- keyclust(simmat, seed_words = seed_months, max_n = 10)
## Initializing with october, november 
## Added september 
## Added august 
## Added february 
## Added january 
## Added december 
## Added march 
## Added april 
## Added june
out_months |>
  terms() |>
  head(n = 10)
##         Term Group_similarity
## 1    october        0.9764174
## 2   february        0.9727986
## 3  september        0.9715995
## 4    january        0.9695413
## 5   november        0.9693111
## 6     august        0.9677877
## 7      march        0.9673854
## 8      april        0.9653796
## 9       june        0.9625061
## 10  december        0.9609312
Metadata

Version

1.2.5

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows