tokens_Python: Speeches Tokenized in a Python Dictionary by Speaker

Description Usage Details Python Functions

Description

[Python Documentation] A dictionary whose keys are all the names of speakers with speeches in the list. The corresponding element is a list of all the tokens spoken by each speaker. Special tokens '$' and '/>' are inserted to mark the end of lines and the end of individual speeches.

Usage

1
tokens_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

tokens(speeches)


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