def pd2excel(self, filename): comm.Df2excel(self.df).df2excel(filename, 'tmp')
def sent_chunking(self, grammer, sent): sentTree = comm.PosTag().chunking(grammer, sent) self.traverse(sentTree)
def find(self, text, regEx, tech, full=False): if tech == 1: res = comm.Segement(text).find_tech(regEx, full) elif tech == 0: res = comm.Segement(text).find_func(regEx) return res
def preprocess(self, document): listOfsents = comm.PosTag().preprocess(document) return listOfsents
def excel2pd(self, filename): self.df = comm.Excel2pd(filename).excel2pd()