yury-classifier 1.3.3 → 1.3.4

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.
data/classifier.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{classifier}
5
- s.version = "1.3.3"
5
+ s.version = "1.3.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Yury Korolev"]
9
- s.date = %q{2009-02-05}
9
+ s.date = %q{2009-03-22}
10
10
  s.description = %q{A general classifier module to allow Bayesian and other types of classifications.}
11
11
  s.email = %q{yury.korolev@gmail.com}
12
12
  s.extra_rdoc_files = ["lib/classifier/base.rb", "lib/classifier/bayes.rb", "lib/classifier/extensions/vector.rb", "lib/classifier/extensions/vector_serialize.rb", "lib/classifier/lsi/content_node.rb", "lib/classifier/lsi/summary.rb", "lib/classifier/lsi/word_list.rb", "lib/classifier/lsi.rb", "lib/classifier.rb", "lib/init.rb", "LICENSE", "README"]
@@ -1,4 +1,5 @@
1
1
  # coding:utf-8
2
+ $KCODE = 'utf8'
2
3
 
3
4
  module Classifier
4
5
  class Base
@@ -288,7 +288,7 @@ module Classifier
288
288
  s[ord] = 0.0 if s[ord] < s_cutoff
289
289
  end
290
290
  # Reconstruct the term document matrix, only with reduced rank
291
- u * Matrix.diag( s ) * v.trans
291
+ u * ($GSL ? GSL::Matrix : Matrix).diag( s ) * v.trans
292
292
  end
293
293
 
294
294
  def node_for_content(item, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yury-classifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Korolev
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-05 00:00:00 -08:00
12
+ date: 2009-03-22 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -26,6 +27,7 @@ dependencies:
26
27
  version:
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: ruby-stemmer
30
+ type: :runtime
29
31
  version_requirement:
30
32
  version_requirements: !ruby/object:Gem::Requirement
31
33
  requirements: