Class: PragmaticSegmenter::Languages::Greek::SentenceBoundaryPunctuation

Inherits:
SentenceBoundaryPunctuation show all
Defined in:
lib/pragmatic_segmenter/languages/greek.rb

Constant Summary collapse

SENTENCE_BOUNDARY =
/.*?[\.;!\?]|.*?$/

Constants inherited from SentenceBoundaryPunctuation

SentenceBoundaryPunctuation::SENTENCE_BOUNDARY_REGEX

Instance Attribute Summary

Attributes inherited from SentenceBoundaryPunctuation

#text

Instance Method Summary collapse

Methods inherited from SentenceBoundaryPunctuation

#initialize

Constructor Details

This class inherits a constructor from PragmaticSegmenter::SentenceBoundaryPunctuation

Instance Method Details

#splitObject



18
19
20
# File 'lib/pragmatic_segmenter/languages/greek.rb', line 18

def split
  text.scan(SENTENCE_BOUNDARY)
end