<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Lausanne, Switzerland
$ guillaume.guex@unil.ch (G. Guex)</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>A Framework for Embedding Entities in a Textual Narrative: a Case Study on Les Misérables</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Guillaume Guex</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Faculty of Arts, Department of Language and Information Sciences, University of Lausanne</institution>
          ,
          <addr-line>bâtiment Anthropole, 1015 Lausanne</addr-line>
          ,
          <country country="CH">Switzerland</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2023</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0003</lpage>
      <abstract>
        <p>In this article, we propose a general and flexible framework in order to study narrative entities found in a literary work. This framework is exposed starting from a broad perspective, consisting in how to segment the work into textual units and organize the resulting data, and is narrowed down to a particular case: the study of characters and relationships found in Les Misérables. A notable choice was made in the current instance of the framework: the construction of embeddings containing both textual units and narrative entities alongside words. These embeddings, where diferent spatial regions can be interpreted with word vectors, are the keys helping us to characterize studied entities. Four types of embedding methods are constructed, and their results on Les Misérables permit to show the potential of this framework in order to analyzes characters and relationships in a narrative.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Digital Humanities</kwd>
        <kwd>Distant Reading</kwd>
        <kwd>Textual Narrative</kwd>
        <kwd>Narrative Entity</kwd>
        <kwd>Embeddings</kwd>
        <kwd>Characters</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        In the field of Digital Humanities, Distant Reading tools [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] allow researchers to quickly gain
knowledge on textual corpora without actually reading them. Purposes of these methods are
various, but can be mainly categorized into two groups: in the first case, these methods are
used to tag, classify, or summarize large quantities of documents, in order to quickly structure
information or to deliver a speech over the whole studied corpus [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Methods, in this case, rely
heavily on Big Data and make an extensive use of Machine Learning, often with the help of
supervised methods. In the second case, researchers use computational methods to underline
hidden structures in a small corpus or even a single document, which helps them to refine their
understanding of this corpus or to validate hypotheses [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Methods in this setting can also rely
on Machine Learning, but must typically be built with more caution and attention to details:
corpora are smaller, analyses are closer to the work, and methods must be transparent in order
to appropriately interpret results. The use of exploratory tools and unsupervised methods is
also preferred in this context, as it is less desirable to base methods on information coming from
large external corpora. The proposed method in this article typically belongs to the second
group, as it is unsupervised and can be applied on a single document.
      </p>
      <p>
        When a single (or a few) literary work is analyzed, a common practice is to study narrative
entities (characters, events, locations, etc.) used by the author in her/his book [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Researchers
are frequently interested in depicting them and in seeing how they interact with each other
in the story. Various computational tools can help them in this task, to name a few: Named
Entity Recognition tools [
        <xref ref-type="bibr" rid="ref5 ref6 ref7">5, 6, 7</xref>
        ], Automatic Character Networks Extraction [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], Sentiment
Analysis and Topic Modeling [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], Textometry [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], and Word Embeddings [
        <xref ref-type="bibr" rid="ref11 ref12 ref13">11, 12, 13</xref>
        ]. All these
methods have been used in order to explicitly show hidden structures constructed by the author
in her/his work. It permits to find patterns, and can help to categorize particular narrative
constructions, writing styles, or genres. These kinds of methods can be a great complement to
classical analyses of literary works as they allow to eficiently summarize information which is
otherwise quite difuse.
      </p>
      <p>In this article, we propose a general framework in order to automatically characterize various
narrative entities in a literary work. The entire framework is exposed starting from a wide
perspective, which is how to organize the textual data, and is narrowed down to a specific use,
the study of character relationships in Les Misérables, by Victor Hugo. Along this presentation,
various choices are made to highlight a particular use of this framework, but these choices
should be viewed as suggestions rather than rules: the real strength of this framework is its
lfexibility and the direction taken in this article is oriented for a defined task. To be more
specific, we will show how to use embeddings in order to locate characters and their relationships
alongside the vocabulary. An association measure can then be constructed between these words
and entities, which can help a practitioner to depict them. Four variations of this method are
proposed, and are tested on Les Misérables.</p>
      <p>
        The idea behind this framework comes from the field of automatic extraction and analysis of
character networks from literary works (see [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] for a survey). When building character networks
from a textual narrative, one of the most widespread methods consists in dividing the studied
work into  narrative units or contexts 1, . . . , , which can be, e.g., sentences, paragraphs, or
chapters, and then counting the number of units where characters co-occurred [
        <xref ref-type="bibr" rid="ref14 ref15 ref16 ref17 ref9">9, 14, 15, 16, 17</xref>
        ].
Usually, the text constituting these units is discarded and the resulting network displays edges
which roughly represent an aggregated number of interactions between characters. However, by
doing so, the aggregation occurs on various interactions and gives little information about the
type of relationship which exists between characters. Various improvements were proposed in
order to weight [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ] or sign [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] (or both [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]) the edges in the character networks. A particular
inspiration for the current work is the article by Min and Park (2019) [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], where authors also
analyzed characters in Les Misérables by building various signed and weighted networks, with
the help of Sentiment Analysis and Topic Modeling. The current framework was built in order
to generalize this idea of refining character relationships by formalizing the data structure and
keeping directions of exploration as wide as possible. Embeddings [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ] appeared to us to be the
proper tool for achieving this. As a matter of fact, with embeddings, the textual contents of
units are transformed into workable mathematical objects (the vectors), usable for various tasks,
while conserving a maximum of information. The framework has been further generalized in
order to be applicable on diferent sorts of narrative entities, but the presented case remains the
study of character relationships in Les Misérables.
      </p>
      <p>The current article is structured as follows. Section 2 defines the framework, with section 2.1
defining the data organization, section 2.2 describing how to embed textual units, and section
2.3 deriving entity vectors lying in the same space as units. In section 3, we present the specific
methodology and results for the case study of character relationships in Les Misérables, and
section 4 draws conclusions and perspectives about this work. All (Python) scripts and datasets
used in this article, as well as extended results, can be found in the dedicated GitHub repository.1</p>
    </sec>
    <sec id="sec-2">
      <title>2. Framework</title>
      <sec id="sec-2-1">
        <title>2.1. Data organization</title>
        <p>In this article, a textual narrative is divided in  textual units 1, . . . , , and is represented
through two tables. The first one is well known in the field of textual analysis and consists in
the ( × ) unit-word contingency table N, as represented by Table 1, where  is the vocabulary
size. In this table, each row represents a unit, each column a word, and cells  counts the
number of times word  appears in unit . Using this table typically denotes a Bag-of-Words
approach in our analyses.</p>
        <p>The second table is the unit-entity table, noted E. It has a size of ( × ) where  is the
number of narrative entities found in the text and cells  indicates the presence, or the count
for a weighted version, of entity  in unit . A narrative entity, in the context of this article, can
be loosely defined in order to be flexible for various types of texts or analyses. It can roughly
be seen as a recurring object with some importance in the narration. For example, it can be
a location, an object, a character, a pair of characters (or even a triplet, a quadruplet, etc.), an
oriented character interaction (e.g. a dialog), or even a particular recurring event containing
multiple characters (e.g. a meeting). In this article, we mostly consider characters and pairs
of characters as entities, as shown in Table 2. Note that in the present case, we consider that
a character or a pair of characters are present in the unit if character names (or aliases) are
detected above a fixed threshold. A weighted version of this table, where  contains the number
of occurrences of the entity  in the unit , is also possible. However, equations presented in
this article are written for the presence/absence version.</p>
        <p>This data organization already gives an orientation to subsequent analyses and should be
kept in mind by the practitioner. Textual units are now considered as individuals (in the
statistical terminology), defined by their variables contained in the diferent columns of both
tables. Moreover, subsequent analyses are oriented in searching how the unit-entity table E
has an influence over the unit-word table N, i.e. searching which words are over-represented
or under-represented considering the entities within a specific unit. While an authors uses
characters in order to build her/his narrative, we, to a certain extent, work backward: we are
searching how character appearances and interactions in the textual unit act on her/his choice
of words. If the extraction method permits it, a practitioner should include all entities which
she/he desires to study. Here, for example, the choice to include character pairs along with
characters is motivated by the fact that we are interested in studying character relationships. A
character pair can roughly be seen as an interaction between two characters, and this interaction
should be considered as an object of its own: the presence of this interaction in a unit does not
result in having a mixture of words used for each character, but rather gives a specific flavor to
the unit.</p>
        <p>This data organization also highlights the importance of choosing a proper size for the
units. These units should be large enough to contain enough words in order to properly
capture the textual specificity of each unit, but not too large, as each unit should ideally capture
particularities about one of the entities. Unfortunately, it is impossible to define an ideal size
for all types of analysis. This size should be balanced regarding the level of analysis, the text
size, the selected entities, and previous knowledge of the studied work.</p>
        <p>The use of a contingency table N to represent the textual resource present in the units
denotes a Bag-of-Words approach. Using this approach loses the information relative to the
order of words in the units, but permits to transform a chain of characters, improper to statistical
analyses, into a contingency table, a well studied mathematical object which allows the use of
various kinds of computational methods. The next section shows a particular direction on how
to use this table, with the help of embeddings.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Embedding of textual units</title>
        <p>Various methods can be performed on the contingency table N in order to extract information
from it. Here, we make the choice to extract a lower dimensional, numeric representation of
each unit, in other words, a textual unit vector located in an embedding space.
In section 2.3, these vectors of textual units are used as anchor points in order to also embed
entities into the same space. Therefore, it is crucial that an interpretation about the directions or
the regions of this embedding space is possible, in order to properly interpret the localization of
entity vectors (the relative position of entity vectors among themselves is generally insuficient).
For that reason, we focus on embeddings of textual units which also contain vectors of words:
by examining the positions of entities relatively to word vectors, entities can be depicted.
We propose two embeddings verifying this condition: Section 2.2.1 describes Correspondence
Analysis (CA) and section 2.2.2 focuses on Pre-trained Word Vectors (WV).</p>
        <sec id="sec-2-2-1">
          <title>2.2.1. Correspondence Analysis (CA)</title>
          <p>
            Using Correspondence Analysis (CA) in order to analyze textual resources has a long tradition
[
            <xref ref-type="bibr" rid="ref21">21</xref>
            ]. It has the advantage to naturally provide an embedding space, the factorial map, where
units are placed alongside word vectors, and allows the interpretation of the placement of units
in terms of word frequency profiles. Units and word vectors in the embedding space have a
direct interpretation in terms of chi2 distance between profiles.
          </p>
          <p>By performing a Correspondence Analysis on table N, we get  vectors x1, . . . , x
corresponding to units (rows) and  vectors w1, . . . , w corresponding to words (columns). Each
of these vectors has a size of min(, ) − 1, which will generally be  − 1. For a detailed
computation of quantities in CA, see Appendix A.1.</p>
          <p>An association score between a particular unit  and a word  is expressed through the scalar
product between their vectors
 := x⊤w .
(1)
A positive (resp. negative) association score denotes an over-representation (resp.
underrepresentation) of the word  in , which permits to find lists of words characterizing the
diferent units. Note that in this article, this association score is rather computed between a
word vector and an entity vector, since the latter, as we will see in section 2.3, lies in the same
space as unit vectors. We could also track how units (or entities) are dissimilar to each others
by using this time the Euclidean distance between vectors.</p>
          <p>Note that vectors x1, . . . , x obtained from CA reflect textual unit profile (in terms of words)
regarding the mean profile (the origin in the factorial map). This analysis is thus contrastive:
it highlights unit variations in the studied text. It means that the particular tone of the whole
studied text might be hidden in this analysis and only the variation around this tone will be
revealed. It might lead to the situation where the (absolute) feeling experienced by the reader
will not appear in this analysis, e.g., a sad character in a sad book might appear joyful if he is less
sad than the mean tone. This can become problematic when this method is used sequentially to
study multiple works: particularities of each book will be hidden. Another limitation with this
approach is that the words helping the interpretation of units (and entities) are contained in
the studied text. Approaches requiring to study the position of units and entities relatively to a
predefined list of words (e.g., friends, enemies, family) might therefore be impossible if these
words do not appear in the text.</p>
        </sec>
        <sec id="sec-2-2-2">
          <title>2.2.2. Pre-trained Word Vectors (WV)</title>
          <p>
            Pre-trained Word Vectors (WV), based on methods such as Word2Vec [
            <xref ref-type="bibr" rid="ref22">22</xref>
            ], GloVe [
            <xref ref-type="bibr" rid="ref23">23</xref>
            ], fastText
[
            <xref ref-type="bibr" rid="ref24">24</xref>
            ], or Bert [
            <xref ref-type="bibr" rid="ref25">25</xref>
            ] have received great attention from various fields in the last decade. They are
generally obtained through a training on a very large corpus, such as Wikipedia or Common
Crawl, and the resulting embedding contains a large quantity of word vectors. As shown by
multiple studies (see [
            <xref ref-type="bibr" rid="ref26">26</xref>
            ] for a survey), these vectors are placed in order to reflect semantic
and syntactic relationships between words, and are used in various applications. We focus
here on static word embeddings, where word vectors are fixed and do not depend on their
context, obtained by, e.g., fastText. The reason is that we need to have interpretable regions in
an unchanging embedding space.
          </p>
          <p>
            There exist multiple methods which use pre-trained word vectors in order to derive vectors
for a group of words, such as sentences [
            <xref ref-type="bibr" rid="ref17 ref27">17, 27</xref>
            ], paragraphs [
            <xref ref-type="bibr" rid="ref28">28</xref>
            ], or documents [
            <xref ref-type="bibr" rid="ref29">29</xref>
            ]. These
derived vectors are often used to apply a classification or clustering algorithm on the newly
embedded objects, or to query information [
            <xref ref-type="bibr" rid="ref27 ref29">27, 29</xref>
            ]. In order to derive these vectors, the majority
of methods use frequencies of words found in objects, i.e. a table similar to N, but apply various
weighting schemes and normalizations in order to reduce the efects of frequent words and
to standardize vectors. In the present article, we use a methodology proposed in [
            <xref ref-type="bibr" rid="ref27">27</xref>
            ] as it is
compatible with multiple unit sizes and gives good results in many tasks. Thus, textual units
vectors x1, . . . , x are obtained through the table N and with the method detailed in Appendix
A.2.
          </p>
          <p>An association score can again be computed between a unit (or an entity) vector x and word
vector w through the cosine similarity, defined by
Note that, with word vectors, this cosine similarity also permits to compare units (or entities)
between themselves.</p>
          <p>With the pre-trained word vector method, the unit vectors x1, . . . , x (and entity vectors
in section 2.3) lie in an absolute space defined by the pre-trained word vectors. Comparison
between diferent texts is therefore more pertinent, and associations with words absent from
the corpus can be made. However, it is possible that all units from a given text will be located
in the same region of the space if the vocabulary used in it is very specific. In this case, the
list of most associated word vectors might be similar for every unit, and the analysis will not
give satisfying results. This efect is fortunately limited by the centration of unit vectors which
occurs in the method described in Appendix A.2.</p>
        </sec>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. Entity embeddings</title>
        <p>The main goal of this article is not to analyze units, but rather entities, i.e., the  columns of
table E. While we use the table N to build embeddings of units, we utilize the table E in order
to build the entity vectors y1, . . . , y relatively to unit vectors x1, . . . , x. Two propositions of
methods are made: the centroids method (CENT), described in section 2.3.1; and the regressions
method (REG), explained in section 2.3.2. Both methods can be combined with the embeddings
of units defined in the previous section.</p>
        <sec id="sec-2-3-1">
          <title>2.3.1. Centroids (CENT)</title>
          <p>This method is the most trivial and is based on the following intuition: an entity is characterized
equally by all units in which it appears. In other words, we can define the vector y for entity 
as</p>
          <p>y = ∑︁ x
=1
(2)
(3)
where  = ∙ is the relative weight of unit . y indicates the center of mass, or centroid, of
the units con∙taining the entity. This way of building entity vectors is closely related to the
treatment of supplementary variables found in CA: these variables do not act in the choice of
factorial axes, but can still be represented afterward. However, by contrast, entity vectors are
not dilated after computing centroids, which means that they lie in the same space as units
(row).</p>
          <p>An important remark about the centroid method is that entity vectors positions are additive,
i.e. we have
 = ∑︁ , ∀ =⇒ y = ∑︁ y,
∈
∈
where  is a subset of entities. This property can be interpreted as followed: if a character 
can be divided among diferent situations  (the character alone, the character in interaction
with another character, etc.), the character vector y is in fact the sum of all vectors y of these
situations. This is not necessarily an undesirable property, but it implies that the specificities of
the lone character might be hidden if he is often registered in an interaction. By contrast, if
we consider that an interaction between two characters is an emerging situation, unrelated to
prior behaviors of characters, the regressions method described in the next section seems more
appropriate.</p>
        </sec>
        <sec id="sec-2-3-2">
          <title>2.3.2. Regressions (REG)</title>
          <p>When building a regression model with multiple explanatory variables, it is possible to also
include their interactions. By doing so, we suppose that the efect of raising both variables is not
the same as raising each variable independently. Regression models seem therefore appropriate
to capture specificities of having a particular entity in a textual unit. For example, in the case of
character pairs, the presence of a character  will have a efect on the vocabulary of an unit, the
presence of another character  will have another efect, and the presence of the pair {, } yet
a diferent efect. Now, dependent variables in regression models still need to be defined. In
fact, we are doing  regressions, with  the number of dimensions of the embedding, and each
regression is constructed to predict the  -th coordinate of units by using binary variables in
the table E. In matrix notation, all regression models can be written as</p>
          <p>X = Ẽ︀ B + Σ,
where X = ( ) is the ( × ) matrix containing unit vectors (on rows), Ẽ︀ is the matrix E
with a first additional column of 1 for the intercept, B = (  ) is the (( + 1) × ) matrix
containing intercepts and regression coeficients (each column corresponds to one regression),
and Σ the ( ×  ) matrix containing normal errors.</p>
          <p>Intercepts and coeficients estimations B̂︀ = ( ̂︀ ) can be considered as our embeddings for
entities as well as for the intercept, which represents the general tone of the studied text. We
therefore denote these estimates with Y = ( ) in the following, with the notation convention
0 for intercept coordinate  .</p>
          <p>As the number of entities (i.e. predictors) might be very large, it is a good idea to add a 2
regularization term in the objective function. Moreover, the quadratic error rate should also be
(4)
(5)
weighted by the number of tokens in each unit. Including all this, we find the solution for our
intercept and entity vectors y0, y1, . . . , y, contained in the rows of Y, with
Y = ( Ẽ︀ ⊤Diag(f ) Ẽ︀ +  I(+1))− 1 Ẽ︀ ⊤Diag(f )X,
(6)
where Diag(f ) is the diagonal matrix containing weights of units f = (),  &gt; 1 is the
regularization coeficient, and I(+1) is the identity matrix of size (( + 1) × ( + 1)).</p>
          <p>An interesting efect of the regularization coeficient is that if  is high, equation (6) becomes
Y ≈ 1 Ẽ︀ ⊤Diag(f )X, which is similar to equation (3) with a contraction term  . In fact, the
regressions method with a regularized term interpolates between the hypothesis where we
suppose that every entity should be considered independently (with  → 0), to the hypothesis
of additive mixture between entities (with  → ∞), as discussed in section 2.3.1. Choosing
an appropriate  according to the study (how is another, dificult question) might lead to a
situation revealing desirable information about entities.
3. Case study : Les Misérables
At the time of writing, it is not possible to evaluate the exposed framework with some kind
of metric, which would allow to test its pertinence on various corpora. In order to see if
the methods give coherent results, we have to carefully scrutinize and compare them with
previous knowledge of the studied work. For this reason, and because of method variations
and multiplicity of the results (and lack of place), we chose to present only one case study: the
analysis of characters and relationships in Les Misérables, by Victor Hugo. The choice of this
work is motivated by the fact that it is a large corpus, well-known, immensely studied, and
containing various colorful characters and characters relationships. Therefore, it is a strong
choice to clearly illustrate the potential of the exposed framework.</p>
        </sec>
      </sec>
      <sec id="sec-2-4">
        <title>3.1. Preprocessing</title>
        <p>The five volumes of Les Misérables, in French, were extracted from Project Gutenberg2, while
headers and footers of each file were manually removed. The whole text was lower cased,
lemmatized, and stopwords3 and punctuation were removed. Volumes, books, and chapters
breaking points were kept for later uses.</p>
        <p>We chose to use chapters as textual units. The table N (Figure 2.1) was built by considering
words appearing at least 20 times in the text and resulted in a table of size 365 chapters × 1974
words.</p>
        <p>
          Characters were detected using Flair4 NER tools [
          <xref ref-type="bibr" rid="ref30">30</xref>
          ]. In order to unify characters and to
further refine the results, we used hand-made lists of character names and aliases from NER
results. It resulted in the detection of 54 characters. The entities considered in table E (Figure
2.1) are composed of 54 single characters and 547 character pairs, resulting in a table of size
2https://www.gutenberg.org/.
3from a list made by Jacques Savoy http://members.unine.ch/jacques.savoy/clef/frenchST.txt.
4https://github.com/flairNLP/flair.
365 × 601. A character (resp. a pair of characters) is considered present if it is (resp. both are)
detected at least 2 times in the chapter.
        </p>
        <p>Note that, in section 3.3.3, we also tested experiments with entities consisting in characters
and character pairs as found in each volume (e.g. Cosette-Valjean in volume one and
CosetteValjean in volume two are now two diferent entities), with the addition of volume constants
( = 1 in volume  and  = 0 in other volumes) in order to isolate volume specific vocabulary.
This new table Evol, containing 1124 entities, permits to see a diachronic evolution of words
associated with volumes, characters, and character relationships.</p>
      </sec>
      <sec id="sec-2-5">
        <title>3.2. Methods</title>
        <p>There are two types of methods for unit embeddings, CA (section 2.2.1) and WV (section 2.2.2),
as well as two methods to derive entity embeddings from them, CENT (section 2.3.1) and REG
(section 2.3.2), making a total of 4 possibles ways for obtaining entity embeddings.</p>
        <p>
          The CA method do not need any external data, and results in vectors in a 364-dimensional
space, while the WV methods is based on pre-trained word vectors using fastText [
          <xref ref-type="bibr" rid="ref24">24</xref>
          ] trained
on Common Crawl.5 For French, the number of word vectors is around two million and the
dimension of the vector space is 300.
        </p>
        <p>Note that, in addition to having two tables E and Evol, four methods, and a considerable
number of words and entities, results can also be presented in various ways (similarities between
entities, associations between entities and words, etc.). Thus, we chose to show here a selection
of results for the each method: the 5 most associated words regarding a subset of entities
(section 3.3.1), the 5 most associated entities regarding a subset of words (section 3.3.2), and a
diachronic study of the 5 most associated words for a subset of entities (section 3.3.3). We invite
curious readers to consult results for all words and entities, which can be found in our GitHub
repository.6</p>
      </sec>
      <sec id="sec-2-6">
        <title>3.3. Results</title>
        <sec id="sec-2-6-1">
          <title>3.3.1. The most associated words for a subset of entities</title>
          <p>The first result in this section presents the most associated words with a subset of entities, as
measured by the association score defined in section 2.2. Results can be found in Table 3 for all
methods.</p>
          <p>We can observe that CA methods seems to summarize entities with a vocabulary closer to
the work, while WV methods tend to frequently use words with a wider scope, with notably
more verbs. It results in having the WV methods giving a general feeling for the tone used
for describing characters and relationships, while the CA methods can depict very specific
objects, locations or events associated with these entities. This behavior can be understood by
the nature of unit embeddings: in the WV embedding, word vectors are fixed and do not take
into account the actual frequencies of words found in the studied corpora. A character can be
close to a word appearing only a few times (or none) in the corpus if this word is located near
5https://fasttext.cc/docs/en/crawl-vectors.html.
6in the "results" folder in https://github.com/gguex/char2char_vectors.</p>
          <p>Marius
jondrette (1.76)
réchaud (1.26)
galetas (1.11)
bouge (1.05)
tableau (0.93)</p>
          <p>Myriel
conventionnel (2.99)</p>
          <p>évêque (1.76)
cathédrale (1.14)</p>
          <p>prêtre (1.11)
philosophie (1.06)</p>
          <p>Marius
embrasser (0.36)
essayer (0.36)
avouer (0.36)
vouloir (0.35)
voir (0.35)</p>
          <p>Myriel
évêque (0.59)
archevêque (0.52)
prêtre (0.45)
abbé (0.39)
souverain (0.38)</p>
          <p>Marius
regarder (0.38)</p>
          <p>voir (0.36)
refermer (0.34)
glisser (0.34)
poser (0.31)</p>
          <p>Myriel
évêque (0.43)</p>
          <p>divin (0.4)
humble (0.39)
bonté (0.38)
archevêque (0.37)</p>
          <p>Valjean
matelas (1.02)
chandelier (0.87)</p>
          <p>toulon (0.82)
fossoyeur (0.79)</p>
          <p>pelle (0.76)
Myriel-Valjean</p>
          <p>deuil (1.14)
chandelier (1.07)
aveugle (1.01)
panier (0.94)
gendarme (0.89)</p>
          <p>Valjean
jean (0.56)
habiller (0.27)
poser (0.26)
jacques (0.26)
pantalon (0.25)
Myriel-Valjean
évêque (0.55)
archevêque (0.46)
prêtre (0.42)
âme (0.42)
abbé (0.39)</p>
          <p>Valjean
jean (0.56)
pantalon (0.28)
jacques (0.26)
philippe (0.23)
glisser (0.23)
Myriel-Valjean</p>
          <p>ange (0.37)
évêque (0.31)
âme (0.31)
amour (0.29)
aurore (0.28)
the vocabulary associated with this character, as semantically similar words are located in the
same region of space. By contrast, CA will generally takes into account word frequencies along
with specificities in order to describe an entity, and semantically similar words can be located
far away from each other.</p>
          <p>Another remark can be made about the diference between CENT methods and REG
methods. As expected, we see that the CENT methods reveal their additive construction between
characters and relationships: words used to describe a relationship rob of on their character
descriptions (see e.g. Cosette, Cosette-Marius, and Cosette-Valjean). By contrast, the REG
methods display more "perpendicular" descriptions of entities, with fewer words repeating.</p>
          <p>Note that we did not show here the least associated words with each entity, as they are
frequently the same for all methods and all related to the long description of the Battle of Waterloo
in volume 2 ("infanterie", "wellington", "cuirassier", "bridage"), containing no protagonist of the
story.</p>
          <p>Overall, we find that the CA-REG method provides the most satisfying results, with pertinent
words associated with each entity and a high variety in the choice of words.</p>
        </sec>
        <sec id="sec-2-6-2">
          <title>3.3.2. The most associated entities for a subset of words</title>
          <p>These results are extracted from a transposed table, and display the most associated entities
to a selected set of words. They can be found in Table 4. This type of results can be seen as
queries, made from a single word by a practitioner, which output the most associated entities in
the work related to that query. We chose here to show top entities related to words "aimer",
"rue", "justice" and "guerre", as they represent some of the main topics of the book. In this task
again, from our point of view, the CA-REG displays the most accurate results: the main love
relationship (Cosette-Marius) of the book is the most associated entity for "aimer", several "amis
de l’ABC" (a revolutionary group) are most associated with "rue", the cop-suspect relationship
(Javert-Valjean) is the top entity for "justice", and military oficers or bellicose characters are
associated with "guerre". While somewhat inferior with the selected set of queries, WV methods
have the advantage of being able to query words outside the scope of the book, as the pre-trained
word embedding possesses a very large vocabulary.</p>
          <p>Note that another way to display these results is through weighted signed networks, as found
in Figure 1 (for CA-REG). The network structure represents the number of times characters
are detected together (which do not depend on the query), and the signed weights (edge color)
display association score between character relationship (edges) and the queried word. This
representation gives a quick visual support in order to explore the studied work and could be
implemented as a standalone program.</p>
        </sec>
        <sec id="sec-2-6-3">
          <title>3.3.3. A diachronic study of the most associated words for a subset of entities</title>
          <p>These results are obtained from the table Evol where entities are considered diferent based on
the volume. By doing so, it permits to track the evolution of association scores along the book.
Additionally to entities, we can also define a constant term  for each volume , which absorbs
the associated words with each volume. Results for constants and a subset of entities (Valjean,
Cosette, Cosette-Valjean) can be found in Table 5. Note that we did not show CENT results in
this table, as they are similar to the one found in Table 3: words are often repeated for diferent</p>
          <p>4
émeute (1.48)
révolte (0.86)
bourgeoisie (0.84)
populaire (0.82)
insurrection (0.81)</p>
          <p>Valjean 4
réverbère (0.98)
hausser (0.45)
promenade (0.37)
lanterne (0.36)
tuyau (0.35)</p>
          <p>Cosette 4
ravissant (1.11)
céleste (0.76)
volupté (0.67)
frémir (0.64)
lancier (0.6)
Cosette-Valjean 4
promenade (0.5)
chaîne (0.47)
blessure (0.46)
tuyau (0.45)
luxembourg (0.44)</p>
          <p>4
violence (0.44)
haine (0.42)
révolte (0.42)
soufrance (0.4)
étincelle (0.39)</p>
          <p>Valjean 4
jean (0.71)
jacques (0.41)
pantalon (0.36)</p>
          <p>louis (0.34)
philippe (0.33)</p>
          <p>Cosette 4
rêver (0.32)
regarder (0.31)
contempler (0.28)
pleurer (0.27)</p>
          <p>lire (0.27)
Cosette-Valjean 4</p>
          <p>jean (0.52)
pantalon (0.35)
gilet (0.28)
gris (0.27)
manteau (0.26)
entities and are less convincing.</p>
          <p>Here again, we see that associated words for the WV give the general tone of volumes and
entities, while CA results are more specific and related to particular events which occurred for
characters. As expected, words associated with volume constants give a short overview of each
volumes, especially with the CA-REG method (e.g. 2 for the Battle of Waterloo, 4 for the
barricade event). Associated words with entities also seem accurate in describing them. Note
that Cosette was not detected in volume 3 because she is not explicitly cited (she is often referred
as "the daughter of M. Leblanc"), and this also explains the absence of the Cosette-Valjean pair.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>4. Conclusion</title>
      <p>In this article, we introduced a general framework in order to automatically extract textual
information about narrative entities from a small corpus or a single work. The framework is built
on two tables, the unit-word table N and the unit-entity table E. This data organization sets
subsequent analyses into a classical statistical framework, where the goal is to see how variables
in E (the entities) afect the variables in N (the vocabulary) for each textual unit. A choice
was taken to use embeddings for analyzing these efects: units and words are embedded using
Correspondence Analysis or pre-trained Word Embedding on N, and entities are embedded in
the same space as units using the Centroids or the Regressions methods on E. These embeddings
are then used in order to see afinities between entities and words, enabling the characterization
of the former by the latter. A case study on Les Misérables was performed to see if methods gave
promising results.</p>
      <p>The first important choice in the analysis is how to define the size of units. Other corpora
were also tested (e.g. Shakespeare plays) and it seems important to define units with at least
a paragraph size (after preprocessing) in order to represent them accurately. Choosing small
units might allow to successfully capture word specificities related to a small subset of entities,
but unit vectors become almost orthogonal one to another if the size of units is too small. This
situation results in an overfitting regime with a high variance and low bias, i.e. units positions
can be distant with the diference of only a few rare words. By contrast, large units will result in
an underfitting regime, with a low variance and high bias, failing to capture entity specificities,
but more robust to particularities in word usages. Having enough units is also important in
order to properly locate entities in the embedding space. In order to analyze characters and
relationships, we advise the practitioner to use their prior knowledge of the work in order to
split the studied narrative as close as possible to "scenes" (as found in theater), which describe a
particular event between an almost constant set of characters.</p>
      <p>The second choice is to select which entities to study. This choice is of course driven by the
problematic, but is also limited by the automatic extraction tools available. These entities can be
various, but must appear frequently in the work in order to be placed correctly in the embedding
space. However, it is unadvised to set an entity which is almost always there (e.g. a narrator),
as it will already be represented by the origin in the CENT method or as the constant term in
the REG method. As a rule of thumbs, the number of entities should ideally be lower than
the number of textual units. However, even with an exceeding number of entities (like in our
case study, where we had 601 and 1124 entities for 365 units), if some entities appear rarely,
analyses are still possible. Note that the version of the table E containing counts of entities
rather than presence among each unit was also tested in experiments, but gave similar results
for the studied corpus.</p>
      <p>The choice of using embeddings, where units, entities and words are located, is motivated by
the fact that the resulting space permits many types of explorations. As presented in this article,
we can extract some of the most (or least) associated words with each entity or rank entities
according to a word query, but other types of measurements could also be made. Entities could
be placed along a particular axis in the space, defined with two sets of contrasted words, in
order to highlight a particular opposition (positive-negative, in order to do sentiment analysis,
introvert-extrovert, friend-enemy, etc.). This approach could also be combined with a clustering
of the words, or a Topic Modeling method, thus permitting to further refine the diferent regions
in the embedding space. Relative location of entities could also be used in order to cluster or
classify them. All these leads can be explored in future research.</p>
      <p>The diference in the choice between CA and WV embeddings appears quite clearly in the
results. CA highlights particular words associated with entities, very specific to the studied
work and the narrative events found in it, while WV gives a general feeling of the tone of the
text when these entities are present. This diference is explained by the fact that CA focuses
on words appearing within the work, with possibly very diferent locations to semantically
similar words, while WV word vectors are positioned regarding their semantic and syntactic
similarities. An entity located in the WV space will then be in a semantic or syntactic region,
and its characterizing words should all be related. Results show that CA methods generally
perform better to quickly interpret entities among the narrative, but might be limited for some
applications. As a matter of fact, the advantage of WV embeddings is that its space is absolute,
permitting the comparison of results between sequentially studied texts, and also contains a
larger vocabulary in its embedding. This last property could be used in order to use a fixed
list of relationship attributes (e.g., friend, enemy, family, colleague), which do not necessarily
appear in every text in the studied corpus, in order to categorize character relationships.</p>
      <p>The choice between the CENT method and the REG method is relatively easy: thanks to its
hyperparameter  , the REG method can give similar results than the CENT method when 
is high (with only a contraction of entity vectors), but also gives more "perpendicular" sets of
words describing entities when  is low. Thus, it is clearly a superior choice in order to give
a variety of results. The choice for this hyperparameter  depends on what the practitioner
desires. If her/his entities are defined such that some of them are completely included into
others, such as character and character pair, and she/he would like to have specificities about
the finer grained entity, the  must be set to a low value. By contrast, if she/he do not mind
in having some of her/his entities described like a mixture of others, she/he can set  to a
high value. However, very low values of  should be avoided if the number of entities is high
compared to the number of units, as this will lead to an overfitting of regression coeficients
and result in the association of very rare and specific words with entities.</p>
      <p>
        Finally, the biggest weakness of this framework yet is the dificulty to validate its pertinence.
Several other case studies, with results carefully scrutinized regarding prior knowledge, should
be undertaken in order to see if results are trustworthy, but this type of experiments are
expensive both in time and human resources. Another idea could be to use annotated corpora
such as described in [
        <xref ref-type="bibr" rid="ref31">31</xref>
        ], where human annotators classified character relationships in various
categories. For example, we could see if the presented method can actually retrieve these
categories by assigning relationships to the category-word with the highest association score.
Such experiments are promising, but it requires an eficient automatic entity tagger, in order to
detect and especially unify characters in a large quantity of documents, and unfortunately, this
tool does not exist yet. Nevertheless, first case studies gave promising results for this framework,
and its flexibility could lead to various applications.
      </p>
    </sec>
    <sec id="sec-4">
      <title>A. Appendix</title>
      <sec id="sec-4-1">
        <title>A.1. Correspondence Analysis</title>
        <p>Starting from the ( × ) contingency table N = ( ), we define the vector of unit weights
as f = () := (∙ /∙ ) and the vector of word weights as g = ( ) := (∙  /∙ ), where ∙
denotes the summation on the replaced index. It is then possible to compute the weighted scalar
product matrix between units K = ( ) with</p>
        <p>=1
 := √︀</p>
        <p>∑︁ ( − 1)( − 1),
where  = ∙∙∙  is the quotient of independence of the cell , . The vector of textual unit
, x = ( ), is obtained by the eigendecomposition of the matrix K = UΛU⊤ and with
where   are the eigenvalues contained in the diagonal matrix Λ and  the eigenvectors
components found in U. We find the vector of word , w = ( ), with
 := √
√</p>
        <p>,
 := √</p>
        <p>1
  =1
∑︁   .</p>
        <p>
          (7)
(8)
(9)
Note that various other quantities of interest can also be computed in CA, such as
 :=
 :=
 :=
  : the proportion of inertia expressed in  ,
 : the contribution of unit  to axis  ,
2
  : the contribution of word  to axis  ,
ℎ := ∑︀ 2 : the contribution of axis  to unit ,
ℎ := ∑︀ 2 : the contribution of axis  to word ,
For a detailed interpretation of these diferent quantities, see [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ].
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>A.2. Unit embedding based of pre-trained word vectors</title>
        <p>
          This method is justified and detailed in [
          <xref ref-type="bibr" rid="ref27">27</xref>
          ]. Let w1, . . . , w be pre-trained word vectors which
appear in the studied corpus, and the ( × ) table N counting the frequency of these words in
the  textual units. We first construct the uncentered vectors x̃︀ of each unit  with
where  &gt; 0 is an hyperparameter which gives less importance to frequent words as  → 0. In
this article, we set  to the recommended value of 0.01. Let X̃︀ be the matrix whose columns are
vectors x̃︀, and u be its first singular vector. We compute vectors x of each units  with
(10)
(11)
This last equation acts like a centration of unit vectors in the direction of the first singular vector
u.
        </p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>F.</given-names>
            <surname>Moretti</surname>
          </string-name>
          , “Operationalizing”
          <article-title>: or, the Function of Measurement in Modern Literary Theory</article-title>
          ,
          <source>The Journal of English Language and Literature</source>
          <volume>60</volume>
          (
          <year>2014</year>
          )
          <fpage>3</fpage>
          -
          <lpage>19</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>T.</given-names>
            <surname>Underwood</surname>
          </string-name>
          , A Genealogy of Distant Reading.,
          <source>DHQ: Digital Humanities Quarterly</source>
          <volume>11</volume>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M. P.</given-names>
            <surname>Eve</surname>
          </string-name>
          , Close Reading with Computers:
          <article-title>Genre Signals, Parts of Speech, and David Mitchell's Cloud Atlas</article-title>
          , SubStance
          <volume>46</volume>
          (
          <year>2017</year>
          )
          <fpage>76</fpage>
          -
          <lpage>104</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>W.</given-names>
            <surname>Schmid</surname>
          </string-name>
          ,
          <article-title>Narratology: an introduction</article-title>
          , Walter de Gruyter,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>A.</given-names>
            <surname>Agarwal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kotalwar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Zheng</surname>
          </string-name>
          ,
          <string-name>
            <surname>O. Rambow,</surname>
          </string-name>
          <article-title>SINNET: Social Interaction Network Extractor from Text</article-title>
          ,
          <source>in: The Companion Volume of the Proceedings of IJCNLP</source>
          <year>2013</year>
          :
          <article-title>System Demonstrations, Asian Federation of Natural Language Processing</article-title>
          , Nagoya, Japan,
          <year>2013</year>
          , pp.
          <fpage>33</fpage>
          -
          <lpage>36</lpage>
          . URL: https://aclanthology.org/I13-2009.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>S.</given-names>
            <surname>Chaturvedi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Iyyer</surname>
          </string-name>
          , H.
          <string-name>
            <surname>Daume</surname>
            <given-names>III</given-names>
          </string-name>
          ,
          <article-title>Unsupervised learning of evolving relationships between literary characters</article-title>
          ,
          <source>in: Proceedings of the AAAI Conference on Artificial Intelligence</source>
          , volume
          <volume>31</volume>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>J.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Sun</surname>
          </string-name>
          , J. Han,
          <string-name>
            <given-names>C.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <surname>A</surname>
          </string-name>
          <article-title>Survey on Deep Learning for Named Entity Recognition</article-title>
          ,
          <source>IEEE Transactions on Knowledge and Data Engineering</source>
          <volume>34</volume>
          (
          <year>2022</year>
          )
          <fpage>50</fpage>
          -
          <lpage>70</lpage>
          . doi:
          <volume>10</volume>
          .1109/ tkde.
          <year>2020</year>
          .
          <volume>2981314</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>V.</given-names>
            <surname>Labatut</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Bost</surname>
          </string-name>
          ,
          <article-title>Extraction and Analysis of Fictional Character Networks: A Survey</article-title>
          ,
          <source>ACM Computing Surveys</source>
          <volume>52</volume>
          (
          <year>2019</year>
          )
          <volume>89</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>89</lpage>
          :
          <fpage>40</fpage>
          . URL: https://doi.org/10.1145/3344548. doi:
          <volume>10</volume>
          .1145/3344548.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>S.</given-names>
            <surname>Min</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Park</surname>
          </string-name>
          ,
          <article-title>Modeling narrative structure and dynamics with networks, sentiment analysis, and topic modeling</article-title>
          ,
          <source>PLOS ONE 14</source>
          (
          <year>2019</year>
          )
          <article-title>e0226025</article-title>
          . doi:
          <volume>10</volume>
          .1371/journal. pone.
          <volume>0226025</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>I.</given-names>
            <surname>Novakova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Siepmann</surname>
          </string-name>
          , Literary Style, Corpus Stylistic, and
          <article-title>Lexico-Grammatical Narrative Patterns: Toward the Concept of Literary Motifs, in: Phraseology and Style in Subgenres of the Novel</article-title>
          , Springer International Publishing,
          <year>2019</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>15</lpage>
          . doi:
          <volume>10</volume>
          .1007/ 978-3-
          <fpage>030</fpage>
          -23744-
          <issue>8</issue>
          _
          <fpage>1</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>S.</given-names>
            <surname>Grayson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Mulvany</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Wade</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Meaney</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Greene</surname>
          </string-name>
          ,
          <article-title>Novel2vec: Characterising 19th century fiction via word embeddings</article-title>
          ,
          <source>in: 24th Irish Conference on Artificial Intelligence and Cognitive Science</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>R. J.</given-names>
            <surname>Heuser</surname>
          </string-name>
          ,
          <article-title>Word vectors in the eighteenth century</article-title>
          ,
          <source>in: ADHO 2017-Montréal</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>S. J.</given-names>
            <surname>Kerr</surname>
          </string-name>
          , When Computer Science Met Austen and Edgeworth,
          <source>NPPSH Reflections 1</source>
          (
          <year>2017</year>
          )
          <fpage>38</fpage>
          -
          <lpage>52</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>M.</given-names>
            <surname>Elsner</surname>
          </string-name>
          ,
          <article-title>Character-based kernels for novelistic plot structure, in: Proceedings of the 13th Conference of the European Chapter of the Association for Computational Linguistics, Association for Computational Linguistics</article-title>
          , Avignon, France,
          <year>2012</year>
          , pp.
          <fpage>634</fpage>
          -
          <lpage>644</lpage>
          . URL: https://aclanthology.org/E12-1065.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>J.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. Y.</given-names>
            <surname>Yeung</surname>
          </string-name>
          ,
          <source>Extracting Networks of People and Places from Literary Texts, in: Proceedings of the 26th Pacific Asia Conference on Language, Information, and Computation</source>
          , Faculty of Computer Science, Universitas Indonesia, Bali, Indonesia,
          <year>2012</year>
          , pp.
          <fpage>209</fpage>
          -
          <lpage>218</lpage>
          . URL: https://aclanthology.org/Y12-1022.
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Rochat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Kaplan</surname>
          </string-name>
          , Analyse des réseaux de personnages dans Les Confessions de
          <string-name>
            <surname>Jean-Jacques</surname>
            <given-names>Rousseau</given-names>
          </string-name>
          ,
          <source>Les Cahiers du numérique 10</source>
          (
          <year>2014</year>
          )
          <fpage>109</fpage>
          -
          <lpage>133</lpage>
          . URL: https://www. cairn.
          <article-title>info/revue-les-cahiers-du-</article-title>
          <string-name>
            <surname>numerique-</surname>
          </string-name>
          2014-3-page-109.htm.
          <source>doi:10.3166/LCN.10. 3</source>
          .
          <fpage>109</fpage>
          -
          <lpage>133</lpage>
          , place: Cachan Publisher: Lavoisier.
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>A.</given-names>
            <surname>Grener</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Luczak-Roesch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Fenton</surname>
          </string-name>
          , T. Goldfinch,
          <string-name>
            <surname>Towards A Computational Literary Science: A Computational Approach To Dickens' Dynamic Character Networks</surname>
          </string-name>
          (
          <year>2017</year>
          ). doi:
          <volume>10</volume>
          .5281/ZENODO.259499.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>G. A.</given-names>
            <surname>Sack</surname>
          </string-name>
          ,
          <article-title>Character networks for narrative generation: Structural balance theory and the emergence of proto-narratives, Complexity and the human experience: Modeling complexity in the humanities and social sciences (</article-title>
          <year>2014</year>
          )
          <fpage>81</fpage>
          -
          <lpage>104</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>V.</given-names>
            <surname>Krishnan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Eisenstein</surname>
          </string-name>
          ,
          <article-title>"You're Mr. Lebowski, I'm the Dude": Inducing Address Term Formality in Signed Social Networks, in: Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies</article-title>
          , Association for Computational Linguistics,
          <year>2015</year>
          . doi:
          <volume>10</volume>
          .3115/v1/n15-
          <fpage>1185</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>F.</given-names>
            <surname>Incitti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Urli</surname>
          </string-name>
          , L. Snidaro,
          <article-title>Beyond word embeddings: A survey</article-title>
          ,
          <source>Information Fusion</source>
          <volume>89</volume>
          (
          <year>2023</year>
          )
          <fpage>418</fpage>
          -
          <lpage>436</lpage>
          . doi:
          <volume>10</volume>
          .1016/j.inffus.
          <year>2022</year>
          .
          <volume>08</volume>
          .024.
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>L.</given-names>
            <surname>Lebart</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Pincemin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Poudat</surname>
          </string-name>
          ,
          <article-title>Analyse des données textuelles, number 11 in Mesure et évaluation</article-title>
          , Presses de l'Université du Québec, Québec,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>T.</given-names>
            <surname>Mikolov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Chen</surname>
          </string-name>
          , G. Corrado,
          <string-name>
            <given-names>J.</given-names>
            <surname>Dean</surname>
          </string-name>
          ,
          <article-title>Eficient Estimation of Word Representations in Vector Space</article-title>
          , arXiv:
          <fpage>1301</fpage>
          .3781 [cs] (
          <year>2013</year>
          ). URL: http://arxiv.org/abs/1301.3781, arXiv:
          <fpage>1301</fpage>
          .
          <fpage>3781</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>J.</given-names>
            <surname>Pennington</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Socher</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Manning</surname>
          </string-name>
          , Glove:
          <article-title>Global Vectors for Word Representation</article-title>
          ,
          <source>in: Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP)</source>
          ,
          <article-title>Association for Computational Linguistics</article-title>
          , Doha, Qatar,
          <year>2014</year>
          , pp.
          <fpage>1532</fpage>
          -
          <lpage>1543</lpage>
          . URL: http://aclweb.org/anthology/D14-1162. doi:
          <volume>10</volume>
          .3115/v1/
          <fpage>D14</fpage>
          -1162.
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <string-name>
            <given-names>P.</given-names>
            <surname>Bojanowski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Grave</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Joulin</surname>
          </string-name>
          , T. Mikolov,
          <article-title>Enriching Word Vectors with Subword Information, Transactions of the Association for Computational Linguistics 5 (</article-title>
          <year>2017</year>
          )
          <fpage>135</fpage>
          -
          <lpage>146</lpage>
          . URL: https://direct.mit.edu/tacl/article/43387. doi:
          <volume>10</volume>
          .1162/tacl_a_
          <fpage>00051</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [25]
          <string-name>
            <given-names>J.</given-names>
            <surname>Devlin</surname>
          </string-name>
          , M.-
          <string-name>
            <given-names>W.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Toutanova</surname>
          </string-name>
          , Bert:
          <article-title>Pre-training of deep bidirectional transformers for language understanding</article-title>
          , arXiv preprint arXiv:
          <year>1810</year>
          .
          <volume>04805</volume>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [26]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <article-title>Word Embedding for Understanding Natural Language: A Survey, in: Studies in Big Data</article-title>
          , Springer International Publishing,
          <year>2017</year>
          , pp.
          <fpage>83</fpage>
          -
          <lpage>104</lpage>
          . doi:
          <volume>10</volume>
          .1007/ 978-3-
          <fpage>319</fpage>
          -53817-
          <issue>4</issue>
          _
          <fpage>4</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          [27]
          <string-name>
            <given-names>S.</given-names>
            <surname>Arora</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liang</surname>
          </string-name>
          , T. Ma,
          <article-title>A simple but tough-to-beat baseline for sentence embeddings</article-title>
          ,
          <source>in: International conference on learning representations</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          [28]
          <string-name>
            <given-names>Q.</given-names>
            <surname>Le</surname>
          </string-name>
          , T. Mikolov,
          <article-title>Distributed representations of sentences and documents</article-title>
          ,
          <source>in: International conference on machine learning, PMLR</source>
          ,
          <year>2014</year>
          , pp.
          <fpage>1188</fpage>
          -
          <lpage>1196</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          [29]
          <string-name>
            <given-names>M.</given-names>
            <surname>Kusner</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Kolkin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Weinberger</surname>
          </string-name>
          ,
          <article-title>From word embeddings to document distances</article-title>
          ,
          <source>in: International conference on machine learning, PMLR</source>
          ,
          <year>2015</year>
          , pp.
          <fpage>957</fpage>
          -
          <lpage>966</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref30">
        <mixed-citation>
          [30]
          <string-name>
            <given-names>A.</given-names>
            <surname>Akbik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Blythe</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Vollgraf</surname>
          </string-name>
          ,
          <article-title>Contextual String Embeddings for Sequence Labeling</article-title>
          ,
          <source>in: COLING</source>
          <year>2018</year>
          , 27th International Conference on Computational Linguistics,
          <year>2018</year>
          , pp.
          <fpage>1638</fpage>
          -
          <lpage>1649</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref31">
        <mixed-citation>
          [31]
          <string-name>
            <given-names>P.</given-names>
            <surname>Massey</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Xia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Bamman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N. A.</given-names>
            <surname>Smith</surname>
          </string-name>
          , Annotating Character Relationships in Literary Texts (
          <year>2015</year>
          ). arXiv:
          <volume>1512</volume>
          .
          <fpage>00728</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>