csv

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package main will create a CSV dataset by reading the specified zip file.

Zip file is assumed to be created by generate-dataset.go, following this format:

TRAIN/labelA/foo.txt
VALIDATION/labelB/bar.txt
TEST/labelA/whatever.txt

aka <partition>/<label>/<name>, or alternatively leaving out the parition:

labelA/foo.txt
labelB/bar.txt
labelA/whatever.txt

The corresponding CSV file rows will look like:

TRAIN,"hello world",labelA
VALIDATION,"contents of bar",labelB
TEST,"more interesting stuff",labelA

aka <parition>,<content of file>,<label>, possibly leaving the partition column blank:

,"hello world",labelA
,"contents of bar",labelB
,"more interesting stuff",labelA

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL