com.disdar.api.model.ExtractionResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of disdar-api-client-java Show documentation
Show all versions of disdar-api-client-java Show documentation
A simple Java client for the DISDAR extraction service
package com.disdar.api.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true)
public class ExtractionResult {
private double confidence;
private List words;
public ExtractionResult(@JsonProperty("confidence") double confidence,
@JsonProperty("words") List words) {
this.confidence = confidence;
this.words = words;
}
public double getConfidence() {
return confidence;
}
public List getWords() {
return words;
}
@Override
public boolean equals(Object obj) {
return EqualsBuilder.reflectionEquals(this, obj);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy