Search in sources :

Example 1 with LetterGuesserContext

use of com.joliciel.jochre.letterGuesser.LetterGuesserContext in project jochre by urieli.

the class LetterFeatureTester method testFeatures.

void testFeatures(ShapeInSequence shapeInSequence, Set<LetterFeature<?>> features) {
    LetterSequence history = null;
    LetterGuesserContext context = new LetterGuesserContext(shapeInSequence, history);
    for (LetterFeature<?> feature : features) {
        RuntimeEnvironment env = new RuntimeEnvironment();
        feature.check(context, env);
    }
}
Also used : LetterSequence(com.joliciel.jochre.letterGuesser.LetterSequence) LetterGuesserContext(com.joliciel.jochre.letterGuesser.LetterGuesserContext) RuntimeEnvironment(com.joliciel.talismane.machineLearning.features.RuntimeEnvironment)

Aggregations

LetterGuesserContext (com.joliciel.jochre.letterGuesser.LetterGuesserContext)1 LetterSequence (com.joliciel.jochre.letterGuesser.LetterSequence)1 RuntimeEnvironment (com.joliciel.talismane.machineLearning.features.RuntimeEnvironment)1