Class UnlabeledAttachmentEval

  • All Implemented Interfaces:
    Eval

    public class UnlabeledAttachmentEval
    extends AbstractEval
    Dependency unlabeled attachment score.

    If Collinization has not been performed prior to evaluation, then it is customary (for reporting results) to pass in a filter that rejects dependencies with punctuation dependents.

    Author:
    Spence Green
    • Constructor Detail

      • UnlabeledAttachmentEval

        public UnlabeledAttachmentEval​(String str,
                                       boolean runningAverages,
                                       HeadFinder headFinder)
        Parameters:
        headFinder - If a headFinder is provided, then head percolation will be done for trees. Otherwise, it must be called separately.
      • UnlabeledAttachmentEval

        public UnlabeledAttachmentEval​(String str,
                                       boolean runningAverages,
                                       HeadFinder headFinder,
                                       Predicate<String> punctRejectFilter)
    • Method Detail

      • makeObjects

        protected Set<?> makeObjects​(Tree tree)
        Build the set of dependencies for evaluation. This set excludes all dependencies for which the argument is a punctuation tag.
        Specified by:
        makeObjects in class AbstractEval
      • main

        public static void main​(String[] args)
        Run the Evalb scoring metric on guess/gold input. The default language is English.
        Parameters:
        args -