segment

0th

Percentile

Segment

This function takes two tables and combines them. The first table is of the class QDHasUtteranceBE and contains text spans that are designated with begin and end character positions. The second table of class QDHasSegments contains information about acts and scenes in the play. This function is used internally in many other functions, but is exported because it might become useful.

Usage
segment(hasUtteranceBE, hasSegments)
Arguments
hasUtteranceBE

Table with utterances

hasSegments

Table with segment info

Value

The function returns a data.table that has both the play segmentation and the token data in it.

Aliases
  • segment
Examples
# NOT RUN {
data(rksp.0)
segmentedText <- segment(rksp.0$text, rksp.0$segments)
# }
Documentation reproduced from package DramaAnalysis, version 3.0.0, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.