-
Notifications
You must be signed in to change notification settings - Fork 4
Scripts
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.
- Python (versions 2.7 and up should work)
- Pyre, port of Lyre: unzip
ecg-package.tar.gz
and follow the instructions in INSTALL - Jython
-
ecg-grammars
-
Note: the
analyzer.sh
script assumes this is installed in the same directory asframework_code
-
Note: the
- Six
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
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...
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}