All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mindee.parsing.custom.ClassificationField Maven / Gradle / Ivy

The newest version!
package com.mindee.parsing.custom;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;

/**
 * A field holding a classification value.
 */
@Getter
@EqualsAndHashCode
@JsonIgnoreProperties(ignoreUnknown = true)
public class ClassificationField {

  /**
   * The confidence about the zone of the value extracted.
   * A value from 0 to 1.
   */
  @JsonProperty("confidence")
  private double confidence;
  /**
   * The content of the value.
   */
  @JsonProperty("value")
  private String value;

  @Override
  public String toString() {
    return value == null ? "" : value;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy