Giter Club home page Giter Club logo

kbnlresearch / dac-web Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 0.0 6.88 MB

Web interface to manually annotate named entity mentions in newspaper articles with the correct DBpedia link(s), if any. Produces labeled data sets for training and evaluating the DAC Entity Linker.

Home Page: https://www.kb.nl/en/organisation/research-expertise/enrichment-of-digital-content

License: GNU General Public License v3.0

Python 59.48% Smarty 26.95% CSS 4.49% JavaScript 9.08%
entity-linking named-entities dutch newspapers news

dac-web's Introduction

DAC Web Interface

Web interface to manually annotate named entity mentions in newspaper articles with the correct DBpedia link(s), if any. Produces labeled data sets for training and evaluating the DAC Entity Linker.

Usage

To start the web applicaton, run:

./web.py

This will start a Bottle web server listening on http://localhost:5001. To work on a specific data set, add the set name, e.g. tve, to the URL:

http://localhost:5001/tve

The training application will automatically show the first example from the requested set that hasn't been labeled yet.

In order to request a specific example from a data set, use either id (unique identifier) or index (index number within the set) as a parameter:

http://localhost:5001/tve?index=1

Selecting one or more candidates from the user interface as the correct links and navigating to the next example using the menu in the upper right corner will save the selection.

Editing a set

Adding a new article to the set:

http://localhost:5001/tve/edit?action=add&url=http://resolver.kb.nl/resolve?urn=ddd:010734861:mpeg21:a0002:ocr

Adding a specific named entity to the set:

http://localhost:5001/tve/edit?action=add&url=http://resolver.kb.nl/resolve?urn=ddd:010734861:mpeg21:a0002:ocr&ne=Einstein

Removing an article from the set:

http://localhost:5001/tve/edit?action=delete&url=http://resolver.kb.nl/resolve?urn=ddd:010734861:mpeg21:a0002:ocr

Adding a new set

All datasets are stored as an art.json file in a folder with the dataset name within the users folder. To create a new, empty dataset named foo:

$ mkdir users/foo
$ echo '{"instances": []}' > users/foo/art.json

The art.json file has to be writeable by the web application and is expected to contain at least an empty list of instances.

dac-web's People

Contributors

jlonij avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.