├── .gitignore ├── LICENSE ├── README.md ├── data ├── extraction │ └── ace │ │ └── interim │ │ └── ACE05-E │ │ └── hierarchy-split │ │ ├── random_train_test_hierarchy.json │ │ └── train_test_hierarchy.json └── ontology │ ├── ace │ └── raw │ │ ├── event_role_ACE.json │ │ └── event_role_entity_ACE.json │ └── ldc │ └── base_entities │ ├── base_entities.json │ └── base_entities.py ├── docs └── DATA.md ├── environment.yml └── src ├── data ├── __init__.py └── ontology_parse.py ├── models └── __init__.py ├── scripts ├── data │ ├── augment_examples_to_processed_ACE.py │ ├── build_ldc_base_entities.py │ ├── parse_ACE_events.py │ └── process_ACE_dataset.py ├── evaluation │ ├── aggregate-dir-eval.py │ ├── eval-all-ace.sh │ ├── scorer.py │ └── streamlit-viz.py └── model │ ├── batch-exp.sh │ └── openai-model.py ├── tools └── pandoc-toc-sidebar │ ├── Pandoc_README │ ├── README.md │ ├── css │ ├── bootstrap.min.css │ ├── dashboard.css │ └── ie10-viewport-bug-workaround.css │ ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 │ ├── js │ ├── bootstrap.min.js │ ├── ie10-viewport-bug-workaround.js │ └── jquery.min.js │ ├── nav │ ├── outWithTOC.html │ ├── outWithoutTOC.html │ ├── toc-sidebar.html │ └── toc-sidebarL.html └── utils ├── __init__.py ├── eval.py ├── gen_parse.py ├── pronoun_list.txt └── visualize.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/README.md -------------------------------------------------------------------------------- /data/extraction/ace/interim/ACE05-E/hierarchy-split/random_train_test_hierarchy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/data/extraction/ace/interim/ACE05-E/hierarchy-split/random_train_test_hierarchy.json -------------------------------------------------------------------------------- /data/extraction/ace/interim/ACE05-E/hierarchy-split/train_test_hierarchy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/data/extraction/ace/interim/ACE05-E/hierarchy-split/train_test_hierarchy.json -------------------------------------------------------------------------------- /data/ontology/ace/raw/event_role_ACE.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/data/ontology/ace/raw/event_role_ACE.json -------------------------------------------------------------------------------- /data/ontology/ace/raw/event_role_entity_ACE.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/data/ontology/ace/raw/event_role_entity_ACE.json -------------------------------------------------------------------------------- /data/ontology/ldc/base_entities/base_entities.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/data/ontology/ldc/base_entities/base_entities.json -------------------------------------------------------------------------------- /data/ontology/ldc/base_entities/base_entities.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/data/ontology/ldc/base_entities/base_entities.py -------------------------------------------------------------------------------- /docs/DATA.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/docs/DATA.md -------------------------------------------------------------------------------- /environment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/environment.yml -------------------------------------------------------------------------------- /src/data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/data/ontology_parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/data/ontology_parse.py -------------------------------------------------------------------------------- /src/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/models/__init__.py -------------------------------------------------------------------------------- /src/scripts/data/augment_examples_to_processed_ACE.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/scripts/data/augment_examples_to_processed_ACE.py -------------------------------------------------------------------------------- /src/scripts/data/build_ldc_base_entities.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/scripts/data/build_ldc_base_entities.py -------------------------------------------------------------------------------- /src/scripts/data/parse_ACE_events.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/scripts/data/parse_ACE_events.py -------------------------------------------------------------------------------- /src/scripts/data/process_ACE_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/scripts/data/process_ACE_dataset.py -------------------------------------------------------------------------------- /src/scripts/evaluation/aggregate-dir-eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/scripts/evaluation/aggregate-dir-eval.py -------------------------------------------------------------------------------- /src/scripts/evaluation/eval-all-ace.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/scripts/evaluation/eval-all-ace.sh -------------------------------------------------------------------------------- /src/scripts/evaluation/scorer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/scripts/evaluation/scorer.py -------------------------------------------------------------------------------- /src/scripts/evaluation/streamlit-viz.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/scripts/evaluation/streamlit-viz.py -------------------------------------------------------------------------------- /src/scripts/model/batch-exp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/scripts/model/batch-exp.sh -------------------------------------------------------------------------------- /src/scripts/model/openai-model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/scripts/model/openai-model.py -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/Pandoc_README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/Pandoc_README -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/README.md -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/css/bootstrap.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/css/bootstrap.min.css -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/css/dashboard.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/css/dashboard.css -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/css/ie10-viewport-bug-workaround.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/css/ie10-viewport-bug-workaround.css -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/fonts/glyphicons-halflings-regular.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/fonts/glyphicons-halflings-regular.svg -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/js/bootstrap.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/js/bootstrap.min.js -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/js/ie10-viewport-bug-workaround.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/js/ie10-viewport-bug-workaround.js -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/js/jquery.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/js/jquery.min.js -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/nav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/nav -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/outWithTOC.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/outWithTOC.html -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/outWithoutTOC.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/outWithoutTOC.html -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/toc-sidebar.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/toc-sidebar.html -------------------------------------------------------------------------------- /src/tools/pandoc-toc-sidebar/toc-sidebarL.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/tools/pandoc-toc-sidebar/toc-sidebarL.html -------------------------------------------------------------------------------- /src/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/utils/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/utils/eval.py -------------------------------------------------------------------------------- /src/utils/gen_parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/utils/gen_parse.py -------------------------------------------------------------------------------- /src/utils/pronoun_list.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/utils/pronoun_list.txt -------------------------------------------------------------------------------- /src/utils/visualize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xingyaoww/code4struct/HEAD/src/utils/visualize.py --------------------------------------------------------------------------------