topicsInTextList: Creates list of topics to which most words of a text were...

topicsInTextListR Documentation

Creates list of topics to which most words of a text were assigned

Description

For all texts of a given subcorpus, the function creates a list of topics to which most and second-most words from a text were assigned to and the share of words.

Usage

topicsInTextList(text, ldaID, scIDs, ldaresult, label = NULL, vocab)

Arguments

text

The result of LDAprep

ldaID

List of IDs for text

scIDs

List of IDs for which topic assignment will be given

ldaresult

A result object from the standardLDA

label

Optional label for each topic

vocab

Character: Vector of vocab corresponding to the text object

Value

TopicWordAssignment: matrix of texts ids and the topic most words were assigned to + share


Docma-TU/tmT documentation built on May 5, 2022, 12:45 a.m.