CTX_DOC Package
The CTX_DOC PL/SQL package provides procedures and functions for requesting document services, such as highlighting extracted text or generating a list of themes for a document.
The CTX_DOC package includes the following procedures and functions:
| Name | Description |
|---|---|
| FILTER | Generates a plain text or HTML version of a document. |
| GIST | Generates a Gist or theme summaries for a document. |
| HIGHLIGHT | Generates plain text or HTML highlighting offset information for a document. |
| IFILTER | Generates a plain text version of binary data. Can be called from a USER_DATASTORE procedure. |
| MARKUP | Generates a plain text or HTML version of a document with query terms highlighted. |
| PKENCODE | Encodes a composite textkey string (value) for use in other CTX_DOC procedures. |
| POLICY_FILTER | Generates a plain text or HTML version of a document, without requiring an index. |
| POLICY_GIST | Generates a Gist or theme summaries for a document, without requiring an index. |
| POLICY_HIGHLIGHT | Generates plain text or HTML highlighting offset information for a document, without requiring an index. |
| POLICY_LANGUAGES | Provides the ability to fetch the language for a section of text. |
| POLICY_MARKUP | Generates a plain text or HTML version of a document with query terms highlighted, without requiring an index. |
| POLICY_NOUN_PHRASES | Extracts noun phrases for a document. |
| POLICY_PART_OF_SPEECH | Extracts the part of speech for each word in a document. |
| POLICY_SNIPPET | Generates a concordance for a document, based on query terms, without requiring an index. |
| POLICY_STEMS | Extracts stems for each word in a body of text. |
| POLICY_THEMES | Generates a list of themes for a document, without requiring an index. |
| POLICY_TOKENS | Generates all index tokens for a document, without requiring an index. |
| SENTIMENT | Performs sentiment analysis for a single document and provides a separate sentiment score for each segment within the document. |
| SENTIMENT_AGGREGATE | Performs sentiment analysis for a single document and provides an aggregate sentiment score for the entire document. |
| SET_KEY_TYPE | Sets CTX_DOC procedures to accept rowid or primary key document identifiers. |
| SNIPPET | Generates a concordance for a document, based on query terms. |
| THEMES | Generates a list of themes for a document. |
| TOKENS | Generates all index tokens for a document. |
The performance of the procedures SNIPPET, HIGHLIGHT, and MARKUP can be improved by using the forward index feature, and the performance of the procedures FILTER, GIST, THEMES. TOKENS can be improved by using the save copy feature of Oracle Text.
See Also: Oracle Text Application Developer’s Guide for more information about forward index and save copy features