1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AlibabaCloud\NlpAutoml\V20191111; |
4
|
|
|
|
5
|
|
|
use AlibabaCloud\Client\Resolver\ApiResolver; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* @method GetPredictResult getPredictResult(array $options = []) |
9
|
|
|
* @method RunContactReview runContactReview(array $options = []) |
10
|
|
|
*/ |
11
|
|
|
class NlpAutomlApiResolver extends ApiResolver |
12
|
|
|
{ |
13
|
|
|
} |
14
|
|
|
|
15
|
|
|
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc |
16
|
|
|
{ |
17
|
|
|
/** @var string */ |
18
|
|
|
public $product = 'nlp-automl'; |
19
|
|
|
|
20
|
|
|
/** @var string */ |
21
|
|
|
public $version = '2019-11-11'; |
22
|
|
|
|
23
|
|
|
/** @var string */ |
24
|
|
|
public $method = 'POST'; |
25
|
|
|
|
26
|
|
|
/** @var string */ |
27
|
|
|
public $serviceCode = 'nlpautoml'; |
28
|
|
|
} |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* @method string getTopK() |
32
|
|
|
* @method string getModelId() |
33
|
|
|
* @method string getDetailTag() |
34
|
|
|
* @method string getContent() |
35
|
|
|
* @method string getModelVersion() |
36
|
|
|
*/ |
37
|
|
|
class GetPredictResult extends Rpc |
38
|
|
|
{ |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @param string $value |
42
|
|
|
* |
43
|
|
|
* @return $this |
44
|
|
|
*/ |
45
|
|
|
public function withTopK($value) |
46
|
|
|
{ |
47
|
|
|
$this->data['TopK'] = $value; |
48
|
|
|
$this->options['form_params']['TopK'] = $value; |
49
|
|
|
|
50
|
|
|
return $this; |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @param string $value |
55
|
|
|
* |
56
|
|
|
* @return $this |
57
|
|
|
*/ |
58
|
|
|
public function withModelId($value) |
59
|
|
|
{ |
60
|
|
|
$this->data['ModelId'] = $value; |
61
|
|
|
$this->options['form_params']['ModelId'] = $value; |
62
|
|
|
|
63
|
|
|
return $this; |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @param string $value |
68
|
|
|
* |
69
|
|
|
* @return $this |
70
|
|
|
*/ |
71
|
|
|
public function withDetailTag($value) |
72
|
|
|
{ |
73
|
|
|
$this->data['DetailTag'] = $value; |
74
|
|
|
$this->options['form_params']['DetailTag'] = $value; |
75
|
|
|
|
76
|
|
|
return $this; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @param string $value |
81
|
|
|
* |
82
|
|
|
* @return $this |
83
|
|
|
*/ |
84
|
|
|
public function withContent($value) |
85
|
|
|
{ |
86
|
|
|
$this->data['Content'] = $value; |
87
|
|
|
$this->options['form_params']['Content'] = $value; |
88
|
|
|
|
89
|
|
|
return $this; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @param string $value |
94
|
|
|
* |
95
|
|
|
* @return $this |
96
|
|
|
*/ |
97
|
|
|
public function withModelVersion($value) |
98
|
|
|
{ |
99
|
|
|
$this->data['ModelVersion'] = $value; |
100
|
|
|
$this->options['form_params']['ModelVersion'] = $value; |
101
|
|
|
|
102
|
|
|
return $this; |
103
|
|
|
} |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @method string getContactScene() |
108
|
|
|
* @method string getContactPath() |
109
|
|
|
*/ |
110
|
|
|
class RunContactReview extends Rpc |
111
|
|
|
{ |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @param string $value |
115
|
|
|
* |
116
|
|
|
* @return $this |
117
|
|
|
*/ |
118
|
|
|
public function withContactScene($value) |
119
|
|
|
{ |
120
|
|
|
$this->data['ContactScene'] = $value; |
121
|
|
|
$this->options['form_params']['ContactScene'] = $value; |
122
|
|
|
|
123
|
|
|
return $this; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @param string $value |
128
|
|
|
* |
129
|
|
|
* @return $this |
130
|
|
|
*/ |
131
|
|
|
public function withContactPath($value) |
132
|
|
|
{ |
133
|
|
|
$this->data['ContactPath'] = $value; |
134
|
|
|
$this->options['form_params']['ContactPath'] = $value; |
135
|
|
|
|
136
|
|
|
return $this; |
137
|
|
|
} |
138
|
|
|
} |
139
|
|
|
|