Skip to content

Misc Scripts

Patrick Hammer edited this page May 29, 2020 · 12 revisions

Python interface The interface file is available in /misc/Python/NAR.py From there:

import NAR as nar
print(nar.AddInput("<a --> b>."))
print(nar.AddInput("<?1 --> b>?"))
nar.Exit()

Example of processing toothbrush.nal with UDPNAR (Continuous run of ONA):
Run with --verbose to see the steps of the demo
Run with --iterations to get an average of real-time required for handling toothbrush.nal

python3 toothbrush_demo.py --verbose
python3 toothbrush_demo.py --iterations 20

IRC interface
Run via irc_nar.py, needs Python 2.

Clone this wiki locally