<!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 />
    <article-meta>
      <title-group>
        <article-title>On Domain-specific Topic Modelling Using the Case of a Humanities Journal</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Nadja Redzuan</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ralf Möller</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marcel Gehrke</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tanya Braun</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Lübeck, Institute of Information Systems</institution>
          ,
          <addr-line>Ratzeburger Allee 160, 23562 Lübeck</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Münster, Computer Science Department</institution>
          ,
          <addr-line>Einsteinstr. 62, 48149 Münster</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2008</year>
      </pub-date>
      <abstract>
        <p>Topic modelling techniques have been an important tool for meaningful information retrieval. They also hold the potential to support researchers in areas such as humanities in exploring corpora of diferent topics in an automated way. One prominent method, latent Dirichlet allocation (LDA), describes documents as distributions over topics and topics as distributions over words. Most applications of LDA focus on sets of tweets, news articles, wikipedia entries, or academic publications covering various topics in a large corpus. In this article, LDA is used in a rather opposite setting: a domain-specific, small-scale corpus in the form of an academic journal concerned with the studies of modern and ancient manuscripts. From this case study, we infer steps specific to dealing with domain-specific corpora.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Topic modelling</kwd>
        <kwd>LDA</kwd>
        <kwd>Domain-specific corpora</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Developments in the area of Natural Language Processing (NLP) have been crucial for handling
an increasing volume of textual data [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. When paired with recent advances in the field of
Machine Learning (ML), NLP can greatly facilitate the task of extracting meaningful information
from an overwhelming amount of data. In the humanities, these methods have the potential to
support research tasks by having the potential to automate text exploration, summarisation,
and so on. However, humanities corpora may come with their own sets of challenges like
very domain-specific vocabulary for which existing models do not work or even relatively
simple items like stop-word lists do not fit. Additionally, corpora might be very small or in a
language without much support, posing further challenges, possibly hindering techniques such
as fine-tuning a general model for a domain-specific task.
      </p>
      <p>
        One of the many powerful tools at the intersection of NLP and ML is topic modelling, a
computational technique used for information retrieval in domains such as bioinformatics [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ],
medical science [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], and social networks [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Given a large collection of textual data, a topic
model can extract hidden topics that best represent the given content. Based on the frequency of
observed words in a collection of documents, topic modelling infers underlying themes through
patterns of recurring words. Latent Dirichlet allocation (LDA) is a topic modelling technique
widely used to infer hidden topics from a large collection of text documents [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. It has been
applied to countless applications in the text, image, and video domains have found LDA to be a
useful tool for retrieving and analysing information [
        <xref ref-type="bibr" rid="ref6 ref7">6, 7</xref>
        ].
      </p>
      <p>
        Although LDA is an established technique to analyse text data in areas such as biomedical
science [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] and software engineering [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], scholars in the fields of arts, humanities, and social
sciences have taken longer to apply automated text-analysis techniques [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. With this paper,
we take a practical look at topic modelling in areas that face the above mentioned challenges
like data scarcity using a humanties journal as a case study. To that end, we present (a) an
optimised LDA topic model for a corpus of a humanities journal and (b) an evaluation regarding
how interpretable and how representative the topics are of the collection of documents. We
discuss using this setting what topic modelling can ofer to the humanities and special steps
domain-specific corpora require.
      </p>
      <p>In the following, we briefly recap topic modelling and LDA. Then, we describe our approach
and evaluation metrics used to assess a topic model. Afterwards, we report on a topic model
learned for a humanities journal. We end with a conclusion.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Topic Modelling</title>
      <p>In topic modelling, the atomic unit of textual data is a word, or otherwise called a token. A
set of words make up a document and a collection of documents make up a corpus. Topic
modelling adopts the “Bag-of-Words” (BoW) model, in which each document is represented
by the number of occurrences of every word in the vocabulary, disregarding the sequential
order of words. Suppose a corpus consists of  documents and  words. The BoW model is
given by a document-term matrix (DTM) of  ×  dimensions. Based on this BoW model,
topic modelling finds patterns of word co-occurrences to infer  hidden topics. Dimensionality
reduction is the distinctive feature of many topic modelling approaches, whereby a DTM is
reduced into document-topic and topic-word matrices of dimensions  ×  and  ×  .</p>
      <p>
        LDA is a prototypical topic modelling approach [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. The key ideas in LDA are that (i)
documents are described by probability distributions over topics and (ii) topics are probability
distributions over a fixed vocabulary of words. Through the additional assumption that the
document-topic and topic-word probability distributions are generated according to Dirichlet
priors with hyperparameters  and  , the learning process can be controlled [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
      </p>
      <p>,
,</p>
      <p>
        LDA uses a 3-level hierarchical model, as shown in Fig. 1. The rectangular plates represent
replication while arrows denote dependencies. The  plate denotes documents in a corpus
and the  plate denotes words in a document. For every document , there is a multinomial
distribution over  topics ( ). For every topic , there is a multinomial distribution over 
words ( ). Words , are the only observed variables whilst the rest are latent variables. Based
on the number of topics , the two prior Dirichlet distributions with parameters  &gt; 0 and
 &gt; 0 are set.  influences the per-document topic distribution. A higher  value increases the
chance of each topic being assigned to a document, resulting in documents with uniform topic
distributions [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. Likewise,  increases the weight of each word in the topic-word distribution,
leading to more uniform word distributions.
      </p>
      <p>The observed and hidden variables along with their dependencies make up the following
joint probability distribution for a corpus :
 (, , ,</p>
      <p>; ,  ) = ∏︁  (  ;  ) ∏︁  (  ;  ) ∏︁  (, |  )  (, | ,  , )
=1 =1 =1
(1)
which makes LDA a generative model: Drawn from the Dirichlet distribution with parameter
 , the latent variable   is the topic distribution for a document . The latent variable   is
the word distribution for topic  drawn from the Dirichlet distribution with parameter  . The
variable , is the topic drawn from the multinomial topic distribution of document  for the
’th word. Based on the topic and its per-topic word distribution, a value for variable , is
sampled for every  in .</p>
      <p>We approximate a topic model for a corpus by inferring the latent variables   and   from
the words in the documents. Given a new document and a learned model, LDA allows for
inferring the following distributions based on the observed variables (words): (i) the latent topic
distribution   for document , representing the probability of topics  = 1, ...,  occurring in
document , and (ii) the latent word distribution   for topic , representing the probability of
words  = 1, ...,  belonging to topic .</p>
    </sec>
    <sec id="sec-3">
      <title>3. Learning a Domain-specific Topic Model</title>
      <p>This section provides a description of the dataset and methodologies used in the topic modelling
task, including the experimental design as well as evaluation metrics used.</p>
      <sec id="sec-3-1">
        <title>3.1. Dataset</title>
        <p>The corpus is comprised of a collection of humanities journal volumes, Manuscript Cultures,
a publication by the “Manuscript Cultures in Asia and Africa” research group of Hamburg
University concerned with the study of modern and ancient written artefacts. There are a total
of 17 volumes of Manuscript Cultures publicly accessible as downloadable PDFs on CMSC’s
homepage1. Each volume contains articles covering various topics, such as manuscript analysis
techniques along with calligraphy and writing styles in ancient manuscripts. Volumes 4, 6, 9,</p>
        <sec id="sec-3-1-1">
          <title>1https://www.csmc.uni-hamburg.de/publications/mc.html</title>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Experimental Design</title>
        <p>The topic modelling process is divided into the following three steps: pre-processing, LDA,
and evaluation. The pre-processing module cleans the raw dataset. In the LDA module, the
pre-processed texts is transformed into a BoW model, which is then used to train an LDA topic
model. The evaluation module involves assessment of the trained topic models.
3.2.1. Pre-processing Module
The objectives of the Text Pre-processing Module are to import, organise, and clean the raw
text dataset. This is a crucial first step in the topic modelling process because an unstructured
input dataset afects the quality of the trained topic model. Methods such as normalisation,
removal of stop-words, lemmatisation, and removal of short words are applied to pre-process
the texts. Normalisation of text data involves removing digits and punctuation from the text,
and converting the text into lowercase. Stop-words are common words that do not contribute
to semantic significance to a text, such as articles, prepositions, and conjunctions. The NLTK
python platform provides a list of 179 common English stop-words. Additionally, we extend the
list of stop-words with words such as “fig”, “column”, and “ieee”. The goal of lemmatisation
is to reduce variation of forms of a word, thus shrinking the size of our input data for topic
model training, which benefits from part-of-speech tagging to more accurately identify the root
of a word. In addition, we keep only words of length  &gt; 2 in our pre-processed dataset as
analysing preliminary trained topic models based on pre-processed texts without eliminating
single characters and words of length  = 2 showed that these short words contribute little to
no semantic significance to our corpus.
3.2.2. LDA Module
In the LDA Module, the aim is to train an optimal LDA topic model. The sequence of steps
involves tokenising the pre-processed texts and building bigrams, which are pairs of words that
appear together with a given minimum frequency, before transforming the tokenised texts into
a BoW representation and training a model.</p>
        <p>Tokenising and Building Bigrams The first step to prepare the input data as a suitable
format for model training is to split the documents into tokens. After tokenising the
preprocessed texts, our implementation finds bigrams from the documents. Bigrams are words
(or tokens) that commonly appear adjacent to each other. We eliminate bigrams that have a
low frequency. Our implementation scores bigrams based on the Normalised Pointwise Mutual
Information (NPMI) scoring function. Hence, bigrams have a score between -1 and 1 based
on the frequency of the first and second tokens. A higher threshold score results in fewer
bigrams. The computed bigrams are then added to our list of tokens, so that the BoW we use
to train our model is more attuned to the natural language expressions humans use, which
often includes pair of words. For example, a topic model that produces a topic with the phrase
“fifteenth_century” would be more beneficial for the interpretation of topics, rather than the
singular tokens “fifteenth” and “century”.</p>
        <p>Transform into Dictionary and Corpus Our implementation removes tokens that appear
in less than 20 documents and in more than 70% of our corpus. Doing so produces the best
results for training the LDA model in our case. This is followed by transforming our data into
a BoW model, where each document is represented by the frequency of every token in our
dictionary. The collection of these vectorised documents make up the corpus used as input for
training the topic model.</p>
        <p>
          Training the Topic Model For an LDA topic model to extract meaningful and comprehensible
topics, it is critical to specify the number of topics we want to obtain at the beginning of the
training process. To determine the optimal number of topics , we train topic models by
varying the values of , ranging from 1 to 40, and evaluate the models using metrics discussed
in Section 3.2.3. Through fine-tuning of the parameters during topic model training, an initial
base model and a second model are selected for analysis and comparison after multiple training
iterations. Furthermore, a final topic model is trained after optimising the hyperparameters 
and  . The trained topic models are compared and the results are discussed in Section 4.
3.2.3. Evaluation Metrics
After training multiple LDA topic models, we choose and compare optimal models based on
conventional quantitative evaluation metrics, such as perplexity and topic coherence, as well as
qualitative metrics based on human interpretation of the topics produced by the model.
Perplexity Perplexity evaluates the predictive quality of a topic model and is calculated based
on the log-likelihood of a document. Log-likelihood measures how likely the trained model fits
the data and is defined as [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]:

-ℎ() = ∑︁ log( (  ))
=1
(2)
where  is a corpus with  documents and  are the words contained within the th document.
 (  ) denotes the probability of the observed document based on the topics generated from
the trained model. A higher likelihood score means the model is better fitted to the trained data.
The perplexity is then computed as follows [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ]:
() = 2− -ℎ()

(3)
Lower perplexity scores imply that the trained model is less perplexed by the data, hence
indicating a better model. As lower perplexity scores do not necessarily correlate to more
interpretable topics [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ], we also look at topic coherence as an evaluation criterion.
        </p>
        <p>Topic 1</p>
        <p>Topic 2
script 0.009 copy 0.008
buddhist 0.005 scribe 0.007</p>
        <p>literary 0.004 chapter 0.007
university 0.004 god 0.007</p>
        <p>copy 0.004 arabic 0.007
catalogue 0.004 index 0.007</p>
        <p>art 0.004 title 0.006
monastery 0.004 unit 0.006
literature 0.004 subsection 0.006
print 0.004 table 0.006</p>
        <p>Topic 3
method 0.017</p>
        <p>data 0.012
approach 0.010</p>
        <p>tool 0.009
script 0.008
digital 0.008</p>
        <p>style 0.007
model 0.007
user 0.007
task 0.006</p>
        <p>Topic 4
ink 0.037
sheet 0.015
parchment 0.009
papyrus 0.008
scroll 0.008
fibre 0.008</p>
        <p>xrf 0.007
lead 0.007
light 0.006
pigment 0.006</p>
        <p>Topic 5
gospel 0.018
codex 0.014
homily 0.013</p>
        <p>fols 0.012
liturgical 0.009</p>
        <p>greek 0.008
fragment 0.007
church 0.006</p>
        <p>john 0.006
monastery 0.006</p>
        <p>
          Topic Coherence Topic coherence captures the interpretability of topics and is measured
through the degree of semantic similarity between high scoring words in the topic. The 
measure is a particular coherence model that has proven itself performance-wise [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ]. It is
calculated through the following steps: (i) Segmentation: From the words with highest probabilities
 = {1, ..., } in a topic , a set of subset pairs of words ( ′,  ′′) with  ′,  ′′ ⊆  is
sampled. (ii) Probability Calculation: Word occurrence probabilities  ( ′,  ′′) based on the
corpus are calculated with the boolean sliding window method, whereby a sliding window is
moved over the text to measure the proximity between words in a document. (iii) Confirmation
Measure: An indirect confirmation measure is calculated as indication of the relation between
subsets of words. The cosine similarity between mixture vectors of words in  ′ and  ′′ is the
ifnal confirmation score. (iv) Aggregation: The arithmetic mean of the calculated confirmation
scores is the final coherence value. The  measure generates a topic coherence score between
0 and 1. A model with higher topic coherence score extracts topics that make more sense to
humans, hence we aim to maximise the topic coherence score when training a topic model.
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Results</title>
      <p>This section provides an in-depth discussion on the evaluation results and decision rationales
of the topic modelling process.</p>
      <sec id="sec-4-1">
        <title>4.1. Optimal Model</title>
        <p>To find an optimal topic model, we train several topic models and calculate the mean topic
coherence scores . In a first step, the topic models vary in the number of documents processed
in each training chunk (chunksize), how many times the model is trained on the corpus
(passes), and the number of topics . The mean topic coherence scores for chunksize = 10
are constantly the highest within each iteration of the diferent passes values with  = 0.492
for passes = 10,  = 0.496 for passes = 20, and  = 0.497 for passes = 30. Hence, we set
the value for chunksize at 10. We vary the value of passes ∈ {20, 30}. In a second step, we
ifnd the optimal alpha and beta values by training topic models with varying parameter values
as follows: •  ∈ {1, ..., 20} • passes ∈ {20, 30} • chunksize = 10 •  ∈ {1/, 0.01, 0.1}
•  ∈ {1/10 · , 0.001, 0.01} At the end of the training process, we obtain a model with a topic
coherence score of  = 0.574 and a perplexity score of  = 140.492, whereby the configuration
of parameters is ( = 7, passes = 30, chunksize = 10,  = 0.1,  = 0.7).</p>
        <p>To get a feeling of the result, let us take a closer look at the optimal topic model, which we
refer to as TM. Table 1 lists the top 10 words and their weights for five of the seven topics.
Topics 1, 3, 5, and 7 contain similar distinguishing words that make up the topics “Buddhist
manuscripts”, “Digital approaches in anthropology”, “Gospel (Georgian) manuscripts”, and
“Chinese manuscripts”. Although Topic 4 consists of words such as “xrf”2 and “light” which
could point to an imaging technique, we give it the label “Material analysis” due to the words
“ink” and “parchment” having higher weights in the topic. Furthermore, Topic 6 has the bigram
“multispectral_image” and the word “light”, providing stronger indication that this topic is related
to imaging techniques. Apart from “god” and “arabic”, the words that make up Topic 2 are
indistinct, therefore we are left with no option but to label this topic with “Arabic manuscripts”.</p>
        <p>The Inter-topic Distance Map (IDM) for TM illustrated in Fig. 2 shows that all topics are</p>
        <sec id="sec-4-1-1">
          <title>2“xrf” refers to X-Ray Fluorescence, a method for analysing manuscript composition.</title>
          <p>distinct from each other, which is an indicator of a good topic model, since the topics do not
overlap. We observe that the topics linked to manuscripts are closer together in the bottom
right half of the IDM, while the topics “Digital approaches in anthropology”, “Material analysis”,
and “Imaging techniques” are dispersed further away.</p>
        </sec>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Interpretability</title>
        <p>To determine whether the learned model provides interpretable topics and to get closer to form
of ground truth, we look at the individual volumes. Figure 3 shows the topic distribution of
each of them. To analyse whether they form an accurate representation of the actual topic
distribution in our corpus, we manually assign the documents in each volume to a topic label
from TM based on human interpretation. We then rate the topic distribution for each volume
based on context by referring back to the contents of the volume.</p>
        <p>A qualitative rating of “high”, “medium”, and “low” is given to assess how well the topic
distribution compares to the actual corpus. In this case, “high” represents that the topic distribution
correlates well with the content and its perceived prevalence in a given volume of Manuscript
Cultures. “Medium” indicates that the topic distribution is acceptable, but the order of prevalence
is debatable. A “low” rating for a topic distribution means that the order of prevalence of the
topics and the allocation of the word distribution of the topic itself is questionable in relation to
the context of the corpus. Out of the eleven volumes of Manuscript Cultures, seven volumes are
ranked as “high” (Volumes 1, 3, 7, 8, 11, 13, 15), three are ranked as “medium” (Volumes 2, 10,
18), and one is ranked as “low” (Volume 5). Let us look at the three categories.
Rating “high” Volumes 7, 11, and 15 contain the proceedings of the “Conference on Natural
Sciences and Technology in Manuscript Analysis”, therefore these volumes contain articles
covering themes such as manuscript analysis techniques, exploration of inks and materials in
historical manuscripts, and computational methods for the study of manuscripts. Thus, it makes
sense that the topics “Digital”, “Material”, and “Imaging” have high prevalence in these volumes.
For another example, we look at Volume 1, which explores Buddhist Sanskrit manuscripts from
Tibet and Buddhist scripts from the surrounding areas of Thailand. Furthermore, an article from
Volume 1 investigates inventory of tombs of early ancient China. Hence, the high prevalence of
the topic “Buddhist” followed by “Chinese” is consistent with the corpus. For the other volumes
(3, 8, 13), a comparable interpretation can be found.</p>
        <p>Rating “medium” In Volume 2, the topic “Buddhist manuscripts” is listed as the most
dominant topic, although two out of five articles are perceived to have more relevance to the topic
“Chinese manuscripts”, as one article focuses on the study of ancient Chinese manuscripts,
while the other article covers Chinese ligatures in Uigur manuscripts from the 13th and 14th
century. In contrast, only one article in the volume covers the preservation and documentation
of Buddhist manuscripts from monasteries in Laos. The remaining two articles investigate
Arabic and Sanskrit manuscripts, respectively. Hence, we infer that a proper descending order
of topics is “Chinese”, “Buddhist”, “Arabic”. Similar arguments arise for Volumes 10 and 18.
Rating “low” In Volume 5, one-third of the articles are related to the study of characters,
handwriting, terminology, or calligraphy in manuscripts. By intuition, we would like to
categorise these articles as “Character and handwriting studies”, but since TM does not contain this
topic label, a compromise is to assign the label “Chinese manuscripts”, since the topic-word
distribution for “Chinese” contains the words “character” and “calligraphy”. However, this
contradicts with the prevalence of the topic “Buddhist” in Volume 5. Two of the articles in Volume
5 study the types of materials used as manuscripts, one for ancient Tamil texts and the other for
Tibetan scripts. One article examines the structure of Arabic poems. Thus, the prevalence of
the topics “Arabic” and “Material” is substantiated. The proposed order of significance of topics
for Volume 5 based on the context is therefore “Material”, “Chinese”, and “Arabic”.
The Curious Case of “Buddhist” The topic “Buddhist” is the most dominant topic throughout
the corpus. It is the topic with the highest distribution in Volumes 1, 2, 3, 5, and 8, having
the highest prevalence in Volume 1 with a distribution of 0.803. However, it is apparent that
“Buddhist” is commonly listed as a prevalent topic in the topic distributions that are ranked
“medium” and “low”. We deduce that the cause of this misclassification is the occurrence of many
common words in the topic-word distribution for “Buddhist”. The top words such as “script”
and “literary” have a high probability of occurring throughout the corpus due to the context
of the subject domain. However, this is not that surprising since the corpus is a collection of
rather homogeneous documents which centres around the same specific domain of manuscript
studies, therefore the same prevalent words are spread throughout the corpus.</p>
      </sec>
      <sec id="sec-4-3">
        <title>4.3. Discussion</title>
        <p>We consider the learning approach and results on a technical level as well as their meaning for
humanities research and domain-specific corpora in general.</p>
        <p>On a Technical Level In summary, the topics extracted by TM are found to be interpretable,
although many common words make up the topic-word contribution. A previous topic model
that showed the best performance before we started optimising for diferent hyperparameters
had  = 11 topics, which lead to overlapping topics in its IDM, with a cluster of topics labelled
“Arabic manuscripts”, “Buddhist manuscripts”, “Gospel Georgian manuscripts”, and “Studies
of Chinese characters”, with “Homiletic Greek manuscripts” not far away (see Fig. 4). That
is, the previous model showed even more specialised topics whereas the presented model TM
exhibits broader topics. The reason for the more general topics is inferred to be a result of
the high  value of 0.7, since a higher  value afects the sparsity of a word in the topic-word
distribution, thus resulting in more uniform word probabilities within a topic. An analysis of the
topic distribution in each volume of Manuscript Cultures reveals that the topic model is a fitting
representation of our corpus, although the topics are more general. However, it is important to
state that there is space for improvement for the labelling and rating of topics, since it is an
interpretive task that heavily benefits from expert knowledge in the domain.</p>
        <p>The topic-word distributions of TM contain common words that add to the challenge of
interpreting the topics. Taking into account that our corpus heavily focuses on the studies of
ancient and modern manuscripts, we can expect that the vocabulary used in the text can be
Figure 3: Topic distribution for each volume of Manuscript Cultures from TM.
repetitive and dense with specialist terms. Therefore, words such as “script”, “literature”, and
“print” in Topic 1 appear extensively throughout the corpus, causing these words to contribute
to a higher prevalence in an extracted topic. However, there is also a satisfactory distribution of
domain-specific words that could provide context to the user for the interpretation of extracted
topics. Hence, it is reasonable to say that TM is an adequate topic model for our corpus.
As A Support Tool for Humanities Research As an undersupervised learning technique,
topic modelling using LDA can uncover hidden themes as exemplified above: The resulting
topic model makes the broad themes covered by the journal explicit, highlighting diferent
techniques, themes, or formats that have influenced the work in the past. By looking at diferent
models, learned with diferent parameter settings, a topic modelling analysis can reveal broader
as well as more specific themes. E.g., as mentioned above, TM generated non-overlapping
topics that covered broader thematic patterns, while the topic models with lower coherence
scores show overlapping and clustering of topics with very specific words. A given topic model
might also provide insight into a new volume or even a new corpus by analysing a document
for its prevalent topics or adapting the given model to the new setting, helping to explore the
unknown documents without having to read all of them first.</p>
        <p>Conjecture Based on the behaviour discussed and the decisions made during preprocessing,
we conjecture that when dealing with small, domain-specific corpora, the following observations
will be important to consider: (i) The list of stop-words had to be adjusted for the specific
setting but even afterwards, domain-specific vocabulary like “script”, “literature”, and “print”
as mentioned above still contribute relatively little when interpreting topics. (ii) Choosing an
appropriate number of topics  is not easy and can have far-reaching consequences as topics
are much more likely to have overlapping vocabulary. (iii) Additionally and as expected, domain
knowledge becomes much more important for fine-tuning parameters and interpreting topics.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>In this paper, we considered the efect of a very domain-specific corpus on topic modelling.
Speciifcially, this paper showed how LDA, a generative and probabilistic topic modelling technique,
can be used to discover hidden thematic structures from a corpus consisting of 99 humanities
journal articles concerned with the study of manuscripts. We conjecture that domain knowledge
and domain-specific settings are necessary to infer interpretable topics. As such, these processes
are hard to further automatise, making interdisciplinary work all the more important, especially
since domain knowledge as of now is incorporated through hyperparameters that may not
appear intuitive from the outset to humanities researchers. Nonetheless, topic modelling also
has the potential to provide humanities researchers with a tool for exploring a corpus by its
themes without having to read every document in it first.</p>
      <p>
        In the future, we are interested in looking at extensions of LDA to analyse how the methods
behave when presented with domain-specific small corpora. These extensions include dynamic
topic modelling over time [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] as well as Hierarchical Dirichlet Process [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ], which includes
ifnding the right  automatically.
      </p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>The research was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research
Foundation) under Germany’s Excellence Strategy – EXC 2176 “Understanding Written Artefacts:
Material, Interaction and Transmission in Manuscript Cultures”, project no. 390893796.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>R.</given-names>
            <surname>Agerri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Artola</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Beloki</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Rigau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Soroa</surname>
          </string-name>
          ,
          <article-title>Big data for natural language processing: A streaming approach</article-title>
          ,
          <source>Knowledge-Based Systems</source>
          <volume>79</volume>
          (
          <year>2015</year>
          )
          <fpage>36</fpage>
          -
          <lpage>42</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>H.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Zhu</surname>
          </string-name>
          ,
          <article-title>Extract interaction detection methods from the biological literature</article-title>
          ,
          <source>BMC bioinformatics 10</source>
          (
          <year>2009</year>
          )
          <fpage>1</fpage>
          -
          <lpage>13</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W. J.</given-names>
            <surname>Zheng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <article-title>Ranking gene-drug relationships in biomedical literature using latent dirichlet allocation</article-title>
          ,
          <source>in: Biocomputing</source>
          <year>2012</year>
          , World Scientific,
          <year>2012</year>
          , pp.
          <fpage>422</fpage>
          -
          <lpage>433</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Cha</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Cho</surname>
          </string-name>
          ,
          <article-title>Social-network analysis using topic models</article-title>
          ,
          <source>in: Proceedings of the 35th ACM SIGIR</source>
          ,
          <year>2012</year>
          , pp.
          <fpage>565</fpage>
          -
          <lpage>574</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>D. M.</given-names>
            <surname>Blei</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. Y.</given-names>
            <surname>Ng</surname>
          </string-name>
          ,
          <string-name>
            <surname>M. I. Jordan</surname>
          </string-name>
          , Latent dirichlet allocation,
          <source>J. Mach. Learn. Res</source>
          .
          <volume>3</volume>
          (
          <year>2003</year>
          )
          <fpage>993</fpage>
          -
          <lpage>1022</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>J.-T.</given-names>
            <surname>Chien</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.-H. Chueh</surname>
          </string-name>
          ,
          <article-title>Dirichlet class language models for speech recognition</article-title>
          ,
          <source>IEEE Transactions on Audio, Speech, and Language Processing</source>
          <volume>19</volume>
          (
          <year>2010</year>
          )
          <fpage>482</fpage>
          -
          <lpage>495</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Sabzmeydani</surname>
          </string-name>
          , G. Mori,
          <article-title>Semi-latent dirichlet allocation: A hierarchical model for human action recognition</article-title>
          , in: A.
          <string-name>
            <surname>Elgammal</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <string-name>
            <surname>Rosenhahn</surname>
          </string-name>
          , R. Klette (Eds.), Human Motion - Understanding, Modeling, Capture and Animation, Springer Berlin Heidelberg,
          <year>2007</year>
          , pp.
          <fpage>240</fpage>
          -
          <lpage>254</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>B.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Tang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Ding</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. H.</given-names>
            <surname>Shin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Chen</surname>
          </string-name>
          , G. Moorthy,
          <string-name>
            <given-names>J.</given-names>
            <surname>Qiu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Desai</surname>
          </string-name>
          , et al.,
          <article-title>Mining relational paths in integrated biomedical data</article-title>
          ,
          <source>PLoS One</source>
          <volume>6</volume>
          (
          <year>2011</year>
          )
          <article-title>e27506</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>J. C.</given-names>
            <surname>Campbell</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Hindle</surname>
          </string-name>
          , E. Stroulia,
          <article-title>Latent dirichlet allocation: extracting topics from software engineering data, in: The art and science of analyzing software data</article-title>
          ,
          <source>Elsevier</source>
          ,
          <year>2015</year>
          , pp.
          <fpage>139</fpage>
          -
          <lpage>159</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>M.</given-names>
            <surname>Savage</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Burrows</surname>
          </string-name>
          ,
          <article-title>The coming crisis of empirical sociology</article-title>
          ,
          <source>Sociology</source>
          <volume>41</volume>
          (
          <year>2007</year>
          )
          <fpage>885</fpage>
          -
          <lpage>899</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>H.</given-names>
            <surname>Wallach</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Mimno</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>McCallum</surname>
          </string-name>
          ,
          <string-name>
            <surname>Rethinking</surname>
            <given-names>LDA</given-names>
          </string-name>
          :
          <article-title>Why priors matter</article-title>
          ,
          <source>in: Advances in Neural Information Processing Systems</source>
          , volume
          <volume>22</volume>
          ,
          <string-name>
            <surname>Curran</surname>
            <given-names>Associates</given-names>
          </string-name>
          , Inc.,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>K.</given-names>
            <surname>Du</surname>
          </string-name>
          ,
          <article-title>Evaluating hyperparameter alpha of LDA topic modeling</article-title>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>T. L.</given-names>
            <surname>Grifiths</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Steyvers</surname>
          </string-name>
          ,
          <article-title>Finding scientific topics</article-title>
          ,
          <source>Proceedings of the National academy of Sciences</source>
          <volume>101</volume>
          (
          <year>2004</year>
          )
          <fpage>5228</fpage>
          -
          <lpage>5235</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>M.</given-names>
            <surname>Hofman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Bach</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Blei</surname>
          </string-name>
          ,
          <article-title>Online learning for latent dirichlet allocation</article-title>
          ,
          <source>Advances in neural information processing systems</source>
          <volume>23</volume>
          (
          <year>2010</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>J.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Gerrish</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Boyd-Graber</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Blei</surname>
          </string-name>
          , Reading tea leaves:
          <article-title>How humans interpret topic models</article-title>
          ,
          <source>Advances in neural information processing systems</source>
          <volume>22</volume>
          (
          <year>2009</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>M.</given-names>
            <surname>Röder</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Both</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Hinneburg</surname>
          </string-name>
          ,
          <article-title>Exploring the space of topic coherence measures</article-title>
          ,
          <source>in: Proceedings of the eighth ACM international conference on Web search and data mining</source>
          ,
          <year>2015</year>
          , pp.
          <fpage>399</fpage>
          -
          <lpage>408</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <surname>D. M. Blei</surname>
            ,
            <given-names>J. D.</given-names>
          </string-name>
          <string-name>
            <surname>Laferty</surname>
          </string-name>
          ,
          <article-title>Dynamic topic models</article-title>
          ,
          <source>in: Proceedings of the 23rd international conference on Machine learning</source>
          ,
          <year>2006</year>
          , pp.
          <fpage>113</fpage>
          -
          <lpage>120</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Teh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Jordan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Beal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Blei</surname>
          </string-name>
          ,
          <article-title>Sharing clusters among related groups: Hierarchical dirichlet processes</article-title>
          ,
          <source>Advances in neural information processing systems</source>
          <volume>17</volume>
          (
          <year>2004</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>