Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
การสรุปเอกสารเป็นเครื่องมือที่มีคุณค่าสำหรับการตรวจทานเนื้อหาข้อมูลเชิงลึกอย่างรว Aspose.Wordsรองรับการสรุปเอกสารโดยใช้รุ่นAIขับเคลื่อน,ทำให้ง่ายต่อการประมวลผลข้อความยาว. คุณลักษณะนี้สามารถใช้ได้ในAspose.Words.AIเนมสเปซรวมโมเดลภาษาสืบพันธุ์ขั้นสูงจากOpenAIและGoogleรวมทั้งโมเดลภาษาสืบพันธุ์ของมนุษย์ด้วยClaude’s รายการรุ่นที่รองรับมีอยู่ในการแจงนับAiModelType
คุณสามารถระบุตัวเลือกต่างๆสำหรับการสรุปเนื้อหาเอกสาร ใช้วิธีการSummarizeเพื่อสร้างสรุปเอกสารของคุณ คุณยังสามารถตั้งค่าความยาวสรุปโดยใช้คุณสมบัติSummaryLength.
ด้วยAspose.Wordsการดำเนินการสรุปเอกสารจะตรงไปตรงมา ตัวอย่างรหัสต่อไปนี้แสดงวิธีการสรุปเอกสารโดยใช้รูปแบบGPT-4o:
// For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-.NET.git. | |
Document firstDoc = new Document(MyDir + "Big document.docx"); | |
Document secondDoc = new Document(MyDir + "Document.docx"); | |
string apiKey = Environment.GetEnvironmentVariable("API_KEY"); | |
// Use OpenAI or Google generative language models. | |
IAiModelText 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(ArtifactsDir + "AI.AiSummarize.One.docx"); | |
options.SummaryLength = SummaryLength.Long; | |
Document multiDocumentSummary = model.Summarize(new Document[] { firstDoc, secondDoc }, options); | |
multiDocumentSummary.Save(ArtifactsDir + "AI.AiSummarize.Multi.docx"); |
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.