Git Product home page Git Product logo

nob-naacl21's Introduction

Description

This is the supplementary code repo for the paper "Learning Syntax from Naturally-Occurring Bracketings" (NAACL 2021).

Dependencies

The code has been tested with the following dependencies and versions:

python==3.6.7
torch==1.7.1
transformers==4.4.0
numpy==1.19.4
fire==0.1.3

Data

Our pre-processed data are included in the data directory. You can use the command tar xzvf data.tar.gz to decompress.

Training the model

Simply run ./train.sh. You can change the training data source and the loss function through the DATASOURCE and CHART_MODE variables.

Evaluation

Run python evaluate.py. Change model path and test file path as needed.

License

Our code is based on this project and licensed under MIT license. The file attention.py is based on an implemention in AllenNLP(Apache-2.0).

Reference

You can cite our paper if our project is useful to your research:

Tianze Shi, Ozan İrsoy, Igor Malioutov, and Lillian Lee. 2021. Learning Syntax from Naturally-Occurring Bracketings. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics.

nob-naacl21's People

Contributors

tzshi avatar

Stargazers

Andrew Drozdov avatar 爱可可-爱生活 avatar Xiaotao Gu avatar jzhu avatar Zuchao Li avatar Yu Zhang avatar Songlin Yang avatar Bailin avatar Freda Shi avatar

Watchers

 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.