Class NamedEntityRecognitionModelMetrics.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • microPrecision

        public NamedEntityRecognitionModelMetrics.Builder microPrecision​(Float microPrecision)
        Precision refers to the number of true positives divided by the total number of positive predictions (i.e., the number of true positives plus the number of false positives)
        Parameters:
        microPrecision - the value to set
        Returns:
        this builder
      • microRecall

        public NamedEntityRecognitionModelMetrics.Builder microRecall​(Float microRecall)
        Measures the model’s ability to predict actual positive classes.

        It is the ratio between the predicted true positives and what was actually tagged. The recall metric reveals how many of the predicted classes are correct.

        Parameters:
        microRecall - the value to set
        Returns:
        this builder
      • macroPrecision

        public NamedEntityRecognitionModelMetrics.Builder macroPrecision​(Float macroPrecision)
        Precision refers to the number of true positives divided by the total number of positive predictions (i.e., the number of true positives plus the number of false positives)
        Parameters:
        macroPrecision - the value to set
        Returns:
        this builder
      • macroRecall

        public NamedEntityRecognitionModelMetrics.Builder macroRecall​(Float macroRecall)
        Measures the model’s ability to predict actual positive classes.

        It is the ratio between the predicted true positives and what was actually tagged. The recall metric reveals how many of the predicted classes are correct.

        Parameters:
        macroRecall - the value to set
        Returns:
        this builder
      • weightedPrecision

        public NamedEntityRecognitionModelMetrics.Builder weightedPrecision​(Float weightedPrecision)
        Precision refers to the number of true positives divided by the total number of positive predictions (i.e., the number of true positives plus the number of false positives)
        Parameters:
        weightedPrecision - the value to set
        Returns:
        this builder
      • weightedRecall

        public NamedEntityRecognitionModelMetrics.Builder weightedRecall​(Float weightedRecall)
        Measures the model’s ability to predict actual positive classes.

        It is the ratio between the predicted true positives and what was actually tagged. The recall metric reveals how many of the predicted classes are correct.

        Parameters:
        weightedRecall - the value to set
        Returns:
        this builder