Code Monkey home page Code Monkey logo

jukainlp-web's People

Contributors

hshindo avatar mickey-ichi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sphinx-software

jukainlp-web's Issues

Implement UI from scratch

Currently, the system uses 'brat' toolkit (http://brat.nlplab.org/) for visualization, but I want to re-implement the same functions by React from scratch to introduce new functions (visualization of translation, etc.) for the system.

Notify a user of the state of websocket connection

It is convenient to notify a user of the state of websocket connection.
For example, if the websocket connection succeeds, show a prompt or show a sign at the bottom of window.
Similarly, when the connection failed, show a prompt or a sign.

Decide JSON Format

My idea is as follows.

{
    "sentence": [
        [1,13], [15,24],
    ],
    "pos": [
        [1,1,"NNP"], [3,6,"VBP"], [8,8,"DT"], [10,13,"NN"],
        [15,16,"NNP"], [18,19,"VBP"], [21,24,"JJ"],
    ],
    "entity": [
        [1,6,"PERSON"], [15,19,"LOCATION"],
    ],
    "trans-ja": [
        "私はペンを持っています。",
        "彼は親切です。"
    ],
    "trans_en": [
        "I have a pen.",
        "He is kind",
    ],
    "trans_cn": [
        "我有一支笔。",
        "他人很好",
    ],
}

Each span indicates the start and end range indexes.
I prefer this style because it is compact, extensible, and easy to create for server-side.

Refactor jukainlp

  • Remove everything dependent with brat (public/javascripts/websocket-func.js, and more...?)
  • Reconstruct folder organization if necessary
  • Remove unnecessary files

Note that julia-server is necessary for server-side.

Update JSON parsing

The server-side api (ws://jukainlp.hshindo.com/) has been changed.
See README for details.

The client-side JSON parsing should be updated according to the new format.

A list of labels and colors are put on julia-server/pos.conf and entity.conf.
It is better to make a client-side read this kind of config files for visualization.

If something wrong with server-side, please let me know.

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.