Class
LanguageDetector::Profile
In:
lib/language_detector.rb
Parent:
Object
Methods
compute_distance
count_ngram
generate_ngrams
init_with_file
init_with_string
is_punctuation?
new
tokenize
Constants
LIMIT
=
1500
PUNCTUATION_REGEX
=
/[\W^_\d]+/
Attributes
name
[RW]
ngrams
[RW]
Public Class methods
new
(*args)
Public Instance methods
compute_distance
(other_profile)
count_ngram
(token, n, counts)
generate_ngrams
(str, ngram_count)
init_with_file
(filename)
init_with_string
(str)
is_punctuation?
(char)
tokenize
(str)
[Validate]