Class ClassicalCategorizer

  • All Implemented Interfaces:
    Categorizer

    public class ClassicalCategorizer
    extends java.lang.Object
    implements Categorizer
    This class implements a simple categorizer that does an bottom-up marking of the tree; leafs are marked undefeated and an inner node is marked defeated if at least one child is marked undefeated and defeated otherwise.

    The method "categorize" returns "1" if the root node is undefeated and "0" if it is defeated.
    Author:
    Matthias Thimm
    • Method Summary

      Modifier and Type Method Description
      double categorize​(ArgumentTree argumentTree)
      This method categorizes the given argument tree.
      private double categorize​(ArgumentTree argumentTree, DeductiveArgumentNode parent, DeductiveArgumentNode node)
      Performs the bottom-up search.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassicalCategorizer

        public ClassicalCategorizer()
    • Method Detail

      • categorize

        public double categorize​(ArgumentTree argumentTree)
        Description copied from interface: Categorizer
        This method categorizes the given argument tree. In general, the semantics of this function is that a higher value of this categorization means a higher belief in the claim of the root argument of the argument tree.
        Specified by:
        categorize in interface Categorizer
        Parameters:
        argumentTree - some argument tree.
        Returns:
        the categorization of the argument tree.
      • categorize

        private double categorize​(ArgumentTree argumentTree,
                                  DeductiveArgumentNode parent,
                                  DeductiveArgumentNode node)
        Performs the bottom-up search.
        Parameters:
        argumentTree - some argument tree.
        parent - the parent of the current node.
        node - the current node.
        Returns:
        "1" if node is undefeated, "0" otherwise.