// ReplaceColonBetweenNumbersRule
// ReplaceNonSentenceBoundaryCommaRule
// SENTENCE_BOUNDARY_REGEX
raise NotImplementedError
if __name__ == "__main__":
text = "\"Dinah"ll miss me very much to-night, I should think!\" (Dinah was the cat.) \"I hope they"ll remember her saucer of milk at tea-time. Dinah, my dear, I wish you were down here with me!\""
After Change
def sentence_boundary_punctuation(self, txt):
if hasattr(self.language_module, "ReplaceColonBetweenNumbersRule"):
txt = Text(txt).apply(
self.language_module.ReplaceColonBetweenNumbersRule)
if hasattr(self.language_module, "ReplaceNonSentenceBoundaryCommaRule"):
txt = Text(txt).apply(
self.language_module.ReplaceNonSentenceBoundaryCommaRule)
// SENTENCE_BOUNDARY_REGEX
txt = re.findall(Common.SENTENCE_BOUNDARY_REGEX, txt)return txt
if __name__ == "__main__":
// text = "\"Dinah"ll miss me very much to-night, I should think!\" (Dinah was the cat.) \"I hope they"ll remember her saucer of milk at tea-time. Dinah, my dear, I wish you were down here with me!\""