Skip to content

eitanief/lawsProject

Repository files navigation

Law project

project by Efrat Eitani and Yuval Komash

Compiling and running YAP

Quick Start YAP has been tested and verified to run on Windows, Linux and MacOS.

Windows users: YAP doesn't handle Windows style text files that have BOM marks and CRLF newlines. So if you're running on Windows and YAP doesn't work make sure you don't have CRLF line endings and no BOM mark.

Requirements
Go
Git
bzip2
6GB RAM

Compilation
The following instructions are for Linux but similarly this can be done on Windows and MacOS.
Make sure you have Go and Git installed and on the command PATH.

Setup a Go environment:
Create a directory (usually per workspace/project)
$ mkdir yapproj; cd yapproj
Set $GOPATH environment variable to your workspace:
export GOPATH=path/to/yapproj
in Windows use:
set GOPATH=path/to/yapproj
In the workspace directory create the src subdirectory:
mkdir src
cd into the src directory:
cd src
Clone the repository in the src folder of the workspace
git clone https://github.com/OnlpLab/yap.git

Unzip the models and build the application:

$ cd yap
$ bunzip2 data/*.bz2
$ go get .
$ go build .
$ ./yap
./yap - invoke yap as a standalone app or as an api server
if ./yap is not working use yap.exe api

for more information about YAP: https://github.com/OnlpLab/yap?fbclid=IwAR2BILOpxFyF051OaA-NkOXUDrgpCBzktEp-3I_UXzRCV2Hp2Eaf7JAsZJI#running-yap-as-a-restful-service

Build and run application

Build the image manually by cloning the Git repo.

$ git clone https://github.com/eitanief/lawsProject.git

Inside "lawsProject" folder run:

pip install -r requirements.txt
$ python main.py

Open local host:

$ http://127.0.0.1:5000/

Releases

No releases published

Packages

No packages published