(json_obj, tid="", splitted_content=False)
return Table(row_n + 1, col_n + 1, cells, tid)
Construct a Table object from json object
  Args:
    json_obj: a json object
  Returns:
    a Table object
Construct a Table object from json object
  Args:
    json_obj: a json object
  Returns:
    a Table object
Construct a Table object from json object Args : json_obj : a json object Returns : a Table object
def json2Table(json_obj, tid="", splitted_content=False):
  """Construct a Table object from json object
  Args:
    json_obj: a json object
  Returns:
    a Table object
  """
  jo = json_obj["cells"]
  row_n, col_n = 0, 0
  cells = []
  for co in jo:
    content = co["content"]
    if content is None: continue
    if splitted_content:
      content = " ".join(content)
    else:
      content = content.strip()
    if content == "": continue
    start_row = co["start_row"]
    end_row = co["end_row"]
    start_col = co["start_col"]
    end_col = co["end_col"]
    row_n = max(row_n, end_row)
    col_n = max(col_n, end_col)
    cell = Chunk(content, (start_row, end_row, start_col, end_col))
    cells.append(cell)
  return Table(row_n + 1, col_n + 1, cells, tid)
def json2Table ( json_obj , tid = "" , splitted_content = False ) : jo = json_obj [ "cells" ] row_n , col_n = 0 , 0 cells = [ ] for co in jo : content = co [ "content" ] if content is None : continue if splitted_content : content = " " . join ( content ) else : content = content . strip ( ) if content == "" : continue start_row = co [ "start_row" ] end_row = co [ "end_row" ] start_col = co [ "start_col" ] end_col = co [ "end_col" ] row_n = max ( row_n , end_row ) col_n = max ( col_n , end_col ) cell = Chunk ( content , ( start_row , end_row , start_col , end_col ) ) cells . append ( cell ) return Table ( row_n + 1 , col_n + 1 , cells , tid )