POLICY_LANGUAGES
Provides the ability to fetch the language for a section of text.
Returns a table of language descriptors and scores, where the score is the confidence level with which the system can assert that the supplied text is in the specific language.
Syntax
CTX_DOC.POLICY_LANGUAGES (
policy_name IN VARCHAR2 | CLOB,
document IN VARCHAR2,
restab IN OUT NOCOPY CTX_DOC.LANGUAGE_TAB
);
policy_name
A policy that was previously created using the CTX_DDL.CREATE_POLICY method. If the specified policy includes a sectioning preference, the API will honor the sectioning preference. For instance, if HTML sectioning is specified, then HTML tags will be removed before processing the input document.
document
A body of text for which the languages are to be extracted. The text is assumed to be plain text with UTF-8 character encoding.
restab
The result of the language extraction process. The result is a table of records. Each record has two attributes: the language string, and the score for each language string. The score can range from 0 to 100 and represents the confidence with which the system can assert that the supplied text is in the specified language. The resulting languages are returned in sorted order with the language with the most confidence appearing first.
The table layout for restab is similar to that for HIGHLIGHT.
Supported Languages for CTX_DOC.POLICY_LANGUAGES and POLICY_STEMS
You can use language extraction for text in all languages that are supported for AUTO_LEXER.
Related Topics