treelets
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| treelets [2019/12/11 20:34] – [Verify your Treelets installation] pwilk | 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: |
| + | |||
| + | * Configuring and running the Treelets docker container including the Postgres database, Java API, angular web application, | ||
| + | * 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. | ||
| ===== Docker Installation ===== | ===== Docker Installation ===== | ||
| - | Detailed instruction on how to install | + | Treelets |
| - | ===== Learning Outcomes ===== | + | |
| - | | + | * [[Linux Mint]] |
| - | * Have a configured local Treelets web application on one machine | + | * [[MacOS 10.15 Catalina]] |
| - | * Learned how to understand and configure Treelets Docker configuration including api, database, angular, nginx etc. | + | * [[Windows 10 Professional]] |
| - | * Search Indexed data in Your application | + | * [[Windows 10 Home]] |
| - | Any issues with this tutorial should be reported to the contact[at]pelcra.pl list. | + | |
| ===== 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 | + | |
| - | < | + | |
| - | 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 [[Link to Treelets Docker application for Ubuntu!]] | + | |
| - | * Unzip | + | |
| - | * Run bash and go inside treelets-docker catalog | + | |
| - | ==== Run Docker ==== | ||
| - | * # run in Linux bash commands: | ||
| < | < | ||
| - | # Build | + | # View instances with container id |
| - | sudo docker-compose build | + | sudo docker |
| | | ||
| - | # Running | + | # Logs |
| - | sudo docker-compose | + | sudo docker-compose |
| - | + | ||
| - | # View instances | + | |
| - | sudo docker-compose ps | + | |
| - | </ | + | |
| - | ===== Install Treelets on Windows 10 Home ===== | + | # Monitoring |
| + | sudo docker stats | ||
| - | ==== Install Docker Toolbox ==== | + | # Connect sql command |
| - | * Install the application using the tutorial: [[https:// | + | sudo docker |
| - | + | psql -U treelets treelets | |
| - | ==== Setup Treelets from a binary distribution ==== | + | select |
| - | * Download treelets-docker application for Windows 10 Home [[Link to Treelets Docker application for Windows 10 Home!]] | + | select version(); |
| - | * Unzip | + | \q |
| - | * Run Docker Quickstart Terminal from Desktop and go inside treelets-docker catalog | + | exit |
| - | + | ||
| - | ==== 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 | + | |
| - | </ | + | |
| - | + | ||
| - | | + | |
| - | < | + | |
| - | # 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 | + | # Stop docker containers |
| - | docker-compose | + | sudo docker-compose |
| | | ||
| - | # View instances | + | # Remove docker containers |
| - | docker-compose | + | sudo docker-compose |
| </ | </ | ||
| - | |||
| - | ===== Verify your Treelets installation ===== | ||
| - | * Open Your Favourite Browser and type: http:// | ||
| - | * On Windows 10 Home will be on ip default: http:// | ||
| - | |||
| - | ====== Docker useful commands ====== | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
treelets.1576096465.txt.gz · Last modified: by pwilk
