tencentcloud-sdk-nodejs
Version:
56 lines (52 loc) • 2.9 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Client = void 0;
/* eslint-disable @typescript-eslint/no-unused-vars */
/*
* Copyright (c) 2018 Tencent. 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.
*/
const abstract_client_1 = require("../../../common/abstract_client");
/**
* nlp client
* @class
*/
class Client extends abstract_client_1.AbstractClient {
constructor(clientConfig) {
super("nlp.tencentcloudapi.com", "2019-04-08", clientConfig);
}
/**
* NLP 技术的句子纠错、情感分析、词法分析 API 接口将于2026年4月15日下线,届时将无法正常调用。为了避免对您的业务造成影响,请您尽快做好相关业务调整。如果您有 NLP 技术的产品需求,推荐您调用[腾讯混元大模型](https://cloud.tencent.com/product/tclm)。
智能识别并纠正句子中的语法、拼写、用词等错误,确保文本的准确性和可读性。
*/
async SentenceCorrection(req, cb) {
return this.request("SentenceCorrection", req, cb);
}
/**
* NLP 技术的句子纠错、情感分析、词法分析 API 接口将于2026年4月15日下线,届时将无法正常调用。为了避免对您的业务造成影响,请您尽快做好相关业务调整。如果您有 NLP 技术的产品需求,推荐您调用[腾讯混元大模型](https://cloud.tencent.com/product/tclm)。
通过精准地对文本进行分词、词性标注、命名实体识别等功能,助您更好地理解文本内容,挖掘出潜在的价值信息。
*/
async ParseWords(req, cb) {
return this.request("ParseWords", req, cb);
}
/**
* NLP 技术的句子纠错、情感分析、词法分析 API 接口将于2026年4月15日下线,届时将无法正常调用。为了避免对您的业务造成影响,请您尽快做好相关业务调整。如果您有 NLP 技术的产品需求,推荐您调用[腾讯混元大模型](https://cloud.tencent.com/product/tclm)。
情感分析接口能够对带有情感色彩的主观性文本进行分析、处理、归纳和推理,识别出用户的情感倾向,是积极、中性还是消极,并且提供各自概率。
*/
async AnalyzeSentiment(req, cb) {
return this.request("AnalyzeSentiment", req, cb);
}
}
exports.Client = Client;