def parse_output(self, text, sentences=None):
    tagged_sentences = []
    for tagged_sentence in text.strip().split('\n'):
        sentence = []
        for tagged_word in tagged_sentence.strip().split():
            word_tags = tagged_word.strip().split(self._SEPARATOR)
            sentence.append((''.join(word_tags[:(- 1)]), word_tags[(- 1)]))
        tagged_sentences.append(sentence)
    return tagged_sentences
def parse_output(self, text, sentences=None):
    tagged_sentences = []
    for tagged_sentence in text.strip().split('\n'):
        sentence = []
        for tagged_word in tagged_sentence.strip().split():
            word_tags = tagged_word.strip().split(self._SEPARATOR)
            sentence.append((.join(word_tags[:(- 1)]), word_tags[(- 1)]))
        tagged_sentences.append(sentence)
    return tagged_sentences