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 - Yan-Yang-bot/DeepReinforcementLearning-UCCAParser: A Deep Reinforcement Learning Parser for UCCA (Universal Conceptual Cognitive Annotation).

BranchesTags
Open more actions menu

Latest commit

 

History

101 Commits
101 Commits

Folders and files

NameName
Last commit message
Last commit date
data/raw
data/raw
 
 
drl_ucca
drl_ucca
 
 
papers
papers
 
 
policy_model
policy_model
 
 
tests
tests
 
 
tupa
tupa
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
passage2oracles.py
passage2oracles.py
 
 
policyInitializer.py
policyInitializer.py
 
 
policyTester.py
policyTester.py
 
 
policyTrainer.py
policyTrainer.py
 
 
requirement.txt
requirement.txt
 
 
rewardNN.py
rewardNN.py
 
 
rwdFuncTrainData_smal_sample_set.json
rwdFuncTrainData_smal_sample_set.json
 
 
setup.py
setup.py
 
 

Repository files navigation

DRL_UCCA

A Deep Reinforcement Learning Parser for UCCA, course final project, COSC-689

Preparations

  1. Run pip install -r requirement.txt.

  2. Run python setup.py install.

  3. Check README instructions on data directory page.

Test the result

You can test the result of our ready trained model directly, or you can first complete all steps following this one to get your own trained model.

Use the name of any xml file under data/raw/test-xml directory (including the path) to run:

python policyTester.py <filename>

Train the reward function

Use the following to produce reward function training data:

python passage2oracles.py

It will produce and store a json binary file. This will take a long time, and you can omit this step and test the rest of the code using rwdFuncTrainData_smal_sample_set.json, a small sample of the training data.

Train the reward function:

python rewardNN.py

This will store some files containing the final state of the model at the end of the running.

The Reinforcement Learning part

The environment is set in drl_ucca folder, with the trained and stored reward function model plugged in. The Reinforcement Learning part, policyTrainer.py, will use this environment as a black box. Use:

python policyInitializer.py # This is to initialize the weights of our trainable parameters better than random
python policyTrainer.py # The silence mode
python policyTrainer.py -e # This will output all oracles predicted

Reference

Used code from https://github.com/danielhers/tupa.

About

A Deep Reinforcement Learning Parser for UCCA (Universal Conceptual Cognitive Annotation).

Topics

deep-reinforcement-learningnlpucca

Resources

Readme
GPL-2.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

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.