Belge AI

Bu Aspose.Words Document AI for .NET Eklenti, geliştiricilerin belgeleri çevirmesine veya özetlemesine ve dilbilgilerini kontrol etmesine olanak tanır. Gemini, Claude ve OpenAI gibi LLM’lerle bütünleşir.

Kurulum ve Ayar

  1. .NET paketi için Aspose.Words kurun NuGet veya Paket Yöneticisi Konsolu aracılığıyla.
  2. Metered Licensing’i Yapılandırın mail-merge işlemlerini çalıştırmadan önce.

Şununla uyumlu Windows, Linux, macOS ve mobil platformlar .NET Çerçevesi, .NET Çekirdeği veya Mono kullanarak. Desteklenen IDE’ler arasında Visual Studio (2010–2026), Xamarin ve MonoDevelop 2.4+ bulunur.

IDE’ler: Visual Studio 2017–2026, JetBrains Rider, MonoDevelop.

Desteklenen Şablon / Çıktı Biçimleri: DOC, DOCX, RTF, DOT, DOTX, DOTM, DOCM, Word 2003 XML ve Word 2007 XML.

Bir Belgeyi Çevir

Belgelerinizi, içinde temsil edilen herhangi bir dile çevirin. → Belgelerinizi, içinde temsil edilen herhangi bir dile çevirin. Dil → Dil sıralama: → sıralama:

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

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

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

Bir Belgeyi Özetle

Belge özeti oluştur, uzunluğunu belirterek:

  • Çok Kısa – 1-2 cümle
  • Kısa – 3-4 cümle
  • Orta – 5-6 cümle
  • Uzun – 7-10 cümle
  • Çok Uzun – 11-20 cümle
Document firstDoc = new Document("Big document.docx");
Document secondDoc = new Document("Document.docx");

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

SummarizeOptions options = new SummarizeOptions();

options.SummaryLength = SummaryLength.Short;
Document oneDocumentSummary = model.Summarize(firstDoc, options);
oneDocumentSummary.Save("AI.AiSummarize.One.docx");

options.SummaryLength = SummaryLength.Long;
Document multiDocumentSummary = model.Summarize(new Document[] { firstDoc, secondDoc }, options);
multiDocumentSummary.Save("AI.AiSummarize.Multi.docx");

Belge Dilbilgisini Kontrol Et

Belge içinde dilbilgisi kontrolü yap ve hataları tespit et:

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

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

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

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

Sıkça Sorulan Sorular

  1. Q: .NET için Document AI ile hangi dosya formatlarını kullanabilirim? Bu Aspose.Words Document AI for .NET Eklenti DOC, DOCX, RTF, DOT, DOTX, DOTM, DOCM, Word 2003 XML ve Word 2007 XML formatlarını destekler.
  2. Q: .NET için Aspose.Words Document AI ile hangi modelleri kullanabilirim? Document AI .NET için, Gemini, Claude ve OpenAI gibi LLM’lerle entegre edilebilir.
 Türkçe