Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
New stable release
  • Loading branch information
PonteIneptique authored Dec 14, 2018
2 parents bf8f121 + e1aca95 commit 415072b
Show file tree
Hide file tree
Showing 39 changed files with 197,322 additions and 194 deletions.
15 changes: 9 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@ python:
- "3.5"
addons:
chrome: stable
apt:
packages:
- chromium-chromedriver

before_script:
# include ChromeDriver in PATH
- ln --symbolic /usr/lib/chromium-browser/chromedriver "${HOME}/bin/chromedriver"

install:
- wget -N https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
- pip install -r requirements.txt
- pip install coveralls
- pip install nose

# command to run tests
script:
- nosetests ./tests --with-coverage --cover-package=app --cover-xml
Expand Down
2 changes: 1 addition & 1 deletion contribute.md → CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,4 @@ To browse the application with data sample, you can run `python manage.py db-fix
having created or recreated the database.

You can contribute fixtures by adding a corpus in db_fixtures and fixtures following the
example of the Floovant or Wauchier corpus.
example of the Floovant or Wauchier corpus.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
Pandora TAB Post-correction App
===============================
Pyrrha
======

[![Coverage Status](https://coveralls.io/repos/github/hipster-philology/pandora-postcorrect-app/badge.svg?branch=master)](https://coveralls.io/github/hipster-philology/pandora-postcorrect-app?branch=master)
[![Build Status](https://travis-ci.org/hipster-philology/pandora-postcorrect-app.svg?branch=master)](https://travis-ci.org/hipster-philology/pandora-postcorrect-app)

Pyrrha is a simple Python Flask WebApp to fasten the post-correction
of lemmatized and morpho-syntactic tagged corpora.

![Pandora Post-Correction Editor](./readme.png)

![Pandora Post-Correction Editor](./history.png)
Expand Down
5 changes: 4 additions & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from flask import Flask
from flask import Flask, g

from config import config
from flask_compress import Compress
Expand Down Expand Up @@ -55,4 +55,7 @@ def create_app(config_name="dev"):
from .admin import admin as admin_blueprint
app.register_blueprint(admin_blueprint, url_prefix='/admin')

from .configurations import configuration as configurations_blueprint
app.register_blueprint(configurations_blueprint)

return app
14 changes: 14 additions & 0 deletions app/configurations/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""
Temporary hack before shared configurations.
Allows to stock configuration here.
"""
from os import path
from flask import Blueprint

# Find the static folder
static_folder = path.join(path.abspath(path.dirname(__file__)), "langs")
#  Create the current blueprint
configuration = Blueprint('configurations', __name__, static_folder=static_folder)

1 change: 1 addition & 0 deletions app/configurations/langs/lasla_la/POS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOM1,NOM2,NOM3,NOM4,NOM5,NOM6,NOM7,VER1,VER2,VER3,VER4,VER5,VER6,ADJ1,ADJ2,ADJ3,ADJ4,ADJ5,ADJ6,ADJ7,ADJcar,ADJord,ADJdis,ADJmul,ADJadv.ord,ADJadv.mul,PROper,PROpos,PROref,PROpos.ref,PROdem,PROrel,PROint,PROind,ADV,ADVrel,ADVint,ADVneg,ADVint.neg,PRE,CONcoo,CONsub,INJ,VERaux,
Loading

0 comments on commit 415072b

Please sign in to comment.