def __init__(self, elems):
if not isinstance(elems, list):<EOL><INDENT>elems = [elems]<EOL><DEDENT>self.elems = elems<EOL>self.sum_elem_bbox = <NUM_LIT:0><EOL>for elem in elems:<EOL><INDENT>self.sum_elem_bbox = self.sum_elem_bbox + abs(<EOL>(elem.bbox[<NUM_LIT:0>] - elem.bbox[<NUM_LIT:2>]) * (elem.bbox[<NUM_LIT:1>] - elem.bbox[<NUM_LIT:3>])<EOL>)<EOL><DEDENT>self.table_area_threshold = <NUM_LIT><EOL>self.set_bbox(bound_elems(elems))<EOL>self.type_counts = Counter(map(elem_type, elems))<EOL>if elem_type(elems) not in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>self.feat_counts = Counter(<EOL>kv for e in elems for kv in six.iteritems(e.feats)<EOL>)<EOL><DEDENT>else:<EOL><INDENT>self.feat_counts = <NUM_LIT:0><EOL><DEDENT>self.type = "<STR_LIT>"<EOL>
Constructor