run_unsupervised_EM: Run Unsupervised EM

run_unsupervised_EMR Documentation

Run Unsupervised EM

Description

Runs supervised EM on a corpus of documents cleaned by clean_data().

Usage

run_unsupervised_EM(
  docs,
  doc_name,
  docsType,
  index_name,
  labelsName,
  dfm = NULL,
  extreme_words_pos = NULL,
  extreme_words_neg = NULL,
  stem = T,
  trimPct = 0,
  min_doc_freq = 1,
  idfWeight = F,
  ngrams = 1,
  n_extreme = 50,
  n_class = 2,
  export_plot = T,
  export_all = T,
  class_prob = NULL,
  word_prob = NULL,
  ...
)

Value

Document level probabilities, word probabilities, scatterplot of word probablities.


activetext/activeR documentation built on May 31, 2024, 10:21 a.m.