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

com.volcengine.model.response.TextSliceRiskResponse Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
package com.volcengine.model.response;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

@Data
public class TextSliceRiskResponse {
    @JSONField(name = "ResponseMetadata")
    ResponseMetadata responseMetadata;
    @JSONField(name = "Result")
    RiskDetectionResult result;

    @Data
    public static class RiskDetectionResult {
        @JSONField(name = "RequestId")
        private String requestId;
        @JSONField(name = "Code")
        private Integer code;
        @JSONField(name = "Message")
        private String message;
        @JSONField(name = "Data")
        private DecisionData data;
    }

    @Data
    public static class DecisionData {
        @JSONField(name = "TextCount")
        private int textCount;
        @JSONField(name = "Decision")
        private String decision;
        @JSONField(name = "DecisionDetail")
        private String decisionDetail;
        @JSONField(name = "FinalLabel")
        private String finalLabel;
        @JSONField(name = "Results")
        private List result;
    }

    @Data
    public static class TextResult {
        @JSONField(name = "RiskText")
        private String riskText;
        @JSONField(name = "RTStartPos")
        private int rtStartPos;
        @JSONField(name = "RTEndPos")
        private int rtEndPos;
        @JSONField(name = "Labels")
        private List




© 2015 - 2024 Weber Informatics LLC | Privacy Policy