story.scheherazade.analysis
Class KAlignment

java.lang.Object
  extended by story.scheherazade.analysis.KAlignment

public class KAlignment
extends java.lang.Object

Perform Krusgal-style alignment on two stories.


Method Summary
static KAlignment alignK(PairwiseComparison pairwise, boolean compileInferences)
           
static KAlignment alignK(PairwiseComparison pairwise, java.util.Vector<Constraint> constraints, boolean compileInferences)
           
 boolean containsAlignment(NarrativeID story1, int index1, NarrativeID story2, int index2)
           
 boolean containsInference(NarrativeID story1, int index1, NarrativeID story2, int index2)
           
 int numCrossRefs(NarrativeID story, int index)
           
 double overallScore()
           
 java.lang.StringBuffer render()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

overallScore

public double overallScore()

render

public java.lang.StringBuffer render()
                              throws Scheherexception
Throws:
Scheherexception

numCrossRefs

public int numCrossRefs(NarrativeID story,
                        int index)
                 throws Scheherexception
Throws:
Scheherexception

containsAlignment

public boolean containsAlignment(NarrativeID story1,
                                 int index1,
                                 NarrativeID story2,
                                 int index2)
                          throws Scheherexception
Throws:
Scheherexception

containsInference

public boolean containsInference(NarrativeID story1,
                                 int index1,
                                 NarrativeID story2,
                                 int index2)
                          throws Scheherexception
Throws:
Scheherexception

alignK

public static KAlignment alignK(PairwiseComparison pairwise,
                                boolean compileInferences)
                         throws Scheherexception
Throws:
Scheherexception

alignK

public static KAlignment alignK(PairwiseComparison pairwise,
                                java.util.Vector<Constraint> constraints,
                                boolean compileInferences)
                         throws Scheherexception
Throws:
Scheherexception


Copyright © 2011 David K. Elson. All Rights Reserved.