MCPcopy Create free account
hub / github.com/OpenDCAI/DataFlow-MM / process

Function process

dataflow/utils/utils.py:155–158  ·  view source on GitHub ↗
(a, tokenizer=None)

Source from the content-addressed store, hash-verified

153
154
155def process(a, tokenizer=None):
156 if tokenizer is not None:
157 a = tokenizer(a)[0].tolist()
158 return set(a)
159
160
161def get_idf_dict(arr, tokenizer, nthreads=4):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected