Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (57 sloc) 1.77 KB

Integrated Semantic Framework (intsem.fx)

Prerequisite

Installation

import nltk
nltk.download("book")

Tips: pip is recommended for installing required packages

python -m pip install -r requirements.txt

Using ISF

cd ~/workspace/intsem.fx
./isf parse data/sample.txt data/sample.out

Development

WARNING: These are meant for developers who want to contribute to the codebase. If all you need is to run the ISF to process your data, please see the Installation section above instead.

2 - Check out the code of intsem.fx to ~/workspace with:

git clone --recursive https://github.com/letuananh/intsem.fx.git

3 - Check out ERG to your workspace folder and compile the grammar

This is complicated, read more here: http://moin.delph-in.net/TuanAnhLe/GramEng4Dummies

Basically, I need the grammar file (erg.dat) to be located at ~/workspace/cldata/erg.dat

4 - Configure the application

cd ~/workspace/intsem.fx
./config.sh

To use ISF, please try

cd ~/workspace/intsem.fx
./isf --help

Notes:

Use virtualenv to install required packages

python3 -m venv ~/isf_py3
. ~/isf_py3/bin/activate

Install these packages if you are using Fedora Linux:

sudo dnf install -y redhat-rpm-config gcc-c++