package com.heyu.api.resp.doc;

import com.heyu.api.data.dto.BaseResp;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class PenResp extends BaseResp {

    private ProbabilityDTO probability;
    // 识别结果字符串
    private String words;

    @NoArgsConstructor
    @Data
    public static class ProbabilityDTO {
        // 	识别结果中每一行的置信度值，包含average：行置信度平均值，variance：行置信度方差，min：行置信度最小值，当 probability=true 时返回该字段

        private Double average;
        private Double min;
        private Double variance;
    }

}
