def parse_output(self, text, sentences):
    if (self._FORMAT == 'slashTags'):
        tagged_sentences = []
        for tagged_sentence in text.strip().split('\n'):
            for tagged_word in tagged_sentence.strip().split():
                word_tags = tagged_word.strip().split(self._SEPARATOR)
                tagged_sentences.append((''.join(word_tags[:(- 1)]), word_tags[(- 1)]))
        result = []
        start = 0
        for sent in sentences:
            result.append(tagged_sentences[start:(start + len(sent))])
            start += len(sent)
        return result
    raise NotImplementedError
def parse_output(self, text, sentences):
    if (self._FORMAT == 'slashTags'):
        tagged_sentences = []
        for tagged_sentence in text.strip().split('\n'):
            for tagged_word in tagged_sentence.strip().split():
                word_tags = tagged_word.strip().split(self._SEPARATOR)
                tagged_sentences.append((.join(word_tags[:(- 1)]), word_tags[(- 1)]))
        result = []
        start = 0
        for sent in sentences:
            result.append(tagged_sentences[start:(start + len(sent))])
            start += len(sent)
        return result
    raise NotImplementedError