d09d564a0d7899945b959b8da360cb56f324509f,pySBD/processor.py,Processor,sentence_boundary_punctuation,#Processor#Any#,129

Before Change


        // 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!\""
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: nipunsadvilkar/pySBD
Commit Name: d09d564a0d7899945b959b8da360cb56f324509f
Time: 2019-03-17
Author: nipunsadvilkar@gmail.com
File Name: pySBD/processor.py
Class Name: Processor
Method Name: sentence_boundary_punctuation


Project Name: nipunsadvilkar/pySBD
Commit Name: 4d42b47d967d66468192e8de0c803af1ae1f8934
Time: 2019-04-06
Author: nipunsadvilkar@gmail.com
File Name: pySBD/processor.py
Class Name: Processor
Method Name: post_process_segments


Project Name: nipunsadvilkar/pySBD
Commit Name: 17a2c36b9ab41ab2282a8114cdf5f1a720d2a114
Time: 2019-03-16
Author: nipunsadvilkar@gmail.com
File Name: pySBD/processor.py
Class Name: Processor
Method Name: process_text