Module: Bayes::CHARSET
- Defined in:
- lib/bayes.rb,
lib/bayes/convert.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.setup_re(m) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/bayes.rb', line 8 def self.setup_re(m) o = $KCODE $KCODE = m::KCODE m.const_set(:RE_MESSAGE_TOKEN, Regexp.union(m::RE_KATAKANA, m::RE_KANJI, /[a-zA-Z]+/)) $KCODE=o end |