Class: PragmaticSegmenter::Languages::Hindi::SentenceBoundaryPunctuation

Inherits:
SentenceBoundaryPunctuation show all
Defined in:
lib/pragmatic_segmenter/languages/hindi.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



22
23
24
# File 'lib/pragmatic_segmenter/languages/hindi.rb', line 22

def split
  text.scan(SENTENCE_BOUNDARY)
end