page_elements2.py
def qualified_box(bx):
            '''Helper function that ignores boxes that contain other boxes.
            This is useful for finding the main content box which should
            be among the innermost boxes that have no box children '''
            
            if tree[bx]['num_boxes'] == 0:
                return tree[bx]['num_chars']
            else:
                return -1
Helper function that ignores boxes that contain other boxes.
            This is useful for finding the main content box which should
            be among the innermost boxes that have no box children 
Helper function that ignores boxes that contain other boxes.
This is useful for finding the main content box which should
be among the innermost boxes that have no box children
Helper function that ignores boxes that contain other boxes . This is useful for finding the main content box which should be among the innermost boxes that have no box children
def qualified_box(bx):
            if tree[bx]['num_boxes'] == 0:
                return tree[bx]['num_chars']
            else:
                return -1
def qualified_box ( bx ) : if tree [ bx ] [ 'num_boxes' ] == 0 : return tree [ bx ] [ 'num_chars' ] else : return - 1
Helper function that ignores boxes that contain other boxes.
Helper function that ignores boxes that contain other boxes .
'''Helper function that ignores boxes that contain other boxes.
            This is useful for finding the main content box which should
            be among the innermost boxes that have no box children '''
bx