PyNARS
Description
Python implementation of NARS (Non-Axiomatic-Reasoning-System)
Reference:
- OpenNARS 3.0.4,
- The Design Report of OpenNARS 3.1.0
Environments
- Python version: 3.7.10.
- Only tested under this version, however, Python 3.7 and higher versions maybe acceptable.
- OS: Windows 10.
- Only tested under this OS, however, other OS might be ok.
- Packages Requirements: see
requirements.txt.- It is noted that the version of the python package
tqdmshould be no higher than 3.1.4, otherwise the color display would be abnormal. This is because of a bug oftqdm, which leads to conflicts betweenstyandtqdmand cause unexpected color display ofsty. However, this constraints is not necessary, i.e., higher version oftqdmis ok if you don't mind abnormal display occuring. The abnormal case only occur when you first run the PyNARS when SparseLUT (Sparse Look-Up Table) is built.
- It is noted that the version of the python package
Installation
pip install pynars
Instructions
- Copy the file
pynars/config.jsonto your workspace-directory. (Optional) - In the workspace-directory, run cmd
python -m pynars.Console. To execute an*.nalfile, run cmdpython -m pynars.Console - Input Narsese in the console, input an positive integer to run a number of cycles, or input a comment which is a string with
'as the beginning, e.g.' your comment. - Press
ctrl+Cto exit.
Contribution
- Fork the repository
- Create Feat_xxx branch
- Commit your code
- Create Pull Request
Note: This document will be imporved in the future.