Code Monkey home page Code Monkey logo

faparser's Introduction

SOTA

Performance: Highest F1 Score/ UAS(LAS)

Speed: Fastest

This repo's target

Faster and Accurate Syntactic Parsing both on Constituency and Dependency.

Naive Motivation

Conversion: Dependency Tree could be converted from constituency by utilizing head rule.
Span: where the head rule is used.

Implementation

Self-Attentive Con Parser, start from scratch with:

  • Phrase Structure Tree Load/Conversion/Expr, Oracle Design
  • Pretrain Model Loaded: ELMO
  • Multi-Head Self-Attentive Encoder
  • Max-Span Tree Inference
  • Training

Biaffine Dep Parser, start from scratch with:

  • Dependency Relation Tree Load/Conversion/Expr, Oracle Design
  • Pretrain Word Embedding Loaded
  • Bi-LSTM Encoder
  • MST Inference with Attention Module
  • Training

FAParser's new features:

  • Enhanced Pretrain Module of Word Representation
  • Enhanced MST Inference with Multi-Head Attention Module
  • Conditional modeling on interaction between information flows of phrase structure and dependency relation

Similar to the design of fairseq, we organize our FAParser as:

FAParser
│   README.md
│   train.py
│   inference.py
│   preprocess.py
│
└───evaluation: for validation or testing
│   │   F1
│   │   Accuracy
│   │       │ UAS
│   │       └ LAS
│   └  ...
│
└───data: 
│   │   tree loaded or structure utils
│   │   
│   └ ...
│   
└───criterion: 
│   │   cross entropy. etc
│   │   
│   └ ...
│
└───models: 
│   │   three parser
│   │   
│   └ ...
│
└───modules: 
│   │   series of module used in models
│   │   
│   └ ...
│
└───optim: for optimizer
│   │   lr_shedule
│   │   adam...
│   └ ...
│
└───tasks: for loss computing
│   │   Constituency Parser
│   │   Dependenecy Parser
│   │   FAParser
│   └ ...
│
└───utlis:
│   │   command/preprocess/meters...
│   │   
│   └ ...

criterion,modules,optim and data could be initialized with the fairseq's sub-modules. we just need build some task-specific sub-packages.

faparser's People

Contributors

baoy-nlp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.