weights: [experimental] Extract word vector weights

View source: R/utils.R

weightsR Documentation

[experimental] Extract word vector weights

Description

[experimental] Extract word vector weights

Usage

weights(x, mode = c("words", "values"))

Arguments

x

a textmodel_wordvector object.

mode

specify the type of resulting object.

Value

a matrix of word vector weights when mode = "value" or of words sorted in descending order by the weights when mode = "word".


wordvector documentation built on April 12, 2025, 2:23 a.m.