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