markovfun 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Markovfun
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/markovfun.rb CHANGED
@@ -37,7 +37,7 @@ module Markovfun
37
37
  # where prev2 and prev1 are the two previous words.
38
38
  # The values are hashes, in which the keys are words (cur) that have followed
39
39
  # prev2 and prev1, and the values are the number of occurrences.
40
- def self.buildcounts(sentences)
40
+ def self.get_counts(sentences)
41
41
  counts_hash = {}
42
42
  sentences.each do |sent|
43
43
  # nil denotes the beginnings and ends of sentences
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markovfun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: