Git Product home page Git Product logo

aflt_project's Introduction

Exploring the SoPa Model

A course project for Advanced Formal Language Theory class, Spring 2022 at ETH Zurich.

The project aims to explore the SoPa model, based on "SoPa: Bridging CNNs, RNNs, and Weighted Finite-State Machines" by Roy Schwartz, Sam Thomson and Noah A. Smith, ACL 2018, which is characterized by the patterns matching mechanism.

Dataset

As in the SoPa experiment, 100 movie reviews from SST dataset with binary labels are also used in our ablation study.

Approaches

We executed the study on three levels, including automaton level, automata level, as well as on the SoPa as a whole. For reproducility, please refer to README_ reproducible_code.md file.

Findings

We conclude valuable insights regarding how parameters affect the model performance through multiple experiments.

  • First, increasing patterns’ width improves model performance while the length has little effect. Second, in case exclud- ing ε-transitions, the bigger max-steps-forward is, the better performance is yielded.

  • Also, there is a downward trend in test accuracy as we increase the value of shared_sl because it decreases the complexity of the model.

  • Third, the log-space max-times semiring achieves the best accuracy.

  • Finally, training the patterns on multiple documents improves the gradient com- putation and hence the convergence rate.

Contact

For questions, comments or feedback, please email [email protected]

Code | Report

aflt_project's People

Contributors

sammthomson avatar willandersson1 avatar jyanqa avatar antares01 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.