Skip to content

knowlp/phillip

This branch is 5 commits ahead of, 17 commits behind kazeto/phillip:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

22f93e5 · Dec 7, 2015
Jul 17, 2015
Jun 18, 2015
Dec 2, 2015
Dec 1, 2015
Feb 28, 2015
Feb 26, 2014
Dec 7, 2015
Feb 26, 2014
Jul 30, 2015
Dec 7, 2015
Dec 7, 2015

Repository files navigation

Phillip

About


Phillip is the first-ordered abductive reasoner for natural language processing in C++.

Install


Linux, OS X

  1. Install ILP-solver (Gurobi 6.0.X or LP-Solve 5.5) which you want to use.
  2. Move to the directory where Phillip is installed.
  3. Execute python tools/configure.py. Then makefile will be created.
  4. Configure environment variables:
    • If you use LP-Solve, add the path of the header directory of LP-Solve to CPLUS_INCLUDE_PATH or IDFLAGS as -I<path>.
    • If you use a nonstandard Python header location, add the corresponding -I<path> directives to IDFLAGS.
    • If you use Gurobi optimizer, add the path of directory of Gurobi to GUROBI_HOME, $GUROBI_HOME/include to CPLUS_INCLUDE_PATH and $GUROBI_HOME/lib to LIBRARY_PATH and LD_LIBRARY_PATH.
  5. Execute make.
  6. (Optional) Execute make test.

Windows

  1. Install ILP-solver (Gurobi 6.0.X or LP-Solve 5.5) which you want to use.
  2. Open ./vs/phillip.sln with Visual C++.
  3. Configure property of the project.
    • Under the construction... X(
  4. Build the project of phillip on Visual C++.

Usage


Compile

$ bin/phil -m compile_kb -k <KB_PREFIX> [OPTIONS] [INPUTS]

Since Phillip uses the compiled knowledge base on inference. You need to compile your knowledge base at first.
Besides each time you change the knowledge base, you need to compile it.

Inference

$ bin/phil -m inference -c lhs=<NAME> -c ilp=<NAME> -c sol=<NAME> -k <KB_PREFIX> [OPTIONS] [INPUTS]

In detail, please refer to Phillip Wiki.

About

Abductive reasoner for NLP in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.5%
  • Other 0.5%