de.fu_berlin.ties.filter
Class FilterEvaluator

java.lang.Object
  extended by de.fu_berlin.ties.filter.FilterEvaluator

public final class FilterEvaluator
extends Object

A static class that allows to evaluate the precision, recall, and F1 measure of an element filter. No instances of this class can be created, only the static members should be used.

Version:
$Revision: 1.5 $, $Date: 2006/10/21 16:04:19 $, $Author: siefkes $
Author:
Christian Siefkes

Method Summary
static FMetricsView evaluate(EmbeddingElements embeddingElements, FilteringTokenWalker filteringWalker)
          Evaluates precision, recall, and F1 measure of the last walk performed by a filtering token woken.
static FMetricsView evaluate(EmbeddingElements embeddingElements, Set acceptedElements, Set rejectedElements)
          Evaluates precision, recall, and F1 measure of an element filter by comparing the accepted and rejected elements of the filter with the correct set of embeddingElements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

evaluate

public static FMetricsView evaluate(EmbeddingElements embeddingElements,
                                    FilteringTokenWalker filteringWalker)
Evaluates precision, recall, and F1 measure of the last walk performed by a filtering token woken. Delegates to evaluate(EmbeddingElements, Set, Set).

Parameters:
embeddingElements - the correct set of embedding elements
filteringWalker - the filtering token walker to evaluate
Returns:
the calculated statistics

evaluate

public static FMetricsView evaluate(EmbeddingElements embeddingElements,
                                    Set acceptedElements,
                                    Set rejectedElements)
Evaluates precision, recall, and F1 measure of an element filter by comparing the accepted and rejected elements of the filter with the correct set of embeddingElements.

Parameters:
embeddingElements - the correct set of embedding elements
acceptedElements - the set of elements accepted by the filter
rejectedElements - the set of elements rejected by the filter
Returns:
the calculated statistics


Copyright © 2003-2007 Christian Siefkes. All Rights Reserved.