Git Product home page Git Product logo

lace's Introduction

sudo apt-get install libmysqlclient-dev python-pip python-dev sqlite3 libxml-dev libxslt-dev libxml2-dev
sudo pip install Flask
sudo pip install Flask-SQLAlchemy
sudo pip install Flask-Markdown
sudo pip install MySQL-python
sudo pip install flask_httpauth
sudo pip install pillow
sudo pip install lxml

cd Lace
cp example_local_settings.py local_settings.py
vim local_settings.py
#change to your local database uri: use sqlite3 for temporary use 

#Now install a text resource into the filestructure under static/Texts and 
#put its metadata in the database
python ./import_to_lace_from_tar.py samples/robertson_2016-04-03-16-14_alciphronisrhet01schegoog_teubner-serif-2013-12-16-11-26-00067000.pyrnn.gz_full.tar.gz-processed
#Note that, for convenience, the corresponding images are already stored 
#in Lace/static/Images/Color

python ./lace.py

#open Chrome at localhost:5000
#Click on 'Texts', there should be one, click on it, and on 'selected_hocr_output' 
#Both text and image should appear
#Clicking on text should cause a popup with word image to appear


#### Editing ####

#For editing, install eXist-db 2.2 or higher, and upload to it the resources
at Lace/eXist-db/db 
#set exist_db_uri variable in Lace/local_settings.py appropriately

lace's People

Contributors

brobertson avatar francescapatten avatar

Watchers

Georgios C. Tsiagalakis avatar

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.