Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_global_i

Compute global feature positions


Description

Features are given global ids, with an added distance (max_window_size) between contexts (e.g., documents, sentences). This way, the distance of features can be calculated across multiple contexts using a single vector

Usage

get_global_i(
  tc,
  context_level = c("document", "sentence"),
  max_window_size = 200
)

Arguments

tc

tCorpus object

context_level

either 'document' or 'sentence'

max_window_size

Determines the size of the gap between documents. Called max_window_size because this gap determines what the maximum window size is for non-overlapping windows between documents

Value

a tCorpus object


corpustools

Managing, Querying and Analyzing Tokenized Text

v0.4.10
GPL-3
Authors
Kasper Welbers and Wouter van Atteveldt
Initial release
2022-05-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.