Skip to content

Latest commit

 

History

History
executable file
·
76 lines (55 loc) · 3.11 KB

README.md

File metadata and controls

executable file
·
76 lines (55 loc) · 3.11 KB

WordTies

WordTies, is a browser application to view the conceptual network of a Wordnet and to browse its relational and multilingual links. This is a fork of Anders Johannsen's AndreOrd. AndreOrd project has been renamed and deployed as WordTies for the METANORD project.

See the description on the CLARIN ERIC Portal - Showcases > Wordties page.

New Features

  • D3.js visualation/graphs (migrated from Protovis)
  • Multilingual linking
  • Improved Alignment importing via Python script
  • Alignment search by CorePWN or Multilingual alignments
  • Danish and English (locale) translation
  • Build/import scripts

Requirements

PostgreSQL

See PostgreSQL Installation Guides

Rails (3.2.x)

See Installing Rails

Python

Node.js

See Node.js Wiki - Installation

Installation

It is recommended to install on a standard Linux distribution.

Setup PostgreSQL database

  • Create user createuser -U postgres -P -S andreord
  • Create database createdb -U postgres -O andreord andreord_db
  • Import schema psql -U andreord -d andreod_db < db/development.sql

Database & locale configuration

  • Edit 'config/database.yml' and set database and username
  • Edit 'config/application.yml' and set desired locale config.i18n.default_locale = :en

Import Wordnet data

Via Rails console in your working directory ($RAILS_APP) $ rails console:

d = Import::DanNetImporter

d.import

Import Alignments (Optional)

For cmd-line usage help type: python lib/import/princeton_links.py --help

  • Import English CorePWN links (see example) python lib/import/princeton_links.py -f pwn_data/DanNet/eq_core.tsv -n 1000 -v
  • Import multilingual alignments (see example) python lib/import/princeton_links.py -f pwn_data/FinWN/FinnDannValidation_final_import_ext_syn_2.tsv -s fiwn20 -t wordnet30 -l fi -u /wordties-fiwn -n 1000 -m 1 -v

Deployment

Standalone

  • WEBrick Web Server
    • In your working directory ($RAILS_APP), running the app locally on your machine with rails server will start the app at: localhost:3000

Apache /w Phusion Passenger

Demonstration

See the current live demonstration on wordties.cst.dk.