MCPcopy Create free account
hub / github.com/RingBDStack/GDAP / data_counter_to_table

Function data_counter_to_table

data_convert/utils.py:23–28  ·  view source on GitHub ↗
(data_counter)

Source from the content-addressed store, hash-verified

21
22
23def data_counter_to_table(data_counter):
24 table = list()
25 for filename, file_counter in data_counter.items():
26 table += [[filename, file_counter['sentence'],
27 file_counter['event'], file_counter['argument']]]
28 return tabulate(table, headers=['file', '#sent', '#event', '#arg'])
29
30
31def get_schema(event):

Callers 1

convert_file_tupleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected