Class: TencentCloud::Cms::V20190321::TextData
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cms::V20190321::TextData
- Defined in:
- lib/v20190321/models.rb
Overview
文本识别结果详情
Instance Attribute Summary collapse
-
#BizType ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
-
#Common ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
-
#CustomResult ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
-
#DataId ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
-
#DetailResult ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
-
#EvilFlag ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
-
#EvilLabel ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
-
#EvilType ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
-
#Extra ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
-
#ID ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
-
#Keywords ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
-
#Res ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
-
#RiskDetails ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
-
#Score ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
-
#Suggestion ⇒ Object
100:正常 20001:政治 20002:色情 20006:涉毒违法 20007:谩骂 20105:广告引流 24001:暴恐.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#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
constructor
A new instance of TextData.
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
#BizType ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
1305 1306 1307 |
# File 'lib/v20190321/models.rb', line 1305 def BizType @BizType end |
#Common ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
1305 1306 1307 |
# File 'lib/v20190321/models.rb', line 1305 def Common @Common end |
#CustomResult ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
1305 1306 1307 |
# File 'lib/v20190321/models.rb', line 1305 def CustomResult @CustomResult end |
#DataId ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
1305 1306 1307 |
# File 'lib/v20190321/models.rb', line 1305 def DataId @DataId end |
#DetailResult ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
1305 1306 1307 |
# File 'lib/v20190321/models.rb', line 1305 def DetailResult @DetailResult end |
#EvilFlag ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
1305 1306 1307 |
# File 'lib/v20190321/models.rb', line 1305 def EvilFlag @EvilFlag end |
#EvilLabel ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
1305 1306 1307 |
# File 'lib/v20190321/models.rb', line 1305 def EvilLabel @EvilLabel end |
#EvilType ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
1305 1306 1307 |
# File 'lib/v20190321/models.rb', line 1305 def EvilType @EvilType end |
#Extra ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
1305 1306 1307 |
# File 'lib/v20190321/models.rb', line 1305 def Extra @Extra end |
#ID ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
1305 1306 1307 |
# File 'lib/v20190321/models.rb', line 1305 def ID @ID end |
#Keywords ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
1305 1306 1307 |
# File 'lib/v20190321/models.rb', line 1305 def Keywords @Keywords end |
#Res ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
1305 1306 1307 |
# File 'lib/v20190321/models.rb', line 1305 def Res @Res end |
#RiskDetails ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
1305 1306 1307 |
# File 'lib/v20190321/models.rb', line 1305 def RiskDetails @RiskDetails end |
#Score ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
1305 1306 1307 |
# File 'lib/v20190321/models.rb', line 1305 def Score @Score end |
#Suggestion ⇒ Object
100:正常20001:政治20002:色情20006:涉毒违法20007:谩骂20105:广告引流24001:暴恐
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 |