1AI::Categorizer::FeaturUesSeerleCcotnotrr(i3bpumt)ed PerAlI:D:oCcautmeegnotraitzieorn::FeatureSelector(3pm)
2
3
4

NAME

6       AI::Categorizer::FeatureSelector - Abstract Feature Selection class
7

SYNOPSIS

9        ...
10

DESCRIPTION

12       The KnowledgeSet class that provides an interface to a set of
13       documents, a set of categories, and a mapping between the two.  Many
14       parameters for controlling the processing of documents are managed by
15       the KnowledgeSet class.
16

METHODS

18       new()
19           Creates a new KnowledgeSet and returns it.  Accepts the following
20           parameters:
21
22           load
23               If a "load" parameter is present, the load() method will be
24               invoked immediately.  If the "load" parameter is a string, it
25               will be passed as the "path" parameter to load().  If the
26               "load" parameter is a hash reference, it will represent all the
27               parameters to pass to load().
28
29           categories
30               An optional reference to an array of Category objects
31               representing the complete set of categories in a KnowledgeSet.
32               If used, the "documents" parameter should also be specified.
33
34           documents
35               An optional reference to an array of Document objects
36               representing the complete set of documents in a KnowledgeSet.
37               If used, the "categories" parameter should also be specified.
38
39           features_kept
40               A number indicating how many features (words) should be
41               considered when training the Learner or categorizing new
42               documents.  May be specified as a positive integer (e.g. 2000)
43               indicating the absolute number of features to be kept, or as a
44               decimal between 0 and 1 (e.g. 0.2) indicating the fraction of
45               the total number of features to be kept, or as 0 to indicate
46               that no feature selection should be done and that the entire
47               set of features should be used.  The default is 0.2.
48
49           feature_selection
50               A string indicating the type of feature selection that should
51               be performed.  Currently the only option is also the default
52               option: "document_frequency".
53
54           tfidf_weighting
55               Specifies how document word counts should be converted to
56               vector values.  Uses the three-character specification strings
57               from Salton & Buckley's paper "Term-weighting approaches in
58               automatic text retrieval".  The three characters indicate the
59               three factors that will be multiplied for each feature to find
60               the final vector value for that feature.  The default weighting
61               is "xxx".
62
63               The first character specifies the "term frequency" component,
64               which can take the following values:
65
66               b   Binary weighting - 1 for terms present in a document, 0 for
67                   terms absent.
68
69               t   Raw term frequency - equal to the number of times a feature
70                   occurs in the document.
71
72               x   A synonym for 't'.
73
74               n   Normalized term frequency - 0.5 + 0.5 * t/max(t).  This is
75                   the same as the 't' specification, but with term frequency
76                   normalized to lie between 0.5 and 1.
77
78               The second character specifies the "collection frequency"
79               component, which can take the following values: