def __init__(self,corpus): MapReduce.__init__(self) self.corpus = corpus self.data = corpus.docs self.totalDocs = len(self.data)
def __init__(self,corpus): MapReduce.__init__(self) self.corpus = corpus self.data = corpus.docs
def __init__(self,corpus,minFreq=1): MapReduce.__init__(self) self.corpus = corpus self.data = corpus.docs self.minFreq = minFreq
def __init__(self,corpus): MapReduce.__init__(self) self.corpus = corpus self.data = corpus.tweets self.totalTweets = len(self.data)