Class: Raingrams::PentagramModel
- Defined in:
- lib/raingrams/pentagram_model.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Model
#ignore_case, #ignore_phone_numbers, #ignore_punctuation, #ignore_references, #ignore_urls, #ngram_size, #prefixes, #starting_ngram, #stoping_ngram
Method Summary
Methods inherited from Model
#build, build, #clear, #each_ngram, #grams, #grams_following, #grams_preceeding, #has_gram?, #has_ngram?, #initialize, #ngrams, #ngrams_ending_with, #ngrams_following, #ngrams_from_fragment, #ngrams_from_sentence, #ngrams_from_text, #ngrams_from_words, #ngrams_including_all, #ngrams_including_any, #ngrams_postfixed_by, #ngrams_preceeding, #ngrams_prefixed_by, #ngrams_starting_with, #ngrams_with, open, #parse_sentence, #parse_text, #refresh, #save, #set_ngram_frequency, #to_hash, train_with_file, #train_with_file, #train_with_ngram, #train_with_ngrams, train_with_paragraph, #train_with_paragraph, #train_with_sentence, train_with_text, #train_with_text, #train_with_url, train_with_url
Methods included from Helpers::Random
#random_gram, #random_gram_sentence, #random_ngram, #random_paragraph, #random_sentence, #random_text
Methods included from Helpers::Commonality
#common_ngrams_from_fragment, #common_ngrams_from_sentence, #common_ngrams_from_text, #common_ngrams_from_words, #fragment_commonality, included, #sentence_commonality, #text_commonality
Methods included from Helpers::Similarity
#fragment_similarity, included, #sentence_similarity, #text_similarity
Methods included from Helpers::Probability
#fragment_probability, #probabilities_for, #probability_of_ngram, #probability_of_ngrams, #sentence_probability, #text_probability
Methods included from Helpers::Frequency
#frequencies_for, #frequency_of_ngram, #frequency_of_ngrams
Constructor Details
This class inherits a constructor from Raingrams::Model