coOccurenceNetwork: Create a co-occurence network

Description Usage Arguments Value

Description

Create a co-occurence network

Usage

1
2
3
4
coOccurenceNetwork(x, measure = "cooccurence",
  doc.col = getOption("doc.col", "doc_id"),
  position.col = getOption("position.col", "position"),
  word.col = getOption("word.col", "word"))

Arguments

x

either a document-term matrix (DTM) or a tokenlist.

measure

the measure to calcualte adjacency. Currently supports cosine and conditional probability

Value

A graph in the Igraph format in which edges represent the adjacency of terms


kasperwelbers/semnet documentation built on May 20, 2019, 7:38 a.m.