GithubHelp home page GithubHelp logo

srl-annotator's Introduction

Guide

  • open 'interface.ipynb' using jupyter notebook

  • you can modify line 'dm = db.DataManager('default','./to_annotate/dev2.txt')'. The first parameter is the name of

    project, the second is the path of file in which sentences are separated by '\n'

  • execute code in the cell(ALT+ENTER) to start

  • The format of output records (json list): {'sentid': sent_id, 'srl': [{'pred': 0, 'args':{'arg0': [], 'arg1': []}}, {'pred': 1, ...}, {'pred': 2, ...}, ...], 'sent': sentence}

用法说明:

  • Pred submit 每标注完一个pred后点击,自动保存标注记录

  • Sentence finish 标注完一个句子后点击,并直接跳转到下一个句子

  • Output result to json 输出到外部文件,并统计pred总数

  • prev 查看前一个句子

  • next 查看后一个已标注句子,无法查看未标注句子

  • jump to 跳转到第n个句子,0<= n <= 当前待标记句子index(已标记句子总数);若n>当前待标记句子index,跳转到待标记句子

  • 修改: 若某pred标记错误,想修改该pred的标注信息,直接重新标注一遍该pred并pred submit以及sentence finish即可完成

  • 删除:将pred的arg0标记为-100,即可删除该pred所有arg

如果发现有多条未标记句子,属于正常现象,因为前期数据存储结构的设计问题,导致之前标记的有些数据不是按顺序出现,并不影响最后的标注效果。 这种情况也可以通过一直pred submit,完成句子标记后不点sentence finish,直接next到下一条句子即可解决。该bug后续将会解决。

srl-annotator's People

Contributors

hahahawu avatar talkingwallace avatar

Stargazers

 avatar

Watchers

 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.