evaluator.java

来自「dragontoolkit用于机器学习」· Java 代码 · 共 39 行

JAVA
39
字号
package dragon.ml.seqmodel.evaluate;import dragon.ml.seqmodel.data.*;/** * <p>Interface of sequence labeling evaluator</p> * <p></p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: IST, Drexel University</p> * @author Davis Zhou * @version 1.0 */public interface Evaluator {    /**     * Evalutes the machine-generated labels     * @param human the dataset with human-annotated labels     * @param machine the dataset with machine-annotated labels     */    public void evaluate(Dataset human, Dataset machine);    /**     * @return the number of total labels     */    public int totalLabels();    /**     * @return the number of lables set by machine     */    public int annotatedLabels();    /**     * @return the number of correct lables set by machine     */    public int correctAnnotatedLabels();    public double precision();    public double recall();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?