コード例 #1
0
def TrainUsingLR(xmls, annotatedxmlloc):
    LR = LogisticRegressor()
    trainer = Utils.Trainer.Trainer()
    tableslist = list()
    for xml in xmls:
        tableslist.append(trainer.readAnnotatedxmlforTableDecomposition(annotatedxmlloc + xml + "_TD_ANNOTATED"))
    
    LR.domaintrainforTableDecomposition(tableslist) 
    return LR
コード例 #2
0
def TrainUsingLR(xmls, annotatedxmlloc):
    LR = LogisticRegressor()
    trainer = Utils.Trainer.Trainer()
    tableslist = list()
    for xml in xmls:
        tableslist.append(
            trainer.readAnnotatedxmlforTableDecomposition(annotatedxmlloc +
                                                          xml +
                                                          "_TD_ANNOTATED"))

    LR.domaintrainforTableDecomposition(tableslist)
    return LR