classifier 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/README +2 -1
  2. data/Rakefile +3 -4
  3. data/bin/bayes.rb +1 -1
  4. data/bin/summarize.rb +7 -2
  5. data/lib/classifier/extensions/string.rb +2 -2
  6. data/lib/classifier/extensions/vector_serialize.rb +2 -2
  7. data/lib/classifier/lsi.rb +2 -2
  8. data/lib/classifier/lsi/content_node.rb +1 -1
  9. metadata +73 -159
  10. data/doc/classes/Array.html +0 -139
  11. data/doc/classes/Array.src/M000003.html +0 -18
  12. data/doc/classes/Classifier.html +0 -140
  13. data/doc/classes/Classifier/Bayes.html +0 -317
  14. data/doc/classes/Classifier/Bayes.src/M000038.html +0 -20
  15. data/doc/classes/Classifier/Bayes.src/M000039.html +0 -23
  16. data/doc/classes/Classifier/Bayes.src/M000040.html +0 -30
  17. data/doc/classes/Classifier/Bayes.src/M000041.html +0 -27
  18. data/doc/classes/Classifier/Bayes.src/M000042.html +0 -18
  19. data/doc/classes/Classifier/Bayes.src/M000043.html +0 -25
  20. data/doc/classes/Classifier/Bayes.src/M000044.html +0 -18
  21. data/doc/classes/Classifier/ContentNode.html +0 -247
  22. data/doc/classes/Classifier/ContentNode.src/M000046.html +0 -19
  23. data/doc/classes/Classifier/ContentNode.src/M000047.html +0 -18
  24. data/doc/classes/Classifier/ContentNode.src/M000048.html +0 -18
  25. data/doc/classes/Classifier/ContentNode.src/M000049.html +0 -49
  26. data/doc/classes/Classifier/LSI.html +0 -539
  27. data/doc/classes/Classifier/LSI.src/M000022.html +0 -20
  28. data/doc/classes/Classifier/LSI.src/M000023.html +0 -18
  29. data/doc/classes/Classifier/LSI.src/M000024.html +0 -21
  30. data/doc/classes/Classifier/LSI.src/M000025.html +0 -18
  31. data/doc/classes/Classifier/LSI.src/M000026.html +0 -19
  32. data/doc/classes/Classifier/LSI.src/M000027.html +0 -21
  33. data/doc/classes/Classifier/LSI.src/M000028.html +0 -18
  34. data/doc/classes/Classifier/LSI.src/M000029.html +0 -19
  35. data/doc/classes/Classifier/LSI.src/M000030.html +0 -43
  36. data/doc/classes/Classifier/LSI.src/M000031.html +0 -23
  37. data/doc/classes/Classifier/LSI.src/M000032.html +0 -30
  38. data/doc/classes/Classifier/LSI.src/M000033.html +0 -30
  39. data/doc/classes/Classifier/LSI.src/M000034.html +0 -21
  40. data/doc/classes/Classifier/LSI.src/M000035.html +0 -21
  41. data/doc/classes/Classifier/LSI.src/M000036.html +0 -31
  42. data/doc/classes/Classifier/LSI.src/M000037.html +0 -21
  43. data/doc/classes/Classifier/WordList.html +0 -217
  44. data/doc/classes/Classifier/WordList.src/M000017.html +0 -18
  45. data/doc/classes/Classifier/WordList.src/M000018.html +0 -19
  46. data/doc/classes/Classifier/WordList.src/M000019.html +0 -19
  47. data/doc/classes/Classifier/WordList.src/M000020.html +0 -18
  48. data/doc/classes/Classifier/WordList.src/M000021.html +0 -18
  49. data/doc/classes/GSL.html +0 -112
  50. data/doc/classes/GSL/Matrix.html +0 -126
  51. data/doc/classes/GSL/Vector.html +0 -156
  52. data/doc/classes/GSL/Vector.src/M000015.html +0 -18
  53. data/doc/classes/GSL/Vector.src/M000016.html +0 -19
  54. data/doc/classes/Matrix.html +0 -184
  55. data/doc/classes/Matrix.src/M000004.html +0 -18
  56. data/doc/classes/Matrix.src/M000005.html +0 -76
  57. data/doc/classes/Matrix.src/M000006.html +0 -18
  58. data/doc/classes/Object.html +0 -139
  59. data/doc/classes/Object.src/M000007.html +0 -16
  60. data/doc/classes/String.html +0 -275
  61. data/doc/classes/String.src/M000008.html +0 -18
  62. data/doc/classes/String.src/M000009.html +0 -18
  63. data/doc/classes/String.src/M000010.html +0 -18
  64. data/doc/classes/String.src/M000011.html +0 -18
  65. data/doc/classes/String.src/M000012.html +0 -18
  66. data/doc/classes/String.src/M000013.html +0 -18
  67. data/doc/classes/String.src/M000014.html +0 -18
  68. data/doc/classes/Vector.html +0 -154
  69. data/doc/classes/Vector.src/M000001.html +0 -22
  70. data/doc/classes/Vector.src/M000002.html +0 -25
  71. data/doc/created.rid +0 -1
  72. data/doc/files/README.html +0 -252
  73. data/doc/files/lib/classifier/bayes_rb.html +0 -115
  74. data/doc/files/lib/classifier/extensions/string_rb.html +0 -122
  75. data/doc/files/lib/classifier/extensions/vector_rb.html +0 -120
  76. data/doc/files/lib/classifier/extensions/vector_serialize_rb.html +0 -101
  77. data/doc/files/lib/classifier/extensions/word_hash_rb.html +0 -115
  78. data/doc/files/lib/classifier/lsi/content_node_rb.html +0 -115
  79. data/doc/files/lib/classifier/lsi/summary_rb.html +0 -115
  80. data/doc/files/lib/classifier/lsi/word_list_rb.html +0 -115
  81. data/doc/files/lib/classifier/lsi_rb.html +0 -127
  82. data/doc/files/lib/classifier_rb.html +0 -125
  83. data/doc/fr_class_index.html +0 -39
  84. data/doc/fr_file_index.html +0 -37
  85. data/doc/fr_method_index.html +0 -75
  86. data/doc/index.html +0 -24
  87. data/doc/rdoc-style.css +0 -208
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>new (Classifier::WordList)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/classifier/lsi/word_list.rb, line 10</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
15
- <span class="ruby-ivar">@location_table</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,19 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>add_word (Classifier::WordList)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/classifier/lsi/word_list.rb, line 15</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_word</span>(<span class="ruby-identifier">word</span>)
15
- <span class="ruby-identifier">term</span> = <span class="ruby-identifier">word</span>
16
- <span class="ruby-ivar">@location_table</span>[<span class="ruby-identifier">term</span>] = <span class="ruby-ivar">@location_table</span>.<span class="ruby-identifier">size</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@location_table</span>[<span class="ruby-identifier">term</span>]
17
- <span class="ruby-keyword kw">end</span></pre>
18
- </body>
19
- </html>
@@ -1,19 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>[] (Classifier::WordList)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/classifier/lsi/word_list.rb, line 21</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">lookup</span>)
15
- <span class="ruby-identifier">term</span> = <span class="ruby-identifier">lookup</span>
16
- <span class="ruby-ivar">@location_table</span>[<span class="ruby-identifier">term</span>]
17
- <span class="ruby-keyword kw">end</span></pre>
18
- </body>
19
- </html>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>word_for_index (Classifier::WordList)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/classifier/lsi/word_list.rb, line 26</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_for_index</span>(<span class="ruby-identifier">ind</span>)
15
- <span class="ruby-ivar">@location_table</span>.<span class="ruby-identifier">invert</span>[<span class="ruby-identifier">ind</span>]
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>size (Classifier::WordList)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/classifier/lsi/word_list.rb, line 31</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">size</span>
15
- <span class="ruby-ivar">@location_table</span>.<span class="ruby-identifier">size</span>
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,112 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Module: GSL</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Module</strong></td>
53
- <td class="class-name-in-header">GSL</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/classifier/extensions/vector_serialize_rb.html">
59
- lib/classifier/extensions/vector_serialize.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- </table>
66
- </div>
67
- <!-- banner header -->
68
-
69
- <div id="bodyContent">
70
-
71
-
72
-
73
- <div id="contextContent">
74
-
75
-
76
-
77
- </div>
78
-
79
-
80
- </div>
81
-
82
-
83
- <!-- if includes -->
84
-
85
- <div id="section">
86
-
87
- <div id="class-list">
88
- <h3 class="section-bar">Classes and Modules</h3>
89
-
90
- Class <a href="GSL/Matrix.html" class="link">GSL::Matrix</a><br />
91
- Class <a href="GSL/Vector.html" class="link">GSL::Vector</a><br />
92
-
93
- </div>
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
- <!-- if method_list -->
102
-
103
-
104
- </div>
105
-
106
-
107
- <div id="validator-badges">
108
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
109
- </div>
110
-
111
- </body>
112
- </html>
@@ -1,126 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: GSL::Matrix</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">GSL::Matrix</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/classifier/extensions/vector_serialize_rb.html">
59
- lib/classifier/extensions/vector_serialize.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="../Object.html">
69
- Object
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
-
84
-
85
- </div>
86
-
87
-
88
- </div>
89
-
90
-
91
- <!-- if includes -->
92
-
93
- <div id="section">
94
-
95
-
96
-
97
- <div id="aliases-list">
98
- <h3 class="section-bar">External Aliases</h3>
99
-
100
- <div class="name-list">
101
- <table summary="aliases">
102
- <tr class="top-aligned-row context-row">
103
- <td class="context-item-name">diagonal</td>
104
- <td>-></td>
105
- <td class="context-item-value">diag</td>
106
- </tr>
107
- </table>
108
- </div>
109
- </div>
110
-
111
-
112
-
113
-
114
-
115
- <!-- if method_list -->
116
-
117
-
118
- </div>
119
-
120
-
121
- <div id="validator-badges">
122
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
123
- </div>
124
-
125
- </body>
126
- </html>
@@ -1,156 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: GSL::Vector</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">GSL::Vector</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/classifier/extensions/vector_serialize_rb.html">
59
- lib/classifier/extensions/vector_serialize.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="../Object.html">
69
- Object
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
-
84
-
85
- </div>
86
-
87
- <div id="method-list">
88
- <h3 class="section-bar">Methods</h3>
89
-
90
- <div class="name-list">
91
- <a href="#M000015">_dump</a>&nbsp;&nbsp;
92
- <a href="#M000016">_load</a>&nbsp;&nbsp;
93
- </div>
94
- </div>
95
-
96
- </div>
97
-
98
-
99
- <!-- if includes -->
100
-
101
- <div id="section">
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
- <!-- if method_list -->
111
- <div id="methods">
112
- <h3 class="section-bar">Public Class methods</h3>
113
-
114
- <div id="method-M000016" class="method-detail">
115
- <a name="M000016"></a>
116
-
117
- <div class="method-heading">
118
- <a href="Vector.src/M000016.html" target="Code" class="method-signature"
119
- onclick="popupCode('Vector.src/M000016.html');return false;">
120
- <span class="method-name">_load</span><span class="method-args">(arr)</span>
121
- </a>
122
- </div>
123
-
124
- <div class="method-description">
125
- </div>
126
- </div>
127
-
128
- <h3 class="section-bar">Public Instance methods</h3>
129
-
130
- <div id="method-M000015" class="method-detail">
131
- <a name="M000015"></a>
132
-
133
- <div class="method-heading">
134
- <a href="Vector.src/M000015.html" target="Code" class="method-signature"
135
- onclick="popupCode('Vector.src/M000015.html');return false;">
136
- <span class="method-name">_dump</span><span class="method-args">(v)</span>
137
- </a>
138
- </div>
139
-
140
- <div class="method-description">
141
- </div>
142
- </div>
143
-
144
-
145
- </div>
146
-
147
-
148
- </div>
149
-
150
-
151
- <div id="validator-badges">
152
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
153
- </div>
154
-
155
- </body>
156
- </html>