Skip to content
Sean Trott edited this page May 23, 2016 · 33 revisions

Although the framework_code repository is not linked to any particular application, users can still run the integrated system, with the only "action" being the Problem Solver printing out n-tuples.

System Requirements

Note: Once you clone the repository, you'll also want to set your PYTHONPATH in your bash_profile to point to:

{INSTALL_PATH}/framework_code/src/main

Initializing the Analyzer

The ECG Analyzer can be run with Python via Jython. The analyzer.sh script runs the Analyzer using, by default, the research grammar.

Bash:
sh analyzer.sh
OR
./analyzer.sh

If all goes well, you should see the following lines on Terminal:

Jython {information about your Jython installation)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)]
Analyzer ready...

Visualizing N-tuples

If you're only interested in visualizing n-tuples, and not performing a "smoke test" of the system's end-to-end communication, you can run a debugging tool called the N-tuple Visualizer. Once the ECG Analyzer is running, open up a new Terminal tab in the same directory, then run:

./ntuples.sh

This runs the CoreSpecializer and a proxy of the Analyzer, which communicates with the Jython Analyzer via a local server. You can visualize n-tuples for sentence fragments or whole phrases:

> the box
{givenness: uniquelyIdentifiable
number: singular
type: box}