Exemplo n.º 1
0
 def pd2excel(self, filename):
     comm.Df2excel(self.df).df2excel(filename, 'tmp')
Exemplo n.º 2
0
 def sent_chunking(self, grammer, sent):
     sentTree = comm.PosTag().chunking(grammer, sent)
     self.traverse(sentTree)
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 def preprocess(self, document):
     listOfsents = comm.PosTag().preprocess(document)
     return listOfsents
Exemplo n.º 5
0
 def excel2pd(self, filename):
     self.df = comm.Excel2pd(filename).excel2pd()