Sha256: 55309ec1a01ae511dd9b3b384b4802056bcaa66bbc54f1ca229685f97379e290
Contents?: true
Size: 945 Bytes
Versions: 20
Compression:
Stored size: 945 Bytes
Contents
require 'spec_helper' RSpec.describe PragmaticSegmenter::Languages::Amharic, '(am)' do context "Golden Rules" do it "Sentence ending punctuation #001" do ps = PragmaticSegmenter::Segmenter.new(text: "እንደምን አለህ፧መልካም ቀን ይሁንልህ።እባክሽ ያልሽዉን ድገሚልኝ።", language: 'am') expect(ps.segment).to eq(["እንደምን አለህ፧", "መልካም ቀን ይሁንልህ።", "እባክሽ ያልሽዉን ድገሚልኝ።"]) end end describe '#segment' do it 'correctly segments text #001' do ps = PragmaticSegmenter::Segmenter.new(text: "እንደምን አለህ፧መልካም ቀን ይሁንልህ።እባክሽ ያልሽዉን ድገሚልኝ።", language: 'am') expect(ps.segment).to eq(["እንደምን አለህ፧", "መልካም ቀን ይሁንልህ።", "እባክሽ ያልሽዉን ድገሚልኝ።"]) end end end
Version data entries
20 entries across 20 versions & 1 rubygems