|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.scheherazade.verbalizer.Verbalizer
public class Verbalizer
Class that generates English-language serializations of story components, intended mostly for use within the Virgil interface.
Constructor Summary | |
---|---|
Verbalizer(PlannerRepository planners)
|
Method Summary | |
---|---|
VerbalizerState |
freshState()
Make a fresh copy of the default opening VerbalizerState. |
static java.lang.String |
renderOrdinality(int ordinality)
Utility to render as a string some ordinality ("first", "second" etc.) |
Serialization |
verbalize(StoryInterpreter story,
Style style,
DiscourseCommand command)
Run a single verbalize command. |
Serialization |
verbalize(StoryInterpreter story,
Style style,
DiscourseCommand command,
VerbalizerState state)
Run a single verbalize command with a given initial state. |
Serialization |
verbalize(StoryInterpreter story,
Style style,
DiscoursePlan plan)
Run a sequence of verbalize commands. |
Serialization |
verbalize(StoryInterpreter story,
Style style,
DiscoursePlan plan,
VerbalizerState state)
Run a sequence of verbalize commands with a given initial state. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Verbalizer(PlannerRepository planners) throws Scheherexception
Scheherexception
Method Detail |
---|
public Serialization verbalize(StoryInterpreter story, Style style, DiscoursePlan plan) throws Scheherexception
Scheherexception
public Serialization verbalize(StoryInterpreter story, Style style, DiscourseCommand command) throws Scheherexception
Scheherexception
public Serialization verbalize(StoryInterpreter story, Style style, DiscoursePlan plan, VerbalizerState state) throws Scheherexception
Scheherexception
public Serialization verbalize(StoryInterpreter story, Style style, DiscourseCommand command, VerbalizerState state) throws Scheherexception
Scheherexception
public VerbalizerState freshState()
public static java.lang.String renderOrdinality(int ordinality) throws Scheherexception
Scheherexception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |