MCPcopy Create free account
hub / github.com/chatdoc-com/OCRFlux / __init__

Method __init__

eval/eval_table_to_html.py:58–63  ·  view source on GitHub ↗
(self, structure_only=False, n_jobs=1, ignore_nodes=None)

Source from the content-addressed store, hash-verified

56 ''' Tree Edit Distance basead Similarity
57 '''
58 def __init__(self, structure_only=False, n_jobs=1, ignore_nodes=None):
59 assert isinstance(n_jobs, int) and (n_jobs >= 1), 'n_jobs must be an integer greather than 1'
60 self.structure_only = structure_only
61 self.n_jobs = n_jobs
62 self.ignore_nodes = ignore_nodes
63 self.__tokens__ = []
64
65 def tokenize(self, node):
66 ''' Tokenizes table cells

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected