Skip to content

Commit 31b7776

Browse files
committed
Merge branch 'aw_25_7'
2 parents c420775 + c82c0f9 commit 31b7776

File tree

2,968 files changed

+22870
-23382
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,968 files changed

+22870
-23382
lines changed

english/net/aspose.words.ai/_index.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,12 @@ The **Aspose.Words.AI** namespace enables seamless integration with large langua
1414

1515
| Class | Description |
1616
| --- | --- |
17-
| [AiModel](./aimodel/) | Represents information about a Generative Language Model. |
17+
| [AiModel](./aimodel/) | An abstract class representing the integration with various AI models within the Aspose.Words. |
1818
| [AnthropicAiModel](./anthropicaimodel/) | An abstract class representing the integration with Anthropic’s AI models within the Aspose.Words. |
1919
| [CheckGrammarOptions](./checkgrammaroptions/) | Allows to specify various options while checking grammar of a document using AI. |
2020
| [GoogleAiModel](./googleaimodel/) | An abstract class representing the integration with Google’s AI models within the Aspose.Words. |
2121
| [OpenAiModel](./openaimodel/) | An abstract class representing the integration with OpenAI's large language models within the Aspose.Words. |
2222
| [SummarizeOptions](./summarizeoptions/) | Allows to specify various options for summarizing document content. |
23-
## Interfaces
24-
25-
| Interface | Description |
26-
| --- | --- |
27-
| [IAiModelText](./iaimodeltext/) | The common interface for AI models designed to generate a variety of text-based content. |
2823
## Enumeration
2924

3025
| Enumeration | Description |

english/net/aspose.words.ai/aimodel/_index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ url: /net/aspose.words.ai/aimodel/
1010
---
1111
## AiModel class
1212

13-
Represents information about a Generative Language Model.
13+
An abstract class representing the integration with various AI models within the Aspose.Words.
1414

1515
```csharp
1616
public abstract class AiModel
@@ -21,6 +21,10 @@ public abstract class AiModel
2121
| Name | Description |
2222
| --- | --- |
2323
| static [Create](../../aspose.words.ai/aimodel/create/)(*[AiModelType](../aimodeltype/)*) | Creates a new instance of `AiModel` class. |
24+
| virtual [CheckGrammar](../../aspose.words.ai/aimodel/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. |
25+
| abstract [Summarize](../../aspose.words.ai/aimodel/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. |
26+
| abstract [Summarize](../../aspose.words.ai/aimodel/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. |
27+
| abstract [Translate](../../aspose.words.ai/aimodel/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. |
2428
| [WithApiKey](../../aspose.words.ai/aimodel/withapikey/)(*string*) | Sets a specified API key to the model. |
2529

2630
## Examples
@@ -33,7 +37,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");
3337

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

3842
SummarizeOptions options = new SummarizeOptions();
3943

english/net/aspose.words.ai/iaimodeltext/checkgrammar/_index.md renamed to english/net/aspose.words.ai/aimodel/checkgrammar/_index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
2-
title: IAiModelText.CheckGrammar
2+
title: AiModel.CheckGrammar
33
linktitle: CheckGrammar
44
articleTitle: CheckGrammar
55
second_title: Aspose.Words for .NET
6-
description: Enhance your writing with IAiModelText's CheckGrammar method. Effortlessly improve document accuracy using advanced AI grammar checking.
6+
description: AI-powered grammar checker API for documents. Automatically detect and fix grammar errors in Word files using advanced language models.
77
type: docs
8-
weight: 10
9-
url: /net/aspose.words.ai/iaimodeltext/checkgrammar/
8+
weight: 20
9+
url: /net/aspose.words.ai/aimodel/checkgrammar/
1010
---
11-
## IAiModelText.CheckGrammar method
11+
## AiModel.CheckGrammar method
1212

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

1515
```csharp
16-
public Document CheckGrammar(Document sourceDocument, CheckGrammarOptions options = null)
16+
public virtual Document CheckGrammar(Document sourceDocument, CheckGrammarOptions options = null)
1717
```
1818

1919
| Parameter | Type | Description |
@@ -34,7 +34,7 @@ Document doc = new Document(MyDir + "Big document.docx");
3434

3535
string apiKey = Environment.GetEnvironmentVariable("API_KEY");
3636
// Use OpenAI generative language models.
37-
IAiModelText model = (OpenAiModel)AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
37+
AiModel model = AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
3838

3939
CheckGrammarOptions grammarOptions = new CheckGrammarOptions();
4040
grammarOptions.ImproveStylistics = true;
@@ -47,6 +47,6 @@ proofedDoc.Save(ArtifactsDir + "AI.AiGrammar.docx");
4747

4848
* class [Document](../../../aspose.words/document/)
4949
* class [CheckGrammarOptions](../../checkgrammaroptions/)
50-
* interface [IAiModelText](../)
50+
* class [AiModel](../)
5151
* namespace [Aspose.Words.AI](../../../aspose.words.ai/)
5252
* assembly [Aspose.Words](../../../)

english/net/aspose.words.ai/aimodel/create/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");
2626

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

3131
SummarizeOptions options = new SummarizeOptions();
3232

english/net/aspose.words.ai/iaimodeltext/summarize/_index.md renamed to english/net/aspose.words.ai/aimodel/summarize/_index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
2-
title: IAiModelText.Summarize
2+
title: AiModel.Summarize
33
linktitle: Summarize
44
articleTitle: Summarize
55
second_title: Aspose.Words for .NET
6-
description: Effortlessly summarize documents with IAiModelText. Customize summary length using advanced AI for precise content extraction and enhanced readability.
6+
description: Smart document summarization API with customizable length options. Generate concise summaries from any document using AI technology.
77
type: docs
8-
weight: 20
9-
url: /net/aspose.words.ai/iaimodeltext/summarize/
8+
weight: 30
9+
url: /net/aspose.words.ai/aimodel/summarize/
1010
---
1111
## Summarize(*[Document](../../../aspose.words/document/)[SummarizeOptions](../../summarizeoptions/)*) {#summarize}
1212

1313
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.
1414

1515
```csharp
16-
public Document Summarize(Document sourceDocument, SummarizeOptions options = null)
16+
public abstract Document Summarize(Document sourceDocument, SummarizeOptions options = null)
1717
```
1818

1919
| Parameter | Type | Description |
@@ -35,7 +35,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");
3535

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

4040
SummarizeOptions options = new SummarizeOptions();
4141

@@ -52,7 +52,7 @@ multiDocumentSummary.Save(ArtifactsDir + "AI.AiSummarize.Multi.docx");
5252

5353
* class [Document](../../../aspose.words/document/)
5454
* class [SummarizeOptions](../../summarizeoptions/)
55-
* interface [IAiModelText](../)
55+
* class [AiModel](../)
5656
* namespace [Aspose.Words.AI](../../../aspose.words.ai/)
5757
* assembly [Aspose.Words](../../../)
5858

@@ -63,7 +63,7 @@ multiDocumentSummary.Save(ArtifactsDir + "AI.AiSummarize.Multi.docx");
6363
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.
6464

6565
```csharp
66-
public Document Summarize(Document[] sourceDocuments, SummarizeOptions options = null)
66+
public abstract Document Summarize(Document[] sourceDocuments, SummarizeOptions options = null)
6767
```
6868

6969
| Parameter | Type | Description |
@@ -85,7 +85,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");
8585

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

9090
SummarizeOptions options = new SummarizeOptions();
9191

@@ -102,6 +102,6 @@ multiDocumentSummary.Save(ArtifactsDir + "AI.AiSummarize.Multi.docx");
102102

103103
* class [Document](../../../aspose.words/document/)
104104
* class [SummarizeOptions](../../summarizeoptions/)
105-
* interface [IAiModelText](../)
105+
* class [AiModel](../)
106106
* namespace [Aspose.Words.AI](../../../aspose.words.ai/)
107107
* assembly [Aspose.Words](../../../)

english/net/aspose.words.ai/iaimodeltext/translate/_index.md renamed to english/net/aspose.words.ai/aimodel/translate/_index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
2-
title: IAiModelText.Translate
2+
title: AiModel.Translate
33
linktitle: Translate
44
articleTitle: Translate
55
second_title: Aspose.Words for .NET
6-
description: Effortlessly translate documents with our IAiModelText Translate method. Harness AI for accurate, fast translations in your desired language.
6+
description: Professional document translation API supporting multiple languages. Translate Word documents accurately with AI-powered language processing.
77
type: docs
8-
weight: 30
9-
url: /net/aspose.words.ai/iaimodeltext/translate/
8+
weight: 40
9+
url: /net/aspose.words.ai/aimodel/translate/
1010
---
11-
## IAiModelText.Translate method
11+
## AiModel.Translate method
1212

1313
Translates the provided document into the specified target language. This operation leverages the connected AI model for content translating.
1414

1515
```csharp
16-
public Document Translate(Document sourceDocument, Language targetLanguage)
16+
public abstract Document Translate(Document sourceDocument, Language targetLanguage)
1717
```
1818

1919
| Parameter | Type | Description |
@@ -34,7 +34,7 @@ Document doc = new Document(MyDir + "Document.docx");
3434

3535
string apiKey = Environment.GetEnvironmentVariable("API_KEY");
3636
// Use Google generative language models.
37-
IAiModelText model = (GoogleAiModel)AiModel.Create(AiModelType.Gemini15Flash).WithApiKey(apiKey);
37+
AiModel model = AiModel.Create(AiModelType.Gemini15Flash).WithApiKey(apiKey);
3838

3939
Document translatedDoc = model.Translate(doc, Language.Arabic);
4040
translatedDoc.Save(ArtifactsDir + "AI.AiTranslate.docx");
@@ -44,6 +44,6 @@ translatedDoc.Save(ArtifactsDir + "AI.AiTranslate.docx");
4444

4545
* class [Document](../../../aspose.words/document/)
4646
* enum [Language](../../language/)
47-
* interface [IAiModelText](../)
47+
* class [AiModel](../)
4848
* namespace [Aspose.Words.AI](../../../aspose.words.ai/)
4949
* assembly [Aspose.Words](../../../)

english/net/aspose.words.ai/aimodel/withapikey/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: WithApiKey
55
second_title: Aspose.Words for .NET
66
description: Unlock the power of AiModel with the WithApiKey method. Effortlessly set your API key for enhanced functionality and seamless integration.
77
type: docs
8-
weight: 20
8+
weight: 50
99
url: /net/aspose.words.ai/aimodel/withapikey/
1010
---
1111
## AiModel.WithApiKey method
@@ -26,7 +26,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");
2626

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

3131
SummarizeOptions options = new SummarizeOptions();
3232

english/net/aspose.words.ai/aimodeltype/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Document secondDoc = new Document(MyDir + "Document.docx");
4747

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

5252
SummarizeOptions options = new SummarizeOptions();
5353

english/net/aspose.words.ai/anthropicaimodel/_index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ public abstract class AnthropicAiModel : AiModel, IAiModelText
2020

2121
| Name | Description |
2222
| --- | --- |
23+
| virtual [CheckGrammar](../../aspose.words.ai/aimodel/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. |
24+
| override [Summarize](../../aspose.words.ai/anthropicaimodel/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. |
25+
| override [Summarize](../../aspose.words.ai/anthropicaimodel/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. |
26+
| override [Translate](../../aspose.words.ai/anthropicaimodel/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. |
2327
| [WithApiKey](../../aspose.words.ai/aimodel/withapikey/)(*string*) | Sets a specified API key to the model. |
2428

2529
### See Also
2630

2731
* class [AiModel](../aimodel/)
28-
* interface [IAiModelText](../iaimodeltext/)
2932
* namespace [Aspose.Words.AI](../../aspose.words.ai/)
3033
* assembly [Aspose.Words](../../)
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title: AnthropicAiModel.Summarize
3+
linktitle: Summarize
4+
articleTitle: Summarize
5+
second_title: Aspose.Words for .NET
6+
description: Anthropic AI document summarizer with adjustable summary length. Create professional document summaries using Claude AI technology.
7+
type: docs
8+
weight: 10
9+
url: /net/aspose.words.ai/anthropicaimodel/summarize/
10+
---
11+
## Summarize(*[Document](../../../aspose.words/document/)[SummarizeOptions](../../summarizeoptions/)*) {#summarize}
12+
13+
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.
14+
15+
```csharp
16+
public override Document Summarize(Document sourceDocument, SummarizeOptions options = null)
17+
```
18+
19+
| Parameter | Type | Description |
20+
| --- | --- | --- |
21+
| sourceDocument | Document | The document to be summarized. |
22+
| options | SummarizeOptions | Optional settings to control the summary length and other parameters. |
23+
24+
### Return Value
25+
26+
A summarized version of the document's content.
27+
28+
### See Also
29+
30+
* class [Document](../../../aspose.words/document/)
31+
* class [SummarizeOptions](../../summarizeoptions/)
32+
* class [AnthropicAiModel](../)
33+
* namespace [Aspose.Words.AI](../../../aspose.words.ai/)
34+
* assembly [Aspose.Words](../../../)
35+
36+
---
37+
38+
## Summarize(*Document[][SummarizeOptions](../../summarizeoptions/)*) {#summarize_1}
39+
40+
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.
41+
42+
```csharp
43+
public override Document Summarize(Document[] sourceDocuments, SummarizeOptions options = null)
44+
```
45+
46+
| Parameter | Type | Description |
47+
| --- | --- | --- |
48+
| sourceDocuments | Document[] | An array of documents to be summarized. |
49+
| options | SummarizeOptions | Optional settings to control the summary length and other parameters |
50+
51+
### Return Value
52+
53+
A summarized version of the document's content.
54+
55+
### See Also
56+
57+
* class [Document](../../../aspose.words/document/)
58+
* class [SummarizeOptions](../../summarizeoptions/)
59+
* class [AnthropicAiModel](../)
60+
* namespace [Aspose.Words.AI](../../../aspose.words.ai/)
61+
* assembly [Aspose.Words](../../../)

0 commit comments

Comments
 (0)