Supported more api for user.

This commit is contained in:
sdk-team
2023-05-06 07:40:19 +00:00
parent 93f7addccc
commit 3ed26d9565
20 changed files with 1069 additions and 1 deletions

View File

@@ -1 +1 @@
1.36.1552
1.36.1553

View File

@@ -47,6 +47,8 @@ set(alinlp_public_header_model
include/alibabacloud/alinlp/model/GetEcChGeneralResult.h
include/alibabacloud/alinlp/model/GetEcEnGeneralRequest.h
include/alibabacloud/alinlp/model/GetEcEnGeneralResult.h
include/alibabacloud/alinlp/model/GetEmbeddingRequest.h
include/alibabacloud/alinlp/model/GetEmbeddingResult.h
include/alibabacloud/alinlp/model/GetItemPubChEcomRequest.h
include/alibabacloud/alinlp/model/GetItemPubChEcomResult.h
include/alibabacloud/alinlp/model/GetKeywordChEcomRequest.h
@@ -63,6 +65,10 @@ set(alinlp_public_header_model
include/alibabacloud/alinlp/model/GetNerCustomizedChEcomResult.h
include/alibabacloud/alinlp/model/GetNerCustomizedSeaEcomRequest.h
include/alibabacloud/alinlp/model/GetNerCustomizedSeaEcomResult.h
include/alibabacloud/alinlp/model/GetOpenNLURequest.h
include/alibabacloud/alinlp/model/GetOpenNLUResult.h
include/alibabacloud/alinlp/model/GetOpenNLUHighRecallRequest.h
include/alibabacloud/alinlp/model/GetOpenNLUHighRecallResult.h
include/alibabacloud/alinlp/model/GetOperationChMedicalRequest.h
include/alibabacloud/alinlp/model/GetOperationChMedicalResult.h
include/alibabacloud/alinlp/model/GetPosChEcomRequest.h
@@ -71,6 +77,8 @@ set(alinlp_public_header_model
include/alibabacloud/alinlp/model/GetPosChGeneralResult.h
include/alibabacloud/alinlp/model/GetPriceChEcomRequest.h
include/alibabacloud/alinlp/model/GetPriceChEcomResult.h
include/alibabacloud/alinlp/model/GetSSETestRequest.h
include/alibabacloud/alinlp/model/GetSSETestResult.h
include/alibabacloud/alinlp/model/GetSaChGeneralRequest.h
include/alibabacloud/alinlp/model/GetSaChGeneralResult.h
include/alibabacloud/alinlp/model/GetSaSeaEcomRequest.h
@@ -154,6 +162,8 @@ set(alinlp_src
src/model/GetEcChGeneralResult.cc
src/model/GetEcEnGeneralRequest.cc
src/model/GetEcEnGeneralResult.cc
src/model/GetEmbeddingRequest.cc
src/model/GetEmbeddingResult.cc
src/model/GetItemPubChEcomRequest.cc
src/model/GetItemPubChEcomResult.cc
src/model/GetKeywordChEcomRequest.cc
@@ -170,6 +180,10 @@ set(alinlp_src
src/model/GetNerCustomizedChEcomResult.cc
src/model/GetNerCustomizedSeaEcomRequest.cc
src/model/GetNerCustomizedSeaEcomResult.cc
src/model/GetOpenNLURequest.cc
src/model/GetOpenNLUResult.cc
src/model/GetOpenNLUHighRecallRequest.cc
src/model/GetOpenNLUHighRecallResult.cc
src/model/GetOperationChMedicalRequest.cc
src/model/GetOperationChMedicalResult.cc
src/model/GetPosChEcomRequest.cc
@@ -178,6 +192,8 @@ set(alinlp_src
src/model/GetPosChGeneralResult.cc
src/model/GetPriceChEcomRequest.cc
src/model/GetPriceChEcomResult.cc
src/model/GetSSETestRequest.cc
src/model/GetSSETestResult.cc
src/model/GetSaChGeneralRequest.cc
src/model/GetSaChGeneralResult.cc
src/model/GetSaSeaEcomRequest.cc

View File

@@ -48,6 +48,8 @@
#include "model/GetEcChGeneralResult.h"
#include "model/GetEcEnGeneralRequest.h"
#include "model/GetEcEnGeneralResult.h"
#include "model/GetEmbeddingRequest.h"
#include "model/GetEmbeddingResult.h"
#include "model/GetItemPubChEcomRequest.h"
#include "model/GetItemPubChEcomResult.h"
#include "model/GetKeywordChEcomRequest.h"
@@ -64,6 +66,10 @@
#include "model/GetNerCustomizedChEcomResult.h"
#include "model/GetNerCustomizedSeaEcomRequest.h"
#include "model/GetNerCustomizedSeaEcomResult.h"
#include "model/GetOpenNLURequest.h"
#include "model/GetOpenNLUResult.h"
#include "model/GetOpenNLUHighRecallRequest.h"
#include "model/GetOpenNLUHighRecallResult.h"
#include "model/GetOperationChMedicalRequest.h"
#include "model/GetOperationChMedicalResult.h"
#include "model/GetPosChEcomRequest.h"
@@ -72,6 +78,8 @@
#include "model/GetPosChGeneralResult.h"
#include "model/GetPriceChEcomRequest.h"
#include "model/GetPriceChEcomResult.h"
#include "model/GetSSETestRequest.h"
#include "model/GetSSETestResult.h"
#include "model/GetSaChGeneralRequest.h"
#include "model/GetSaChGeneralResult.h"
#include "model/GetSaSeaEcomRequest.h"
@@ -174,6 +182,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetEcEnGeneralResult> GetEcEnGeneralOutcome;
typedef std::future<GetEcEnGeneralOutcome> GetEcEnGeneralOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetEcEnGeneralRequest&, const GetEcEnGeneralOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEcEnGeneralAsyncHandler;
typedef Outcome<Error, Model::GetEmbeddingResult> GetEmbeddingOutcome;
typedef std::future<GetEmbeddingOutcome> GetEmbeddingOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetEmbeddingRequest&, const GetEmbeddingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEmbeddingAsyncHandler;
typedef Outcome<Error, Model::GetItemPubChEcomResult> GetItemPubChEcomOutcome;
typedef std::future<GetItemPubChEcomOutcome> GetItemPubChEcomOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetItemPubChEcomRequest&, const GetItemPubChEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetItemPubChEcomAsyncHandler;
@@ -198,6 +209,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetNerCustomizedSeaEcomResult> GetNerCustomizedSeaEcomOutcome;
typedef std::future<GetNerCustomizedSeaEcomOutcome> GetNerCustomizedSeaEcomOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetNerCustomizedSeaEcomRequest&, const GetNerCustomizedSeaEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNerCustomizedSeaEcomAsyncHandler;
typedef Outcome<Error, Model::GetOpenNLUResult> GetOpenNLUOutcome;
typedef std::future<GetOpenNLUOutcome> GetOpenNLUOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetOpenNLURequest&, const GetOpenNLUOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOpenNLUAsyncHandler;
typedef Outcome<Error, Model::GetOpenNLUHighRecallResult> GetOpenNLUHighRecallOutcome;
typedef std::future<GetOpenNLUHighRecallOutcome> GetOpenNLUHighRecallOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetOpenNLUHighRecallRequest&, const GetOpenNLUHighRecallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOpenNLUHighRecallAsyncHandler;
typedef Outcome<Error, Model::GetOperationChMedicalResult> GetOperationChMedicalOutcome;
typedef std::future<GetOperationChMedicalOutcome> GetOperationChMedicalOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetOperationChMedicalRequest&, const GetOperationChMedicalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOperationChMedicalAsyncHandler;
@@ -210,6 +227,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetPriceChEcomResult> GetPriceChEcomOutcome;
typedef std::future<GetPriceChEcomOutcome> GetPriceChEcomOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetPriceChEcomRequest&, const GetPriceChEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPriceChEcomAsyncHandler;
typedef Outcome<Error, Model::GetSSETestResult> GetSSETestOutcome;
typedef std::future<GetSSETestOutcome> GetSSETestOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetSSETestRequest&, const GetSSETestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSSETestAsyncHandler;
typedef Outcome<Error, Model::GetSaChGeneralResult> GetSaChGeneralOutcome;
typedef std::future<GetSaChGeneralOutcome> GetSaChGeneralOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetSaChGeneralRequest&, const GetSaChGeneralOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSaChGeneralAsyncHandler;
@@ -335,6 +355,9 @@ namespace AlibabaCloud
GetEcEnGeneralOutcome getEcEnGeneral(const Model::GetEcEnGeneralRequest &request)const;
void getEcEnGeneralAsync(const Model::GetEcEnGeneralRequest& request, const GetEcEnGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetEcEnGeneralOutcomeCallable getEcEnGeneralCallable(const Model::GetEcEnGeneralRequest& request) const;
GetEmbeddingOutcome getEmbedding(const Model::GetEmbeddingRequest &request)const;
void getEmbeddingAsync(const Model::GetEmbeddingRequest& request, const GetEmbeddingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetEmbeddingOutcomeCallable getEmbeddingCallable(const Model::GetEmbeddingRequest& request) const;
GetItemPubChEcomOutcome getItemPubChEcom(const Model::GetItemPubChEcomRequest &request)const;
void getItemPubChEcomAsync(const Model::GetItemPubChEcomRequest& request, const GetItemPubChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetItemPubChEcomOutcomeCallable getItemPubChEcomCallable(const Model::GetItemPubChEcomRequest& request) const;
@@ -359,6 +382,12 @@ namespace AlibabaCloud
GetNerCustomizedSeaEcomOutcome getNerCustomizedSeaEcom(const Model::GetNerCustomizedSeaEcomRequest &request)const;
void getNerCustomizedSeaEcomAsync(const Model::GetNerCustomizedSeaEcomRequest& request, const GetNerCustomizedSeaEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetNerCustomizedSeaEcomOutcomeCallable getNerCustomizedSeaEcomCallable(const Model::GetNerCustomizedSeaEcomRequest& request) const;
GetOpenNLUOutcome getOpenNLU(const Model::GetOpenNLURequest &request)const;
void getOpenNLUAsync(const Model::GetOpenNLURequest& request, const GetOpenNLUAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetOpenNLUOutcomeCallable getOpenNLUCallable(const Model::GetOpenNLURequest& request) const;
GetOpenNLUHighRecallOutcome getOpenNLUHighRecall(const Model::GetOpenNLUHighRecallRequest &request)const;
void getOpenNLUHighRecallAsync(const Model::GetOpenNLUHighRecallRequest& request, const GetOpenNLUHighRecallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetOpenNLUHighRecallOutcomeCallable getOpenNLUHighRecallCallable(const Model::GetOpenNLUHighRecallRequest& request) const;
GetOperationChMedicalOutcome getOperationChMedical(const Model::GetOperationChMedicalRequest &request)const;
void getOperationChMedicalAsync(const Model::GetOperationChMedicalRequest& request, const GetOperationChMedicalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetOperationChMedicalOutcomeCallable getOperationChMedicalCallable(const Model::GetOperationChMedicalRequest& request) const;
@@ -371,6 +400,9 @@ namespace AlibabaCloud
GetPriceChEcomOutcome getPriceChEcom(const Model::GetPriceChEcomRequest &request)const;
void getPriceChEcomAsync(const Model::GetPriceChEcomRequest& request, const GetPriceChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPriceChEcomOutcomeCallable getPriceChEcomCallable(const Model::GetPriceChEcomRequest& request) const;
GetSSETestOutcome getSSETest(const Model::GetSSETestRequest &request)const;
void getSSETestAsync(const Model::GetSSETestRequest& request, const GetSSETestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSSETestOutcomeCallable getSSETestCallable(const Model::GetSSETestRequest& request) const;
GetSaChGeneralOutcome getSaChGeneral(const Model::GetSaChGeneralRequest &request)const;
void getSaChGeneralAsync(const Model::GetSaChGeneralRequest& request, const GetSaChGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSaChGeneralOutcomeCallable getSaChGeneralCallable(const Model::GetSaChGeneralRequest& request) const;

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETEMBEDDINGREQUEST_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETEMBEDDINGREQUEST_H_
#include <alibabacloud/alinlp/AlinlpExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alinlp {
namespace Model {
class ALIBABACLOUD_ALINLP_EXPORT GetEmbeddingRequest : public RpcServiceRequest {
public:
GetEmbeddingRequest();
~GetEmbeddingRequest();
std::string getBusiness() const;
void setBusiness(const std::string &business);
std::string getServiceCode() const;
void setServiceCode(const std::string &serviceCode);
std::string getText() const;
void setText(const std::string &text);
private:
std::string business_;
std::string serviceCode_;
std::string text_;
};
} // namespace Model
} // namespace Alinlp
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETEMBEDDINGREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETEMBEDDINGRESULT_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETEMBEDDINGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetEmbeddingResult : public ServiceResult
{
public:
GetEmbeddingResult();
explicit GetEmbeddingResult(const std::string &payload);
~GetEmbeddingResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETEMBEDDINGRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUHIGHRECALLREQUEST_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUHIGHRECALLREQUEST_H_
#include <alibabacloud/alinlp/AlinlpExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alinlp {
namespace Model {
class ALIBABACLOUD_ALINLP_EXPORT GetOpenNLUHighRecallRequest : public RpcServiceRequest {
public:
GetOpenNLUHighRecallRequest();
~GetOpenNLUHighRecallRequest();
std::string getSentence() const;
void setSentence(const std::string &sentence);
std::string getBusiness() const;
void setBusiness(const std::string &business);
std::string getLabels() const;
void setLabels(const std::string &labels);
std::string getTask() const;
void setTask(const std::string &task);
std::string getServiceCode() const;
void setServiceCode(const std::string &serviceCode);
std::string getExamples() const;
void setExamples(const std::string &examples);
private:
std::string sentence_;
std::string business_;
std::string labels_;
std::string task_;
std::string serviceCode_;
std::string examples_;
};
} // namespace Model
} // namespace Alinlp
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUHIGHRECALLREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUHIGHRECALLRESULT_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUHIGHRECALLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetOpenNLUHighRecallResult : public ServiceResult
{
public:
GetOpenNLUHighRecallResult();
explicit GetOpenNLUHighRecallResult(const std::string &payload);
~GetOpenNLUHighRecallResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUHIGHRECALLRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUREQUEST_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUREQUEST_H_
#include <alibabacloud/alinlp/AlinlpExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alinlp {
namespace Model {
class ALIBABACLOUD_ALINLP_EXPORT GetOpenNLURequest : public RpcServiceRequest {
public:
GetOpenNLURequest();
~GetOpenNLURequest();
std::string getSentence() const;
void setSentence(const std::string &sentence);
std::string getBusiness() const;
void setBusiness(const std::string &business);
std::string getLabels() const;
void setLabels(const std::string &labels);
std::string getTask() const;
void setTask(const std::string &task);
std::string getServiceCode() const;
void setServiceCode(const std::string &serviceCode);
std::string getExamples() const;
void setExamples(const std::string &examples);
private:
std::string sentence_;
std::string business_;
std::string labels_;
std::string task_;
std::string serviceCode_;
std::string examples_;
};
} // namespace Model
} // namespace Alinlp
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETOPENNLURESULT_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETOPENNLURESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetOpenNLUResult : public ServiceResult
{
public:
GetOpenNLUResult();
explicit GetOpenNLUResult(const std::string &payload);
~GetOpenNLUResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETOPENNLURESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETSSETESTREQUEST_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETSSETESTREQUEST_H_
#include <alibabacloud/alinlp/AlinlpExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alinlp {
namespace Model {
class ALIBABACLOUD_ALINLP_EXPORT GetSSETestRequest : public RpcServiceRequest {
public:
GetSSETestRequest();
~GetSSETestRequest();
std::string getParams() const;
void setParams(const std::string &params);
std::string getServiceCode() const;
void setServiceCode(const std::string &serviceCode);
private:
std::string params_;
std::string serviceCode_;
};
} // namespace Model
} // namespace Alinlp
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETSSETESTREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETSSETESTRESULT_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETSSETESTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetSSETestResult : public ServiceResult
{
public:
GetSSETestResult();
explicit GetSSETestResult(const std::string &payload);
~GetSSETestResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETSSETESTRESULT_H_

View File

@@ -519,6 +519,42 @@ AlinlpClient::GetEcEnGeneralOutcomeCallable AlinlpClient::getEcEnGeneralCallable
return task->get_future();
}
AlinlpClient::GetEmbeddingOutcome AlinlpClient::getEmbedding(const GetEmbeddingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetEmbeddingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetEmbeddingOutcome(GetEmbeddingResult(outcome.result()));
else
return GetEmbeddingOutcome(outcome.error());
}
void AlinlpClient::getEmbeddingAsync(const GetEmbeddingRequest& request, const GetEmbeddingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getEmbedding(request), context);
};
asyncExecute(new Runnable(fn));
}
AlinlpClient::GetEmbeddingOutcomeCallable AlinlpClient::getEmbeddingCallable(const GetEmbeddingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetEmbeddingOutcome()>>(
[this, request]()
{
return this->getEmbedding(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlinlpClient::GetItemPubChEcomOutcome AlinlpClient::getItemPubChEcom(const GetItemPubChEcomRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -807,6 +843,78 @@ AlinlpClient::GetNerCustomizedSeaEcomOutcomeCallable AlinlpClient::getNerCustomi
return task->get_future();
}
AlinlpClient::GetOpenNLUOutcome AlinlpClient::getOpenNLU(const GetOpenNLURequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetOpenNLUOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetOpenNLUOutcome(GetOpenNLUResult(outcome.result()));
else
return GetOpenNLUOutcome(outcome.error());
}
void AlinlpClient::getOpenNLUAsync(const GetOpenNLURequest& request, const GetOpenNLUAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getOpenNLU(request), context);
};
asyncExecute(new Runnable(fn));
}
AlinlpClient::GetOpenNLUOutcomeCallable AlinlpClient::getOpenNLUCallable(const GetOpenNLURequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetOpenNLUOutcome()>>(
[this, request]()
{
return this->getOpenNLU(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlinlpClient::GetOpenNLUHighRecallOutcome AlinlpClient::getOpenNLUHighRecall(const GetOpenNLUHighRecallRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetOpenNLUHighRecallOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetOpenNLUHighRecallOutcome(GetOpenNLUHighRecallResult(outcome.result()));
else
return GetOpenNLUHighRecallOutcome(outcome.error());
}
void AlinlpClient::getOpenNLUHighRecallAsync(const GetOpenNLUHighRecallRequest& request, const GetOpenNLUHighRecallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getOpenNLUHighRecall(request), context);
};
asyncExecute(new Runnable(fn));
}
AlinlpClient::GetOpenNLUHighRecallOutcomeCallable AlinlpClient::getOpenNLUHighRecallCallable(const GetOpenNLUHighRecallRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetOpenNLUHighRecallOutcome()>>(
[this, request]()
{
return this->getOpenNLUHighRecall(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlinlpClient::GetOperationChMedicalOutcome AlinlpClient::getOperationChMedical(const GetOperationChMedicalRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -951,6 +1059,42 @@ AlinlpClient::GetPriceChEcomOutcomeCallable AlinlpClient::getPriceChEcomCallable
return task->get_future();
}
AlinlpClient::GetSSETestOutcome AlinlpClient::getSSETest(const GetSSETestRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetSSETestOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetSSETestOutcome(GetSSETestResult(outcome.result()));
else
return GetSSETestOutcome(outcome.error());
}
void AlinlpClient::getSSETestAsync(const GetSSETestRequest& request, const GetSSETestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getSSETest(request), context);
};
asyncExecute(new Runnable(fn));
}
AlinlpClient::GetSSETestOutcomeCallable AlinlpClient::getSSETestCallable(const GetSSETestRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetSSETestOutcome()>>(
[this, request]()
{
return this->getSSETest(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlinlpClient::GetSaChGeneralOutcome AlinlpClient::getSaChGeneral(const GetSaChGeneralRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alinlp/model/GetEmbeddingRequest.h>
using AlibabaCloud::Alinlp::Model::GetEmbeddingRequest;
GetEmbeddingRequest::GetEmbeddingRequest()
: RpcServiceRequest("alinlp", "2020-06-29", "GetEmbedding") {
setMethod(HttpRequest::Method::Post);
}
GetEmbeddingRequest::~GetEmbeddingRequest() {}
std::string GetEmbeddingRequest::getBusiness() const {
return business_;
}
void GetEmbeddingRequest::setBusiness(const std::string &business) {
business_ = business;
setParameter(std::string("Business"), business);
}
std::string GetEmbeddingRequest::getServiceCode() const {
return serviceCode_;
}
void GetEmbeddingRequest::setServiceCode(const std::string &serviceCode) {
serviceCode_ = serviceCode;
setBodyParameter(std::string("ServiceCode"), serviceCode);
}
std::string GetEmbeddingRequest::getText() const {
return text_;
}
void GetEmbeddingRequest::setText(const std::string &text) {
text_ = text;
setBodyParameter(std::string("Text"), text);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alinlp/model/GetEmbeddingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
GetEmbeddingResult::GetEmbeddingResult() :
ServiceResult()
{}
GetEmbeddingResult::GetEmbeddingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetEmbeddingResult::~GetEmbeddingResult()
{}
void GetEmbeddingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetEmbeddingResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alinlp/model/GetOpenNLUHighRecallRequest.h>
using AlibabaCloud::Alinlp::Model::GetOpenNLUHighRecallRequest;
GetOpenNLUHighRecallRequest::GetOpenNLUHighRecallRequest()
: RpcServiceRequest("alinlp", "2020-06-29", "GetOpenNLUHighRecall") {
setMethod(HttpRequest::Method::Post);
}
GetOpenNLUHighRecallRequest::~GetOpenNLUHighRecallRequest() {}
std::string GetOpenNLUHighRecallRequest::getSentence() const {
return sentence_;
}
void GetOpenNLUHighRecallRequest::setSentence(const std::string &sentence) {
sentence_ = sentence;
setBodyParameter(std::string("Sentence"), sentence);
}
std::string GetOpenNLUHighRecallRequest::getBusiness() const {
return business_;
}
void GetOpenNLUHighRecallRequest::setBusiness(const std::string &business) {
business_ = business;
setParameter(std::string("Business"), business);
}
std::string GetOpenNLUHighRecallRequest::getLabels() const {
return labels_;
}
void GetOpenNLUHighRecallRequest::setLabels(const std::string &labels) {
labels_ = labels;
setBodyParameter(std::string("Labels"), labels);
}
std::string GetOpenNLUHighRecallRequest::getTask() const {
return task_;
}
void GetOpenNLUHighRecallRequest::setTask(const std::string &task) {
task_ = task;
setBodyParameter(std::string("Task"), task);
}
std::string GetOpenNLUHighRecallRequest::getServiceCode() const {
return serviceCode_;
}
void GetOpenNLUHighRecallRequest::setServiceCode(const std::string &serviceCode) {
serviceCode_ = serviceCode;
setBodyParameter(std::string("ServiceCode"), serviceCode);
}
std::string GetOpenNLUHighRecallRequest::getExamples() const {
return examples_;
}
void GetOpenNLUHighRecallRequest::setExamples(const std::string &examples) {
examples_ = examples;
setBodyParameter(std::string("Examples"), examples);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alinlp/model/GetOpenNLUHighRecallResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
GetOpenNLUHighRecallResult::GetOpenNLUHighRecallResult() :
ServiceResult()
{}
GetOpenNLUHighRecallResult::GetOpenNLUHighRecallResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetOpenNLUHighRecallResult::~GetOpenNLUHighRecallResult()
{}
void GetOpenNLUHighRecallResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetOpenNLUHighRecallResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alinlp/model/GetOpenNLURequest.h>
using AlibabaCloud::Alinlp::Model::GetOpenNLURequest;
GetOpenNLURequest::GetOpenNLURequest()
: RpcServiceRequest("alinlp", "2020-06-29", "GetOpenNLU") {
setMethod(HttpRequest::Method::Post);
}
GetOpenNLURequest::~GetOpenNLURequest() {}
std::string GetOpenNLURequest::getSentence() const {
return sentence_;
}
void GetOpenNLURequest::setSentence(const std::string &sentence) {
sentence_ = sentence;
setBodyParameter(std::string("Sentence"), sentence);
}
std::string GetOpenNLURequest::getBusiness() const {
return business_;
}
void GetOpenNLURequest::setBusiness(const std::string &business) {
business_ = business;
setParameter(std::string("Business"), business);
}
std::string GetOpenNLURequest::getLabels() const {
return labels_;
}
void GetOpenNLURequest::setLabels(const std::string &labels) {
labels_ = labels;
setBodyParameter(std::string("Labels"), labels);
}
std::string GetOpenNLURequest::getTask() const {
return task_;
}
void GetOpenNLURequest::setTask(const std::string &task) {
task_ = task;
setBodyParameter(std::string("Task"), task);
}
std::string GetOpenNLURequest::getServiceCode() const {
return serviceCode_;
}
void GetOpenNLURequest::setServiceCode(const std::string &serviceCode) {
serviceCode_ = serviceCode;
setBodyParameter(std::string("ServiceCode"), serviceCode);
}
std::string GetOpenNLURequest::getExamples() const {
return examples_;
}
void GetOpenNLURequest::setExamples(const std::string &examples) {
examples_ = examples;
setBodyParameter(std::string("Examples"), examples);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alinlp/model/GetOpenNLUResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
GetOpenNLUResult::GetOpenNLUResult() :
ServiceResult()
{}
GetOpenNLUResult::GetOpenNLUResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetOpenNLUResult::~GetOpenNLUResult()
{}
void GetOpenNLUResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetOpenNLUResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alinlp/model/GetSSETestRequest.h>
using AlibabaCloud::Alinlp::Model::GetSSETestRequest;
GetSSETestRequest::GetSSETestRequest()
: RpcServiceRequest("alinlp", "2020-06-29", "GetSSETest") {
setMethod(HttpRequest::Method::Post);
}
GetSSETestRequest::~GetSSETestRequest() {}
std::string GetSSETestRequest::getParams() const {
return params_;
}
void GetSSETestRequest::setParams(const std::string &params) {
params_ = params;
setBodyParameter(std::string("Params"), params);
}
std::string GetSSETestRequest::getServiceCode() const {
return serviceCode_;
}
void GetSSETestRequest::setServiceCode(const std::string &serviceCode) {
serviceCode_ = serviceCode;
setBodyParameter(std::string("ServiceCode"), serviceCode);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alinlp/model/GetSSETestResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
GetSSETestResult::GetSSETestResult() :
ServiceResult()
{}
GetSSETestResult::GetSSETestResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSSETestResult::~GetSSETestResult()
{}
void GetSSETestResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetSSETestResult::getData()const
{
return data_;
}