GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - GavinPHR/Spectral-Parser: High-Performance Implementation of Spectral Learning of Latent-Variable PCFGs (Cohen et al., 2013)

BranchesTags
Open more actions menu

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
spectral_parser
spectral_parser
 
 
.gitignore
.gitignore
 
 
EVALB.tgz
EVALB.tgz
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
dissertation.pdf
dissertation.pdf
 
 
logo.png
logo.png
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

A high-performance implementation of Spectral Learning of Latent-Variable PCFGs (Cohen et al., 2013). This work was done for my undergraduate dissertation at the University of Edinburgh, supervised by Dr. Shay Cohen.

The codebase is only tersely commented. If you want to know more about the algorithm, how it is implemented, and its performance, you should consult my dissertation dissertation.pdf.

Pre-requisites

Install the requirements:

pip3 install -r requirements.txt

Global Configuration File

spectral_parser/config.py contains all the configurable variables, including file paths, output directory, hyperparameters etc. You need to configure this file before training/testing.

Training and Testing

Please run the commands from the spectral_parser/ directory.

To train:

python3 train.py

The parameters will be saved to the output directory.

To parse a gold file:

python3 test.py

The candidate parse file will be saved to the output direcoty and be called parse.txt. Note that the progress bar is not indicative of actual progress because the file is parsed in chunks with multi-processing.

Data

The sanitized PTB WSJ datasets (taken from Berkeley Neural Parser) are at spectral_parser/data/.

Cite this Work

@Misc{Spectral-Parser,
    author = {Haoran Peng},
    title = {Spectral Learning of Latent-Variable PCFGs: High-Performance Implementation},
    year = {2021},
    url = "https://github.com/GavinPHR/Spectral-Parser"
}

About

High-Performance Implementation of Spectral Learning of Latent-Variable PCFGs (Cohen et al., 2013)

Topics

latent-variable-modelslatent-variablespcfgspectral-learningsyntactic-parsersyntactic-parsing

Resources

Readme
MIT license
Activity

Stars

9 stars

Watchers

1 watching

Forks

1 fork
Report repository

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.