文本改进 API
在这里尝试文本改进 API
通过使用我们的文本改进 API,您可以访问我们最先进的推荐引擎,该引擎经过优化,可有效生成高质量的结果。将此 API 集成到您的写作平台中可以增强用户的写作体验并提升他们的最终产品。作为Wordtune背后引擎的一部分,我们的文本改进 API 是您值得信赖的强大工具。
例子
Python
payload = {
"types": ["fluency", "vocabulary/specificity"],
"text": "Affiliated with the profession of project management, I have ameliorated myself with a different set of hard skills as well as soft skills"
}
以下是改进 API 对上述示例请求的可能响应:
JSON
{
"id": "e0426d4c-4f63-e6bd-addb-6c617d86bb02",
"improvements": [
{
"suggestions": [
"As a project manager, I have acquired",
"As a member of the project management profession, I have acquired",
"Due to my association with the project management profession, I have acquired"
],
"startIndex": 0,
"endIndex": 84,
"originalText": "Affiliated with the profession of project management, I have ameliorated myself with",
"improvementType": "fluency"
},
{
"suggestions": [
"technical",
"practical",
"analytical"
],
"startIndex": 104,
"endIndex": 108,
"originalText": "hard",
"improvementType": "vocabulary/specificity"
}
]
}
响应正文包括一系列建议的. 数组中的每一项都是一个具有以下字段的对象:improvements
suggestions
:改进输入文本的建议列表,可能针对整个文本或其中的一部分。
startIndex
:指示 API 建议改进的输入文本开头的索引。
endIndex
:指示 API 建议改进的输入文本结尾的索引。
originalText
:API建议改进的具体文本部分。
improvementType
:API 建议的改进类型,可以是:
fluency
vocabulary/specificity
vocabulary/variety
clarity/short-sentences
clarity/conciseness
最后修改时间: 1 年前