getPosInChain: Get the position of a chain entry (track or rez) in a chain...

View source: R/track.R

getPosInChainR Documentation

Get the position of a chain entry (track or rez) in a chain (trail or resonance).

Description

Get the position of a chain entry (track or rez) in a chain (trail or resonance).

Usage

getPosInChain(
  tokenOrder = NULL,
  chain = NULL,
  exclFrag = F,
  combinedChunk = NULL,
  nonFragmentMember = F
)

Arguments

tokenOrder

The vector of sequence values values where the mentions appeared. Common choices are docTokenSeqFirst, docTokenSeqLast, wordTokenSeqFirst and wordTokenseqLast (the last two are available after running addIsWordField on a rezrObj. By default it's docTokenSeqLast.

chain

The chain that each mention belongs to.

exclFrag

Exclude 'fragments' (i.e. members of a combined chunk which do not serve as meaningful chunks in their own right)

combinedChunk

The combinedChunk column of the rezrDF. By default, named combinedChunk.

nonFragmentMember

Vector indicating whether each entry is a non-fragment member, i.e. a member of a combined chunk that also serves as a meaningful chunk in its own right.

Value

The


johnwdubois/rezonateR documentation built on Nov. 19, 2024, 11:17 p.m.