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:
void AiSummarize()
{
auto firstDoc = MakeObject<Document>(MyDir + u"Big document.docx");
auto secondDoc = MakeObject<Document>(MyDir + u"Document.docx");
SharedPtr<IAiModelText> model = System::ExplicitCast<OpenAiModel>(MakeObject<AiModel>()->Create(AiModelType::Gpt4OMini)->WithApiKey(u"API_KEY"))->WithOrganization(u"Organization")->WithProject(u"Project");
auto options = MakeObject<SummarizeOptions>();
options->set_SummaryLength(SummaryLength::Short);
auto firstDocumentSummary = model->Summarize(firstDoc, options);
firstDocumentSummary->Save(ArtifactsDir + u"AI.AiSummarize.One.docx");
System::ArrayPtr<System::SharedPtr<Document>> documents = System::MakeArray<System::SharedPtr<Document>>(2);
documents[0] = firstDoc;
documents[1] = secondDoc;
options->set_SummaryLength(SummaryLength::Long);
auto multiDocumentSummary = model->Summarize(documents, options);
firstDocumentSummary->Save(ArtifactsDir + u"AI.AiSummarize.Multi.docx");
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.