'Collects training data from a given text. If finalize is True, it
will determine all the parameters for sentence boundary detection. If
not, this will be delayed until get_params() or finalize_training() is
called. If verbose is True, abbreviations found will be listed.'

def train(self, text, verbose=False, finalize=True):

    self._train_tokens(self._tokenize_words(text), verbose)
    if finalize:
        self.finalize_training(verbose)
