Giter Club home page Giter Club logo

codi-crac2022_scripts's Introduction

CODI-CRAC2022_scripts

Scripts to convert the Universal Anaphora format to jsonlines

  1. helper.py contains scripts to convert UA to jsonlines format

  2. preprocess.py contains scripts to parse annotation structure from UA documents

Commands for conversion

import helper

Identity Anaphora

  1. UA to jsonlines helper.convert_coref_ua_to_json(UA_PATH, JSON_PATH, MODEL="coref-hoi", SEGMENT_SIZE=512, TOKENIZER_NAME="bert-base-cased")

  2. jsonlines to UA helper.convert_coref_json_to_ua(JSON_PATH, UA_PATH, MODEL="coref-hoi")

NOTE: Currently, these scripts only support conversion to and from the format used by models that use bert/spanbert embeddings. E.g. coref-hoi.

Bridging

  1. UA to jsonlines helper.convert_bridg_ua_to_json(UA_PATH, JSON_PATH, MODEL="dali_bridging")

  2. jsonlines to UA helper.convert_bridg_json_to_ua(JSON_PATH, UA_PATH, MODEL="dali-bridging")

NOTE: Currently, these scripts only support conversion to and from the format used by dali-bridging.

Discourse Deixis

  1. Previous Utterance Baseline (for "this", "that") helper.discourse_deixis_baseline(IN_UA_PATH, PRED_UA_PATH, MODEL="previous-utterance")

Baseline Performance

Model AMI LIGHT Persuasion Swbd ARRAU (Trains91)
Identity Anaphora (CoNLL Avg. F1) coref-hoi TODO TODO TODO TODO TODO
Bridging (Entity F1) dali-bridging TODO TODO TODO TODO TODO
Discourse Deixis (CoNLL Avg. F1) prev-utterance TODO TODO TODO TODO TODO

codi-crac2022_scripts's People

Contributors

sopankhosla avatar nicholaslea avatar juntaoy 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.