MCPcopy Create free account
hub / github.com/SpenserCai/sd-webui-deoldify / process_one

Method process_one

fastai/text/data.py:315–315  ·  view source on GitHub ↗
(self,item)

Source from the content-addressed store, hash-verified

313 "`PreProcessor` that opens the filenames and read the texts."
314 def process(self, ds:Collection): ds.items = array([self.process_one(item) for item in ds.items], dtype=np.object)
315 def process_one(self,item): return open_text(item) if isinstance(item, Path) else item
316
317class TextList(ItemList):
318 "Basic `ItemList` for text data."

Callers 1

processMethod · 0.95

Calls 1

open_textFunction · 0.85

Tested by

no test coverage detected