Code for "Generating Disentangled Arguments with Prompts: a Simple Event Extraction Framework that Works"

Related tags

Text Data & NLP GDAP
Overview

GDAP

The code of paper "Code for "Generating Disentangled Arguments with Prompts: a Simple Event Extraction Framework that Works""

Event Datasets Preprocessing

We use code and environments [dygiepp] for data preprocessing. Thanks to them!

Quick Start

Data Format

  • text2et: event type detection
  • ettext2tri: trigger extraction
  • etrttext2role: argument extraction
data/text2target/dyiepp_ace1005_ettext2tri_subtype
├── event.schema
├── test.json
├── train.json
└── val.json
python -m data_convert.convert_text_to_target # data/raw_data -> data/text2target
python convert_dyiepp_to_sentence.py data/raw_data/dyiepp_ace2005 # doc -> sentence 

please wait a minute

code main reference

You might also like...
Code for the paper "Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer"

T5: Text-To-Text Transfer Transformer The t5 library serves primarily as code for reproducing the experiments in Exploring the Limits of Transfer Lear

Easily train your own text-generating neural network of any size and complexity on any text dataset with a few lines of code.
Easily train your own text-generating neural network of any size and complexity on any text dataset with a few lines of code.

textgenrnn Easily train your own text-generating neural network of any size and complexity on any text dataset with a few lines of code, or quickly tr

Code for the paper "Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer"

T5: Text-To-Text Transfer Transformer The t5 library serves primarily as code for reproducing the experiments in Exploring the Limits of Transfer Lear

Official PyTorch code for ClipBERT, an efficient framework for end-to-end learning on image-text and video-text tasks

Official PyTorch code for ClipBERT, an efficient framework for end-to-end learning on image-text and video-text tasks. It takes raw videos/images + text as inputs, and outputs task predictions. ClipBERT is designed based on 2D CNNs and transformers, and uses a sparse sampling strategy to enable efficient end-to-end video-and-language learning.

Collection of scripts to pinpoint obfuscated code

Obfuscation Detection (v1.0) Author: Tim Blazytko Automatically detect control-flow flattening and other state machines Description: Scripts and binar

Code associated with the "Data Augmentation using Pre-trained Transformer Models" paper

Data Augmentation using Pre-trained Transformer Models Code associated with the Data Augmentation using Pre-trained Transformer Models paper Code cont

Official code for
Official code for "Parser-Free Virtual Try-on via Distilling Appearance Flows", CVPR 2021

Parser-Free Virtual Try-on via Distilling Appearance Flows, CVPR 2021 Official code for CVPR 2021 paper 'Parser-Free Virtual Try-on via Distilling App

This is the source code of RPG (Reward-Randomized Policy Gradient)
This is the source code of RPG (Reward-Randomized Policy Gradient)

RPG (Reward-Randomized Policy Gradient) Zhenggang Tang*, Chao Yu*, Boyuan Chen, Huazhe Xu, Xiaolong Wang, Fei Fang, Simon Shaolei Du, Yu Wang, Yi Wu (

Official code of our work, Unified Pre-training for Program Understanding and Generation [NAACL 2021].

PLBART Code pre-release of our work, Unified Pre-training for Program Understanding and Generation accepted at NAACL 2021. Note. A detailed documentat

Comments
  • Event type extraction inference

    Event type extraction inference

    I have finished the training of Entity type extraction task, and I have a file with raw text and no event label, I wondered how to get the entity type inference?

    opened by AndDoIt 4
  • 关于约束解码的一个问题

    关于约束解码的一个问题

    作者您好,关于约束解码我有一个问题,请问constraint_decoder为什么只在下面代码条件下使用,希望作者能够解答我的疑问,谢谢!

    https://github.com/RingBDStack/GDAP/blob/f6acafafd473cd1ccb57d79aaf95be14de7646fd/seq2seq/constrained_seq2seq.py#L145-L152

    opened by hlee-top 2
  • Wrong arguments for the ET task.

    Wrong arguments for the ET task.

    https://github.com/RingBDStack/GDAP/blob/main/README.md#training The script to train the et model is wrong. The argument format should be et not tri. The tri would gave poor performance.

    opened by littlefive5 2
  • [Clean code] 缺少函数TreePredictParser, SpanPredictParser, RTRolePredictParser

    [Clean code] 缺少函数TreePredictParser, SpanPredictParser, RTRolePredictParser

    你好,我在运行run_tri_predict.bash的时候报错,检查之后发现evaluation.py这个文件的第9行 from extraction.predict_parser.target_predict_parser import TreePredictParser, SpanPredictParser, RTRolePredictParser, RolePredictParser, TriPredictParser 导入时提示缺少函数TreePredictParser, SpanPredictParser, RTRolePredictParser 1635586363(1) 我查找之后发现,在target_predict_parser.py这个文件中并没有这几个函数

    opened by waow123 2
Owner
null
Code to use Augmented Shapiro Wilks Stopping, as well as code for the paper "Statistically Signifigant Stopping of Neural Network Training"

This codebase is being actively maintained, please create and issue if you have issues using it Basics All data files are included under losses and ea

Justin Terry 32 Nov 9, 2021
A python script to prefab your scripts/text files, and re create them with ease and not have to open your browser to copy code or write code yourself

Scriptfab - What is it? A python script to prefab your scripts/text files, and re create them with ease and not have to open your browser to copy code

DevNugget 3 Jul 28, 2021
Code for the Python code smells video on the ArjanCodes channel.

7 Python code smells This repository contains the code for the Python code smells video on the ArjanCodes channel (watch the video here). The example

null 55 Dec 29, 2022
Code for CodeT5: a new code-aware pre-trained encoder-decoder model.

CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation This is the official PyTorch implementation

Salesforce 564 Jan 8, 2023
Galois is an auto code completer for code editors (or any text editor) based on OpenAI GPT-2.

Galois is an auto code completer for code editors (or any text editor) based on OpenAI GPT-2. It is trained (finetuned) on a curated list of approximately 45K Python (~470MB) files gathered from the Github. Currently, it just works properly on Python but not bad at other languages (thanks to GPT-2's power).

Galois Autocompleter 91 Sep 23, 2022
Code-autocomplete, a code completion plugin for Python

Code AutoComplete code-autocomplete, a code completion plugin for Python.

xuming 13 Jan 7, 2023
Code of paper: A Recurrent Vision-and-Language BERT for Navigation

Recurrent VLN-BERT Code of the Recurrent-VLN-BERT paper: A Recurrent Vision-and-Language BERT for Navigation Yicong Hong, Qi Wu, Yuankai Qi, Cristian

YicongHong 109 Dec 21, 2022
Easy, fast, effective, and automatic g-code compression!

Getting to the meat of g-code. Easy, fast, effective, and automatic g-code compression! MeatPack nearly doubles the effective data rate of a standard

Scott Mudge 97 Nov 21, 2022
Easily train your own text-generating neural network of any size and complexity on any text dataset with a few lines of code.

textgenrnn Easily train your own text-generating neural network of any size and complexity on any text dataset with a few lines of code, or quickly tr

Max Woolf 4.8k Dec 30, 2022