DBA Data[Home] [Help]

PACKAGE: APPS.IEM_PARSER_PVT

Source


1 PACKAGE IEM_PARSER_PVT as
2 /* $Header: iemparbs.pls 120.6 2005/10/03 15:21:55 appldev noship $*/
3 /*
4   -- some constants
5 
6   MAXWORDLENGTH integer := 32;   -- any words longer than this are discarded
7   WINDOWSIZE    integer := 3;    -- max length of phrase stored - can be tuned
8   --WINDOWSIZE    integer := 1;    -- max length of phrase stored - can be tuned
9                                  -- higher value = more accuracy, but
10                                  -- more time and space for processing
11   DOCLENGTH     integer := 4096; -- only this much of each document is processed
12 
13   -- replicate the "ctx_doc.themes" interface
14 
15   procedure p_themes (
16 	index_name      in  varchar2,
17 	-- textkey         in  varchar2,
18 	-- restab          in out  ctx_doc.theme_tab,
19 	restab       in out NOCOPY iem_im_wrappers_pvt.theme_table,
20 	full_themes     in  boolean default true,
21 	num_themes      in  number  default 32,
22 	document		 in	varchar2,
23 	pictograph      in boolean default false
24      );
25 
26   -- compute word vector for varchar2 strings
27 
28   function compute_vector (
29     idx_name         in varchar2, --DEFAULT fnd_api.g_miss_char,
30           -- Must provide name of Text index
31     document         in varchar2,          -- Text to be analyzed
32     analyze_length   in integer default 5000,
33     window_size      in integer default 3  -- Maximum size of phrases
34     )
35   return word_vector;
36 
37   -- compute word vector for clobs
38 
39   function compute_vector (
40     idx_name         in varchar2,          -- Must provide name of Text index
41     document         in clob,              -- Text to be analyzed
42     analyze_length   in integer default 5000,
43     window_size      in integer default 3  -- Maximum size of phrases
44     )
45   return word_vector;
46 
47   function compare_vectors (
48     inlist1          in word_vector,       -- First vector to compare
49     inlist2          in word_vector)       -- Second vector to compare
50   return word_vector;
51 
52   function get_window_size (search_string varchar2)
53   return integer;
54 
55   function remove_wild (mask varchar2)
56   return varchar2;
57 
58   function test_match (mask varchar2, testToken varchar2)
59   return boolean;
60 
61   function test_match_single (mask varchar2, testToken varchar2)
62   return boolean;
63 
64   function is_num (s1 varchar2)
65   return boolean;
66 
67   -- for debugging
68   procedure dump_word_vector (inlist in word_vector);
69   procedure test;
70 
71   function start_parser (
72     p_message_id        number,
73     p_search_str        varchar2,
74     p_idx_name          varchar2,
75     p_analyze_length    integer)
76     return word_vector;
77 */
78 END IEM_PARSER_PVT;
79