Sha256: 99ce30e06e9a007ca4aac54e58992b787a91ecdfe5d41f24656e696a8b9c929d

Contents?: true

Size: 965 Bytes

Versions: 20

Compression:

Stored size: 965 Bytes

Contents

require 'spec_helper'

RSpec.describe PragmaticSegmenter::Languages::Burmese, '(my)' do

  context "Golden Rules" do
    it "Sentence ending punctuation #001" do
      ps = PragmaticSegmenter::Segmenter.new(text: "ခင္ဗ်ားနာမည္ဘယ္လိုေခၚလဲ။၇ွင္ေနေကာင္းလား။", language: 'my')
      expect(ps.segment).to eq(["ခင္ဗ်ားနာမည္ဘယ္လိုေခၚလဲ။", "၇ွင္ေနေကာင္းလား။"])
    end
  end

  describe '#segment' do
    it 'correctly segments text #001' do
      ps = PragmaticSegmenter::Segmenter.new(text: "ခင္ဗ်ားနာမည္ဘယ္လိုေခၚလဲ။၇ွင္ေနေကာင္းလား။", language: 'my')
      expect(ps.segment).to eq(["ခင္ဗ်ားနာမည္ဘယ္လိုေခၚလဲ။", "၇ွင္ေနေကာင္းလား။"])
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
pragmatic_segmenter-0.3.24 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.23 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.22 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.21 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.20 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.19 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.18 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.17 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.16 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.15 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.14 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.13 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.12 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.10 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.9 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.8 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.7 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.6 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.5 spec/pragmatic_segmenter/languages/burmese_spec.rb
pragmatic_segmenter-0.3.4 spec/pragmatic_segmenter/languages/burmese_spec.rb