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.
See Also: “HIGHLIGHT” for information on restab layout
Supported Languages for CTX_DOC.POLICY_LANGUAGES and POLICY_STEMS
Language extraction is supported for text in the languages supported by AUTO_LEXER. The supported languages for CTX_DOC.POLICY_LANGUAGES and CTX_DOC.POLICY_STEMS for this release are:
Arabic
Bokmal
Catalan
Croatian
Czech
Danish
Dutch
English
Finnish
French
German
Greek
Hebrew
Hungarian
Italian
Japanese
Korean
Polish
Nynorsk
Persian
Portuguese
Romanian
Russian
Serbian
Slovak
Slovenian
Simplified Chinese
Spanish
Swedish
Thai
Traditional Chinese
Turkish