categorize 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,9 +20,9 @@ static char **all_grams_pp;
|
|
20
20
|
// END header
|
21
21
|
|
22
22
|
// Initialization method for this module.
|
23
|
-
void
|
23
|
+
void Init_categorize()
|
24
24
|
{
|
25
|
-
Categorize = rb_define_module("
|
25
|
+
Categorize = rb_define_module("Categorize");
|
26
26
|
Models = rb_define_module_under(Categorize, "Models");
|
27
27
|
CBagOfWords = rb_define_class_under(Models, "CBagOfWords", rb_cObject);
|
28
28
|
rb_define_method(CBagOfWords, "make_model", method_make_model, 1);
|
data/lib/categorize.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
|
3
|
+
# The C extension is listed first.
|
4
|
+
require 'categorize/categorize' unless ENV['NO_C_INCLUDE']
|
5
|
+
|
4
6
|
require 'categorize/models/abstract_model'
|
5
7
|
require 'categorize/models/bag_of_words'
|
6
8
|
require 'categorize/models/cluster'
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: categorize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Peter Lubell-Doughtie
|
@@ -16,7 +17,7 @@ description: ! "A text categorization library that favors performance.\n
|
|
16
17
|
email: peter@helioid.com
|
17
18
|
executables: []
|
18
19
|
extensions:
|
19
|
-
- ext/
|
20
|
+
- ext/categorize/extconf.rb
|
20
21
|
extra_rdoc_files: []
|
21
22
|
files:
|
22
23
|
- lib/categorize/constants.rb
|
@@ -24,35 +25,40 @@ files:
|
|
24
25
|
- lib/categorize/utils/grams.rb
|
25
26
|
- lib/categorize/utils/gram_node.rb
|
26
27
|
- lib/categorize/model.rb
|
28
|
+
- lib/categorize/version.rb
|
27
29
|
- lib/categorize/models/abstract_model.rb
|
28
30
|
- lib/categorize/models/hierarchical_cluster.rb
|
29
31
|
- lib/categorize/models/bag_of_words.rb
|
30
32
|
- lib/categorize/models/cluster.rb
|
31
33
|
- lib/categorize.rb
|
32
|
-
- ext/
|
33
|
-
- ext/
|
34
|
+
- ext/categorize/categorize.c
|
35
|
+
- ext/categorize/extconf.rb
|
34
36
|
homepage: http://www.helioid.com/
|
35
37
|
licenses:
|
36
38
|
- BSD3
|
37
|
-
metadata: {}
|
38
39
|
post_install_message:
|
39
40
|
rdoc_options: []
|
40
41
|
require_paths:
|
41
42
|
- lib
|
42
43
|
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
43
45
|
requirements:
|
44
46
|
- - ! '>='
|
45
47
|
- !ruby/object:Gem::Version
|
46
48
|
version: '0'
|
49
|
+
segments:
|
50
|
+
- 0
|
51
|
+
hash: -3553060524054293255
|
47
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
48
54
|
requirements:
|
49
55
|
- - ! '>='
|
50
56
|
- !ruby/object:Gem::Version
|
51
57
|
version: '0'
|
52
58
|
requirements: []
|
53
59
|
rubyforge_project:
|
54
|
-
rubygems_version:
|
60
|
+
rubygems_version: 1.8.23
|
55
61
|
signing_key:
|
56
|
-
specification_version:
|
62
|
+
specification_version: 3
|
57
63
|
summary: A text categorization library.
|
58
64
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
YTFmZGJlMWI3YjUxNGQ2MGE3OGJmMjIzN2ZiYTFmNjVhMzE0OGRkMA==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NDAxNDY2MDNlYjBmYjc0NTIzY2JjYmU4NjE3YTBiMTQ1ZjA5ZjZjMg==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
MDk4YjVhYjBhMWMzNGMwZmZlYmFiNTZlZWNiNjNkNjUxM2QzNjkxNzU2NWRk
|
10
|
-
MGQzNzJkZTY5ZmJhM2Q1ZmMyNDM2ZDEzZjk1Mzg4ODE2NWFlMmVhODBkNGZh
|
11
|
-
YTg0NGY4YTM0YzM0M2E0M2YyNjE5NjY4NzUyOTg4YzI1ODM5NGI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MmY1MmIyZjAyYWVmMzI1NzExMjk2ODFhMTgxOTg2ZDMzYTJhYzBlYWExZDdj
|
14
|
-
NDM4ODU0NTllMjdjOWI4NjMwMzBmODhhN2UxODE2MmZmMjFhNzBkMTczMzlj
|
15
|
-
ZjBjNWZiMDc5MTM3NDI5ZGI2ZmNiYzZmMTVjYzlhMzIzNjBiZjE=
|