MCPcopy Create free account
hub / github.com/BIT-DataLab/LakeBench / Table

Class Table

union/Tabert/index.py:18–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17
18class Table:
19 def __init__(self, id, header, data, context):
20 self.id: str = id
21 self.header: List[str] = header
22 self.data: List[List[str]] = data
23 self.context: str = context
24
25 def __str__(self): # for debug
26 heading = "\t|||\t".join(self.header)
27 body = ''
28 for row in self.data: body += "\t|||\t".join(row) + '\n'
29 return (f"______________________________________\n"
30 f"Table ID:{self.id}\n"
31 f"Context:{self.context}\n"
32 f"{heading}\n"
33 f"_____\n"
34 f"{body}")
35
36
37class Model(nn.Module):

Callers 2

build_dataset_predictFunction · 0.85
csv_to_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected