4 Replies Latest reply: Jun 6, 2013 2:05 PM by Brendan RSS

    ODMR_ENGINE_TEXT package

    Brendan
      Hi
      Where can I get some documentation on the ODMR_ENGINE_TEXT package and procedures/functions?
      Thanks
      Brendan
        • 1. Re: ODMR_ENGINE_TEXT package
          Denny Wong-Oracle
          Hi Brendan

          The ODMR_ENGINE_TEXT is a private package and it is part of Data Miner Server repository component. What function/procedure you are interested in? We may consider documenting them if it makes sense.

          Thanks,
          Denny
          • 2. Re: ODMR_ENGINE_TEXT package
            Brendan
            My current interest is in the DM_TEXT_TOKEN_FEATURES function

            dm_policy_tokens
            dm_policy_themes
            dm_policy_tokens2
            dm_policy_themes2
            dm_text_token_features
            dm_text_theme_features
            • 3. Re: ODMR_ENGINE_TEXT package
              Denny Wong-Oracle
              Hi Brendan

              Here are the functions that you are interested in.

              /**
              * Return an array of tokens generated by the Oracle Text
              -- @param policy_name Specify the Oracle Text policy name
              -- @param text Specify the document for which to generate tokens
              */
              FUNCTION dm_policy_tokens(policy_name VARCHAR2,
              text VARCHAR2) RETURN ODMR_OBJECT_VALUES PIPELINED;

              /**
              * Return an array of themes generated by the Oracle Text
              -- @param policy_name Specify the Oracle Text policy name
              -- @param text Specify the document for which to generate themes
              -- @param full_themes Specify whether this procedure generates a single theme or a hierarchical list of parent themes (full themes) for each document theme
              * full_themes = 0, generate single theme
              * full_themes = 1, generate full themes
              */
              FUNCTION dm_policy_themes(policy_name VARCHAR2,
              text VARCHAR2,
              full_themes NUMBER) RETURN ODMR_OBJECT_VALUES PIPELINED;

              /**
              * Return an array of tokens and computed frequency values. The frequency values can be either term frequency (tf) or term frequency–inverse document frequency (tf-idf)
              -- @param policy_name Specify the Oracle Text policy name
              -- @param text Specify the document for which to generate tokens and frequency values
              -- @param model_table_name Specify the table that contains all document tokens and their inverse document frequency (idf) values
              -- @param attr_name Specify the column in the input data that contains documents
              -- @param maxNumberPerDoc Specify the max number of generated tokens per document
              -- @param frequency Specify the output frequency values
              -- frequency = Terms, generate term frequency (tf)
              -- frequency = IDF, generate term frequency–inverse document frequency (tf-idf)
              */
              FUNCTION dm_text_token_features(policy_name VARCHAR2,
              text VARCHAR2,
              model_table_name VARCHAR2,
              attr_name VARCHAR2,
              maxNumberPerDoc NUMBER,
              frequency VARCHAR2) RETURN DM_NESTED_NUMERICALS;

              /**
              * Return an array of themes and computed frequency values. The frequency values can be either term frequency (tf) or term frequency–inverse document frequency (tf-idf)
              -- @param policy_name Specify the Oracle Text policy name
              -- @param text Specify the document for which to generate themes and frequency values
              -- @param model_table_name Specify the table that contains all document themes and their inverse document frequency (idf) values
              -- @param attr_name Specify the column in the input data that contains documents
              -- @param full_themes Specify whether this procedure generates a single theme or a hierarchical list of parent themes (full themes) for each document theme
              -- full_themes = 0, generate single theme
              -- full_themes = 1, generate full themes
              -- @param maxNumberPerDoc Specify the max number of generated themes per document
              -- @param frequency Specify the output frequency values
              -- frequency = Terms, generate term frequency (tf)
              -- frequency = IDF, generate term frequency–inverse document frequency (tf-idf)
              */
              FUNCTION dm_text_theme_features(policy_name VARCHAR2,
              text VARCHAR2,
              model_table_name VARCHAR2,
              attr_name VARCHAR2,
              full_themes NUMBER,
              maxNumberPerDoc NUMBER,
              frequency VARCHAR2) RETURN DM_NESTED_NUMERICALS;

              Denny
              • 4. Re: ODMR_ENGINE_TEXT package
                Brendan
                Thanks
                Brendan