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 - xingyaoww/code4struct: Official repo for ACL 2023 paper Code4Struct: Code Generation for Few-Shot Structured Prediction from Natural Language.

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
docs
docs
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
environment.yml
environment.yml
 
 

Repository files navigation

Code4Struct: Code Generation for Few-Shot Structured Prediction from Natural Language

Official repo for paper Code4Struct: Code Generation for Few-Shot Structured Prediction from Natural Language.

Environment Setup

conda env create -f environment.yml
conda activate code4struct

Data

Please refer to docs/DATA.md for detailed instructions.

Inference

You will need to obtain your API key from here.

export OPENAI_API_KEY="YOUR_API_KEY_HERE"
./src/scripts/model/batch-exp.sh

Evaluate generated results

./src/scripts/evaluation/eval-all-ace.sh ACE05-E/codex

Evaluation result for each experiment run will be saved to the corresponding output_dir (e.g., data/extraction/ace/inferred/ACE05-E/codex/v6.4-baseline+trigger+hierarchy-50shot-n1-t0.0).

Visualize Evaluation Result

You can also visualize evaluation result using localhost:8000 by running the following:

streamlit run --server.port 8000 src/scripts/evaluation/streamlit-viz.py

Citation

@article{wang2022code4struct,
  title={Code4Struct: Code Generation for Few-Shot Structured Prediction from Natural Language},
  author={Wang, Xingyao and Li, Sha and Ji, Heng},
  journal={arXiv preprint arXiv:2210.12810},
  year={2022}
}

About

Official repo for ACL 2023 paper Code4Struct: Code Generation for Few-Shot Structured Prediction from Natural Language.

Resources

Readme
GPL-3.0 license
Activity

Stars

44 stars

Watchers

2 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — 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.