File Utilities
file_utils¶
Utils for downloading and processing file.
-
cotk.file_utils.
get_resource_file_path
(file_id, cache_dir=None, config_dir=None)[source]¶ Get file_path of resource of all types
resources_processor¶
-
class
cotk.file_utils.
DefaultResourceProcessor
(cache_dir, config_dir)[source]¶ Processor for default resource: do nothing.
-
class
cotk.file_utils.
BaseResourceProcessor
(cache_dir, config_dir)[source]¶ Basic processor for MSCOCO, OpenSubtitles, Ubuntu…
-
class
cotk.file_utils.
MSCOCOResourceProcessor
(cache_dir, config_dir)[source]¶ Processor for MSCOCO dataset
-
class
cotk.file_utils.
OpenSubtitlesResourceProcessor
(cache_dir, config_dir)[source]¶ Processor for OpenSubtitles Dataset
-
class
cotk.file_utils.
UbuntuResourceProcessor
(cache_dir, config_dir)[source]¶ Processor for UbuntuCorpus dataset
-
class
cotk.file_utils.
SwitchboardCorpusResourceProcessor
(cache_dir, config_dir)[source]¶ Processor for SwitchboardCorpus dataset
-
class
cotk.file_utils.
SSTResourceProcessor
(cache_dir, config_dir)[source]¶ Processor for SST dataset
-
class
cotk.file_utils.
GloveResourceProcessor
(cache_dir=None, config_dir=None)[source]¶ Base Class for all dimension version of glove wordvector.
-
class
cotk.file_utils.
Glove50dResourceProcessor
(cache_dir=None, config_dir=None)[source]¶ Processor for glove50d wordvector
-
class
cotk.file_utils.
Glove100dResourceProcessor
(cache_dir=None, config_dir=None)[source]¶ Processor for glove100d wordvector