From 313ceec2071d1a5e4475ba2dd49ca680afbb34ea Mon Sep 17 00:00:00 2001 From: Richard van der Dys Date: Thu, 26 Sep 2013 10:16:53 -0500 Subject: [PATCH] forgot to push compiled code --- build/index.js | 7 ++++--- package.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build/index.js b/build/index.js index c971899..df5dc59 100644 --- a/build/index.js +++ b/build/index.js @@ -1,5 +1,5 @@ (function () { - var ffi, ref, Struct, pointerType, string, int, ParseOptions, Dictionary, Sentence, Linkage, CNode, CNodePtr, apiTemplate, libPath, lib, merge, getNodePtrFromPtr, defaultConfig; + var ffi, ref, Struct, pointerType, string, int, ParseOptions, Dictionary, Sentence, Linkage, CNode, CNodePtr, apiTemplate, libPath, lib, defaultDataPath, merge, getNodePtrFromPtr, defaultConfig; /* # Link Grammar Parser @@ -33,8 +33,9 @@ /* Load the library. */ - libPath = "./lib/libparser"; + libPath = __dirname + "/../lib/libparser"; lib = ffi.Library(libPath, apiTemplate); + defaultDataPath = __dirname + "/../data/"; /* Utility functions... */ @@ -70,7 +71,7 @@ /* Default configuration for data paths. */ - defaultConfig = {dictPath: "./data/4.0.dict", ppPath: "./data/4.0.knowledge", consPath: "./data/4.0.constituent-knowledge", affixPath: "./data/4.0.affix"}; + defaultConfig = {dictPath: defaultDataPath + "4.0.dict", ppPath: defaultDataPath + "4.0.knowledge", consPath: defaultDataPath + "4.0.constituent-knowledge", affixPath: defaultDataPath + "4.0.affix"}; /* Main parser class which interfaces the native library to make it very simple to get link grammar data from an input string. diff --git a/package.json b/package.json index 14647eb..204818d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "link-grammar", - "version": "0.0.3", + "version": "0.0.4", "description": "Link grammar library node interface", "main": "./build/index.js", "repository": "",