treelets
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| treelets [2019/12/16 10:32] – pezik | treelets [2019/12/26 00:55] (current) – [Docker Installation] pkowalczyk | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Treelets Documentation ====== | ====== Treelets Documentation ====== | ||
| - | This page contains the documentation of the Treelets phraseology extraction tool. | + | This page contains the documentation of the Treelets phraseology extraction tool. The main topics covered here include: |
| - | The main topics covered here include: | + | |
| - | + | ||
| - | | + | |
| * Parsing and indexing corpora, generating and searching automatic combinatorial dictionaries extracted with Treelets | * Parsing and indexing corpora, generating and searching automatic combinatorial dictionaries extracted with Treelets | ||
| Any issues related to Treelets should be reported to the contact[at]pelcra.pl. | Any issues related to Treelets should be reported to the contact[at]pelcra.pl. | ||
| - | |||
| ===== Docker Installation ===== | ===== Docker Installation ===== | ||
| - | Treelets can be installed locally as a Docker container on any major operating | + | Treelets can be installed locally as a Docker container on all major operating |
| - | + | ||
| - | The installation process varies for different operating systems. The following pages explain how to install Treelets on: | + | |
| * [[Ubuntu 18.04/ | * [[Ubuntu 18.04/ | ||
| * [[Linux Mint]] | * [[Linux Mint]] | ||
| - | * [[Mac OS 10.15 Catalina]] | + | * [[MacOS 10.15 Catalina]] |
| * [[Windows 10 Professional]] | * [[Windows 10 Professional]] | ||
| * [[Windows 10 Home]] | * [[Windows 10 Home]] | ||
| - | |||
| - | |||
| ===== Requirements ===== | ===== Requirements ===== | ||
| - | * Unix environment, | + | * Linux environment, |
| - | * Docker Desktop for Windows 10 Professional or Mac OS | + | * Docker Desktop for Windows 10 Professional or MacOS |
| * Docker Toolbox on Windows 10 Home | * Docker Toolbox on Windows 10 Home | ||
| - | ===== Install Treelets on Ubuntu ===== | + | ===== Useful |
| - | ==== Install | + | |
| - | * # run in Linux bash install commands: | + | |
| - | < | + | |
| - | sudo apt install docker | + | |
| - | sudo apt install docker-compose | + | |
| - | sudo apt install postgresql-client-common | + | |
| - | </ | + | |
| - | * # check docker version commands: | + | |
| - | < | + | |
| - | sudo docker -v | + | |
| - | sudo docker-compose -v | + | |
| - | </ | + | |
| - | + | ||
| - | ==== Setup Treelets from a binary distribution ==== | + | |
| - | * Download treelets-docker application for Ubuntu {{ : | + | |
| - | * Unzip | + | |
| - | * Run bash and go inside treelets-docker catalog | + | |
| - | + | ||
| - | ==== Run Docker ==== | + | |
| - | * # run in Linux bash commands: | + | |
| - | < | + | |
| - | # Build | + | |
| - | sudo docker-compose build | + | |
| - | + | ||
| - | # Running | + | |
| - | sudo docker-compose up -d | + | |
| - | + | ||
| - | # View instances | + | |
| - | sudo docker-compose ps | + | |
| - | </ | + | |
| - | + | ||
| - | ===== Install Treelets on Windows 10 Home ===== | + | |
| - | + | ||
| - | ==== Install Docker Toolbox ==== | + | |
| - | * Install the application using the tutorial: [[https:// | + | |
| - | + | ||
| - | ==== Setup Treelets from a binary distribution ==== | + | |
| - | * Download treelets-docker application for Windows 10 Home {{ :: | + | |
| - | * Unzip | + | |
| - | * Run Docker Quickstart Terminal from Desktop and go inside treelets-docker catalog | + | |
| - | + | ||
| - | ==== Run Docker ==== | + | |
| - | * # run in Docker Quickstart Terminal command and note ip, it will be used to open application | + | |
| - | < | + | |
| - | # get default ip for application | + | |
| - | docker-machine ip default | + | |
| - | </ | + | |
| - | + | ||
| - | * # using windows explorer go to the file treelets-docker\app\webapp\assets\config\api.json | + | |
| - | < | + | |
| - | # change webSocketHost address to docker-machine ip default eg. | + | |
| - | " | + | |
| - | </ | + | |
| - | + | ||
| - | * # run install commands: | + | |
| - | < | + | |
| - | # create a volume | + | |
| - | docker volume create postgres_database | + | |
| - | + | ||
| - | # check volumes | + | |
| - | docker volume ls | + | |
| - | + | ||
| - | # Build | + | |
| - | docker-compose build | + | |
| - | + | ||
| - | # Running | + | |
| - | docker-compose up -d | + | |
| - | + | ||
| - | # View instances | + | |
| - | docker-compose ps | + | |
| - | </ | + | |
| - | + | ||
| - | ===== Verify your Treelets installation ===== | + | |
| - | * Open your favourite Browser and type: http:// | + | |
| - | * On Windows 10 Home use the IP specified during installation: | + | |
| - | + | ||
| - | + | ||
| - | ===== Docker useful | + | |
| < | < | ||
| Line 128: | Line 43: | ||
| exit | exit | ||
| | | ||
| - | # Stop | + | # Stop docker containers |
| sudo docker-compose stop | sudo docker-compose stop | ||
| | | ||
| - | # Remove | + | # Remove |
| sudo docker-compose down | sudo docker-compose down | ||
| </ | </ | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
treelets.1576492353.txt.gz · Last modified: 2019/12/16 10:32 by pezik
