

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object hu.birot.OTKit.otBuildingBlocks.Eval
public class Eval
Contains a number of static methods that belong to the evaluation process, either in an OT or in a HG or in any other different approach.
Constructor Summary  

Eval()

Method Summary  

static Comparison 
Compare(Candidate c1,
Candidate c2,
Hierarchy h)
Comparison of c1 and c2, as defined by methods CompareOT and CompareHG. 
static java.util.Vector<Candidate> 
Compare(java.util.Vector<Candidate> candidate_set,
Hierarchy h)
This method returns the most harmonic subset of comparison with respect to hierarchy h. 
static Comparison 
CompareHG(Candidate c1,
Candidate c2,
Hierarchy h)
This static methods compares candidate c1 to candidate c2 in a Harmony Grammar sense, with respect to the constraints found in the hierarchy h, using the weights defined in h. 
static java.util.Vector<Candidate> 
CompareHG(java.util.Vector<Candidate> candidate_set,
Hierarchy h)
This method returns the most harmonic subset of comparison with respect to hierarchy h, according the method Harmony Grammar, using the weights specified in h. 
static Comparison 
CompareOT(Candidate c1,
Candidate c2,
Constraint[] h)
Compares candidate c1 to candidate c2 in an Optimality Theoretic sense, with respect to the constraint ranking (hierarchy) found in the array of Constraints h. 
static Comparison 
CompareOT(Candidate c1,
Candidate c2,
Hierarchy h)
This static methods compares candidate c1 to candidate c2 in an Optimality Theoretic sense, with respect to the constraint ranking (hierarchy) h. 
static java.util.Vector<Candidate> 
CompareOT(java.util.Vector<Candidate> candidate_set,
Constraint[] h)
This method returns the most harmonic subset of comparison with respect to hierarchy h, according the method Optimality Grammar, using the hierarchy as specified in the array h. 
static java.util.Vector<Candidate> 
CompareOT(java.util.Vector<Candidate> candidate_set,
Hierarchy h)
This method returns the most harmonic subset of comparison with respect to hierarchy h, according the method Optimality Grammar, using the ranks specified in h. 
static double 
EvalHG(Candidate c,
Hierarchy h)
This static method returns the evaluation of candidate c with respect to the HG constraint hierarchy h. 
static Violation[] 
EvalOT(Candidate c,
Constraint[] h)
This static method returns the evaluation of candidate c with respect to the OT constraint hierarchy encoded in the constraint array h. 
Methods inherited from class java.lang.Object 

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
Constructor Detail 

public Eval()
Method Detail 

public static Comparison CompareOT(Candidate c1, Candidate c2, Constraint[] h)
Compares candidate c1 to candidate c2 in an Optimality Theoretic sense, with respect to the constraint ranking (hierarchy) found in the array of Constraints h. The higher a constraint is ranked in the hierarchy, the higher its index in the array. Note that H is typically Hierarchy.sortByRank().
For the sake of faster computation, it is supposed that
two violations are always comparable. That is, the method
Violation.notComparable(Violation, Violation)
never returns true. If the method Violation.betterEqual
is implemented in a tricky way such that two violations are not always
comparable, then you need to define (and implement) your own
version of Optimality Theory, after having decided what to do
with these cases. A possible source of bugs can be due to constraints that
return violations belonging to two different subclasses of the class
Violation
(such as, both IntegerViolation
and
FloatViolation
.)
c1
 : Candidate 1 to be compared.c2
 : Candidate 2 to be compared.h
 : array of constraints acting as the hierarchy in an OTsense.
public static Comparison CompareHG(Candidate c1, Candidate c2, Hierarchy h)
c1
 : Candidate 1 to be compared.c2
 : Candidate 2 to be compared.h
 : the hierarchy used for the comparison.
public static Comparison CompareOT(Candidate c1, Candidate c2, Hierarchy h)
c1
 : Candidate 1 to be compared.c2
 : Candidate 2 to be compared.h
 : constraints whose rank values are used to define
the hierarchy.
public static Comparison Compare(Candidate c1, Candidate c2, Hierarchy h)
c1
 : Candidate 1 to be compared.c2
 : Candidate 2 to be compared.h
 : Hierarchy used for the comparison.
public static Violation[] EvalOT(Candidate c, Constraint[] h)
c
 : The candidate to be evaluated.h
 : An array of constraints that represents the OT constraint ranking.
public static double EvalHG(Candidate c, Hierarchy h)
c
 : The candidate to be evaluated.h
 : A hierarchy that contains the HG constraints and their weights.
public static java.util.Vector<Candidate> Compare(java.util.Vector<Candidate> candidate_set, Hierarchy h)
candidate_set
 : A Vector of Candidates to be compared.h
 : The Hierarchy according to which comparison is done.
public static java.util.Vector<Candidate> CompareHG(java.util.Vector<Candidate> candidate_set, Hierarchy h)
candidate_set
 : A Vector of Candidates to be compared.h
 : The Hierarchy according to which comparison is done.
public static java.util.Vector<Candidate> CompareOT(java.util.Vector<Candidate> candidate_set, Hierarchy h)
candidate_set
 : A Vector of Candidates to be compared.h
 : The Hierarchy according to which comparison is done.
public static java.util.Vector<Candidate> CompareOT(java.util.Vector<Candidate> candidate_set, Constraint[] h)
candidate_set
 : A Vector of Candidates to be compared.h
 : The Hierarchy according to which comparison is done.


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 