model_zoo/ernie-tiny/deploy/android/ui/src/main/java/com/baidu/paddle/paddlenlp/ui/view/model/BaseResultModel.java
<gh_stars>0package com.baidu.paddle.paddlenlp.ui.view.model;

public class BaseResultModel {
    private int index;
    private String name;
    private float confidence;

    public BaseResultModel() {

    }

    public BaseResultModel(int index, String name, float confidence) {
        this.index = index;
        this.name = name;
        this.confidence = confidence;
    }

    public float getConfidence() {
        return confidence;
    }

    public void setConfidence(float confidence) {
        this.confidence = confidence;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
