Skip to content

Commit

Permalink
Update file(s) "/." from "aspose-words/Aspose.Words-API-References"
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyNNN committed Dec 31, 2024
1 parent 084614e commit 25b1a26
Show file tree
Hide file tree
Showing 1,087 changed files with 5,816 additions and 1,470 deletions.
3 changes: 0 additions & 3 deletions content/sites/aspose/words/english/net/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ is_root: true
| [Aspose.Words.Lists](./aspose.words.lists/) | The **Aspose.Words.Lists** namespace contains classes for working with bulleted and numbered lists defined in a document. |
| [Aspose.Words.Loading](./aspose.words.loading/) | The **Aspose.Words.Loading** namespace provides classes and enumerations that allow to specify additional options when loading documents. |
| [Aspose.Words.LowCode](./aspose.words.lowcode/) | The **Aspose.Words.LowCode** contains classes and methods to handle complex general operations in a low code way. |
| [Aspose.Words.LowCode.MailMerging](./aspose.words.lowcode.mailmerging/) | |
| [Aspose.Words.LowCode.Reporting](./aspose.words.lowcode.reporting/) | |
| [Aspose.Words.LowCode.Splitting](./aspose.words.lowcode.splitting/) | |
| [Aspose.Words.MailMerging](./aspose.words.mailmerging/) | The **Aspose.Words.MailMerging** namespace contains classes of the "original" mail merge reporting engine. |
| [Aspose.Words.Markup](./aspose.words.markup/) | The **Aspose.Words.Markup** namespace contains classes that represent customer defined semantics in a document: smart tags, custom XML and structured document tags (content controls). |
| [Aspose.Words.Math](./aspose.words.math/) | The **Aspose.Words.Math** namespace contains classes that represent Office Math elements. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The **Aspose.Words.AI** namespace enables seamless integration with large langua
| Class | Description |
| --- | --- |
| [AiModel](./aimodel/) | Represents information about a Generative Language Model. |
| [CheckGrammarOptions](./checkgrammaroptions/) | Allows to specify various options while checking grammar of a document using AI. |
| [GoogleAiModel](./googleaimodel/) | An abstract class representing the integration with Google’s AI models within the Aspose.Words. |
| [OpenAiModel](./openaimodel/) | An abstract class representing the integration with OpenAI's large language models within the Aspose.Words. |
| [SummarizeOptions](./summarizeoptions/) | Allows to specify various options for summarizing document content. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");

string apiKey = Environment.GetEnvironmentVariable("API_KEY");
// Use OpenAI or Google generative language models.
IAiModelText model = (IAiModelText)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
IAiModelText model = ((OpenAiModel)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey)).WithOrganization("Organization").WithProject("Project");

Document oneDocumentSummary = model.Summarize(firstDoc, new SummarizeOptions() { SummaryLength = SummaryLength.Short });
oneDocumentSummary.Save(ArtifactsDir + "AI.AiSummarize.One.docx");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");

string apiKey = Environment.GetEnvironmentVariable("API_KEY");
// Use OpenAI or Google generative language models.
IAiModelText model = (IAiModelText)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
IAiModelText model = ((OpenAiModel)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey)).WithOrganization("Organization").WithProject("Project");

Document oneDocumentSummary = model.Summarize(firstDoc, new SummarizeOptions() { SummaryLength = SummaryLength.Short });
oneDocumentSummary.Save(ArtifactsDir + "AI.AiSummarize.One.docx");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");

string apiKey = Environment.GetEnvironmentVariable("API_KEY");
// Use OpenAI or Google generative language models.
IAiModelText model = (IAiModelText)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
IAiModelText model = ((OpenAiModel)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey)).WithOrganization("Organization").WithProject("Project");

Document oneDocumentSummary = model.Summarize(firstDoc, new SummarizeOptions() { SummaryLength = SummaryLength.Short });
oneDocumentSummary.Save(ArtifactsDir + "AI.AiSummarize.One.docx");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");

string apiKey = Environment.GetEnvironmentVariable("API_KEY");
// Use OpenAI or Google generative language models.
IAiModelText model = (IAiModelText)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
IAiModelText model = ((OpenAiModel)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey)).WithOrganization("Organization").WithProject("Project");

Document oneDocumentSummary = model.Summarize(firstDoc, new SummarizeOptions() { SummaryLength = SummaryLength.Short });
oneDocumentSummary.Save(ArtifactsDir + "AI.AiSummarize.One.docx");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
title: CheckGrammarOptions Class
linktitle: CheckGrammarOptions
articleTitle: CheckGrammarOptions
second_title: Aspose.Words for .NET
description: Aspose.Words.AI.CheckGrammarOptions class. Allows to specify various options while checking grammar of a document using AI in C#.
type: docs
weight: 40
url: /net/aspose.words.ai/checkgrammaroptions/
---
## CheckGrammarOptions class

Allows to specify various options while checking grammar of a document using AI.

```csharp
public class CheckGrammarOptions
```

## Constructors

| Name | Description |
| --- | --- |
| [CheckGrammarOptions](checkgrammaroptions/)() | The default constructor. |

## Properties

| Name | Description |
| --- | --- |
| [ImproveStylistics](../../aspose.words.ai/checkgrammaroptions/improvestylistics/) { get; set; } | Allows to specify either AI will try to improve stylistics of the text being proofed. Default value is `false`. |
| [MakeRevisions](../../aspose.words.ai/checkgrammaroptions/makerevisions/) { getset; } | Allows to specify either final or revised document to be returned with proofed text. Default value is `false`. |
| [PreserveFormatting](../../aspose.words.ai/checkgrammaroptions/preserveformatting/) { getset; } | Allows to specify either [`CheckGrammar`](../iaimodeltext/checkgrammar/) will try to preserve layout and formatting of the original document, or not. Default value is `true`. |

## Examples

Shows how to check the grammar of a document.

```csharp
Document doc = new Document(MyDir + "Big document.docx");

string apiKey = Environment.GetEnvironmentVariable("API_KEY");
// Use OpenAI generative language models.
IAiModelText model = (IAiModelText)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);

CheckGrammarOptions grammarOptions = new CheckGrammarOptions();
grammarOptions.ImproveStylistics = true;

Document proofedDoc = model.CheckGrammar(doc, grammarOptions);
proofedDoc.Save("AI.AiGrammar.docx");
```

### See Also

* namespace [Aspose.Words.AI](../../aspose.words.ai/)
* assembly [Aspose.Words](../../)
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: CheckGrammarOptions
linktitle: CheckGrammarOptions
articleTitle: CheckGrammarOptions
second_title: Aspose.Words for .NET
description: CheckGrammarOptions constructor. The default constructor in C#.
type: docs
weight: 10
url: /net/aspose.words.ai/checkgrammaroptions/checkgrammaroptions/
---
## CheckGrammarOptions constructor

The default constructor.

```csharp
public CheckGrammarOptions()
```

### See Also

* class [CheckGrammarOptions](../)
* namespace [Aspose.Words.AI](../../../aspose.words.ai/)
* assembly [Aspose.Words](../../../)
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: CheckGrammarOptions.ImproveStylistics
linktitle: ImproveStylistics
articleTitle: ImproveStylistics
second_title: Aspose.Words for .NET
description: CheckGrammarOptions ImproveStylistics property. Allows to specify either AI will try to improve stylistics of the text being proofed. Default value is false in C#.
type: docs
weight: 20
url: /net/aspose.words.ai/checkgrammaroptions/improvestylistics/
---
## CheckGrammarOptions.ImproveStylistics property

Allows to specify either AI will try to improve stylistics of the text being proofed. Default value is `false`.

```csharp
public bool ImproveStylistics { get; set; }
```

### See Also

* class [CheckGrammarOptions](../)
* namespace [Aspose.Words.AI](../../../aspose.words.ai/)
* assembly [Aspose.Words](../../../)
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: CheckGrammarOptions.MakeRevisions
linktitle: MakeRevisions
articleTitle: MakeRevisions
second_title: Aspose.Words for .NET
description: CheckGrammarOptions MakeRevisions property. Allows to specify either final or revised document to be returned with proofed text. Default value is false in C#.
type: docs
weight: 30
url: /net/aspose.words.ai/checkgrammaroptions/makerevisions/
---
## CheckGrammarOptions.MakeRevisions property

Allows to specify either final or revised document to be returned with proofed text. Default value is `false`.

```csharp
public bool MakeRevisions { get; set; }
```

### See Also

* class [CheckGrammarOptions](../)
* namespace [Aspose.Words.AI](../../../aspose.words.ai/)
* assembly [Aspose.Words](../../../)
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: CheckGrammarOptions.PreserveFormatting
linktitle: PreserveFormatting
articleTitle: PreserveFormatting
second_title: Aspose.Words for .NET
description: CheckGrammarOptions PreserveFormatting property. Allows to specify either CheckGrammar will try to preserve layout and formatting of the original document or not. Default value is true in C#.
type: docs
weight: 40
url: /net/aspose.words.ai/checkgrammaroptions/preserveformatting/
---
## CheckGrammarOptions.PreserveFormatting property

Allows to specify either [`CheckGrammar`](../../iaimodeltext/checkgrammar/) will try to preserve layout and formatting of the original document, or not. Default value is `true`.

```csharp
public bool PreserveFormatting { get; set; }
```

## Remarks

When the option is set to `false`, the quality of grammar checking is higher than when this option is set to `true`. However, the original formatting of the text is not preserved in this case.

### See Also

* class [CheckGrammarOptions](../)
* namespace [Aspose.Words.AI](../../../aspose.words.ai/)
* assembly [Aspose.Words](../../../)
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articleTitle: GoogleAiModel
second_title: Aspose.Words for .NET
description: Aspose.Words.AI.GoogleAiModel class. An abstract class representing the integration with Googles AI models within the Aspose.Words in C#.
type: docs
weight: 40
weight: 50
url: /net/aspose.words.ai/googleaimodel/
---
## GoogleAiModel class
Expand All @@ -32,7 +32,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");

string apiKey = Environment.GetEnvironmentVariable("API_KEY");
// Use OpenAI or Google generative language models.
IAiModelText model = (IAiModelText)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
IAiModelText model = ((OpenAiModel)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey)).WithOrganization("Organization").WithProject("Project");

Document oneDocumentSummary = model.Summarize(firstDoc, new SummarizeOptions() { SummaryLength = SummaryLength.Short });
oneDocumentSummary.Save(ArtifactsDir + "AI.AiSummarize.One.docx");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articleTitle: IAiModelText
second_title: Aspose.Words for .NET
description: Aspose.Words.AI.IAiModelText interface. The common interface for AI models designed to generate a variety of textbased content in C#.
type: docs
weight: 50
weight: 60
url: /net/aspose.words.ai/iaimodeltext/
---
## IAiModelText interface
Expand All @@ -20,6 +20,7 @@ public interface IAiModelText

| Name | Description |
| --- | --- |
| [CheckGrammar](../../aspose.words.ai/iaimodeltext/checkgrammar/)(*[Document](../../aspose.words/document/), [CheckGrammarOptions](../checkgrammaroptions/)*) | Checks grammar of the provided document. This operation leverages the connected AI model for checking grammar of document. |
| [Summarize](../../aspose.words.ai/iaimodeltext/summarize/#summarize)(*[Document](../../aspose.words/document/), [SummarizeOptions](../summarizeoptions/)*) | Generates a summary of the specified document, with options to adjust the length of the summary. This operation leverages the connected AI model for content processing. |
| [Summarize](../../aspose.words.ai/iaimodeltext/summarize/#summarize_1)(*Document[], [SummarizeOptions](../summarizeoptions/)*) | Generates summaries for an array of documents, with options to control the summary length and other settings. This method utilizes the connected AI model for processing each document in the array. |
| [Translate](../../aspose.words.ai/iaimodeltext/translate/)(*[Document](../../aspose.words/document/), [Language](../language/)*) | Translates the provided document into the specified target language. This operation leverages the connected AI model for content translating. |
Expand All @@ -34,7 +35,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");

string apiKey = Environment.GetEnvironmentVariable("API_KEY");
// Use OpenAI or Google generative language models.
IAiModelText model = (IAiModelText)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
IAiModelText model = ((OpenAiModel)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey)).WithOrganization("Organization").WithProject("Project");

Document oneDocumentSummary = model.Summarize(firstDoc, new SummarizeOptions() { SummaryLength = SummaryLength.Short });
oneDocumentSummary.Save(ArtifactsDir + "AI.AiSummarize.One.docx");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
title: IAiModelText.CheckGrammar
linktitle: CheckGrammar
articleTitle: CheckGrammar
second_title: Aspose.Words for .NET
description: IAiModelText CheckGrammar method. Checks grammar of the provided document. This operation leverages the connected AI model for checking grammar of document in C#.
type: docs
weight: 10
url: /net/aspose.words.ai/iaimodeltext/checkgrammar/
---
## IAiModelText.CheckGrammar method

Checks grammar of the provided document. This operation leverages the connected AI model for checking grammar of document.

```csharp
public Document CheckGrammar(Document sourceDocument, CheckGrammarOptions options = null)
```

| Parameter | Type | Description |
| --- | --- | --- |
| sourceDocument | Document | The document being checked for grammar. |
| options | CheckGrammarOptions | Optional settings to control how grammar will be checked. |

### Return Value

A new [`Document`](../../../aspose.words/document/) with checked grammar.

## Examples

Shows how to check the grammar of a document.

```csharp
Document doc = new Document(MyDir + "Big document.docx");

string apiKey = Environment.GetEnvironmentVariable("API_KEY");
// Use OpenAI generative language models.
IAiModelText model = (IAiModelText)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);

CheckGrammarOptions grammarOptions = new CheckGrammarOptions();
grammarOptions.ImproveStylistics = true;

Document proofedDoc = model.CheckGrammar(doc, grammarOptions);
proofedDoc.Save("AI.AiGrammar.docx");
```

### See Also

* class [Document](../../../aspose.words/document/)
* class [CheckGrammarOptions](../../checkgrammaroptions/)
* interface [IAiModelText](../)
* namespace [Aspose.Words.AI](../../../aspose.words.ai/)
* assembly [Aspose.Words](../../../)
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articleTitle: Summarize
second_title: Aspose.Words for .NET
description: IAiModelText Summarize method. Generates a summary of the specified document with options to adjust the length of the summary. This operation leverages the connected AI model for content processing in C#.
type: docs
weight: 10
weight: 20
url: /net/aspose.words.ai/iaimodeltext/summarize/
---
## Summarize(*[Document](../../../aspose.words/document/)[SummarizeOptions](../../summarizeoptions/)*) {#summarize}
Expand Down Expand Up @@ -35,7 +35,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");

string apiKey = Environment.GetEnvironmentVariable("API_KEY");
// Use OpenAI or Google generative language models.
IAiModelText model = (IAiModelText)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
IAiModelText model = ((OpenAiModel)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey)).WithOrganization("Organization").WithProject("Project");

Document oneDocumentSummary = model.Summarize(firstDoc, new SummarizeOptions() { SummaryLength = SummaryLength.Short });
oneDocumentSummary.Save(ArtifactsDir + "AI.AiSummarize.One.docx");
Expand Down Expand Up @@ -81,7 +81,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");

string apiKey = Environment.GetEnvironmentVariable("API_KEY");
// Use OpenAI or Google generative language models.
IAiModelText model = (IAiModelText)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
IAiModelText model = ((OpenAiModel)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey)).WithOrganization("Organization").WithProject("Project");

Document oneDocumentSummary = model.Summarize(firstDoc, new SummarizeOptions() { SummaryLength = SummaryLength.Short });
oneDocumentSummary.Save(ArtifactsDir + "AI.AiSummarize.One.docx");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articleTitle: Translate
second_title: Aspose.Words for .NET
description: IAiModelText Translate method. Translates the provided document into the specified target language. This operation leverages the connected AI model for content translating in C#.
type: docs
weight: 20
weight: 30
url: /net/aspose.words.ai/iaimodeltext/translate/
---
## IAiModelText.Translate method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articleTitle: Language
second_title: Aspose.Words for .NET
description: Aspose.Words.AI.Language enum. Specifies the language into which the text will be translated using AI. in C#.
type: docs
weight: 60
weight: 70
url: /net/aspose.words.ai/language/
---
## Language enumeration
Expand Down Expand Up @@ -325,6 +325,21 @@ public enum Language
| Yoruba | `1130` | |
| Zulu | `1077` | |

## Examples

Shows how to translate text using Google models.

```csharp
Document doc = new Document(MyDir + "Document.docx");

string apiKey = Environment.GetEnvironmentVariable("API_KEY");
// Use Google generative language models.
IAiModelText model = (IAiModelText)AiModel.Create(AiModelType.Gemini15Flash).WithApiKey(apiKey);

Document translatedDoc = model.Translate(doc, Language.Arabic);
translatedDoc.Save(ArtifactsDir + "AI.AiTranslate.docx");
```

### See Also

* namespace [Aspose.Words.AI](../../aspose.words.ai/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articleTitle: OpenAiModel
second_title: Aspose.Words for .NET
description: Aspose.Words.AI.OpenAiModel class. An abstract class representing the integration with OpenAIs large language models within the Aspose.Words in C#.
type: docs
weight: 70
weight: 80
url: /net/aspose.words.ai/openaimodel/
---
## OpenAiModel class
Expand Down Expand Up @@ -34,7 +34,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");

string apiKey = Environment.GetEnvironmentVariable("API_KEY");
// Use OpenAI or Google generative language models.
IAiModelText model = (IAiModelText)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
IAiModelText model = ((OpenAiModel)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey)).WithOrganization("Organization").WithProject("Project");

Document oneDocumentSummary = model.Summarize(firstDoc, new SummarizeOptions() { SummaryLength = SummaryLength.Short });
oneDocumentSummary.Save(ArtifactsDir + "AI.AiSummarize.One.docx");
Expand Down
Loading

0 comments on commit 25b1a26

Please sign in to comment.