Module Raingrams
In: lib/raingrams/bigram_model.rb
lib/raingrams/exceptions/prefix_frequency_missing.rb
lib/raingrams/hexagram_model.rb
lib/raingrams/model.rb
lib/raingrams/ngram.rb
lib/raingrams/ngram_set.rb
lib/raingrams/open_vocabulary/bigram_model.rb
lib/raingrams/open_vocabulary/hexagram_model.rb
lib/raingrams/open_vocabulary/model.rb
lib/raingrams/open_vocabulary/open_model.rb
lib/raingrams/open_vocabulary/pentagram_model.rb
lib/raingrams/open_vocabulary/quadgram_model.rb
lib/raingrams/open_vocabulary/trigram_model.rb
lib/raingrams/pentagram_model.rb
lib/raingrams/probability_table.rb
lib/raingrams/quadgram_model.rb
lib/raingrams/raingrams.rb
lib/raingrams/tokens/start_sentence.rb
lib/raingrams/tokens/stop_sentence.rb
lib/raingrams/tokens/token.rb
lib/raingrams/tokens/tokens.rb
lib/raingrams/tokens/unknown.rb
lib/raingrams/trigram_model.rb
lib/raingrams/version.rb
lib/raingrams/helpers/probability.rb
lib/raingrams/helpers/frequency.rb
lib/raingrams/helpers/similarity.rb
lib/raingrams/helpers/commonality.rb
lib/raingrams/helpers/random.rb
Model TrigramModel BigramModel QuadgramModel PentagramModel HexagramModel Model TrigramModel BigramModel QuadgramModel PentagramModel HexagramModel RuntimeError PrefixFrequencyMissing Set NgramSet Array Ngram Token StopSentence StartSentence Unknown ProbabilityTable Tokens Commonality Random Similarity Frequency Probability Helpers OpenModel OpenVocabulary Raingrams dot/f_1.png

Methods

Classes and Modules

Module Raingrams::Helpers
Module Raingrams::OpenVocabulary
Module Raingrams::Tokens
Class Raingrams::BigramModel
Class Raingrams::HexagramModel
Class Raingrams::Model
Class Raingrams::Ngram
Class Raingrams::NgramSet
Class Raingrams::PentagramModel
Class Raingrams::PrefixFrequencyMissing
Class Raingrams::ProbabilityTable
Class Raingrams::QuadgramModel
Class Raingrams::TrigramModel

Constants

VERSION = '0.1.2'

Public Class methods

[Source]

# File lib/raingrams/raingrams.rb, line 5
  def Raingrams.closed_vocabulary_model(options={},&block)
    Model.new(options,&block)
  end

[Source]

# File lib/raingrams/raingrams.rb, line 13
  def Raingrams.model(options={},&block)
    case options[:vocabulary]
    when :open, 'open'
      return Raingrams.open_vocabulary_model(options,&block)
    else
      return Raingrams.closed_vocabulary_model(options,&block)
    end
  end

[Source]

# File lib/raingrams/raingrams.rb, line 9
  def Raingrams.open_vocabulary_model(options={},&block)
    OpenVocabulary::Model.new(options,&block)
  end

[Validate]