0e364f4b0f70679ca984c0ba5629c569135804a4,pysbd/segmenter.py,Segmenter,sentences_with_char_spans,#Segmenter#Any#,50

Before Change


                for match in re.finditer("{0}\s*".format(re.escape(sent)),
                self.original_text))
        sorted_spans = sorted(sent_spans, key=lambda x: x[1])
        return [TextSpan(sent, start, end) for sent, start, end in sorted_spans]

    def segment(self, text):
        self.original_text = text
        if not text:

After Change


                        TextSpan(match_str, match_start_idx, match_end_idx))
                    prior_start_char_idx = match_start_idx
                    break
        return sent_spans

    def segment(self, text):
        self.original_text = text
        if not text:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: nipunsadvilkar/pySBD
Commit Name: 0e364f4b0f70679ca984c0ba5629c569135804a4
Time: 2020-07-26
Author: nipunsadvilkar@gmail.com
File Name: pysbd/segmenter.py
Class Name: Segmenter
Method Name: sentences_with_char_spans


Project Name: nipunsadvilkar/pySBD
Commit Name: 29d9d12a26718405763103e997285026f8fd4563
Time: 2020-07-21
Author: nipunsadvilkar@gmail.com
File Name: pysbd/segmenter.py
Class Name: Segmenter
Method Name: sentences_with_char_spans


Project Name: nipunsadvilkar/pySBD
Commit Name: 8917b3581159445332cafae96cf411b2cc825bdc
Time: 2020-06-09
Author: nipunsadvilkar@gmail.com
File Name: pysbd/processor.py
Class Name: Processor
Method Name: split_into_segments