def splitNgramTerms(self, text):
        terms = []
        for sentence in lexicon.splitSentence(text):
            if sentence:
                for mixed in lexicon.iterMixTerms(sentence):
                    # English term
                    if mixed.startswith('E'):
                        terms.append(mixed)
                    # Chinese sentence
                    else:
                        for n in xrange(1, self.ngram+1):
                            terms.extend(lexicon.iterTerms(n, mixed, False))
        return terms
test gc.collect is called before and after each test.
dataset/ETHPy150Open victorlin/loso/loso/service.py/SegumentService.splitNgramTerms--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/trial/test/test_tests.py/TestGarbageCollection.test_collectCalled