from . import chunktagger, lemmatizer, postagger, stemmer, tokenizer


class Summarizer(object):
    def __init__(self, text):
        self.text = text

    def execute(self):
        tokens = tokenizer.NLTKTokenizer(self.text).execute()
        stems = stemmer.Stemmer(tokens).execute()
        pos = postagger.PosTagger(tokens).execute()
        chunk = chunktagger.ChunkTagger().parse(pos)

        summary = zip(tokens, stems, pos, chunk)
        return summary

from . import chunktagger, lemmatizer, postagger, stemmer, tokenizer


class Summarizer(object):
    def __init__(self, text):
        self.text = text

    def execute(self):
        tokens = tokenizer.NLTKTokenizer(self.text).execute()
        stems = stemmer.Stemmer(tokens).execute()
        pos = postagger.PosTagger(tokens).execute()
        chunk = chunktagger.ChunkTagger().parse(pos)

        summary = zip(tokens, stems, pos, chunk)
        return [(t, s, p[1], c[1]) for (t, s, p, c) in summary]

Fix bug that returned a zip object instead of list
Fix bug that returned a zip object instead of list
