CLI tools
This is a loose collection of tools for working with TDM.
Installing
- Install a recent version of Node.js
- Clone this repo
- Run
yarn install
from the parent directory
kpf
An offline converter to turn KPF into TDM.
# Expect basename path to have 3 files with given extensions:
ls /path/to/kpf_basename*
# /path/to/kpf_basename.activities.yml
# /path/to/kpf_basename.geom.yml
# /path/to/kpf_basename.types.yml
# Convert
./main.js /path/to/kpf_basename > out.tdm.json
kw18.js
An offline converter to turn KW18 into TDM.
# Expext basepath name to have 2 files with given extensions:
ls /path/to/kw18_basename*
# /path/to/kw18_basename.kw18
# /path/to/kw18_basename.kw18.types
# convert
./main.js /path/to/kw18_basename > out.tdm.json
viame.js
An offline converter to turn Viame CSV into TDM.
cat /path/to/viame.csv
# A Viame file looks like this:
# 0,X,0,1,1,2,2,X,X,dog
# 0,X,1,2,2,4,4,X,X,dog
# 0,X,9,4,5,6,6,X,X,dog
# 1,X,0,1,2,4,5,X,X,person
# convert
./main.js /path/to/viame.csv --delimiter ',' > out.tdm.json