speechTokens_Python: A Python Dictionary of all Speeches by Speaker

Description Usage Details Python Functions

Description

[Python Documentation] A dictionary whose keys are the names of all speakers with speeches in the list. The corresponding element is a list of all the speeches spoken by that speaker, with each speech converted into a list of its tokens.

Usage

1
speechTokens_Python(..., .ev = XRPython::RPython(), .get = NA)

Details

The argument can be from the "speeches" field of a Play object or the result of any other computation. The argument could also be an Act, Scene or Play: any object for which getSpeeches() returns a list of speeches.

Python Functions

speechTokens(speeches)


johnmchambers/shakespeare documentation built on May 19, 2019, 5:16 p.m.