File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -441,10 +441,10 @@ client.Task.SpamClassify(mirage.SpamClassifyRequest {
441
441
"logprob" : -0.10 ,
442
442
443
443
"scores" : {
444
- "gibberish" : 0.0 ,
445
- "marketing" : 0.45 ,
446
- "regular" : 0.0 ,
447
- "spam" : 0.93
444
+ "gibberish" : 0.0 ,
445
+ "marketing" : 0.45 ,
446
+ "regular" : 0.0 ,
447
+ "spam" : 0.93
448
448
}
449
449
}
450
450
}
Original file line number Diff line number Diff line change @@ -33,10 +33,10 @@ type SpamClassifyResponseData struct {
33
33
34
34
// SpamClassifyResponse mapping
35
35
type SpamClassifyResponse struct {
36
- Class string `json:"class"`
37
- Confidence float32 `json:"confidence"`
38
- LogProb float32 `json:"logprob"`
39
- Scores SpamClassifyResponseScores `json:"scores"`
36
+ Class string `json:"class"`
37
+ Confidence float32 `json:"confidence"`
38
+ LogProb float32 `json:"logprob"`
39
+ Scores SpamClassifyResponseScores `json:"scores"`
40
40
}
41
41
42
42
// SpamClassifyResponseScores mapping
@@ -47,6 +47,7 @@ type SpamClassifyResponseScores struct {
47
47
Spam float32 `json:"spam"`
48
48
}
49
49
50
+
50
51
// String returns the string representation of SpamClassifyResponse
51
52
func (instance SpamClassifyResponse ) String () string {
52
53
return Stringify (instance )
You can’t perform that action at this time.
0 commit comments