الذكاء الاصطناعي للمستندات
وَالْمُ Aspose.Words Document AI for .NET المكون الإضافي يسمح للمطورين لترجمة أو تلخيص المستندات والتحقق من ندوة.يتم دمجها مع الماجستير في مجال الدراسات العليا مثل Gemini و Claude و OpenAI.
التثبيت والإعداد
- تثبيت Aspose.Words لخطة .NET من خلال NuGet أو مجموعة إدارة الحزم.
- إعداد ترخيص قياس قبل إجراء عمليات البريد المختلط.
متوافق مع Windows، Linux، macOS، ومنصات ويستخدم .NET Framework أو .NET Core أو Mono. وتشمل المبادئ المعروفة التي تدعمها Visual Studio (2010-2026)، Xamarin، و MonoDevelop 2.4+.
فكرة : Visual Studio 2017–2026, JetBrains Rider, MonoDevelop.
نموذج / تنسيق الخروج المدعوم: DOC، DOCX، RTF، DOT، DOTX، DOTM، DOCM، Word 2003 XML، و Word 2007 XML.
ترجمة مستند
ترجمة وثائقك إلى أي لغة تمثلها في اللغة القائمة :
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");تلخيص مستند
إنشاء ملخص للمستند، مع تحديد طوله:
- VeryShort – 1-2 جملة
- Short – 3-4 جمل
- Medium – 5-6 جمل
- طويل – 7-10 جمل
- طويل جدًا – 11-20 جمل
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");فحص قواعد المستند
فحص القواعد واكتشاف الأخطاء في المستندات:
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");الأسئلة المتكررة
- س: ما هي تنسيقات الملفات التي يمكن استخدامها مع Document AI for .NET؟? وَالْمُ Aspose.Words Document AI for .NET يدعم المكونات المكونة DOC، DOCX، RTF، DOT، DOTX، DOCM، Word 2003 XML، و Word 2007 XML.
- س: ما هي النماذج التي يمكنني استخدامها مع Aspose.Words Document AI لـ .NET؟? يمكن دمج الوثيقة الذكاء الاصطناعي ل .NET مع الماجستير في مجال التربية والتعليم مثل Gemini و Claude و OpenAI.