Utilities for tdm apps

@kieffer kieffer authored on 26 Apr 2017
lib Update 7 years ago
test Update for node-ez-istex 7 years ago
.gitignore Update 7 years ago
README.md Update README 7 years ago
index.beta.js Update for node-ez-istex 7 years ago
index.js Update for node-ez-istex 7 years ago
package.json Update for node-ez-istex 7 years ago
README.md

tdm-utils

Utilities for tdm EzMaster Applications

Examples

var corpusManager = require('tdm-utils');

// Directory containing all corpus files
var myCorpusFile = "/path/to/myCorpus.corpus";

// Directory where all data will be writed
var myOutputDirectory = "/path/to/my/output/directory/";

// Initialize the corpus directory
corpusManager.init(myCorpusFile, myOutputDirectory, function(err, res) {
  console.log(err, res);
  // Do some stuff
});

Ouput :

  // Corpus {
  //     name: 'myCorpus.corpus',
  //     file: '/path/to/my/output/directory/myCorpus.corpus',
  //     in: '/path/to/my/output/directory/in/myCorpus.corpus/',
  //     out: '/path/to/my/output/directory/ou/myCorpus.corpus/' }