Coder Social home page Coder Social logo

mhusar / lemming Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5.74 MB

This web app allows to annotate Keyword in Context indices (KWIC) with lemmata, senses and parts of speech in an effective way.

License: Apache License 2.0

Java 81.97% HTML 10.36% JavaScript 5.15% CSS 2.52%
lemmatization old-french kwic wicket hibernate

lemming's Introduction

Lemming

This web app allows to annotate Keyword in Context indices (KWIC) with lemmata, senses and parts of speech in an effective way.

Documentation

Getting started

Database configuration

Configure properties for the JAVA Persistence API (JPA) from the profiles section in the POM (pom.xml).

Set at least values for db.username, db.password, db.url and db.hbm2ddl.auto for the development profile and configure your database accordingly.

<profile>
    <id>development</id>
    <properties>
        <environment>development</environment>
        <wicket.configuration>development</wicket.configuration>
        <db.username>lemming</db.username>
        <db.password></db.password>
        <db.url>jdbc:mysql://localhost/lemming</db.url>
        <db.hbm2ddl.auto>update</db.hbm2ddl.auto>
        ...
    </properties>
    ...
</profile>

Database setup

Create database with example password set in pom.xml.

CREATE DATABASE lemming CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
GRANT USAGE ON *.* TO 'lemming'@'localhost' IDENTIFIED BY PASSWORD '*621A4911FB62A456C58A01430B98DE34500A876F';
GRANT ALL PRIVILEGES ON `lemming`.* TO 'lemming'@'localhost';

Installation

There is one local dependency for a Git submodule of diff-match-patch.

cd submodule/diff-match-patch
git checkout pom.xml
mvn clean package deploy
cd ../..

Just execute the following commands in the terminal. Maven downloads all additional dependencies automatically. During first startup some supplied data is written to the database (lemma.json and pos.json). This will take a few minutes to complete. Besides a default user is created.

Username: admin, Password: admin

Development

This command starts an embedded Jetty application server. After startup one can access the app on localhost:8080.

mvn clean compile package jetty:run-war -Denvironment=development

Deployment

During the package phase a WAR file is created. Put it in Jetty’s $JETTY_HOME/webapps directory as root.war.

mvn clean compile package -Denvironment=deployment

License

Lemming is available under the Apache License, Version 2.0.

lemming's People

Contributors

dependabot[bot] avatar mhusar avatar

Stargazers

 avatar

Watchers

 avatar

lemming's Issues

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.