eigenSentences: Simple eigenSentence estimation function.

Description Usage Arguments Value Author(s) Examples

View source: R/eigenSentences.R

Description

Applies a function to a matrix representation of a sentence to get an eigensentence map.

Usage

1
2
eigenSentences(wordembed, functiontoapply = sum, normalize = F,
  eigsentbasislength = NA, sentencesIn = NA, eventdata = NA)

Arguments

wordembed

the words and their vector embedding - a data frame with n basis length columns

functiontoapply

e.g. mean, max, min, a custom function — needs to work with apply

normalize

normalize the magnitude of the eigsentences to be 1

eigsentbasislength

less than or equal to the full basis length (100)

Value

eigensentence matrix is output

Author(s)

Avants BB

Examples

1
2
  data(reuters_words,package="RKRNS")
  esent<-eigenSentences( reuters_words )

stnava/RKRNS documentation built on Aug. 26, 2017, 9:55 a.m.