Sha256: 4d9ef7c7f738db7a7ac5eb6a1d8c549d1ccb80f71c88a229e1dae14cbae7c25e

Contents?: true

Size: 509 Bytes

Versions: 25

Compression:

Stored size: 509 Bytes

Contents

# encoding: UTF-8

# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0

require 'singleton'

module TwitterCldr
  module Segmentation
    class KoreanBreakEngine < CjBreakEngine

      include Singleton

      def self.word_set
        @word_set ||= begin
          uset = TwitterCldr::Shared::UnicodeSet.new
          uset.add_range(0xAC00..0xD7A3)
          uset.to_set
        end
      end

      private

      def word_set
        self.class.word_set
      end

    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
twitter_cldr-6.12.1 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.12.0 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.11.5 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.11.4 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.11.3 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.11.2 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.11.1 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.11.0 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.10.0 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.9.0 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.8.0 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.7.0 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.6.2 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.6.1 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.6.0 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.5.0 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.4.0 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.3.0 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.2.0 lib/twitter_cldr/segmentation/korean_break_engine.rb
twitter_cldr-6.1.0 lib/twitter_cldr/segmentation/korean_break_engine.rb