-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.txt
42 lines (30 loc) · 780 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
torch-csv
=========
Reader / Parser of csv files with header
Module to load and parse csv files which uses standard torch
packaging and documentation tools.
Main generator code is copied from:
Tobias Kieslich at
http://lua-users.org/lists/lua-l/2009-08/msg00029.html
REQUIREMENTS:
git clone https://github.com/andresy/torch.git
INSTALL:
git clone https://github.com/marcoscoffier/torch-csv.git
cd torch-csv
torch-pkg deploy
EXAMPLE:
$torch -lcsv
t7> csvg, header,rheader = csv.open_with_header(fname)
t7> =header
{[1] = string : "bbx"
[2] = string : "bby"
[3] = string : "bbw"
[4] = string : "bbh"}
t7> =rheader
{[bbx] = 1
[bby] = 2
[bbw] = 3
[bbh] = 4}
t7> line = csvg()
t7> =line[rheader["bbx"]]
34398