浏览我们的产品 Toggle navigation
If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
安装该软件包在 pypi.org 上 可用,可以通过执行以下命令通过 pip 安装:pip install groupdocs-rewriter-cloud
该软件包在 pypi.org 上 可用,可以通过执行以下命令通过 pip 安装:
pip
pip install groupdocs-rewriter-cloud
GroupDocs.Rewriter Cloud SDK for Python 是一个简单的 Python SDK,只需添加几行代码,您的云应用程序即可对 Microsoft Word®、OpenOffice、Markdown、HTML 和 Adobe Acrobat® PDF 文档以及纯文本进行释义、简化、摘要和释义检测。
换句话说,它是一个在我们的云端进行文档和纯文本重写、摘要等的 SDK,支持 .doc、.docx、.docm、.pdf、.rtf、.odt、.md、.html、.txt 文件的释义。只需将特定文件或文本传递给GroupDocs.Rewriter Cloud API,它就会处理结果并将结果保存在我们的云端或返回结果文本。
GroupDocs.Rewriter Cloud上手非常简单,无需安装任何东西。在 GroupDocs Cloud 上创建一个帐户并获取您的应用程序信息,然后您就可以使用 SDK 了。
您可以指定处理请求正文中的文档格式:
此外,用户可以获得任何其他可用于转换的格式的处理文件。只需通过将文件扩展名放入请求正文中来指定释义文档的输出格式:
详情请参阅支持的格式。
为了解释纯文本,应将以下信息放入请求正文中:
总结一下纯文本:
简化纯文本:
要查找同义词:
SDK还提供了一个用于总结英文文本和文档的工具。为此,请在请求正文中放置与释义相同的参数(“多样性”和“建议”除外)。
我们的 API 完全独立于您的操作系统、数据库系统或开发语言。您可以使用任何支持 HTTP 的语言和平台与我们的 API 进行交互。然而,手动编写客户端代码可能很困难、容易出错且耗时。因此,我们提供并支持多种开发语言的SDK,以便您的云应用程序更容易与我们集成。
GroupDocs.Rewriter Cloud 上手很容易。只需在GroupDocs Cloud创建一个帐户并获取您的申请信息,然后就可以使用SDKs。
import time import groupdocs_rewriter_cloud from groupdocs_rewriter_cloud.api.paraphrase_api import ParaphraseApi from groupdocs_rewriter_cloud.rest import ApiException from groupdocs_rewriter_cloud.models import HttpStatusCode, ParaphraseTextRequest api = ParaphraseApi() file_api = FileApi() api.api_client.configuration.client_id = "CLIENT_ID" api.api_client.configuration.client_secret = "CLIENT_SECRET" language = "en" src_text = "YOUR_TEXT" request = ParaphraseTextRequest(language=language, text=src_text) status = api.paraphrase_text_post(request) if status.status == groupdocs_rewriter_cloud.models.HttpStatusCode.ACCEPTED: while True: text_response = api.paraphrase_text_request_id_get(status.id) if text_response.status == groupdocs_rewriter_cloud.models.HttpStatusCode.OK: print(text_response.paraphrase_result) break time.sleep(2)