Click or drag to resize

DocAI Class

Inheritance Hierarchy
System Object
Spire.Doc.AI SpireAI
Spire.Doc.AI DocAI

Namespace: Spire.Doc.AI
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public class DocAI : SpireAI

The DocAI type exposes the following members.

Constructors
Name Description
Public method DocAI
Initializes a new instance of the DocAI class.
Top
Properties
Name Description
Public property Credits
Gets Remaining Credits.
(Inherited from SpireAI .)
Public property NumberCost
Gets the cost for the last call.
(Inherited from SpireAI .)
Public property SessionID (Inherited from SpireAI .)
Top
Methods
Name Description
Public method AbstractGenerate(Document, String)
Generate an abstract within the document.
Public method AbstractGenerate(Paragraph, String)
Generate an abstract within the paragraph.
Public method AbstractGenerate(TextRange, String)
Generate an abstract within the text range.
Public method Ask
Performs a question-answering task using AI.
Public method ContinueWriting(Document, String, String, String)
According to the document, continue the writing of the article.
Public method ContinueWriting(Paragraph, String, String, String)
According to the paragraph, continue the writing of the article.
Public method ContinueWriting(TextRange, String, String, String)
According to the text range, continue the writing of the article.
Public method DocumentGenerate
Based on the topic to create a document.
Public method DocumentMerge
Merges the data from multiple documents into a destination document using AI.
Public method DocumentSearch(String, String, Boolean)
Performs a question-answering task using the AI service with the specified question, for a file based on server-side path.
Public method DocumentSearch(String, String, Dictionary String, String , Boolean)
Performs a question-searching task using the AI service with the specified question.
Public method EntityRecognition(Document, String, String )
Recognize the entities within the document.
Public method EntityRecognition(Paragraph, String, String )
Recognize the entities within the paragraph.
Public method EntityRecognition(TextRange, String, String )
Recognize the entities within the text range.
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Protected method GetAppKey (Overrides SpireAI GetAppKey .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method ImageGenerate(String)
Generate images from text using AI.
Public method ImageGenerate(String, ImageGenarationModel, ImageGenarationSize)
Generate images from text using AI.
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public method Polish(Document, String)
Polish the document.
Public method Polish(Paragraph, String)
Polish the text of paragraph.
Public method Polish(TextRange, String)
Polish the text of textrange.
Public method ResetChatHistory
Resets the chat history in the AI service.
Public method ResetUserHistory
Resets the user's all chat history in the AI service.
Public method Search
Performs a question-answering task using AI.
Public method SpellCheck(Document, String)
Check the spelling of the document.
Public method SpellCheck(Paragraph, String)
Check the spelling of the paragraph.
Public method SpellCheck(TextRange, String)
Check the spelling of the document.
Public method SummaryGenerate(Document, String)
Generate an summary within the document.
Public method SummaryGenerate(Paragraph, String)
Generate an summary within the paragraph.
Public method SummaryGenerate(TextRange, String)
Generate an summary within the text range.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Public method Translate(Document, String)
Translates the text within the specified document.
Public method Translate(Paragraph, String)
Translates the text within the specified paragraph.
Public method Translate(TextRange, String)
Translates the text within the text range.
Public method UploadDocument
Uploads document to the AI service.
Public method UploadFile
Uploads a file to the AI service.
Top
Fields
Name Description
Protected field left_count (Inherited from SpireAI .)
Protected field number_cost (Inherited from SpireAI .)
Protected field session_id (Inherited from SpireAI .)
Top
See Also