示例#1
0
 def convert_old_study(self):
     print "Converting Divisi1 to Divisi2 study."
     from csc.divisi2.network import conceptnet_matrix
     cnet_matrix = conceptnet_matrix('en')
     divisi2.save(
         cnet_matrix,
         self.study_path(os.path.join("Matrices", "conceptnet_en.smat")))
示例#2
0
 def convert_old_study(self):
     print "Converting Divisi1 to Divisi2 study."
     from csc.divisi2.network import conceptnet_matrix
     cnet_matrix = conceptnet_matrix('en')
     divisi2.save(cnet_matrix, self.study_path(os.path.join("Matrices",
     "conceptnet_en.smat")))
示例#3
0
def get_conceptnet():
    from csc.divisi2.network import conceptnet_matrix
    return conceptnet_matrix('en').normalize_all()