DramaAnalysis (version 3.0.1)

segment: Segment

Description

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.

Examples

Run this code
# NOT RUN {
data(rksp.0)
segmentedText <- segment(rksp.0$text, rksp.0$segments)
# }

Run the code above in your browser using DataCamp Workspace