Class: TencentCloud::Cms::V20190321::TextData

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190321/models.rb

Overview

文本识别结果详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(eviltype = nil, evilflag = nil, dataid = nil, extra = nil, biztype = nil, res = nil, riskdetails = nil, id = nil, score = nil, common = nil, suggestion = nil, keywords = nil, detailresult = nil, customresult = nil, evillabel = nil) ⇒ TextData

Returns a new instance of TextData.



1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
# File 'lib/v20190321/models.rb', line 1307

def initialize(eviltype=nil, evilflag=nil, dataid=nil, extra=nil, biztype=nil, res=nil, riskdetails=nil, id=nil, score=nil, common=nil, suggestion=nil, keywords=nil, detailresult=nil, customresult=nil, evillabel=nil)
  @EvilType = eviltype
  @EvilFlag = evilflag
  @DataId = dataid
  @Extra = extra
  @BizType = biztype
  @Res = res
  @RiskDetails = riskdetails
  @ID = id
  @Score = score
  @Common = common
  @Suggestion = suggestion
  @Keywords = keywords
  @DetailResult = detailresult
  @CustomResult = customresult
  @EvilLabel = evillabel
end

Instance Attribute Details

#BizTypeObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def BizType
  @BizType
end

#CommonObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def Common
  @Common
end

#CustomResultObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def CustomResult
  @CustomResult
end

#DataIdObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def DataId
  @DataId
end

#DetailResultObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def DetailResult
  @DetailResult
end

#EvilFlagObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def EvilFlag
  @EvilFlag
end

#EvilLabelObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def EvilLabel
  @EvilLabel
end

#EvilTypeObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def EvilType
  @EvilType
end

#ExtraObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def Extra
  @Extra
end

#IDObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def ID
  @ID
end

#KeywordsObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def Keywords
  @Keywords
end

#ResObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def Res
  @Res
end

#RiskDetailsObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def RiskDetails
  @RiskDetails
end

#ScoreObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def Score
  @Score
end

#SuggestionObject

100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐

Parameters:

  • EvilType:

    恶意类型

  • EvilFlag:

    是否恶意 0:正常 1:可疑

  • DataId:

    和请求中的DataId一致,原样返回

  • Extra:

    输出的其他信息,不同客户内容不同

  • BizType:

    最终使用的BizType

  • Res:

    消息类输出结果

  • RiskDetails:

    账号风险检测结果

  • ID:

    消息类ID信息

  • Score:

    命中的模型分值

  • Common:

    消息类公共相关参数

  • Suggestion:

    建议值,Block:打击,Review:待复审,Normal:正常

  • Keywords:

    命中的关键词

  • DetailResult:

    返回的详细结果

  • CustomResult:

    返回的自定义词库结果

  • EvilLabel:

    恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词



1305
1306
1307
# File 'lib/v20190321/models.rb', line 1305

def Suggestion
  @Suggestion
end

Instance Method Details

#deserialize(params) ⇒ Object



1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
# File 'lib/v20190321/models.rb', line 1325

def deserialize(params)
  @EvilType = params['EvilType']
  @EvilFlag = params['EvilFlag']
  @DataId = params['DataId']
  @Extra = params['Extra']
  @BizType = params['BizType']
  unless params['Res'].nil?
    @Res = TextOutputRes.new
    @Res.deserialize(params['Res'])
  end
  unless params['RiskDetails'].nil?
    @RiskDetails = []
    params['RiskDetails'].each do |i|
      riskdetails_tmp = RiskDetails.new
      riskdetails_tmp.deserialize(i)
      @RiskDetails << riskdetails_tmp
    end
  end
  unless params['ID'].nil?
    @ID = TextOutputID.new
    @ID.deserialize(params['ID'])
  end
  @Score = params['Score']
  unless params['Common'].nil?
    @Common = TextOutputComm.new
    @Common.deserialize(params['Common'])
  end
  @Suggestion = params['Suggestion']
  @Keywords = params['Keywords']
  unless params['DetailResult'].nil?
    @DetailResult = []
    params['DetailResult'].each do |i|
      detailresult_tmp = DetailResult.new
      detailresult_tmp.deserialize(i)
      @DetailResult << detailresult_tmp
    end
  end
  unless params['CustomResult'].nil?
    @CustomResult = []
    params['CustomResult'].each do |i|
      customresult_tmp = CustomResult.new
      customresult_tmp.deserialize(i)
      @CustomResult << customresult_tmp
    end
  end
  @EvilLabel = params['EvilLabel']
end