
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:h="http://www.w3.org/1999/xhtml">
  <teiHeader xml:lang="de">
    <fileDesc>
      <titleStmt>
        <title type="main">Topic Modeling</title>
        <author>
          <persName>
            <forename>Sanja</forename>
            <surname>Sarić</surname>
          </persName>
        </author>
        <author>
          <persName>
            <forename>Lucija</forename>
            <surname>Krušić</surname>
          </persName>
        </author>
        <respStmt>
          <resp>Projektleitung</resp>
          <persName>
            <forename>Helmut W.</forename>
            <surname>Klug</surname>
          </persName>
        </respStmt>
        <respStmt>
          <resp>Datenmodellierung</resp>
          <persName>
            <forename>Selina</forename>
            <surname>Galka</surname>
          </persName>
        </respStmt>
        <respStmt>
          <resp>Datenmodellierung</resp>
          <persName>
            <forename>Elisabeth</forename>
            <surname>Steiner</surname>
          </persName>
        </respStmt>
        <funder>Bundesministerium für Wissenschaft, Forschung und Wirtschaft </funder>
      </titleStmt>
      <publicationStmt>
        <publisher>
          <orgName corresp="https://informationsmodellierung.uni-graz.at" ref="http://d-nb.info/gnd/1137284463">Zentrum für
                  Informationsmodellierung - Austrian Centre for Digital Humanities,
                  Karl-Franzens-Universität Graz</orgName>
          <country>Austria</country>
        </publisher>
        <authority>
          <orgName corresp="https://informationsmodellierung.uni-graz.at" ref="http://d-nb.info/gnd/1137284463">Zentrum für
                  Informationsmodellierung - Austrian Centre for Digital Humanities,
                  Karl-Franzens-Universität Graz</orgName>
          <country>Austria</country>
        </authority>
        <distributor>
          <orgName ref="https://gams.uni-graz.at">GAMS - Geisteswissenschaftliches Asset
                  Management System</orgName>
        </distributor>
        <availability>
          <licence target="https://creativecommons.org/licenses/by-nc/4.0">Creative Commons
                  BY-NC 4.0</licence>
        </availability>
        <date when="2024">2024</date>
        <pubPlace>Graz</pubPlace>
        <idno type="PID">o:konde.229</idno>
      </publicationStmt>
      <seriesStmt>
        <title ref="http://gams.uni-graz.at/konde">KONDE Weißbuch</title>
        <respStmt>
          <resp>Projektleitung</resp>
          <persName>
            <forename>Helmut W.</forename>
            <surname>Klug</surname>
          </persName>
        </respStmt>
      </seriesStmt>
      <sourceDesc>
        <bibl>
          <title>Weißbuchartikel: Topic Modeling</title>
          <author>Sanja Sarić</author>
          <author>Lucija Krušić</author>
          <publisher>
                    Herausgegeben von Helmut W. Klug unter Mitarbeit von Selina Galka und Susanne Höfer
                </publisher>
          <date>2024</date>
          <country>Austria</country>
        </bibl>
      </sourceDesc>
    </fileDesc>
    <encodingDesc>
      <projectDesc>
        <ab>
          <ref target="context:konde" type="context">KONDE Weißbuch</ref>
        </ab>
        <p>Im KONDE-Projekt, das aus Hochschulraumstrukturmitteln finanziert wird, beschäftigten
               sich sieben universitäre Partner und drei weitere Einrichtungen aus unterschiedlichen
               Blickwinkeln mit theoretischen und praktischen Aspekten der Digitalen Edition. Ein
               Outcome des Projektes stellt das Weißbuch dar, welches über 200 Artikel zum Thema
               Digitale Edition umfasst. Die behandelten Themenkomplexe reichen dabei über Digitale
               Editionswissenschaft im Allgemeinen, Annotation und Modellierung, Interfaces,
               Archivierung und Metadaten bis hin zu rechtlichen Aspekten.</p>
      </projectDesc>
    </encodingDesc>
    <profileDesc>
      <langUsage>
        <language ident="de">Deutsch</language>
      </langUsage>
    </profileDesc>
  </teiHeader>
  <text xml:lang="de">
    <body>
      <div>
        <head>Topic Modeling</head>
        <div>
          <head>Sarić, Sanja; <ref target="mailto:sanja.saric@uni-graz.at" type="external">sanja.saric@uni-graz.at</ref> / Krušić, Lucija; <ref target="mailto:lucija.krusic@uni-graz.at" type="external">lucija.krusic@uni-graz.at</ref>
          </head>
          <p>Topic Modeling ist eine Methode des unüberwachten maschinellen Lernens und dient zur
               automatischen Erkennung semantischer Strukturen in großen Textmengen. Dabei wird eine
               aus der Statistik stammende Hypothese befolgt, dass häufig zusammen vorkommende
               Wörter thematisch verwandt sind. <bibl>(Blei 2012)</bibl>
          </p>
          <p>Als Ergebnis entstehen dabei Topics – geordnete Listen von zusammenhängenden Wörtern,
               die mit Wahrscheinlichkeitswerten versehen sind, welche auf die Häufigkeit des
               Vorkommens hinweisen. Ein Topic wird meistens als ein Thema interpretiert, kann aber
               statt aus dem thematischen auch aus einem strukturellen Zusammenhang zwischen Wörtern
               resultieren. So kann einerseits ein Topic zum Beispiel genre- oder autorenspezifische
               Wörter repräsentieren, häufig zusammen genannte Eigennamen oder für einen bestimmten
               Sachverhalt typische Adjektive <bibl>(Völkl et al. 2022)</bibl>. Andererseits können
               Themen, die nur implizit im Text vorhanden sind, für dieses Verfahren unsichtbar
               bleiben <bibl>(Horstmann 2018, S. 10)</bibl>. Deswegen sind Topics nicht immer mit
               Themen gleichzusetzen.</p>
          <p>Neben dem bekanntesten probabilistischen Modell LDA (<hi rend="italic">Latent
                  Dirichlet Allocation</hi>) und dem NMF-Zugang (<hi rend="italic">Non-negative
                  Matrix Factorization</hi>) wird in den letzten Jahren zunehmend auch das
               transformerbasierte BERT-Framework <bibl>(Devlin et al. 2018)</bibl> angewendet, das
               sich als ein neues State-of–the-Art-Modell im Bereich von <ref target="/o:konde.145" type="internal">Natural Language Processing</ref> etabliert. Während
               konventionelle Modelle wie LDA und NMF Dokumente als Bag-of-Words (ungeordnete Listen von Wörtern) behandeln, berücksichtigen
               BERT-Modelle wie etwa das BERTopic die semantische Relation zwischen Wörtern
                  <bibl>(Grootendorst 2022, S. 1)</bibl> und können flexibler auf Texte
               unterschiedlicher Längen oder Sprachen angewendet werden. Zu Nachteilen von BERTopic
               zählt aber, dass nur ein Topic pro Dokument vergeben <bibl>(Grootendorst 2022, S.
                  8)</bibl> und eine höhere rechnerische Leistung erfordert wird. </p>
          <p>Als Verfahren der digitalen Textanalyse wird Topic Modeling in den Digitalen
               Geisteswissenschaften seit 2011 verstärkt eingesetzt <bibl>(Du 2019)</bibl>. Es kann 
               eine korpusübergreifende Perspektive schaffen, weshalb es sich gut für explorative Analysen 
               eignet. Die Anwendungsfälle sind so vielfältig wie
               der Fachbereich selbst: Dazu zählen unter anderem die Erkennung von Sub-Genres in
               Dramen <bibl>(Schöch 2017)</bibl>, die Identifizierung vom genderspezifischen Diskurs
               in Zeitschriften der Aufklärungszeit <bibl>(Völkl et al. 2022)</bibl> sowie die
               Auffindung von Themen in Briefen <bibl>(Bleier 2015)</bibl>, Gedichten
                  <bibl>(Navarro-Colorado 2018)</bibl> oder Romanen <bibl>(Haverals/Geybels,
                  2021)</bibl>. </p>

          <p>Als probabilistisches Bag-of-Words-Modell liefert die Methode bei einzelnen
               Durchläufen leicht voneinander abweichende Ergebnisse, was sich in der
               unterschiedlichen Gewichtung einzelner Wörter pro Topic äußert. Dies lässt sich über
                  <ref target="/o:konde.241" type="internal">Preprocessing</ref> (z. B. über das
               Erstellen einer Stoppwortliste, Segmentieren langer Texte oder Lemmatisieren) und
               Anpassen der Parameterwerte (wie Anzahl der Topics) so weit stabilisieren, dass immer
               die gleichen Topics erkennbar bleiben. Trotzdem stößt Topic Modeling auch auf Kritik
               in Bezug auf dessen Funktionsweise und Plausibilität, wie etwa bei Shadrova
                  <bibl>(2021, S. 21)</bibl>, die Topics als unvorhersehbar und reduktionistisch
               bezeichnet. </p>

          <p>Zusammenfassend lässt sich jedoch sagen, dass Topic Modeling zwar einige
               Einschränkungen aufweist und als ‘Black-Box’-Verfahren manchmal für Skepsis sorgt,
               aber dennoch ein nützliches Werkzeug für die Analyse großer Korpora ist. Es liegt
               weiterhin an den Forscherinnen und Forschern, sich mit den Texten selbst
               auseinanderzusetzen, sinnvolle und projektspezifische Entscheidungen über das <hi rend="italic">Preprocessing </hi>zu fällen und ihr Fachwissen beim Interpretieren
               der Ergebnisse anzuwenden. Bei richtiger Anwendung kann Topic Modeling wertvolle
               Einblicke in die Schlüsselkonzepte und -ideen eines Korpus liefern und als
               Ausgangspunkt für weitere Untersuchungen und Interpretationen dienen. </p>
          <div type="literature">
            <listBibl>
              <biblStruct corresp="http://zotero.org/groups/1332658/items/97KADMIY" type="journalArticle" xml:id="Blei2012">
                <analytic>
                  <title level="a">Topic Modeling and Digital Humanities</title>
                  <idno type="DOI">10.1145/2133806.2133826</idno>
                  <author>
                    <forename>David M.</forename>
                    <surname>Blei</surname>
                  </author>
                </analytic>
                <monogr>
                  <title level="j">Communications of the ACM</title>
                  <idno type="ISSN">0001-0782, 1557-7317</idno>
                  <imprint>
                    <biblScope unit="volume">55</biblScope>
                    <biblScope unit="issue">4</biblScope>
                    <biblScope unit="page">77-84</biblScope>
                    <date>2012</date>
                    <note type="accessed">2023-05-02T12:46:42Z</note>
                    <note type="url">https://dl.acm.org/doi/10.1145/2133806.2133826</note>
                  </imprint>
                </monogr>
              </biblStruct>
              <biblStruct corresp="http://zotero.org/groups/1332658/items/MRNLJEZV" type="presentation" xml:id="Bleier2015">
                <monogr>
                  <title level="m">Topic Modelling des Letters of 1916 Briefkorpus</title>
                  <respStmt>
                    <resp>presenter</resp>
                    <persName>
                      <forename>Roman</forename>
                      <surname>Bleier</surname>
                    </persName>
                  </respStmt>
                  <imprint>
                    <pubPlace>Graz</pubPlace>
                    <date>2015</date>
                    <note type="accessed">2023-10-31</note>
                    <note type="url">https://gams.uni-graz.at/o:dhd2015.v.005</note>
                  </imprint>
                </monogr>
              </biblStruct>
              <biblStruct corresp="http://zotero.org/groups/1332658/items/EMJMI6JS" type="conferencePaper" xml:id="Devlin2019">
                <analytic>
                  <title level="a">BERT: Pre-training of Deep Bidirectional Transformers for
                           Language Understanding</title>
                  <title type="short">BERT</title>
                  <author>
                    <forename>Jacob</forename>
                    <surname>Devlin</surname>
                  </author>
                  <author>
                    <forename>Ming-Wei</forename>
                    <surname>Chang</surname>
                  </author>
                  <author>               
     <forename>Kenton</forename>
                    <surname>Lee</surname>
                  </author>
                  <author>
                    <forename>Kristina</forename>
                    <surname>Toutanova</surname>
                  </author>
                </analytic>
                <monogr>
                  <title level="m">NAACL-HLT 2019</title>
                  <title type="conferenceName">NAACL-HLT 2019</title>
                  <imprint>
                    <pubPlace>Minneapolis, Minnesota,US</pubPlace>
                    <biblScope unit="page">4171-4186</biblScope>
                    <publisher>arXiv</publisher>
                    <date>2019</date>
                    <note type="accessed">2023-06-01</note>
                    <note type="url">https://aclanthology.org/N19-1423.pdf</note>
                  </imprint>
                </monogr>
              </biblStruct>
              <biblStruct corresp="http://zotero.org/groups/1332658/items/GCETFX5U" type="conferencePaper" xml:id="Du2019">
                <analytic>
                  <title level="a">A Survey On LDA Topic Modeling In Digital
                           Humanities</title>
                  <idno type="DOI">https://doi.org/10.34894/H9UYPI</idno>
                  <author>
                    <forename>Keli</forename>
                    <surname>Du</surname>
                  </author>
                </analytic>
                <monogr>
                  <title level="m">Book of Abstracts DH2019</title>
                  <title type="conferenceName">DH2019</title>
                  <imprint>
                    <pubPlace>Utrecht University</pubPlace>
                    <date>2019</date>
                  </imprint>
                </monogr>
              </biblStruct>
              <biblStruct corresp="http://zotero.org/groups/1332658/items/ZP4TD63G" type="journalArticle" xml:id="Grootendorst2022">
                <analytic>
                  <title level="a">BERTopic: Neural topic modeling with a class-based TF-IDF
                           procedure</title>
                  <idno type="DOI">10.48550/ARXIV.2203.05794</idno>
                  <title type="short">BERTopic</title>
                  <author>
                    <forename>Maarten</forename>
                    <surname>Grootendorst</surname>
                  </author>
                </analytic>
                <monogr>
                  <imprint>
                    <biblScope unit="page">10</biblScope>
                    <date>2022</date>
                    <note type="accessed">2023-06-01</note>
                    <note type="url">https://arxiv.org/pdf/2203.05794v1.pdf</note>
                  </imprint>
                </monogr>
              </biblStruct>
              <biblStruct corresp="http://zotero.org/groups/1332658/items/2Z37ZYYQ" type="journalArticle" xml:id="Haverals2021">
                <analytic>
                  <title level="a">Putting the Sorting Hat on J.K. Rowling’s Reader: A digital
                           inquiry into the age of the implied readership of the Harry Potter
                           series</title>
                  <idno type="DOI">https://doi.org/10.22148/001c.24077</idno>
                  <title type="short">Putting the Sorting Hat on J.K. Rowling’s Reader</title>
                  <author>
                    <forename>Wouter</forename>
                    <surname>Haverals</surname>
                  </author>
                  <author>
                    <forename>Lindsey</forename>
                    <surname>Geybels</surname>
                  </author>
                </analytic>
                <monogr>
                  <title level="j">Journal of Cultural Analytics</title>
                  <idno type="ISSN">2371-4549</idno>
                  <imprint>
                    <biblScope unit="volume">6</biblScope>
                    <biblScope unit="issue">1</biblScope>
                    <date>2021</date>               
     <note type="accessed">2023-05-02T12:52:43Z</note>
                    <note type="url">https://culturalanalytics.org/article/24077-putting-the-sorting-hat-on-j-k-rowling-s-reader-a-digital-inquiry-into-the-age-of-the-implied-readership-of-the-harry-potter-series</note>
                  </imprint>
                </monogr>
              </biblStruct>
              <biblStruct corresp="http://zotero.org/groups/1332658/items/9JV775S6" type="webpage" xml:id="Horstmann2018">
                <analytic>
                  <title level="a">Topic Modeling</title>
                  <author>
                    <forename>Jan</forename>
                    <surname>Horstmann</surname>
                  </author>
                </analytic>
                <monogr>
                  <title level="m">forText</title>
                  <imprint>
                    <date>2018</date>
                    <note type="accessed">2023-05-02T12:54:30Z</note>
                    <note type="url">https://fortext.net/routinen/methoden/topic-modeling</note>
                  </imprint>
                </monogr>
              </biblStruct>
              <biblStruct corresp="http://zotero.org/groups/1332658/items/6BDSCPQW" type="journalArticle" xml:id="Navarro-Colorado2018">
                <analytic>
                  <title level="a">On Poetic Topic Modeling: Extracting Themes and Motifs From
                           a Corpus of Spanish Poetry</title>
                  <idno type="DOI">10.3389/fdigh.2018.00015</idno>
                  <title type="short">On Poetic Topic Modeling</title>
                  <author>
                    <forename>Borja</forename>
                    <surname>Navarro-Colorado</surname>
                  </author>
                </analytic>
                <monogr>
                  <title level="j">Frontiers in Digital Humanities</title>
                  <idno type="ISSN">2297-2668</idno>
                  <imprint>
                    <biblScope unit="volume">5</biblScope>
                    <biblScope unit="page">1-15</biblScope>
                    <date>2018</date>
                    <note type="accessed">2023-05-02T12:56:25Z</note>
                    <note type="url">https://www.frontiersin.org/article/10.3389/fdigh.2018.00015/full</note>
                  </imprint>
                </monogr>
              </biblStruct>
              <biblStruct corresp="http://zotero.org/groups/1332658/items/RDA6HEX2" type="journalArticle" xml:id="Schöch2017">
                <analytic>
                  <title level="a">Topic Modeling Genre: An Exploration of French Classical
                           and Enlightenment Drama</title>
                  <idno type="DOI">https://doi.org/10.48550/arXiv.2103.13019</idno>
                  <author>
                    <forename>Christof</forename>
                    <surname>Schöch</surname>
                  </author>
                </analytic>
                <monogr>
                  <title level="j">Digital Humanities Quarterly</title>
                  <idno type="ISSN">1938-4122</idno>
                  <imprint>
                    <biblScope unit="volume">11</biblScope>
                    <biblScope unit="issue">2</biblScope>
                    <biblScope unit="page">1-20</biblScope>
                    <date>2017</date>
                    <note type="accessed">2023-05-02T12:57:06Z</note>
                    <note type="url">http://www.digitalhumanities.org/dhq/vol/11/2/000291/000291.html</note>
                  </imprint>
                </monogr>
              </biblStruct>
              <biblStruct corresp="http://zotero.org/groups/1332658/items/Z4KIDAG3" type="journalArticle" xml:id="Shadrova2021">
                <analytic>
                  <title level="a">Topic models do not model topics: epistemological remarks
                           and steps towards best practices</title>
                  <idno type="DOI">10.46298/jdmdh.7595</idno>
                  <title type="short">Topic models do not model topics</title>
                  <author>      
              <forename>Anna</forename>
                    <surname>Shadrova</surname>
                  </author>
                </analytic>
                <monogr>
                  <title level="j">Journal of Data Mining &amp; Digital Humanities</title>
                  <idno type="ISSN">2416-5999</idno>
                  <imprint>
                    <biblScope unit="volume">2021</biblScope>
                    <biblScope unit="page">1-28</biblScope>
                    <date>2021</date>
                    <note type="accessed">2023-10-31</note>
                    <note type="url">https://jdmdh.episciences.org/7595</note>
                  </imprint>
                </monogr>
              </biblStruct>
              <biblStruct corresp="http://zotero.org/groups/1332658/items/J6VJMWG7" type="journalArticle" xml:id="Völkl2022">
                <analytic>
                  <title level="a">Topic Modeling for the Identification of Gender-specific
                           Knowledge</title>
                  <idno type="DOI">10.48694/JCLS.108</idno>
                  <author>
                    <forename>Yvonne</forename>
                    <surname>Völkl</surname>
                  </author>
                  <author>
                    <forename>Sanja</forename>
                    <surname>Sarić</surname>
                  </author>
                  <author>
                    <forename>Martina</forename>
                    <surname>Scholger</surname>
                  </author>
                </analytic>
                <monogr>
                  <title level="j">Journal of Computational Literary Studies</title>
                  <idno type="ISSN">0000-0000</idno>
                  <imprint>
                    <biblScope unit="volume">1</biblScope>
                    <biblScope unit="issue">1</biblScope>
                    <biblScope unit="page">1-27 (online)</biblScope>
                    <date>2022</date>
                    <note type="accessed">2023-05-02T13:03:27Z</note>
                    <note type="url">https://jcls.io/article/id/108/</note>
                  </imprint>
                </monogr>
              </biblStruct>
            </listBibl>
          </div>
          <div type="subsection" xml:id="software">
            <list>
              <item>
                <ref target="https://colab.research.google.com/drive/1FieRA9fLdkQEGDIMYl0I3MCjSUKVF8C-" type="external">BERTopic</ref>
              </item>
              <item>
                <ref target="https://ws.clarin-pl.eu/topicml" type="external">CLARIN-PL
                        Topics</ref>
              </item>
              <item>
                <ref target="https://github.com/agoldst/dfrtopics" type="external">dfrtopics</ref>
              </item>
              <item>
                <ref target="https://de.dariah.eu/topicsexplorer" type="external">DARIAH Topics
                        Explorer</ref>
              </item>
              <item>
                <ref target="https://github.com/DARIAH-DE/Topics" type="external">DARIAH-DE
                        Topics</ref>
              </item>
              <item>
                <ref target="https://radimrehurek.com/gensim/intro.html" type="external">Gensim</ref>
              </item>
              <item>
                <ref target="https://mimno.infosci.cornell.edu/jsLDA/" type="external">jsLDA:
                        In-browser topic modeling</ref>
              </item>
              <item>
                <ref target="https://mimno.github.io/Mallet/topics" type="external">MALLET</ref>
              </item>
              <item>
                <ref target="https://github.com/cligs/tmw" type="external">tmw - Topic Modeling
                        Workflow</ref>
              </item>
              <item>
                <ref target="https://github.com/distantspectators/DiSpecs/tree/master/topic_modeling" type="external">Topic Modeling Workflow of the Distant Spectators</ref>
              </item>
            </list>
          </div>
          <div type="subsection" xml:id="links">
            <list>
              <item>
                <ref target="/o:konde.16" type="internal">Analysemethoden</ref>
              </item>
              <item>
                <ref target="/o:konde.145" type="internal">NER</ref>
              </item>
              <item>
                <ref target="/o:konde.71" type="internal">Distant Reading</ref>
              </item>
              <item>
                <ref target="/o:konde.194" type="internal">Text Mining</ref>
              </item>
              <item>
                <ref target="/o:konde.115 " type="internal">Lemmatisierung</ref>
              </item>
            </list>
          </div>
          <div type="subsection" xml:id="topics">
            <list>
              <item>Natural Language Processing</item>
            </list>
          </div>
        </div>
      </div>
    </body>
  </text>
</TEI>
