dantro.data_loaders.load_text module¶
Defines a loader mixin to load plain text objects
-
class
dantro.data_loaders.load_text.TextLoaderMixin[source]¶ Bases:
objectSupplies functionality to load plain text files
-
_load_plain_text(*args, **kwargs)¶ Loads the content of a plain text file back into a
StringContainer.- Parameters
filepath (str) – Where the plain text file is located
TargetCls (type) – The class constructor
**load_kwargs – Passed on to
open, see there for possible kwargs
- Returns
The reconstructed StringContainer
- Return type
-
_load_text(*args, **kwargs)¶ Loads the content of a plain text file back into a
StringContainer.- Parameters
filepath (str) – Where the plain text file is located
TargetCls (type) – The class constructor
**load_kwargs – Passed on to
open, see there for possible kwargs
- Returns
The reconstructed StringContainer
- Return type
-