56017c9931222ab3d87692a71d138285d8a5d86a,estnltk/text.py,Text,compute_sentences,#Text#,289

Before Change



    def compute_sentences(self):
        if self.is_computed(SENTENCES):
            self.__computed.remove(SENTENCES)
        tok = self.__sentence_tokenizer
        spans = tok.span_tokenize(self.text)
        dicts = []
        for start, end in spans:

After Change


        dicts = []
        for paragraph in self[PARAGRAPHS]:
            para_start, para_end = paragraph[START], paragraph[END]
            para_text = text[para_start:para_end]
            spans = tok.span_tokenize(para_text)
            for start, end in spans:
                dicts.append({"start": start+para_start, "end": end+para_start})
        self[SENTENCES] = dicts
        self.__computed.add(SENTENCES)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: estnltk/estnltk
Commit Name: 56017c9931222ab3d87692a71d138285d8a5d86a
Time: 2015-06-03
Author: tpetmanson@gmail.com
File Name: estnltk/text.py
Class Name: Text
Method Name: compute_sentences


Project Name: estnltk/estnltk
Commit Name: 56017c9931222ab3d87692a71d138285d8a5d86a
Time: 2015-06-03
Author: tpetmanson@gmail.com
File Name: estnltk/text.py
Class Name: Text
Method Name: compute_sentences


Project Name: enthought/chaco
Commit Name: 1dc7dd188126b5132e0927f08c8dc553a1aff8d4
Time: 2010-11-19
Author: pwang@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/tools/scatter_inspector.py
Class Name: ScatterInspector
Method Name: _deselect


Project Name: estnltk/estnltk
Commit Name: 42fb5ddaa2b08c54d51379451598eb5de6899c65
Time: 2015-06-10
Author: tpetmanson@gmail.com
File Name: estnltk/text.py
Class Name: Text
Method Name: compute_words