metreex-analysis.js
/**
 * Loads a treebank collection via the metreex API, then adds each tree to the set of loaded trees
 */
Loads a treebank collection via the metreex API, then adds each tree to the set of loaded trees
Loads a treebank collection via the metreex API then adds each tree to the set of loaded trees
function loadTreebankCollection(id){
    if (id === undefined) id = "";
    output.println("Attempting to load treebank collection");
    var t=new TreebankCollection();
    t.onload=function(){
        t.treebank.forEach(function(tree){
            addLoadedTree(tree);
        });
    };
    t.load(id);
}
function loadTreebankCollection ( id ) { if ( id === undefined ) id = "" ; output . println ( "Attempting to load treebank collection" ) ; var t = new TreebankCollection ( ) ; t . onload = function ( ) { t . treebank . forEach ( function ( tree ) { addLoadedTree ( tree ) ; } ) ; } ; t . load ( id ) ; }
Loads a treebank collection via the metreex API, then adds each tree to the set of loaded trees
Loads a treebank collection via the metreex API then adds each tree to the set of loaded trees