Utilities for tdm apps

kieffer authored on 26 Apr 2017
lib Update 1 year ago
test Update for node-ez-istex 1 year ago
.gitignore Update 1 year ago
README.md Update README 1 year ago
index.beta.js Update for node-ez-istex 1 year ago
index.js Update for node-ez-istex 1 year ago
package.json Update for node-ez-istex 1 year 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/' }