Skip to content

Commit

Permalink
forgot to push compiled code
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard van der Dys committed Sep 26, 2013
1 parent 4dfa770 commit 313ceec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions build/index.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -33,8 +33,9 @@
/*
Load the library.
*/
libPath = "./lib/libparser";
libPath = __dirname + "/../lib/libparser";
lib = ffi.Library(libPath, apiTemplate);
defaultDataPath = __dirname + "/../data/";
/*
Utility functions...
*/
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": "",
Expand Down

0 comments on commit 313ceec

Please sign in to comment.