veronica320 commited on
Commit
805872b
·
1 Parent(s): 55e595a

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +51 -0
README.md ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TE-for-Event-Extraction
2
+
3
+ ## Model description
4
+
5
+ This is a TE model as part of the event extraction system in the ACL2021 paper: [Zero-shot Event Extraction via Transfer Learning: Challenges and Insights](https://aclanthology.org/2021.acl-short.42/). The pretrained architecture is [roberta-large](https://huggingface.co/roberta-large) and the fine-tuning data is [MNLI](https://cims.nyu.edu/~sbowman/multinli/).
6
+
7
+ The label mapping is:
8
+ ```
9
+ LABEL_0: Contradiction
10
+ LABEL_1: Neutral
11
+ LABEL_2: Entailment
12
+ ```
13
+
14
+ ## Demo
15
+
16
+ To see how the model works, type a sentence and a hypothesis separated by "\<\/s\>\<\/s\>" in the right-hand-side textbox under "Hosted inference API".
17
+
18
+ Example:
19
+ - Input:
20
+ ```
21
+ A car bomb exploded Thursday in a crowded outdoor market in the heart of Jerusalem. </s></s> This text is about an attack.
22
+ ```
23
+ - Output:
24
+ ```
25
+ LABEL_2 (Entailment)
26
+ ```
27
+
28
+ ## Usage
29
+ - To use the TE model independently, follow the [huggingface documentation on AutoModelForQuestionAnswering](https://huggingface.co/transformers/task_summary.html#sequence-classification).
30
+ - To use it as part of the event extraction system, please check out [our Github repo](https://github.com/veronica320/Zeroshot-Event-Extraction).
31
+
32
+
33
+ ### BibTeX entry and citation info
34
+ ```
35
+ @inproceedings{lyu-etal-2021-zero,
36
+ title = "Zero-shot Event Extraction via Transfer Learning: {C}hallenges and Insights",
37
+ author = "Lyu, Qing and
38
+ Zhang, Hongming and
39
+ Sulem, Elior and
40
+ Roth, Dan",
41
+ booktitle = "Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers)",
42
+ month = aug,
43
+ year = "2021",
44
+ address = "Online",
45
+ publisher = "Association for Computational Linguistics",
46
+ url = "https://aclanthology.org/2021.acl-short.42",
47
+ doi = "10.18653/v1/2021.acl-short.42",
48
+ pages = "322--332",
49
+ abstract = "Event extraction has long been a challenging task, addressed mostly with supervised methods that require expensive annotation and are not extensible to new event ontologies. In this work, we explore the possibility of zero-shot event extraction by formulating it as a set of Textual Entailment (TE) and/or Question Answering (QA) queries (e.g. {``}A city was attacked{''} entails {``}There is an attack{''}), exploiting pretrained TE/QA models for direct transfer. On ACE-2005 and ERE, our system achieves acceptable results, yet there is still a large gap from supervised approaches, showing that current QA and TE technologies fail in transferring to a different domain. To investigate the reasons behind the gap, we analyze the remaining key challenges, their respective impact, and possible improvement directions.",
50
+ }
51
+ ```