rlid 0.1.1 → 0.1.2
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/lib/rlid.rb
CHANGED
@@ -6,11 +6,11 @@ require 'rlid/probabilities/language_probabilities'
|
|
6
6
|
|
7
7
|
class NaiveBayesGuesser < LanguageGuesser
|
8
8
|
def initialize(default=1)
|
9
|
-
print "Naive Bayes: loading models.."
|
9
|
+
#print "Naive Bayes: loading models.."
|
10
10
|
@models = NaiveBayesModels.load
|
11
11
|
@models.default_count = default
|
12
12
|
@name = "Naive Bayes"
|
13
|
-
puts " Done!"
|
13
|
+
#puts " Done!"
|
14
14
|
end
|
15
15
|
|
16
16
|
def guess_language(string)
|
@@ -49,6 +49,7 @@ class NaiveBayesProbabilityGuesser < NaiveBayesGuesser
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
+
=begin
|
52
53
|
class SmartBayesGuesser < LanguageGuesser
|
53
54
|
def initialize(default=1)
|
54
55
|
#print "Smart Bayes: loading models.."
|
@@ -65,6 +66,7 @@ class SmartBayesGuesser < LanguageGuesser
|
|
65
66
|
LanguageProbabilities.new(results)
|
66
67
|
end
|
67
68
|
end
|
69
|
+
=end
|
68
70
|
|
69
71
|
|
70
72
|
class NaiveBayesPriorGuesser < NaiveBayesProbabilityGuesser
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rlid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -43,7 +43,7 @@ require_paths:
|
|
43
43
|
required_ruby_version: !ruby/object:Gem::Requirement
|
44
44
|
none: false
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ~>
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 1.9.1
|
49
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|