concDict: Open-Domain Concreteness Dictionaries

concDictR Documentation

Open-Domain Concreteness Dictionaries

Description

background function to load

Usage

concDict(
  texts,
  wordlist = NULL,
  stop.words = TRUE,
  number.words = TRUE,
  shrink = FALSE,
  fill = FALSE,
  minwords = 0,
  num.mc.cores = 1
)

Arguments

texts

character Vector of documents to classify

wordlist

Dictionary to be used.

stop.words

logical should stop words be kept? default is TRUE

number.words

logical should numbers be converted to words? default is TRUE

shrink

logical should scores on shorter documents be regularized? default is FALSE

fill

logical Should empty cells be assigned the mean rating? Default is FALSE.

minwords

numeric all documents with less words than this return NA. default is 0 (i.e. keep all documents)

num.mc.cores

numeric number of cores for parallel processing - see parallel::detectCores()

Value

concreteness score for each document


doc2concrete documentation built on May 29, 2024, 8:19 a.m.