urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:	edition	
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1	body	
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.1	div1	
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.1.1	p	in recent years analyzing constellations of fictional entities in literary fiction has seen a lot of interest (elson et al. 2010, agarwal et al. 2012). those constellations are often visualized as networks of entities apparent in the document. even though the pipelines used for preprocessing vary drastically they all share some common steps. in order to draw a network, one needs to define nodes and edges. an obvious choice for the nodes are the fictional entities. those entities appear either as pronouns, nominal references or names. the detection of those character references (cr) was used for a multitude of different applications in automatic digital humanities processing, most notably genre detection (hettinger et al. 2015) and coreference resolution (e.g. lee et al. 2013).
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.2	div1	
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.2.1	p	this section only mentions the most dominant work in terms of named entity recognition techniques as well as those with comparable results in terms of domain. the standard approach is to segment the input document into sentences and apply a sequence classifier on these sentences. the most robust classifier applied to this task was a conditional random field (crf) (lafferty et al. 2001). until the success of deep learning approaches, the classifier published by stanford (finkel et al. 2005) and its adaptation to german (faruqui et al. 2010) were the dominant approaches. lately the combination of a bi-lstm with word-embeddings (e.g. mikolov et al. 2013) which automatically derived features for a crf classifier in a deep learning approach surpassed manually created features (huang et al. 2015). most recently, riedl and padó (2018) included pretraining into the bi-lstm-crf architecture and achieved state of the art results. a maximum entropy classifier with cluster features derived by word2vec and manually crafted features yielded an f1-score of 90% (jannidis et al. 2017), serving as the only comparable work for german literary data.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.2.2	p	however, all of these approaches classify each sentence and every token inside on their own so that subsequent sentences do not benefit from previously detected names. this does not only overcomplicate the detection, it can also introduce inconsistent results (e.g. “effi” is detected as a name in sentence 10 and 27, but was not detected in sentence 25). introducing no dependencies between each individual reference seems a wasted opportunity, especially in novels, because the same character reappears multiple times. this paper experimented with network architectures to leverage this shortcoming. the idea of this approach is not new and can even be dated back to the brills tagger (brill 1992) - the classification by two separate classifiers each with its individual perspective on the problem.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.3	div1	
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.3.1	p	the corpus droc (krug et al. 2018) provides the data used in this paper. it contains about 393.000 tokens from 90 different samples taken from german novels. each sample comprises at least one chapter. in total, this corpus contains about 53.000 manually annotated character references. 100-dimensional word2vec word embeddings trained on 1700 novels of project gutenberg<ref xmlns="http://www.tei-c.org/ns/1.0" target="ftn1" n="1" /> were used as secondary input.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.4	div1	
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.4.1	p	the method used in this paper follows the intuition that, especially in literary fiction, entities appear many times throughout the text. because each document introduces its own fictional world, each word (meaning the set of all appearances of a token with the same string) has a dominant meaning. however, not every instance of a word can be easily detected. while some might be surrounded by verbs of communication (“sagen”, “antworten”, ...), others might only be surrounded by stop words, which are not beneficial for classification. therefore, this work introduces two passes through the text. the first pass tries to assign the dominant meaning to a word and is assumed to produce a high recall but a mediocre precision. the purpose of the second pass is to disambiguate individual instances which have been classified as a character reference but could have multiple senses. furthermore, while the first pass might detect “effi” and “briest” as references, there is no information about whether the string “effi briest” is a single reference or two distinct references. this is solved in the second pass, which is trained for a sequential prediction and is supposed to detect the exact span of a reference.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.4.2	p	the architectures of both neural networks can be depicted as follows:
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.4.3	p	an instance fed into the first network consists of a list of tuples, each comprising the span of the token, encoded by a word embedding, as well as a left context and a right context. our previous work determined a context of the previous two and the next two tokens (also encoded by a pre-trained word embedding) as best performing for the determination of character references. the last input vector was derived by a bi-lstm character encoding of the target word. the tuples were arranged in order of appearance in the original text and encoded by a bi-lstm, feeding an additional tupel at each time step. the bi-lstm subsequently generates a condensed representation of those tuples into a vector of 256 units. the intuition is that this vector contains the most informative parts of all contexts for a given target word. the network is trained using log-loss and predicts whether the target word is a reference or not.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.4.4	p	the network was trained for 15 epoches on 58 documents (longer training did not necessarily result in a better classification accuracy) and applied to a separate set spanning 14 documents. this second set is then used to train the second network, using bi-lstm character embeddings with a subsequent bi-lstm. however, the network is only applied to tokens that had been classified as a character reference in the first pass. this follows the intuition that it can now be decided if the current instance is of a different semantic category, which can be detected by analyzing its context. the input of this network is the snippet around the target word with a context size of two. the second task of this network, detecting the exact bounds of a reference, is done by predicting labels in an i-o-b setting. it is noteworthy that words that were not detected in the first pass can not be recovered. the second network is trained with 25 epochs and finally tested on 18 test documents.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.5	div1	
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.5.1	p	we compared the architecture described in section 4 (denoted 2-stage) with the state of the art architecture (bi-lstm-crf) similar to riedl and padó (2018). a bi-lstm-crf using character embeddings in tensorflow<ref xmlns="http://www.tei-c.org/ns/1.0" target="ftn2" n="2" /> was implemented and applied to the data of droc. at the current stage our implementation does not make use of pretraining. we used the 90 documents and split them into five folds each comprising 18 different test documents. the remaining 72 documents are used for training. the results are shown in table 1.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.5.2	p	table 1: results of the two systems applied to droc. the numbers were derived in a 5-fold scenario and are noted in %. evaluation is done on token and on entity level using precision, recall and f1.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.5.3	p	even though the 2-stage approach seems intuitive at first, it can not compete with the results obtained by the state of the art architecture. surprisingly, the architecture failed to provide a high recall (this is already apparent after the first pass, where the recall is similar to the state of the art system, however no exact borders can be predicted). a possible explanation for this result is the high amount of about 50% of tokens with only a single appearance in the text. since only two context tokens to the left and the right are used, the architecture has a shortcoming compared to the bi-lstm-crf, which encodes the entire sentence. the architecture does especially fail to recognize references that contain the token “von” (such as “baron von instetten)”. while being competitive in terms of the precision, further work has to be done to increase the recall for this approach.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.6	div1	
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:1.6.1	p	this paper presents a 2-stage contextual approach to detect character references using deep learning. the results show that while the precision yields competitive results, the recall is still much lower. possible approaches for this shortcoming might be changing the loss function - currently a false negative and a false positive yield the same penalty - and combining both models. the state of the art model can then be used for words that only appear a single time in the text and the 2-stage approach for words appearing more than once. this could retain the high quality while still generating a consistent labeling by making use of the dependencies between individual appearances of a word.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2	back	
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.1	notes	<note xmlns="http://www.tei-c.org/ns/1.0" xml:id="ftn1" n="1" rend="footnote text"> https://www.gutenberg.org/ </note> <note xmlns="http://www.tei-c.org/ns/1.0" xml:id="ftn2" n="2" rend="footnote text"> https://www.tensorflow.org/ </note>
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2	bibliogr	
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2.1	listBibl	
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2.1.1	bibl	<hi xmlns="http://www.tei-c.org/ns/1.0" rend="bold">agarwal, a., corvalan, a., jensen, j., & rambow, o. (2012)</hi>: <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">social network analysis of alice in wonderland. in proceedings of the naacl-hlt 2012 workshop on computational linguistics for literature</hi> (pp. 88-96).
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2.1.2	bibl	<hi xmlns="http://www.tei-c.org/ns/1.0" rend="bold">brill, e. (1992, march)</hi>: <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">a simple rule-based part of speech tagger.</hi> in proceedings of the third conference on applied natural language processing (pp. 152-155). association for computational linguistics.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2.1.3	bibl	<hi xmlns="http://www.tei-c.org/ns/1.0" rend="bold">elson, d. k., dames, n., & mckeown, k. r. (2010, july)</hi>: <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">extracting social networks from literary fiction</hi>. in proceedings of the 48th annual meeting of the association for computational linguistics (pp. 138-147). association for computational linguistics.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2.1.4	bibl	<hi xmlns="http://www.tei-c.org/ns/1.0" rend="bold">faruqui, m., padó, s., & sprachverarbeitung, m. (2010, september)</hi>: <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">training and evaluating a german named entity recognizer with semantic generalization</hi>. in konvens (pp. 129-133).
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2.1.5	bibl	<hi xmlns="http://www.tei-c.org/ns/1.0" rend="bold">finkel, j. r., grenager, t., & manning, c. (2005, june)</hi>: <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">incorporating non-local information into information extraction systems by gibbs sampling</hi>. in proceedings of the 43rd annual meeting on association for computational linguistics (pp. 363-370). association for computational linguistics.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2.1.6	bibl	<hi xmlns="http://www.tei-c.org/ns/1.0" rend="bold">huang, z., xu, w., & yu, k. (2015)</hi>: <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">bidirectional lstm-crf models for sequence tagging.</hi> arxiv preprint arxiv:1508.01991.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2.1.7	bibl	<hi xmlns="http://www.tei-c.org/ns/1.0" rend="bold">hettinger, l., becker, m., reger, i., jannidis, f., & hotho, a. (2015, september)</hi>: <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">genre classification on german novels</hi>. in database and expert systems applications (dexa), 2015 26th international workshop on (pp. 249-253). ieee.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2.1.8	bibl	<hi xmlns="http://www.tei-c.org/ns/1.0" rend="bold">jannidis, f., reger, i., weimer, l., krug, m., & puppe, f. (2017)</hi>: <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">automatische erkennung von figuren in deutschsprachigen romanen.</hi>
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2.1.9	bibl	<hi xmlns="http://www.tei-c.org/ns/1.0" rend="bold">krug markus, puppe frank, reger isabella, weimer lukas, macharowsky luisa, feldhaus stephan, jannidis fotis (2018, april)</hi>: <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">description of a corpus of character references in german novels - droc [deutsches roman corpus]</hi>. dariah-de working papers nr. 27. göttingen: dariah-de. urn: urn:nbn:de:gbv:7-dariah-2018-2-9
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2.1.10	bibl	<hi xmlns="http://www.tei-c.org/ns/1.0" rend="bold">lafferty, j., mccallum, a., & pereira, f. c. (2001)</hi>: <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">conditional random fields: probabilistic models for segmenting and labeling sequence data.</hi>
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2.1.11	bibl	<hi xmlns="http://www.tei-c.org/ns/1.0" rend="bold">lee, h., chang, a., peirsman, y., chambers, n., surdeanu, m., & jurafsky, d. (2013)</hi>: <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">deterministic coreference resolution based on entity-centric, precision-ranked rules</hi>. computational linguistics, 39(4), 885-916.
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2.1.12	bibl	<hi xmlns="http://www.tei-c.org/ns/1.0" rend="bold">mikolov, t., sutskever, i., chen, k., corrado, g. s., & dean, j. (2013)</hi>: <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">distributed representations of words and phrases and their compositionality</hi>. in advances in neural information processing systems (pp. 3111-3119).
urn:cts:dhd:2019.krug_markus_detecting_character_references_in_literary_novel:2.2.1.13	bibl	<hi xmlns="http://www.tei-c.org/ns/1.0" rend="bold">riedl, m., & padó, s. (2018)</hi>: <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">a named entity recognition shootout for german</hi>. in proceedings of the 56th annual meeting of the association for computational linguistics (volume 2: short papers) (vol. 2, pp. 120-125).