GroupDocs.Rewriter-Cloud 24.6.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package GroupDocs.Rewriter-Cloud --version 24.6.0                
NuGet\Install-Package GroupDocs.Rewriter-Cloud -Version 24.6.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GroupDocs.Rewriter-Cloud" Version="24.6.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GroupDocs.Rewriter-Cloud --version 24.6.0                
#r "nuget: GroupDocs.Rewriter-Cloud, 24.6.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install GroupDocs.Rewriter-Cloud as a Cake Addin
#addin nuget:?package=GroupDocs.Rewriter-Cloud&version=24.6.0

// Install GroupDocs.Rewriter-Cloud as a Cake Tool
#tool nuget:?package=GroupDocs.Rewriter-Cloud&version=24.6.0                

.NET SDK for Paraphrasing Cloud Documents

alternate text is missing from this package README image Nuget Nuget GitHub license

Product Page | Docs | Demos | Swagger UI | Examples | Blog | Search | Free Support | Free Trial

GroupDocs.Rewriter Cloud SDK for .NET is a simple C#/.NET SDK that enables your cloud Apps to perform paraphrasing, simplification, summarization and paraphrasing detection of Microsoft Word®, OpenOffice, Markdown, HTML and Adobe Acrobat® PDF documents as well as plain text by adding just a few lines of code.

In other words, it's a SDK for document and plain text rewriting, summarization, etc. in our Cloud, that supports paraphrasing of .doc, .docx, .docm, .pdf, .rtf, .odt, .md, .html, .txt files. Just pass a specific file or text to the GroupDocs.Rewriter Cloud API, and it will process and save result in our Cloud or will return resulting text.

It is easy to get started with GroupDocs.Rewriter Cloud and there is nothing to install. Create an account at GroupDocs Cloud and get your application information, then you are ready to use SDKs.

Cloud Features

  • Paraphrasing / summarization / simplification / paraphrase detection of documents
  • Paraphrasing / summarization / simplification / paraphrase detection / comparison of plain text
  • Words and idioms synonyms finder
  • Return resulting text in response
  • Save processed file in cloud
  • No need to install any 3rd party software

Supported Document Formats

You can specify format of document to process putting in the request’s body:

  • Microsoft Word®: DOC, DOCX, DOCM
  • Adobe®: PDF
  • Markdown: MD
  • HTML: HTML
  • Other: RTF, ODT, TXT

Additionally, user could obtain processed file in any other format available for conversion. Just specify output format of paraphrased document by putting file extension in the request’s body:

  • doc, docx — docx, rtf, html, odt, txt, md, pdf, tiff, svg, xps
  • pdf — docx, pptx, html, svg, xps
  • html — md, pdf, docx, tiff, xps

Please visit Supported Formats for details.

Supported Languages

  • ar — to process Arabic text or document
  • de — to process German text or document
  • en — to process English text or document
  • es — to process Spanish text or document
  • fr — to process French text or document
  • id — to process Indonesian text or document
  • ru — to process Russian text or document
  • uk — to process Ukrainian text or document
  • sk — to process Slovak text or document
  • pt — to process Portuguese text or document
  • it — to process Italian text or document
  • th — to process Thai text or document

JSON Request Details

To paraphrase plain text the following information should be put in the requests body:

  • language — language of text (e.g. en)
  • text — text to paraphrase (e.g. hello world)
  • diversityDegree — diversity of paraphrasing, "medium" or "high", default is "off"
  • suggestions — to receive several suggested variants of paraphrasing (from 1 to 3)

To summarize plain text:

  • language — language of text
  • text — text to paraphrase
  • summarizationDegree — degree of summarization, "off", "medium" or "high"

To simplify plain text:

  • language — language of text
  • text — text to paraphrase

To find synonyms:

  • language — language of text
  • text — word or phrase to find synonyms
  • synonyms — number of synonyms to return

SDK also provides a tool for summarizing texts and documents in English. To do this, put the same parameters as for paraphrasing (except for "diversity" and "suggestions") in the requests body.

How to use the SDK?

Our API is completely independent of your operating system, database system, or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone, and time-consuming. Therefore, we provide and support SDKs in many development languages to make it easier for your Cloud Apps to integrate with us.

Quickstart

1. Get Started

It is easy to get started with GroupDocs.Rewriter Cloud. Simply, create an account at GroupDocs Cloud and get your application information, then you are ready to use the SDKs.

2. Run Demo
  • Checkout the SDK
  • Open .NET core demo project
  • Set Your ClientId & ClientSecret
  • Run

Rewrite plain text

using GroupDocs.Rewriter.Cloud.Sdk.Api;
using GroupDocs.Rewriter.Cloud.Sdk.Client;
using GroupDocs.Rewriter.Cloud.Sdk.Client.Auth;
using GroupDocs.Rewriter.Cloud.Sdk.Model;
using Configuration = GroupDocs.Rewriter.Cloud.Sdk.Client.Configuration;
using System.Diagnostics;
using System.IO;
using System.Collections.Generic;
using System.Net.Http;
using HttpStatusCode = System.Net.HttpStatusCode;
namespace GroupDocs.Rewriter.Cloud.Sdk
{
	  public class TextRewriter
	  {
		    public TextRewriter()
		    {
            Configuration config = new Configuration();
			      config.OAuthFlow = OAuthFlow.APPLICATION;
			      config.OAuthClientId = "YOU_CLIENT_ID";
			      config.OAuthClientSecret = "YOU_CLIENT_SECRET";
            config.BasePath = "https://api.groupdocs.cloud/v2.0/rewriter";
            ParaphraseApi api = new ParaphraseApi(conf);
            string srcText = "Hello, everyone! We will try to rephrase this text into something new.";
            string sourceLanguage = "en";
            ParaphraseTextResponse textResponse = new ParaphraseTextResponse();
            ParaphraseTextRequest req = new ParaphraseTextRequest(
                language: sourceLanguage,
                text: srcText,
                suggestions: ParaphraseTextRequest.SuggestionsEnum.One,
                diversityDegree: DegreeEnum.Off);
            StatusResponse responseId = await api.ParaphraseTextPostAsync(req);
            try
            {
                if (responseId.Status.ToString() == "Accepted")
                {
                    while (true)
                    {
                        textResponse = await api.ParaphraseTextRequestIdGetAsync(responseId.Id);
                        if ((HttpStatusCode)textResponse.Status == HttpStatusCode.OK)
                        {
                            Console.WriteLine("Plain text paraphrasing: " + textResponse.ParaphraseReult);
                            break;
                        }
                        else
                            Thread.Sleep(200);
                    }
                }
                else
                {
                    textResponse = new ParaphraseTextResponse() { Status = responseId.Status, Message = responseId.Message };
                    Console.WriteLine("Text error: " + textResponse.Message);
                }
            }   
            catch (Exception ex)
            {   
                Console.WriteLine("Text exception: " + ex.ToString());
            }                
        }
    }
}
.NET Python
GitHub GitHub
NuGet PyPi

Product Page | Docs | Demos | Swagger UI | Examples | Blog | Search | Free Support | Free Trial

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
24.11.0 68 11/30/2024
24.6.0 1,184 6/3/2024
24.4.0 389 4/24/2024
23.6.0 1,161 6/20/2023
23.5.0 692 5/18/2023
22.12.1 594 12/30/2022
22.12.0 379 12/20/2022
22.11.0 365 11/29/2022
22.7.1 1,407 8/3/2022
22.7.0 473 8/1/2022
22.3.0 610 3/31/2022