<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Story Fragment Stitching: The Case of the Story of Moses</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>01/07/2021</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10220128</idno>
					<idno type="doi"></idno>
					<title level='j'>1st Workshop on Artificial Intelligence for Narratives (AI4N 2020)</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Mohammed Aldawsari</author><author>Ehsaneddin Asgari</author><author>Mark A. Finlayson</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[We introduce the task ofstory fragment stitching,which is the process of automatically aligning andmerging event sequences of partial tellings of astory (i.e.,story fragments). We assume that eachfragment contains at least one event from the storyof interest, and that every fragment shares at leastone event with another fragment.  We propose agraph-based unsupervised approach to solving thisproblem in which events mentions are representedas nodes in the graph, and the graph is compressedusing a variant of model merging to combine nodes.The goal is for each node in the final graph to con-tain only coreferent event mentions. To find coref-erent events, we use BERT contextualized embed-ding in conjunction with atf-idfvector representa-tion. Constraints on the merge compression pre-serve the overall timeline of the story, and the finalgraph represents the full story timeline. We evalu-ate our approach using a new annotated corpus ofthe partial tellings of the story of Moses found inthe Quran, which we release for public use. Ourapproach achieves a performance of 0.63F1score]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>the societies in which we live. One interesting and challenging task which has not yet been solved is what we call here story fragment stitching. In this task we seek to merge partial tellings of a story-where each partial telling contains part of the sequence of events of a story, perhaps from different points of view, and may be found across different sources or media-into one coherent narrative which may then be used as the basis for further processing. Conceptually, this task is similar to both cross-document event coreference (CDEC) and event ordering in NLP. However, story fragment stitching, as we define it, presents a more challenging problem for at least two reasons. First, and unlike event coreference, the overall timeline of the story's events need to be preserved across all fragments. Second, and unlike event ordering which targets only events related to a single entity, this work considers all events across all fragments.</p><p>For the purposes of this work, we define a story as a sequence of events effected by characters and presented in a discourse. This is in accord with fairly standard definitions: for example, <ref type="bibr">[Forster, 1927]</ref> said that "A story is a narrative of events arranged in their time sequence." As a simplifying assumption, we additionally assume that the events in the story are presented in the chronological order in which the events of a story take place (i.e., the fabula time order) <ref type="bibr">[Bordwell, 2007]</ref>. We leave the problem of extracting the chronological ordering of events within a text for other work.</p><p>We present an approach to story fragment stitching problem inspired by <ref type="bibr">[Finlayson, 2016]</ref> which in turn based on model merging, a regular grammar learning algorithm <ref type="bibr">[Stolcke and Omohundro, 1993]</ref>, using similarity measures based on BERT contextualized embedding and tf-idf weights of events and their arguments. We apply this approach to a concrete example of this problem, namely, the story of the prophet Moses as found in the Quran, the Islamic holy book. The story of Moses is not found in one single telling in the Quran; rather, it is found in eight fragments spread across six different chapters (the chapters of the Quran are called suras), with the story comprising 7,931 total words across 283 verses of anywhere from 2 to 94 words in length. In this work we demonstrated our approach using the seven fragments with coherent timelines.</p><p>The story of Moses is especially useful for this work because it has been subject to detailed event analysis, in particular, <ref type="bibr">[Ghanbari and Ghanbari, 2008</ref>] identified a canoni-2 University of California, Berkeley asgari@berkeley.edu, {malda021,markaf}@fiu.edu</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Abstract</head><p>We introduce the task of story fragment stitching, which is the process of automatically aligning and merging event sequences of partial tellings of a story (i.e., story fragments). We assume that each fragment contains at least one event from the story of interest, and that every fragment shares at least one event with another fragment. We propose a graph-based unsupervised approach to solving this problem in which events mentions are represented as nodes in the graph, and the graph is compressed using a variant of model merging to combine nodes. The goal is for each node in the final graph to contain only coreferent event mentions. To find coreferent events, we use BERT contextualized embedding in conjunction with a tf-idf vector representation. Constraints on the merge compression preserve the overall timeline of the story, and the final graph represents the full story timeline. We evaluate our approach using a new annotated corpus of the partial tellings of the story of Moses found in the Quran, which we release for public use. Our approach achieves a performance of 0.63</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Understanding stories is a long-held goal of both artificial intelligence and natural language processing <ref type="bibr">[Charniak, 1972;</ref><ref type="bibr">Schank and Abelson, 1977;</ref><ref type="bibr">Wilensky, 1978;</ref><ref type="bibr">Dyer, 1983;</ref><ref type="bibr">Riloff, 1999;</ref><ref type="bibr">Frank et al., 2003;</ref><ref type="bibr">Mueller, 2007;</ref><ref type="bibr">Winston, 2014]</ref>. Stories are found throughout our daily lives, e.g., in news, entertainment, education, religion, and many other domains. Automatically understanding stories implicates many interesting natural language processing tasks, and much information can be extracted from stories, including concrete facts about specific events, people, and things, commonsense knowledge about the world, and cultural knowledge about the societies in which we live. One interesting and challenging task which has not yet been solved is what we call here story fragment stitching. In this task we seek to merge partial tellings of a story-where each partial telling contains part of the sequence of events of a story, perhaps from different points of view, and may be found across different sources or media-into one coherent narrative which may then be used as the basis for further processing. Conceptually, this task is similar to both cross-document event coreference (CDEC) and event ordering in NLP. However, story fragment stitching, as we define it, presents a more challenging problem for at least two reasons. First, and unlike event coreference, the overall timeline of the story's events need to be preserved across all fragments. Second, and unlike event ordering which targets only events related to a single entity, this work considers all events across all fragments.</p><p>For the purposes of this work, we define a story as a sequence of events effected by characters and presented in a discourse. This is in accord with fairly standard definitions: for example, <ref type="bibr">[Forster, 1927]</ref> said that "A story is a narrative of events arranged in their time sequence." As a simplifying assumption, we additionally assume that the events in the story are presented in the chronological order in which the events of a story take place (i.e., the fabula time order) <ref type="bibr">[Bordwell, 2007]</ref>. We leave the problem of extracting the chronological ordering of events within a text for other work.</p><p>We present an approach to story fragment stitching problem inspired by <ref type="bibr">[Finlayson, 2016]</ref> which in turn based on model merging, a regular grammar learning algorithm <ref type="bibr">[Stolcke and Omohundro, 1993]</ref>, using similarity measures based on BERT contextualized embedding and tf-idf weights of events and their arguments. We apply this approach to a concrete example of this problem, namely, the story of the prophet Moses as found in the Quran, the Islamic holy book. The story of Moses is not found in one single telling in the Quran; rather, it is found in eight fragments spread across six different chapters (the chapters of the Quran are called suras), with the story comprising 7,931 total words across 283 verses cal timeline of events for the story. Further, the Quran verse structure provides a natural unit of analysis, where nearly every verse is related to only a single event in the story timeline. We manually extracted 573 event mentions from 273 verses (omitting 11, as described later) and annotated all events corresponding to the Ghanbari's event categories. We used this data to test our approach, resulting in a proof of concept of story fragment stitching. We release both our code and data to enable reimplementations 1 .</p><p>We begin by discussing prior work on cross-document event coreference, event ordering, as well as the description and analysis of story structure ( &#167;2). Then we introduce our method, including the task definition ( &#167;3.1) and specific aspects of our approach ( &#167;3.2- &#167;3.3). We then describe our evaluation, including construction of the gold standard for the Moses story in the Quran ( &#167;4.1), the experiment setup ( &#167;4.2), the result of our model ( &#167;4.5), as well as an error analysis ( &#167;5). We conclude with a list of contributions ( &#167;6).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Related Work</head><p>The most closely related problems to story stitching are the problem of cross-document event coreference (CDEC) and cross-document event ordering. In CDEC systems, the goal is to group expressions that refer to the same event across multiple documents. <ref type="bibr">[Bagga and Baldwin, 1999;</ref><ref type="bibr">Lee et al., 2012;</ref><ref type="bibr">Goyal et al., 2013;</ref><ref type="bibr">Saquete and Navarro-Colorado, 2017;</ref><ref type="bibr">Kenyon-Dean et al., 2018;</ref><ref type="bibr">Barhom et al., 2019]</ref>. In event ordering task, which was introduced in SemEval-2015 <ref type="bibr">[Minard et al., 2015]</ref>, the goal is to order events cross-document in which a specific target entity is involved. That is, a system should produce a timeline for a specific target entity and that timeline consists of the ordered list of the events in which that entity participates. Similarly, within document event sequence detection task, which was introduced in TAC KBP 2017 event track <ref type="bibr">[Mitamura et al., 2017]</ref>, aims to identify event sequence (i.e., after links) that occurs in a script <ref type="bibr">[Schank and Abelson, 1977]</ref>.</p><p>Despite this very interesting and useful prior work, these systems are not directly applicable to the task of story fragment stitching as we define it. In particular, CDEC systems ignore the timeline of the story's events (i.e., the overall timeline of the story's events is not guaranteed to be preserved across all fragments), while event ordering systems only order certain events related to a specific target.</p><p>Researchers have explored several ways of assessing similarity between stories <ref type="bibr">[Schank and Abelson, 1975;</ref><ref type="bibr">Roth and Frank, 2012;</ref><ref type="bibr">Finlayson, 2012;</ref><ref type="bibr">Iyyer et al., 2016;</ref><ref type="bibr">Nikolentzos et al., 2017;</ref><ref type="bibr">Chaturvedi et al., 2018]</ref>. These works provided valuable ways to capture similarity between stories. However, the story similarity task is not directly applicable to the task of stitching fragmented stories, where the goal is to order events across multiple stories (fragments), except in the simple baseline sequence alignment approach <ref type="bibr">[Needleman and Wunsch, 1970;</ref><ref type="bibr">Reiter, 2014]</ref>. 1 The code and data are available at <ref type="url">https://doi.org/10.34703/</ref> gzx1-9v95/28GC2M</p><p>3 Approach</p><p>We now discuss the precise definition of the story fragment stitching task ( &#167;3.1) and the details of the two main components of our approach: model formulation ( &#167;3.2), and the graph merge to align fragments events into a full, ordered, end-to-end list of story events ( &#167;3.3).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Task</head><p>We define the goal of story fragment stitching as: align a set of story fragments into a full, ordered, end-to-end list of story events. We assume that the story fragments are ordered lists of events, where the order is that of the fabula, namely the order of events as they happen in the story world. In many stories, the fabula order is different from the discourse order, but we do not consider this case here; we leave the problem of extracting the chronological order of events to other work. We also assume that each fragment shares at least one event with another fragment. The output of the system is an ordered list of nodes, where each node is a collection of event mentions (corefering events) that all describe one particular single event, and these nodes are in the same order as the overall fabula.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Model Formulation</head><p>The first step of the approach is model initialization which is shown Algorithm 1 lines 1-3. Using the function constructLinearBranch, we convert each fragment's list of events into a linear directed graph (linear branch) where each node contains only a single event. Each event is represented by a vector which is a concatenation of the event contextualized embedding from the BERT model and tf-idf weights of the event lemma and its semantic arguments. BERT <ref type="bibr">[Devlin et al., 2018]</ref> is a multi-layer bidirectional transformer trained on plain text for masked word prediction and next sentence prediction tasks, while tf-idf is the standard term weighting approach to reflect how important a word is in a document in comparison to the rest of documents <ref type="bibr">[Salton and McGill, 1986]</ref>. Using the function linkGraphs we link all linear branches to a start and an end node, resulting in one directed graph of all the set of fragments, as shown in Figure <ref type="figure">1</ref>.</p><p>This initial model will be used to generate possible solutions by merging different nodes on the basis of a similarity measure, discussed below. When two nodes A and B are merged, the new node C should contain an average vector of both A and B. In the next section, we introduce the merge approach.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Graph Merge</head><p>The second step of the approach is model merging, shown in Algorithm 1 lines 4-15. We first compute a threshold &#8629; using computeTFIDFAvgSim function, which takes the average of the highest and lowest cosine similarity values between all fragments using tf-idf weights. &#8629; sets the minimum similarity required to merge two nodes; for our data &#8629; was 0.39. Next, using a cosine similarity measure, the computeNodesSim function computes the full set of similarity scores between all pairs of nodes. Then the algorithm starts by searching for The initial model constructed using Moses story fragments. Each node represents an event's vector. Each fragment generates its own linear branch running from the start node to the end node where i in ei:j represents the fragment's number and j represents the event's number.</p><p>the most similar nodes using findMostSim function, lines 6 and 13, and merges the most similar nodes using merge function. Because the fragments are assumed to be already in fabula time order, the pairsIntroduceCycle boolean function disallows merges that would introduce cycles, ignoring (and removing) self-loops (the no-cycles constraint), and thereby preserves the overall order of the events. Note that disallowing cycles also prevents merges of non-neighboring nodes within the same fragment. The new merged node then contains a weighted average vector of the old nodes vectors and nodes similarity are updated using updateNodesSim function. The algorithm continues to merge nodes until the similarity measure drops below &#8629;. Because the final resulting graph is not guaranteed to contain only one path from start to end, by using bestPath function, the path with the maximum merged nodes (based on the number of events) is considered to be the final output of the model. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Experiment</head><p>We evaluate our approach against a gold-standard annotation of Moses' from the Quran. We first describe how we collected and annotated the data ( &#167;4.1). After that we demonstrate the experiment setup ( &#167;4.2) and the evaluation ( &#167;4.3). Then we report the performance of our approach ( &#167;4.5). Finally, we do an error analysis of the performance of our system ( &#167;5).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Data</head><p>Moses was an important figure whose story is central to the major Abrahamic religions, including Judaism, Christianity, and Islam. Moses' story is found in fragmentary form throughout the holy books of these religions, with some parts repeated, but in different contexts and sometimes from different perspectives. In the Quran, the holy book of Islam, the story of Moses appears in eight different fragments across six different chapters (suras) comprising 283 verses. Thus the story of Moses serves as an excellent example for the evaluation of our approach to story fragment stitching. The relevant suras and verses are listed in Table <ref type="table">1</ref>, along with the number of events present in the fragments of each chapter.</p><p>We annotated verses based on a comparative analysis of Moses' story in the Old Testament and the Quran by <ref type="bibr">[Ghanbari and Ghanbari, 2008]</ref>. The Ghanbari study breaks Moses' story 43 event categories, shown in Table <ref type="table">3</ref> in chronological order. For the annotation, three annotators labeled each verse with its single relevant event. We measured a Fleiss' kappa of 0.76, which represents excellent agreement. The annotation was originally done on the Arabic version of the Quran, but we transferred the annotations to an English translation <ref type="bibr">[Ali, 1973]</ref> for the remainder of the study.</p><p>We excluded one fragment (Sura 2 [Al-Baqarah], verses 50-60) from the analysis because its timeline is quite different from the fabula order. We manually extracted 708 total event mentions from the remaining seven fragments. Our annotation procedure followed the standards outlined for events in the TimeML standard <ref type="bibr">[Saur&#305; et al., 2006]</ref>. We omitted 135 Reporting mentions (e.g., say, reply, etc.) because these usually are just indicators of direct speech, and do not correspond to plot events. This resulted in 573 event mentions relevant to the plot, which we labeled as to which specific event it referred in the Moses timeline (Table <ref type="table">3</ref>). 301 of the event mentions were labeled with an event described in the timeline, while 272 were not relevant.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Experimental Setup</head><p>We used the netwrokx library <ref type="bibr">[Hagberg et al., 2008]</ref> for graph operations. We extracted event contextualized embedding using the flair implementation <ref type="bibr">[Akbik et al., 2018]</ref> of the BERT model with the default parameters<ref type="foot">foot_0</ref> . The tf-idf weights for the lemmas of all tokens excluding stop words are computed using spaCy [Honnibal and Montani, 2017] and scikit-learn libraries <ref type="bibr">[Pedregosa et al., 2011]</ref>. The event arguments are extracted and resolved using the AllenNLP semantic role labeling (SRL) and coref- </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Evaluation</head><p>For the evaluation, we used the temporal awareness measure <ref type="bibr">[UzZaman et al., 2013]</ref> used in both event ordering task SemEval-2015 <ref type="bibr">[Minard et al., 2015]</ref> and event sequence task TAC-KBP-2017 <ref type="bibr">[Mitamura et al., 2017]</ref>. The temporal awareness metric calculates precision and recall values based on the closure and reduction graphs. For a directed graph, a reduced graph is derived from the original graph by having the fewest possible edges that have the same reachability relation as the original graph. In this work, the final directed path of nodes in the final model represents the reduced graph. For example, consider the final directed path of nodes in the final model to be:</p><p>where, for example, events e 1 , e 2 2 n 1 , e 3 2 n 2 , and e 4 , e 5 2 n 3 . The reduced graph (G ) is represented as the following edges: h(e 1 , e 3 ), (e 2 , e 3 ), (e 3 , e 4 ), (e 3 , e 5 )i and the transitive closure graph (G + ) is represented as the following edges: h(e 1 , e 3 ), (e 2 , e 3 ), (e 1 , e 4 ), (e 1 , e 5 ), (e 2 , e 4 ), (e 2 , e 5 ), (e 3 , e 4 ), (e 3 , e 5 )i ,where the relation between (e i , e j ) is defined as before relation. The temporal awareness metric calculates the precision and recall as follow:</p><p>,where System and Reference are the proposed approach and the gold standard, respectively. The final F 1 score is the harmonic mean of the precision and recall values.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">Baseline</head><p>We used the Needleman-Wunsch algorithm <ref type="bibr">[Needleman and Wunsch, 1970]</ref>  of items (the events lemma in our case) by using a scoring function that penalizes the dissimilarities and the insertion of gaps. We used the default implementation 3 developed by <ref type="bibr">[Dekker and Middell, 2011]</ref> which follows the group of progressive alignment algorithms where two sequences are aligned and then the result is aligned to the next sequence. It repeats the procedure until all sequences are aligned.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.5">Result</head><p>Table <ref type="table">2</ref> shows our model results compared to the baseline.</p><p>In the table, we compare three models: the proposed model Concat, tf-idf and BERT, which are sub-models of the proposed model when considered alone for graph's nodes vector representation as described in 3.2. As shown in bold in Table <ref type="table">2</ref>, the Concat approach achieves 0.63 F 1 which outperforms the baseline by 11 points and both tf-idf and BERT alone by 21 and 2 points, respectively. Also, the table shows that concatenating both tf-idf and BERT produced the best result even though tf-idf alone unperformed the baseline. It is also clear that BERT contextualized embeddings play a major role in the model merging approach for nodes' vector representation when assessing similarity between nodes.</p><p>peculiarities of Quranic language cause errors. For example, the word We is usually present as an event's argument when God is speaking of himself. This causes problems for the coreference resolution system, in that it does not pair we with such mentions Lord and God, thus introduces additional errors into the system. Also, some events have the same event mention and arguments but happen at different points in the timeline. Example 1 shows text from different parts of the story: the first is when God shows Moses one of the signs whereas the second is when Moses shows the Pharaoh the sign. Notably, the two events have the same event triggers (showed in bold) and the same arguments (underlined).</p><p>( Example 1: An example to show when two events happen at different points in the timeline.</p><p>Further, the approach is sensitive to the order of merges. If an incorrect merge is performed early, this can eliminate correct merges later on account of the no-cycles constraint. Therefore performing only the highest confidence merges first is critical, and errors in that process degrade other distance parts of the model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Contributions</head><p>We introduced the story fragment stitching problem, the task of merging partial tellings of a story into a unified whole. We have introduced an approach that models the story's fragments in a graph and applies an adapted model merging approach to merge similar nodes and produce an ordered, endto-end list of story events. Our approach achieves a performance of 0.63 F 1 using the temporal awareness metric.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7">Acknowledgements</head><p>Mr. Aldawsari was funded in part by a doctoral fellowship from Prince Sattam Bin Abdulaziz University, as well as NSF Grant IIS-1749917 to Dr. Finlayson. We thank Seyedeh Mohadeseh Taheri Mousavi and Zahra Ejei for their assistance in annotating the verses from the Quran in the original Arabic. The idea of combining distributional semantics with automatic story model merging was proposed and developed by Mr. Asgari in his Master's thesis at CSAIL MIT supervised by Dr. Finlayson in 2013-2014 academic year. The creation of the corpus was also among the contributions of that thesis. The third column refers to the number of events mentions for the event across all fragments. The last column is the standard F1 measure for extraction of the corresponding event, compared to the gold standard. The initial model constructed using Moses story fragments. Each node represents an event's vector. Each fragment generates its own linear branch running from the start node to the end node where i in ei:j represents the fragment's number and j represents the event's number.</p><p>the most similar nodes using findMostSim function, lines 6 and 13, and merges the most similar nodes using merge function. Because the fragments are assumed to be already in fabula time order, the pairsIntroduceCycle boolean function disallows merges that would introduce cycles, ignoring (and removing) self-loops (the no-cycles constraint), and thereby preserves the overall order of the events. Note that disallowing cycles also prevents merges of non-neighboring nodes within the same fragment. The new merged node then contains a weighted average vector of the old nodes vectors and nodes similarity are updated using updateNodesSim function. The algorithm continues to merge nodes until the similarity measure drops below &#8629;. Because the final resulting graph is not guaranteed to contain only one path from start to end, by using bestPath function, the path with the maximum merged nodes (based on the number of events) is considered to be the final output of the model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Algorithm 1</head><p>F : set of text fragments f E : map of f to sets e f of gold event annotations </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Experiment</head><p>We evaluate our approach against a gold-standard annotation of Moses' from the Quran. We first describe how we collected and annotated the data ( &#167;4.1). After that we demonstrate the experiment setup ( &#167;4.2) and the evaluation ( &#167;4.3). Then we report the performance of our approach ( &#167;4.5). Finally, we do an error analysis of the performance of our system ( &#167;5).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Data</head><p>Moses was an important figure whose story is central to the major Abrahamic religions, including Judaism, Christianity, and Islam. Moses' story is found in fragmentary form throughout the holy books of these religions, with some parts repeated, but in different contexts and sometimes from different perspectives. In the Quran, the holy book of Islam, the story of Moses appears in eight different fragments across six different chapters (suras) comprising 283 verses. Thus the story of Moses serves as an excellent example for the evaluation of our approach to story fragment stitching. The relevant suras and verses are listed in Table <ref type="table">1</ref>, along with the number of events present in the fragments of each chapter.</p><p>We annotated verses based on a comparative analysis of Moses' story in the Old Testament and the Quran by <ref type="bibr">[Ghanbari and Ghanbari, 2008]</ref>. The Ghanbari study breaks Moses' story 43 event categories, shown in Table <ref type="table">3</ref> in chronological order. For the annotation, three annotators labeled each verse with its single relevant event. We measured a Fleiss' kappa of 0.76, which represents excellent agreement. The annotation was originally done on the Arabic version of the Quran, but we transferred the annotations to an English translation <ref type="bibr">[Ali, 1973]</ref> for the remainder of the study.</p><p>We excluded one fragment (Sura 2 [Al-Baqarah], verses 50-60) from the analysis because its timeline is quite different from the fabula order. We manually extracted 708 total event mentions from the remaining seven fragments. Our annotation procedure followed the standards outlined for events in the TimeML standard <ref type="bibr">[Saur&#305; et al., 2006]</ref>. We omitted 135 Reporting mentions (e.g., say, reply, etc.) because these usually are just indicators of direct speech, and do not correspond to plot events. This resulted in 573 event mentions relevant to the plot, which we labeled as to which specific event it referred in the Moses timeline (Table <ref type="table">3</ref>). 301 of the event mentions were labeled with an event described in the timeline, while 272 were not relevant.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Experimental Setup</head><p>We used the netwrokx library <ref type="bibr">[Hagberg et al., 2008]</ref> for graph operations. We extracted event contextualized embedding using the flair implementation <ref type="bibr">[Akbik et al., 2018]</ref> of the BERT model with the default parameters 2 . The tf-idf weights for the lemmas of all tokens excluding stop words are computed using spaCy <ref type="bibr">[Honnibal and Montani, 2017]</ref> and scikit-learn libraries <ref type="bibr">[Pedregosa et al., 2011]</ref>. The event arguments are extracted and resolved using the AllenNLP semantic role labeling (SRL) and coref- </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Evaluation</head><p>For the evaluation, we used the temporal awareness measure <ref type="bibr">[UzZaman et al., 2013]</ref> used in both event ordering task SemEval-2015 <ref type="bibr">[Minard et al., 2015]</ref> and event sequence task TAC-KBP-2017 <ref type="bibr">[Mitamura et al., 2017]</ref>. The temporal awareness metric calculates precision and recall values based on the closure and reduction graphs. For a directed graph, a reduced graph is derived from the original graph by having the fewest possible edges that have the same reachability relation as the original graph. In this work, the final directed path of nodes in the final model represents the reduced graph. For example, consider the final directed path of nodes in the final model to be:</p><p>where, for example, events e 1 , e 2 2 n 1 , e 3 2 n 2 , and e 4 , e 5 2 n 3 . The reduced graph (G ) is represented as the following edges: h(e 1 , e 3 ), (e 2 , e 3 ), (e 3 , e 4 ), (e 3 , e 5 )i and the transitive closure graph (G + ) is represented as the following edges: h(e 1 , e 3 ), (e 2 , e 3 ), (e 1 , e 4 ), (e 1 , e 5 ), (e 2 , e 4 ), (e 2 , e 5 ), (e 3 , e 4 ), (e 3 , e 5 )i ,where the relation between (e i , e j ) is defined as before relation. The temporal awareness metric calculates the precision and recall as follow:</p><p>,where System and Reference are the proposed approach and the gold standard, respectively. The final F 1 score is the harmonic mean of the precision and recall values.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">Baseline</head><p>We used the Needleman-Wunsch algorithm <ref type="bibr">[Needleman and Wunsch, 1970]</ref>  of items (the events lemma in our case) by using a scoring function that penalizes the dissimilarities and the insertion of gaps. We used the default implementation<ref type="foot">foot_2</ref> developed by <ref type="bibr">[Dekker and Middell, 2011]</ref> which follows the group of progressive alignment algorithms where two sequences are aligned and then the result is aligned to the next sequence. It repeats the procedure until all sequences are aligned.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.5">Result</head><p>Table <ref type="table">2</ref> shows our model results compared to the baseline.</p><p>In the table, we compare three models: the proposed model Concat, tf-idf and BERT, which are sub-models of the proposed model when considered alone for graph's nodes vector representation as described in 3.2. As shown in bold in Table <ref type="table">2</ref>, the Concat approach achieves 0.63 F 1 which outperforms the baseline by 11 points and both tf-idf and BERT alone by 21 and 2 points, respectively. Also, the table shows that concatenating both tf-idf and BERT produced the best result even though tf-idf alone unperformed the baseline. It is also clear that BERT contextualized embeddings play a major role in the model merging approach for nodes' vector representation when assessing similarity between nodes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Error Analysis</head><p>Inspection of the results revealed several sources of errors, aside from the usual noise introduced by the various subcomponents, such as the SRL or co-reference systems. Some peculiarities of Quranic language cause errors. For example, the word We is usually present as an event's argument when God is speaking of himself. This causes problems for the coreference resolution system, in that it does not pair we with such mentions Lord and God, thus introduces additional errors into the system. Also, some events have the same event mention and arguments but happen at different points in the timeline. Example 1 shows text from different parts of the story: the first is when God shows Moses one of the signs whereas the second is when Moses shows the Pharaoh the sign. Notably, the two events have the same event triggers (showed in bold) and the same arguments (underlined).</p><p>( Example 1: An example to show when two events happen at different points in the timeline.</p><p>Further, the approach is sensitive to the order of merges. If an incorrect merge is performed early, this can eliminate correct merges later on account of the no-cycles constraint. Therefore performing only the highest confidence merges first is critical, and errors in that process degrade other distance parts of the model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Contributions</head><p>We introduced the story fragment stitching problem, the task of merging partial tellings of a story into a unified whole. We have introduced an approach that models the story's fragments in a graph and applies an adapted model merging approach to merge similar nodes and produce an ordered, endto-end list of story events. Our approach achieves a performance of 0.63 F 1 using the temporal awareness metric.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7">Acknowledgements</head><p>Mr. Aldawsari was funded in part by a doctoral fellowship from Prince Sattam Bin Abdulaziz University, as well as NSF Grant IIS-1749917 to Dr. Finlayson. We thank Seyedeh Mohadeseh Taheri Mousavi and Zahra Ejei for their assistance in annotating the verses from the Quran in the original Arabic. The idea of combining distributional semantics with automatic story model merging was proposed and developed by Mr. Asgari in his Master's thesis at CSAIL MIT supervised by Dr. Finlayson in 2013-2014 academic year. The creation of the corpus was also among the contributions of that thesis. The third column refers to the number of events mentions for the event across all fragments. The last column is the standard F1 measure for extraction of the corresponding event, compared to the gold standard.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_0"><p>bert base uncased, layers=-1, pooling operation=first</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_1"><p>Error AnalysisInspection of the results revealed several sources of errors, aside from the usual noise introduced by the various subcomponents, such as the SRL or co-reference systems. Some 3 https://github.com/interedition/collatex</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2"><p>https://github.com/interedition/collatex</p></note>
		</body>
		</text>
</TEI>
