'sepH_sepH': {}, 'sepH': {}, 'row': {} }, dLearnerConfig={ 'C': .1 if C is None else C, 'njobs': 4 if njobs is None else njobs, 'inference_cache': 50 if inference_cache is None else inference_cache #, 'tol' : .1 , 'tol': .05 if tol is None else tol, 'save_every': 50 #save every 50 iterations,for warm start , 'max_iter': 10 if max_iter is None else max_iter }, sComment=sComment #,cFeatureDefinition=FeatureDefinition_PageXml_StandardOnes_noText , cFeatureDefinition=My_FeatureDefinition_v3) # ---------------------------------------------------------------------------- if __name__ == "__main__": main_command_line(DU_ABPTableSkewedRowCut)
, "./pc:TextEquiv/pc:Unicode") #how to get their text ) DU_GRAPH.addNodeType(ntR) # CUT ntCutH = NodeType_PageXml_Cut_Shape( "sepH", lLabels_SIO_Cut, None, False, None # equiv. to: BBoxDeltaFun=lambda _: 0 ) ntCutH.setLabelAttribute("DU_type") ntCutH.setXpathExpr(( './/pc:CutSeparator[@orient="0"]' #how to find the nodes # the angle attribute give the true orientation (which is near 0) , "./pc:TextEquiv") #how to get their text ) DU_GRAPH.addNodeType(ntCutH) DU_GRAPH.setClassicNodeTypeList([ntR]) return DU_GRAPH # ---------------------------------------------------------------------------- if __name__ == "__main__": main_command_line(DU_ABPTableSkewedRowCutLine_BIOH)