hmlatapie / MAGIOpenSource

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MAGIOpenSource

Dependancies:

apt install perl  # If not already installed. 
pip3 install networkx
pip3 install antlr4-python3-runtime==4.7.2

To run test perl script on test text files and create a graphml:

cd nars2networkx
perl test.pl t1 test1.txt

Look for "myTestGraph.graphml" in the folder.

For easy visualization tool, we recommend using Cytoscape. For installation and documentation see here. https://cytoscape.org/

Known issues on Mac

  1. Folder permission denied.
chmod -R 777 MAGIOpenSource/
  1. Anltr4 not being recognized.
virtualenv -p python3 <path>
source activate <path>/bin/activate
pip3 install install antlr4-python3-runtime==4.7.2
vi /MAGIOpenSource/nars2networks/nars2networks.py

In Vim edit the first line from /usr/bin/python3 to <path>/bin/python3

Neo4j to Nars

  1. Neo4j instance should be running on localhost:7687
  2. Install the py2neo package
pip install py2neo
  1. Run the main.py file
python3 main.py
  1. NARS string will be printed

About


Languages

Language:Python 49.0%Language:Java 47.1%Language:Perl 2.2%Language:ANTLR 1.5%Language:Shell 0.2%