def run(self, document, number_sentences):
    '\n        :param: number_sentences, starts with 0 for the fist sentence\n        '
    boundaries = (document.sentences_boundaries[0][0], document.sentences_boundaries[:(number_sentences + 1)][(- 1)][1])
    document.text = document.text[boundaries[0]:boundaries[1]]
    document.sentences_boundaries = self._limitSenteceBoundaries(document.sentences_boundaries, boundaries[1])
    document.words_boundaries = self._limitWordBoundaries(document.words_boundaries, boundaries[1])
    document.entities = self._limitEntities(document.entities, boundaries[1])
    document.triples = self._limitTriples(document.triples, boundaries[1])
    return document
:param: number_sentences, starts with 0 for the fist sentence
def run(self, document, number_sentences):
    '\n        \n        '
    boundaries = (document.sentences_boundaries[0][0], document.sentences_boundaries[:(number_sentences + 1)][(- 1)][1])
    document.text = document.text[boundaries[0]:boundaries[1]]
    document.sentences_boundaries = self._limitSenteceBoundaries(document.sentences_boundaries, boundaries[1])
    document.words_boundaries = self._limitWordBoundaries(document.words_boundaries, boundaries[1])
    document.entities = self._limitEntities(document.entities, boundaries[1])
    document.triples = self._limitTriples(document.triples, boundaries[1])
    return document