(self,item)
| 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 | |
| 317 | class TextList(ItemList): |
| 318 | "Basic `ItemList` for text data." |