getTopicLabel: Label LDA topics

Description Usage Arguments Value

View source: R/topics.R

Description

Use vector algebra on word embeddings of most relevant words in topics to derive single topic label

Usage

1
getTopicLabel(lambda = 0.3, lda, word_vector)

Arguments

lambda

A numeric from 0 to 1. This determines the relevancy score

lda

A pre-trained LatentDirichletAllocation model.

word_vector

A numeric matrix. Column-bound word vectors.

Value

A character vector


Chrisss93/cnn.stories documentation built on May 23, 2019, 7:31 a.m.