Skip to content

MiMoText/sentiment_novels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sentiment_novels

Sentiment analysis on french novels from the roman18 corpus in the context of the "Mining and Modeling Text" project (University Trier). www.mimotext.uni-trier.de

Description

The roman18-corpus of about 100-200 eighteenth-century French novels in full text is analysed via two different Sentiment Analysis pipelines: textblob fr and A Sentiment Analysis Tool Chain for 18th Century Periodical.

An example

Sentiment Analysis Excerpt of chapter two of Voltaire's novel Candide (1759) tagged with sentiments provided by "A Sentiment Analysis Tool Chain for 18th Century Periodical"

Data

We utilise the roman18-corpus, which contains french novels 1750-1800 in XML/TEI and plain text. We utilised the novels in modernised plain text.

Results

file polarity subjectivity
Abbes_Voyage.txt -0.030000690498737378 0.671139971139971
Anonym_Suzon.txt 0.17621220020855063 0.49699339589850516
Beauharnais_Lettres.txt -0.09595917295290354 0.6217013888888896
Beaumont_Clarice.txt 0.09166666666666666 0.657371794871795
Benoist_Elisabeth.txt 0.01662030789441677 0.6651770451770456
Benouville_Pensees.txt 0.055394797350363754 0.6570899470899474
Bernardin_Paul.txt 0.12725117663344399 0.5880710132890371
... ... ...

The results of the sentiment analysis per novel using textblob are stored here : https://github.com/MiMoText/sentiment_novels/tree/main/sentiments/textblob_fr

Sentiment scores per text progression

The Sentiment Tool Chain for 18th Century Periodicals allows to extract the sentiment scores per text progression:

Sentiment Analysis

Voltaire's novel Candide (1759) - sentiment scores per text progress.

Reference for the Sentiment Tool Chain for 18th Century Periodicals

Koncar, P., Druml, L., Ertler, K.-D., Fuchs, A., Geiger, B. C., Glatz, C., Hobisch, E., Mayer, P., Saric, S., Scholger, M. & Voelkl, Y. (2021) A Sentiment Tool Chain for Languages of the 18th Century. https://github.com/philkon/sentiment-tool-chain

Licence

Software in this repo, unless specified otherwise, is made available under the MIT license. We don’t claim any copyright or other rights on the metadata. If you use our scripts or results, for example in research or teaching, please reference this repository using the citation suggestion below.

Citation suggestion

Sentiment Analysis on Eighteenth-Century French Novels (1751-1800), edited by Julia Röttgermann and Johanna Konstanciak, MiMoText, Trier Center for Digital Humanities, 2022. URL: https://github.com/MiMoText/sentiment_novels.