    001    package calhoun.analysis.crf.scoring;
    002
    003    import calhoun.analysis.crf.LocalPathSimilarityScore;
    004    import calhoun.analysis.crf.io.TrainingSequence;
    005
    006    public class SimScoreMaxStateAgreement implements LocalPathSimilarityScore {
    007
    008            public double evaluate(int yprev, int y, TrainingSequence<?> seq, int pos) {
    009                    if (pos == 0) { return 0.0; }
    010                    if (y == seq.getY(pos)) { return 1.0; }
    011                    return 0.0;
    012            }
    013
    014    }