getSpeeches_Python: Python List of all Speeches of a Play (or Act or Scene)

Description Usage Details Python Functions

Description

[Python Documentation] Return a list of the speeches in the XML object "play". Each element of the list is an object of class "Speech" with fields "title", "act", "scene" and "data" (the list of lines of text in the speech). The argument can alternatively be an Act or Scene object to obtain a list of speeches from just that act or scene.

Usage

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

Details

The argument "tokens" determines whether the original text or a list of tokens is returned; if it is True, the argument "tokenCase" determines whether upper/lower case is distinguished in the tokesn.

Python Functions

getSpeeches(play, tokens =, tokenCase =)


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