Skip to content

marcoscoffier/torch-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Reader / Parser of csv files with header

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages