GithubHelp home page GithubHelp logo

aymenkhs / knowledge-base-inference-checker Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 6 KB

A knowledge Base Inference Checker in python using UBSCAT solver for windows and picosat for linux

Python 100.00%
knowledge-base inference picosat-solver python

knowledge-base-inference-checker's Introduction

Knowledge-Base-Inference-Checker

A knowledge Base Inference Checker in python using UBCSAT solver for windows and picosat for linux

Depencencies

  • python
  • UBCSAT if you use windows and picosat for linux

HOW TO RUN IT

Solvers

Windows

To run the script on windows you'll need the UBCSAT solver. You can download it http://ubcsat.dtompkins.com/downloads. After downloading it just place the exe in the project root

Linux

On linux just install the solver picosat

sudo apt install picosat

Run the scripts

Just need to run main.py

python3 main.py -linux -litteral "-5 7 5 7 7 3 0" -file uf20-01.cnf

Arguements

The script take 4 arguments:

  • -file to specify the path (absolute or relative) to our knowladge base, by default the knowladge base will be exemple1.cnf in the project root. Exemple : -file exemple2.cnf
  • -litteral to input the literals to infere (in str format), Exemple : (-litteral "-3 5 0")
  • -windows to specify to the script to run UBSCAT as a solver on windows
  • -linux to specify to the script to run picoasta as a solver on linux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.