Class DocumentCategorizerEvaluator

    • Constructor Detail

      • DocumentCategorizerEvaluator

        public DocumentCategorizerEvaluator​(DocumentCategorizer categorizer,
                                            DoccatEvaluationMonitor... listeners)
        Initializes the current instance.
        Parameters:
        categorizer - the document categorizer instance
    • Method Detail

      • getAccuracy

        public double getAccuracy()
        Retrieves the accuracy of provided DocumentCategorizer. accuracy = correctly categorized documents / total documents
        Returns:
        the accuracy
      • getDocumentCount

        public long getDocumentCount()