All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ParseTree.EvaluationMetrics.Metric Maven / Gradle / Ivy

package ParseTree.EvaluationMetrics;

import ParseTree.ParseTree;
import ParseTree.TreeBank;

import java.io.File;

public abstract class Metric {

    public abstract double[][] calculate(File goldTrees, File computedTrees);

    public abstract double[][] calculate(TreeBank goldTrees, TreeBank computedTrees);

    protected abstract double[] add(ParseTree goldTree, ParseTree computedTree);

    public abstract double[] average(double[][] matrix);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy