GithubHelp home page GithubHelp logo

iks / annotate.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from szabyg/annotate.js

11.0 5.0 0.0 1.33 MB

Semiautomatic annotation editor for rich html editors.

JavaScript 95.07% CoffeeScript 4.93%

annotate.js's Introduction

Annotate.js (coffeescript)

Introduction

Annotate.js is the frontend widget for entity recognition back-end engines like Stanbol.

Features

  • Text-Enhancement support
  • Spell-checker - like interaction with annotation enhancements
  • Write RDFa into your content
  • Independent of any editor
  • One-line integration
  • Configurable Enhancement types

Options

  • 'vie': VIE instance to use. Default is a simple VIE instance with Stanbol service configured to connect http://dev.iks-project.eu:8080 which is the actual demo stable launcher.
  • 'vieServices': defines which services to use for the annotation. Default ['stanbol']
  • 'autoAnalyze': fire analyze on initialization
  • 'showTooltip': (don't) show a preview tooltip when mouseovering an already annotated word.
  • 'typeFilter': Annotation Type(s) to filter for. Default empty. Example: ["http://dbpedia.org/ontology/Place", "http://dbpedia.org/ontology/Organisation", "http://dbpedia.org/ontology/Person"]
  • 'debug': Shows console messages about what's happening
  • 'ns': map of relevant namespaces. Default is DBpedia and SKOS namespace definitions.
  • 'fallbackLanguage':

Methods

  • 'enable' gets enhancements from backend and visualizes them on the analized dom element.
  • 'disable' hides all the text enhancements that are not accepted by the user.
  • 'acceptAll' goes through all text enhancements and accepts the best candidate automatically.

Events

  • 'success': finished loading annotations
  • 'error': error loading annotations
  • 'select': User selected an annotation
  • 'decline': User declined a suggestion
  • 'remove': User removed a previously selected annotation

Goals

  • Provide Text enhancement directly in your content

  • Provide another open source (MIT license), flexibly usable, easy to integrate tool for (semi-)automatic and manual semantic enhancement.

  • A tool that's fun to integrate

      var stanbolConnector = new StanbolConnector();
      $('#content').annotate({
          connector: stanbolConnector
      });
    

Future features

  • Manual annotation - loosely coupled wysiwyg-editor enhancement?, needs selection-support
  • Connection to VIE - loosely coupled, easy integration
  • Clean up decoupling from the stanbol backend - schema mapping
  • Entity preview using client-side templating
  • Edit relationships

Dependencies

  • jQuery 1.5
  • jQuery UI 1.9m5
  • Backbone.js
  • a wysiwyg-editor with save() (here: hallo editor)
  • VIE, VIE^2 (optional)

Development guide

The widget development is done in CoffeeScript. Use the following command to automatically compile the script in the background whenever it's edited:

$ cake watch

annotate.js's People

Contributors

retog avatar szabyg avatar

Stargazers

Babbitt Huang avatar Patrick avatar Ivan Ricotti avatar Roberto Martin avatar Tobias Kowatsch avatar Martin Knudsen avatar Pavel Arapov avatar Andreas Kuckartz avatar  avatar Daniel Grossfeld avatar Randall Leeds avatar

Watchers

 avatar  avatar Sebastian Germesin avatar James Cloos avatar Ivan Ricotti 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.