Marino Sanudo's Diary: Difference between revisions
(60 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[[File:SanudoImage.jpg|300px|thumb|right|Marino Sanudo]] | [[File:SanudoImage.jpg|300px|thumb|right|Marino Sanudo]] | ||
The project focused on analyzing the diaries of Marino Sanudo, a key historical source for understanding the Renaissance period. The primary goal was to create an index of people and places mentioned in the diaries, pair these entities, and analyze the potential relationships between them. | The project focused on analyzing the diaries of Marino Sanudo [https://it.wikipedia.org/wiki/Marin_Sanudo_il_Giovane], a key historical source for understanding the Renaissance period. The primary goal was to create an index of people and places mentioned in the diaries, pair these entities, and analyze the potential relationships between them. | ||
<br><br> | <br><br> | ||
Line 17: | Line 17: | ||
Relevance Today | Relevance Today | ||
Studying Marino Sanudo’s diaries remains highly relevant for modern historians, linguists, and data analysts. They provide a primary source for understanding Renaissance politics, diplomacy, and social hierarchies. Furthermore, the diaries’ exhaustive detail lends itself to contemporary methods of analysis, such as network mapping and data visualization, enabling new interpretations and uncovering hidden patterns in historical relationships. By examining the interconnectedness of individuals and places, Sanudo’s work sheds light on the broader dynamics of Renaissance Europe, offering lessons that resonate even in today’s globalized world. | Studying Marino Sanudo’s diaries remains highly relevant for modern historians, linguists, and data analysts. They provide a primary source for understanding Renaissance politics, diplomacy, and social hierarchies. Furthermore, the diaries’ exhaustive detail lends itself to contemporary methods of analysis, such as network mapping and data visualization, enabling new interpretations and uncovering hidden patterns in historical relationships. By examining the interconnectedness of individuals and places, Sanudo’s work sheds light on the broader dynamics of Renaissance Europe, offering lessons that resonate even in today’s globalized world. | ||
==Motivation and description of the deliverables == | |||
The decision to analyze Marino Sanudo’s diaries stemmed from their exceptional value as a primary source for understanding Renaissance Venice and its influence on European history. Sanudo’s meticulous documentation provides unparalleled insights into the sociopolitical and cultural dynamics of the time, capturing events ranging from significant political maneuvers to the nuances of daily life. This project aimed to leverage this rich historical resource to explore connections between individuals and places, offering a fresh perspective on the networks that shaped Renaissance society. | |||
Our motivation was twofold: to deepen historical understanding and to demonstrate the potential of digital humanities. By employing modern data analysis tools and visualization techniques, we aimed to uncover patterns and relationships that might remain hidden in traditional textual analysis. Sanudo’s diaries, with their wealth of names, places, and detailed events, provided the ideal foundation for such an interdisciplinary approach, bridging the gap between historical research and innovative technology. | |||
The project deliverables reflect this dual objective. First, we developed an indexed dataset of names and places mentioned in Sanudo’s diaries, categorized by the relationships and contexts in which they appeared. This dataset forms the basis for further exploration of Renaissance networks. Second, we analyzed these relationships to identify significant patterns, such as the prominence of certain individuals in specific locations or events, and created visualizations to illustrate these findings. These analyses contribute not only to a deeper understanding of Venetian society but also to broader discussions about the interconnectedness of Renaissance Europe. | |||
To ensure accessibility, we documented our research on a dedicated website and created a Wikipedia page summarizing the project and its findings. These platforms serve as public-facing resources, promoting engagement with the material and showcasing the value of combining historical research with digital tools. This project exemplifies how modern methodologies can enrich our appreciation of the past. | |||
== Project Plan and Milestones== | == Project Plan and Milestones== | ||
The project was organized on a weekly basis to ensure steady progress and a balanced workload. Each phase was carefully planned with clearly defined objectives and milestones, promoting effective collaboration and equitable division of tasks among team members. | The project was organized on a weekly basis to ensure steady progress and a balanced workload. Each phase was carefully planned with clearly defined objectives and milestones, promoting effective collaboration and equitable division of tasks among team members. | ||
The first milestone ( | The first milestone (13.10) involved deciding on the project's focus. After thorough discussions, we collectively chose to analyze Marino Sanudo’s diaries, given their historical significance and potential for data-driven exploration. This phase established a shared understanding of the project, laid the foundation for subsequent work, and clarified the scope of our research. | ||
The second milestone (14.10) focused on optimizing the extraction of indexes for names and places from the diaries. This required refining our methods for data extraction and ensuring accuracy in capturing and categorizing entities. Alongside this, we worked on identifying the geolocations of the places mentioned in the index, using historical and modern mapping tools to ensure precise identification. | The second milestone (14.10) focused on optimizing the extraction of indexes for names and places from the diaries. This required refining our methods for data extraction and ensuring accuracy in capturing and categorizing entities. Alongside this, we worked on identifying the geolocations of the places mentioned in the index, using historical and modern mapping tools to ensure precise identification. This step was critical to linking historical references with real-world locations, providing a solid basis for subsequent analysis. | ||
The final stages of the project (19.12)marked the transition to analyzing relationships between the extracted names and places. Using the indexed data, we explored potential connections, identifying patterns and trends that revealed insights into Renaissance Venice's social, political, and geographic networks | The final stages of the project (19.12) marked the transition to analyzing relationships between the extracted names and places. Using the indexed data, we explored potential connections, identifying patterns and trends that revealed insights into Renaissance Venice's social, political, and geographic networks. We collaboratively built a Wikipedia page to document our research and created a dedicated website to present our results in an accessible and visually engaging manner. This phase also included preparing for the final presentation, ensuring that every team member contributed to summarizing and showcasing the work. | ||
. We collaboratively built a Wikipedia page to document our research and created a dedicated website to present our results in an accessible and visually engaging manner. This phase also included preparing for the final presentation, ensuring that every team member contributed to summarizing and showcasing the work. | |||
By adhering to this structured approach and dividing tasks equitably, we achieved a comprehensive analysis of Sanudo’s diaries. Combining historical research with modern digital tools, we uncovered new insights into his world and its relevance today. | |||
{| class="wikitable" | {| class="wikitable" | ||
|+ '''Workflow''' | |+ '''Workflow''' | ||
Line 65: | Line 75: | ||
'''Deliver GitHub + wiki on 18.12''' <br> '''Final presentation on 19.12''' | '''Deliver GitHub + wiki on 18.12''' <br> '''Final presentation on 19.12''' | ||
|} | |} | ||
= Methodology = | = Methodology = | ||
== Data preparation == | == Data preparation == | ||
In our project, which involved analyzing a specific book, the initial step was to obtain the text version of the book. After exploring several sources, including [https://onlinebooks.library.upenn.edu/webbin/metabook?id=sanudodiary], we identified three potential websites for downloading the text. Ultimately, we selected the version available on [https://archive.org/details/idiariidimarino00allegoog] because it offered a more comprehensive set of tools for our analysis. We downloaded the text from this source and compared it to versions from Google Books and HathiTrust, confirming that it best suited our needs. | In our project, which involved analyzing a specific book, the initial step was to obtain the text version of the book. After exploring several sources, including The Online Books Page [https://onlinebooks.library.upenn.edu/webbin/metabook?id=sanudodiary], we identified three potential websites for downloading the text. Ultimately, we selected the version available on Internet Archives [https://archive.org/details/idiariidimarino00allegoog] because it offered a more comprehensive set of tools for our analysis. We downloaded the text from this source and compared it to versions from Google Books and HathiTrust, confirming that it best suited our needs. | ||
We then decided to focus our analysis on the indices included in | We then decided to focus our analysis on the indices included in volume 5, which listed the names of people and places alongside the corresponding column numbers. | ||
=== Place index === | === Place index === | ||
Line 92: | Line 103: | ||
This structured dataset captures both the explicit details from the index and the inferred hierarchical relationships, making it suitable for further analysis and exploration. | This structured dataset captures both the explicit details from the index and the inferred hierarchical relationships, making it suitable for further analysis and exploration. | ||
=== | === Person index === | ||
The index of | The index of persons proved to be significantly more challenging to analyze than the index of places, as it spanned approximately 80 pages. To tackle this, we first provided examples of the desired output and then used an Italian-trained OCR model to process the text and generate a preliminary table of names. This approach differed from traditional OCR methods, allowing for a more accurate extraction tailored to our project. | ||
==== Dataset Structure==== | ==== Dataset Structure==== | ||
Line 104: | Line 115: | ||
After the automated extraction, the output was manually reviewed and corrected. Given that OCR often makes mistakes when generating text from images, our goal was to improve the dataset's quality without conducting a complete manual overhaul. Instead, we focused on correcting the most frequent and disruptive errors. A common issue encountered was the misinterpretation of page numbers as names, which led to cascading errors that required cleaning. Another frequent error involved the inclusion of dashes ("-") generated by the OCR, which needed removal. | After the automated extraction, the output was manually reviewed and corrected. Given that OCR often makes mistakes when generating text from images, our goal was to improve the dataset's quality without conducting a complete manual overhaul. Instead, we focused on correcting the most frequent and disruptive errors. A common issue encountered was the misinterpretation of page numbers as names, which led to cascading errors that required cleaning. Another frequent error involved the inclusion of dashes ("-") generated by the OCR, which needed removal. | ||
During the analysis of the "description" column, numeric characters were frequently observed due to incorrect OCR processing. Many of these numbers corresponded to page references and needed to be transferred to the "pages" column. However, the column also contained numbers unrelated to pagination, such as quantifications (e.g., "he had 3 children") or references to historical years. Historical years were often recognizable by their formatting, typically enclosed in round brackets or preceded by Italian prepositions commonly used to denote time periods, such as "nel," "da," or "di." Additionally, the structure of the dataset limited the maximum number of valid columns for volume 5 to 1074, meaning any larger number was undoubtedly a reference to a historical year. | During the analysis of the "description" column, numeric characters were frequently observed due to incorrect OCR processing. Many of these numbers corresponded to page references and needed to be transferred to the "pages" column. However, the column also contained numbers unrelated to pagination, such as quantifications (e.g., "he had 3 children") or references to historical years. Historical years were often recognizable by their formatting, typically enclosed in round brackets or preceded by Italian prepositions commonly used to denote time periods, such as "nel," "da," or "di." Additionally, the structure of the dataset limited the maximum number of valid columns for volume 5 to 1074, meaning any larger number was undoubtedly a reference to a historical year. | ||
To address these inconsistencies, a systematic extraction process was designed. All numbers with three or four digits were identified within the "description" column. Numbers exceeding the maximum column count of 1074 were flagged as historical years, as were those preceded by prepositions indicating temporal references. Valid page numbers were transferred to the "pages" column, and once extracted, these numbers were removed from the "description" column to eliminate redundancy. This process relied on a combination of regular expressions and filtering techniques to ensure precision. | To address these inconsistencies, a systematic extraction process was designed. All numbers with three or four digits were identified within the "description" column. Numbers exceeding the maximum column count of 1074 were flagged as historical years, as were those preceded by prepositions indicating temporal references. Valid page numbers were transferred to the "pages" column, and once extracted, these numbers were removed from the "description" column to eliminate redundancy. This process relied on a combination of regular expressions and filtering techniques to ensure precision. | ||
Handling two-digit numbers posed significant challenges. Distinguishing between numbers representing pagination and those used for quantifications (e.g., "2 children") required manual inspection, which was impractical at scale. Consequently, two-digit numbers were excluded from the automated process to minimize errors. Although this approach may have resulted in some missing pagination data, it effectively avoided inaccuracies caused by misclassification. This method underscored the need to balance accuracy and practicality in processing complex datasets while acknowledging the inherent limitations of such efforts. | Handling two-digit numbers posed significant challenges. Distinguishing between numbers representing pagination and those used for quantifications (e.g., "2 children") required manual inspection, which was impractical at scale. Consequently, two-digit numbers were excluded from the automated process to minimize errors. Although this approach may have resulted in some missing pagination data, it effectively avoided inaccuracies caused by misclassification. This method underscored the need to balance accuracy and practicality in processing complex datasets while acknowledging the inherent limitations of such efforts. | ||
==== Observations ==== | |||
[[File:FAMILY.png|220px|thumb|right|Family structure index]] | |||
Several observations emerged during the analysis. The first surname listed under a heading often applied to subsequent names following the same indentation, providing insight into familial groupings. In some cases, ellipses (...) were used in place of names. This practice was historically employed for names that were unknown at the time of writing, with the intention that they could be added later if discovered, or to deliberately anonymize individuals. These findings enriched our understanding of the index, offering valuable context for both its historical and structural significance. | |||
=== Text Management === | === Text Management === | ||
Line 133: | Line 137: | ||
==== Pipeline ==== | ==== Pipeline ==== | ||
Output with latitude and longitude | |||
Venetian Church Dictionary: Match coordinates for churches. | # Load and preprocess data | ||
# Nominatim API: Extract coordinates for "famous places." | |||
# Venetian Church Dictionary: Match coordinates for churches. | |||
# Catastici/Sommarioni: Match coordinates for private houses. | |||
# ChatGPT API: Fill in missing data. | |||
Process: Each step enriches the dataset with newly found coordinates. Subsequent steps only process entries lacking geolocation, avoiding overwriting or misclassification of previous entries. | |||
==== Nominatim API ==== | |||
Nominatim is a geocoding API that processes either structured or free-form textual descriptions. For this study, the free-form query method was used. | |||
Key Findings: | |||
Using 'name' and 'city' fields yielded accurate but limited results (6/65). Including 'alias' and 'father' fields in the query reduced accuracy significantly. The API works best with simple and precise input, whereas long or complex phrases hinder matching. | |||
==== | |||
Nominatim API | |||
==== Venetian Church Dictionary==== | |||
We use the dictionary of Church. | |||
This dictionary aids in geolocating churches by matching entries from the dataset with those in the dictionary using Italian and Venetian labels. | This dictionary aids in geolocating churches by matching entries from the dataset with those in the dictionary using Italian and Venetian labels. | ||
Steps: | Steps: | ||
- Filter dataset entries containing "chiesa" (church) or synonyms in the 'name' field. | |||
- Use only church entries with geolocation and either 'venetianLabel' or 'italianLabel' not null. | |||
- Assess similarity between strings using Sentence-BERT (SBERT)[4]. | |||
Advantages: | Advantages: | ||
Restricting to church-related entries minimizes unrelated matches. SBERT captures semantic similarities, such as "Chiesa di San Marco" and "Basilica di San Marco." | |||
==== Catastici and Sommarioni ==== | ==== Catastici and Sommarioni ==== | ||
Considering that most of the entities that remain without a match are private houses, we thought of implementing a pipeline to extract these coordinates through the dataset of catastics. | |||
To address these challenges, a dictionary was created from the Catastici database to facilitate semantic similarity assessments with entries from the name index. | To address these challenges, a dictionary was created from the Catastici database to facilitate semantic similarity assessments with entries from the name index. | ||
Catastici dataframe | |||
From the JSON file | From the JSON file con Catastici, the property’s function, owner’s name, and coordinates were extracted. A structured dataframe was created by combining these tags. The geometry field was split into two columns for latitude and longitude. Duplicates were removed based on the function and owner’s name, keeping only the first occurrence for each combination. A new column, named "name," was generated by concatenating the function and owner’s name. Subsequently, only entries related to private houses ("casa") were retained for further analysis. | ||
Since the dataset used a different local coordinate system, it was necessary to convert any matched coordinates to the appropriate reference system. | Since the dataset used a different local coordinate system, it was necessary to convert any matched coordinates to the appropriate reference system. | ||
Despite following this methodology, no valid results were obtained due to several challenges, including hardware limitations that prevented the generation of string encoding for the large dataset within a reasonable timeframe, the possibility that the specific volume analyzed (vol. 5) lacked relevant entries, and a temporal mismatch between the analyzed Marino Sanudo document and the catastics records. | |||
Despite following this methodology, no valid results were obtained | |||
This step underscored the limitations of the Catastici dataset for this project and highlighted the need for improved computational resources and greater dataset compatibility to achieve better outcomes in future research. | This step underscored the limitations of the Catastici dataset for this project and highlighted the need for improved computational resources and greater dataset compatibility to achieve better outcomes in future research. | ||
==== ChatGPT API ==== | ==== ChatGPT API ==== | ||
For the remaining entries, ChatGPT was combined with geocoding APIs like OpenCage or Nominatim to infer coordinates. | For the remaining entries, ChatGPT was combined with geocoding APIs like OpenCage or Nominatim to infer coordinates. | ||
Advantages: | Advantages: | ||
Combines ChatGPT's descriptive power with the precision of geocoding APIs. Limitations: Requires external geocoding APIs | |||
==== Considerations ==== | |||
# Nominatim API: Returns few but highly accurate results. | |||
# Venetian Church Dictionary: Highly effective in associating churches, although some errors may arise depending on thresholds. | |||
# Catastici/Sommarioni: Currently yields no results, likely due to:limited testing capability on the full dataset, volume-specific content variations and missmatch in time. | |||
# Temporal mismatch between Mario Sanudo's document and catastics data. | |||
# ChatGPT API: Associates most remaining instances with some errors, though not significantly high. | |||
== Finding the relationship== | == Finding the relationship== | ||
=== | === Basic Relationships === | ||
In this analysis, a simple method was used to establish relationships by considering places and people mentioned within the same column. This approach assumes that if a place and a person appear together in the same entry, they might be related. However, this assumption has limitations. | In this analysis, a simple method was used to establish relationships by considering places and people mentioned within the same column. This approach assumes that if a place and a person appear together in the same entry, they might be related. However, this assumption has limitations. | ||
Line 212: | Line 197: | ||
In summary, this naive approach relies on the proximity of entries within the index to suggest relationships, but it lacks the ability to verify the true nature of these connections. More advanced methods would be required to establish more accurate relationships. | In summary, this naive approach relies on the proximity of entries within the index to suggest relationships, but it lacks the ability to verify the true nature of these connections. More advanced methods would be required to establish more accurate relationships. | ||
=== Advanced Relationship === | |||
In this analysis, we aimed to identify and categorize relationships between people and places within a dataset. | |||
==== Handling Names and Places ==== | ==== Handling Names and Places ==== | ||
One challenge we faced was that the names of people or places were not always directly referenced in the text but often appeared with additional attributes, aliases, or titles. Therefore, we had to extract all the data related to a place and a name and construct two lists: one for the words by which places were likely to be called in the text and another for the words associated with names. This strategy allowed us to leave the original text intact and only evaluate the presence of at least one token from the place list and one from the name list, enabling us to read the output in a way that retained both syntactic and semantic meaning. | One challenge we faced was that the names of people or places were not always directly referenced in the text but often appeared with additional attributes, aliases, or titles. Therefore, we had to extract all the data related to a place and a name and construct two lists: one for the words by which places were likely to be called in the text and another for the words associated with names. This strategy allowed us to leave the original text intact and only evaluate the presence of at least one token from the place list and one from the name list, enabling us to read the output in a way that retained both syntactic and semantic meaning. | ||
{| class="wikitable" style="margin:auto; text-align:center;" | |||
|+ Example | |||
|- | |||
! name in place index !! column !! actual name in the column | |||
|- | |||
| sala del consiglio dei x || 78 || sala | |||
|} | |||
==== Refining the Process ==== | ==== Refining the Process ==== | ||
[[File:tot.png|600px|thumb|right|All the features]] | |||
To ensure accuracy, we first processed the lists by removing short words, stop words, numbers, NaN characters, and special characters. Our initial trial involved checking if 'name' and 'place' appeared within the same sentence. However, this approach resulted in only a small number of meaningful results (209 out of 3,170), with many of them being insignificant. | To ensure accuracy, we first processed the lists by removing short words, stop words, numbers, NaN characters, and special characters. Our initial trial involved checking if 'name' and 'place' appeared within the same sentence. However, this approach resulted in only a small number of meaningful results (209 out of 3,170), with many of them being insignificant. | ||
Line 234: | Line 219: | ||
==== Improving Token Matching ==== | ==== Improving Token Matching ==== | ||
To further refine the process, | To further refine the process, we introduced a more advanced method: assessing the similarity of tokens using Levenshtein distance. This technique calculates the similarity between two strings, which helped overcome errors introduced by OCR. By applying Levenshtein’s ratio, a similarity value between 0 and 1 was generated for each pair of tokens. If the similarity exceeded a set threshold, the tokens were considered a match. This approach further increased the number of valid results, bringing the total to 1,727 out of 3,170. | ||
==== Categorizing Relationships ==== | ==== Categorizing Relationships ==== | ||
Once the matches were identified, the next step was to categorize the relationships between people and places. We used the minimum and maximum sentence boundaries identified earlier to pass these sentences to a large language model (LLM) system for relationship categorization. The LLM categorized the relationships into predefined types, such as a person nominated in that place but not physically present, a person belonging to the place, or a person working or living there. In cases where the model could not find a clear connection, such as in sentences like “John was appointed to the city council,” the system might return an empty string, indicating no clear relationship. For instances where the relationship was unclear but still relevant, such as “Jane recently visited her uncle’s house in Paris,” the model would categorize the relationship as "other," implying that the relationship could not be easily classified into the predefined labels. | Once the matches were identified, the next step was to categorize the relationships between people and places. We used the minimum and maximum sentence boundaries identified earlier to pass these sentences to a large language model (LLM) system for relationship categorization. The LLM categorized the relationships into predefined types, such as a person nominated in that place but not physically present, a person belonging to the place, or a person working or living there. In cases where the model could not find a clear connection, such as in sentences like “John was appointed to the city council,” the system might return an empty string, indicating no clear relationship. For instances where the relationship was unclear but still relevant, such as “Jane recently visited her uncle’s house in Paris,” the model would categorize the relationship as "other," implying that the relationship could not be easily classified into the predefined labels. | ||
{| class="wikitable" style="margin:auto; text-align:left;" | |||
|+ category | |||
|- | |||
! person nominated in that place, but not physically there | |||
|- | |||
! person belongs to there | |||
|- | |||
! person works there | |||
|- | |||
! person lives there | |||
|- | |||
! person meets someone there | |||
|- | |||
! person studies there | |||
|- | |||
! person participates in an event there | |||
|- | |||
! person owns the place | |||
|- | |||
! person is there | |||
|- | |||
! person crosses the place | |||
|- | |||
! a person was seen there | |||
|- | |||
! person visiting there | |||
|- | |||
! people exiled from the place | |||
|- | |||
! people escape from the place | |||
|- | |||
! other | |||
|} | |||
==== Outcome and Significance ==== | ==== Outcome and Significance ==== | ||
Line 245: | Line 263: | ||
==Result== | ==Result== | ||
[[File:dat.png|600px|thumb|right|Output dataset ]] | |||
The dataset output includes detailed columns such as 'Min_Distance_Relationship' and 'Max_Distance_Relationship',in this two there is a string composed by 'Sentence', 'Person','Location', 'Category', and 'Description'. The Description column, in particular, provides valuable insights by elaborating on the relationships between individuals and places, making it a critical element for understanding historical context and the nature of these associations. | |||
[[File:grap.png|600px|thumb|right]] | |||
The comparative analysis of "Min Distance" and "Max Distance" contexts reveals notable patterns across various relationship categories. The most prominent category, “Person nominated in that place, but not physically there,” appears frequently in both contexts. In the Min Distance context, this relationship is recorded 796 times, compared to 764 in the Max Distance context, showing a decrease of 32. This trend indicates that indirect associations, where individuals are connected to places without physical presence, are prevalent but slightly less frequent when the spatial context expands. Similarly, the category “Other” remains significant, accounting for general or ambiguous relationships. Its slight decrease from 619 to 611 between the two contexts underscores the stability of undefined spatial associations. | |||
Categories such as “Person works there” and “Person participates in an event there” show notable increases. Specifically, the “Person works there” category rises from 150 occurrences in the Min Distance context to 192 in the Max Distance context, a positive difference of 42. This suggests that work-related spatial relationships are more frequently referenced in broader spatial contexts. Similarly, “Person participates in an event there” increases by 25, from 51 to 76, indicating that participation in events becomes more prominent in larger spatial frames, potentially reflecting the visibility or importance of events beyond local settings. | |||
In contrast, categories emphasizing physical presence and local connections, such as “Person belongs to there” and “Person visiting there,” show declines. “Person belongs to there” decreases by 10, from 50 in the Min Distance context to 40 in the Max Distance context, while “Person visiting there” decreases by 12, from 40 to 28. These shifts suggest that identity-based associations, such as belonging or visiting, hold more contextual significance in localized spatial relationships and become less prominent as the spatial frame widens. | |||
The category “People exiled from the place” also decreases, dropping from 10 occurrences in Min Distance to 5 in Max Distance, a reduction of 5. This suggests that references to exile are more common in localized contexts. Likewise, categories such as “Person owns the place” and “Person is there” show minor decreases, each by 1, reflecting relative stability but reduced prominence over larger distances. Meanwhile, categories like “Person lives there” and “Person studies there” remain unchanged across both contexts, highlighting the consistent documentation of residential and educational relationships regardless of spatial scope. | |||
Interestingly, there is a slight increase in the category “Person meets someone there,” which rises from 2 to 3 in the Max Distance context. Additionally, the category “A person was seen there” appears exclusively in the Max Distance context, suggesting that sightings are occasionally referenced in broader spatial frames. | |||
Overall, the trends reveal that relationships related to work and event participation gain prominence in broader spatial contexts, while categories tied to physical presence, belonging, and exile remain more localized. The consistency observed in ownership and residential relationships underscores their stable relevance regardless of distance. These findings emphasize how spatial framing shapes the documentation and interpretation of human interactions with places, with certain associations gaining broader recognition while others remain firmly tied to localized contexts. | |||
By analyzing both the Description column and the comparative data, the dataset provides a rich resource for exploring how historical relationships between people and places were recorded, offering significant insights into the sociocultural dynamics of the past. | |||
The comparative analysis of “Min Distance” and “Max Distance” contexts not only reveals patterns within individual categories but also highlights broader trends in how spatial relationships are documented across different frames of reference. Incorporating the counts of rows where categories are equal versus not equal, we observe that 929 rows have matching categories (True), while 798 rows differ (False), showcasing a significant number of instances where relationships are reinterpreted or shift in emphasis as the spatial frame expands. | |||
===Matching vs. Non-Matching Categories=== | |||
[[File:match.png|600px|thumb|right]] | |||
The near parity between rows with matching and non-matching categories suggests that while many relationships remain consistent between the Min and Max Distance contexts, a substantial portion undergoes reclassification. This underscores the nuanced nature of spatial relationships, where context plays a crucial role in shaping interpretations. | |||
A closer look at the rows with differing categories reveals notable patterns. The most frequent mismatch involves the transition between “person nominated in that place, but not physically there” and “other” in both directions, with 224 cases shifting from “person nominated” to “other” and 216 cases moving in the opposite direction. These shifts suggest ambiguity or broader interpretations when moving between localized and expanded spatial contexts. The “other” category often serves as a catch-all for relationships that are less explicitly defined or harder to categorize. | |||
Another notable difference involves “person nominated in that place, but not physically there” and “person works there,” with 62 cases transitioning from “person nominated” to “person works there” and 42 cases moving in the opposite direction. This highlights how work-related associations might emerge or gain prominence in specific contexts while being classified as nominations in others. | |||
Differences also appear with the category “person participates in an event there.” Specifically, there are 36 cases shifting from “person nominated in that place, but not physically there” to “person participates in an event there,” 25 cases transitioning from “other” to “person participates in an event there,” and 21 cases moving from “person participates in an event there” back to “person nominated in that place.” These differences emphasize how event participation can sometimes be interpreted as part of a nomination or as an independent relational context. | |||
Other mismatches include transitions between “person visiting there” and “person nominated in that place, but not physically there,” with 19 cases reflecting this change. Also, there are 18 cases where “other” transitions to “person works there,” indicating that some work-related relationships may initially be too vague or undefined in localized contexts. | |||
Overall Insights | |||
The discrepancies between categories reflect the fluidity of interpreting historical relationships based on spatial scope. Broader contexts tend to emphasize work, events, and indirect associations, while localized contexts retain a stronger focus on physical presence, belonging, and direct ties to place. This duality is further supported by the stability of certain categories (e.g., residential relationships and ownership) across spatial frames. | |||
The 798 rows with non-matching categories thus provide valuable insight into how spatial and social relationships adapt and are documented differently based on context, enriching our understanding of the interplay between people, places, and the nature of their associations in historical data. | |||
=Conclusions= | |||
=== Achieved Results === | |||
The extraction and structuring of information from indices and texts, the identification of relationships between people and places, and the application of advanced techniques such as textual similarity calculations allowed us to create richer and more useful datasets. The comparative analysis of relationships in the “Min Distance” and “Max Distance” contexts has revealed notable insights into the documentation of spatial relationships and their evolution across varying frames of reference. | |||
=== Quality Assessment === | |||
The data extraction process, primarily using OCR, was a critical starting point. While an Italian-trained OCR model was used, errors were inevitable due to the quality of the scanned text. Although the most common errors were reviewed and corrected, the large volume of data made it impractical to address all issues. | |||
For the name index, we conducted a high-level, sample-based check to correct frequent errors, as a full manual review would have been too time-consuming. We observed that the ChatGPT API produced the most errors in this context. Regarding the relationships, we manually reviewed a subset of them, finding that relationships derived from “max_sentences” were generally accurate, while those from “min_sentences” were more often incorrect. | |||
=== Limitations === | |||
Despite our best efforts, several key limitations persisted in the dataset. One major challenge was the manual validation and cleaning of the person index. With around 80 pages of names, this process was time-consuming and prone to errors, and while OCR helped automate much of the extraction, some entries required nuanced interpretation, leading to potential missed or incorrect relationships. | |||
Geolocation also presented limitations. Although we used multiple sources, including the Nominatim API and the Venetian Church Dictionary, many private addresses, especially those in historical records like the Catastici/Sommarioni, lacked geolocation data. | |||
The analysis of mismatched categories revealed the need for more sophisticated algorithms or manual interventions to capture the complexity of these relationships. While Levenshtein distance improved token matching, it wasn’t flawless, and computational limitations prevented us from applying more advanced algorithms at scale. The historical language in Sanudo’s diaries further complicated the task, causing some relationships, particularly those involving aliases or titles, to be missed or misclassified. | |||
=== Further Work === | |||
Given the limitations, there is significant potential for further work. Future research could focus on using natural language processing (NLP) models tailored to historical texts, particularly Renaissance-era Italian, to better capture the nuances of relationships. This would help improve the accuracy of syntactic and semantic understanding. | |||
A deeper analysis of mismatched categories could provide insights into how relationships shifted contextually. Additionally, exploring the ‘other’ category of relationships could uncover new types of interactions that were common in the past but not today. | |||
Expanding this analysis to include other historical records from Renaissance Venice, beyond just Sanudo’s diaries, would offer a more comprehensive understanding of the social and geographical networks of the time. | |||
While our work focused on volume 5 of Marino Sanudo’s diaries, a broader approach covering all 58 volumes would provide a more complete view of Venice’s historical landscape. | |||
In conclusion, while this project offers valuable insights into Renaissance Venice, the outlined limitations highlight the need for further refinement of methods in future research. | |||
=GitHub repositories= | =GitHub repositories= | ||
Line 283: | Line 347: | ||
https://zentry.com/ | https://zentry.com/ | ||
Sbert: https://sbert.net/ |
Latest revision as of 15:03, 18 December 2024
Introductions
The project focused on analyzing the diaries of Marino Sanudo [1], a key historical source for understanding the Renaissance period. The primary goal was to create an index of people and places mentioned in the diaries, pair these entities, and analyze the potential relationships between them.
Historical Context
Who Was Marino Sanudo? Marino Sanudo (1466–1536) was a Venetian historian, diarist, and politician whose extensive diaries, Diarii, provide a meticulous chronicle of daily life, politics, and events in Renaissance Venice. Sanudo devoted much of his life to recording the intricacies of Venetian society, governance, and international relations, making him one of the most significant chroniclers of his era.
The Importance of His Diaries
Sanudo’s Diarii span nearly four decades, comprising 58 volumes of detailed observations. These writings offer invaluable insights into the political maneuvers of the Venetian Republic, social customs, and the geographical scope of Renaissance trade and diplomacy. His work captures not only significant historical events but also the daily rhythms of Venetian life, painting a vivid picture of one of the most influential states of the time.
Relevance Today Studying Marino Sanudo’s diaries remains highly relevant for modern historians, linguists, and data analysts. They provide a primary source for understanding Renaissance politics, diplomacy, and social hierarchies. Furthermore, the diaries’ exhaustive detail lends itself to contemporary methods of analysis, such as network mapping and data visualization, enabling new interpretations and uncovering hidden patterns in historical relationships. By examining the interconnectedness of individuals and places, Sanudo’s work sheds light on the broader dynamics of Renaissance Europe, offering lessons that resonate even in today’s globalized world.
Motivation and description of the deliverables
The decision to analyze Marino Sanudo’s diaries stemmed from their exceptional value as a primary source for understanding Renaissance Venice and its influence on European history. Sanudo’s meticulous documentation provides unparalleled insights into the sociopolitical and cultural dynamics of the time, capturing events ranging from significant political maneuvers to the nuances of daily life. This project aimed to leverage this rich historical resource to explore connections between individuals and places, offering a fresh perspective on the networks that shaped Renaissance society.
Our motivation was twofold: to deepen historical understanding and to demonstrate the potential of digital humanities. By employing modern data analysis tools and visualization techniques, we aimed to uncover patterns and relationships that might remain hidden in traditional textual analysis. Sanudo’s diaries, with their wealth of names, places, and detailed events, provided the ideal foundation for such an interdisciplinary approach, bridging the gap between historical research and innovative technology.
The project deliverables reflect this dual objective. First, we developed an indexed dataset of names and places mentioned in Sanudo’s diaries, categorized by the relationships and contexts in which they appeared. This dataset forms the basis for further exploration of Renaissance networks. Second, we analyzed these relationships to identify significant patterns, such as the prominence of certain individuals in specific locations or events, and created visualizations to illustrate these findings. These analyses contribute not only to a deeper understanding of Venetian society but also to broader discussions about the interconnectedness of Renaissance Europe.
To ensure accessibility, we documented our research on a dedicated website and created a Wikipedia page summarizing the project and its findings. These platforms serve as public-facing resources, promoting engagement with the material and showcasing the value of combining historical research with digital tools. This project exemplifies how modern methodologies can enrich our appreciation of the past.
Project Plan and Milestones
The project was organized on a weekly basis to ensure steady progress and a balanced workload. Each phase was carefully planned with clearly defined objectives and milestones, promoting effective collaboration and equitable division of tasks among team members.
The first milestone (13.10) involved deciding on the project's focus. After thorough discussions, we collectively chose to analyze Marino Sanudo’s diaries, given their historical significance and potential for data-driven exploration. This phase established a shared understanding of the project, laid the foundation for subsequent work, and clarified the scope of our research.
The second milestone (14.10) focused on optimizing the extraction of indexes for names and places from the diaries. This required refining our methods for data extraction and ensuring accuracy in capturing and categorizing entities. Alongside this, we worked on identifying the geolocations of the places mentioned in the index, using historical and modern mapping tools to ensure precise identification. This step was critical to linking historical references with real-world locations, providing a solid basis for subsequent analysis.
The final stages of the project (19.12) marked the transition to analyzing relationships between the extracted names and places. Using the indexed data, we explored potential connections, identifying patterns and trends that revealed insights into Renaissance Venice's social, political, and geographic networks. We collaboratively built a Wikipedia page to document our research and created a dedicated website to present our results in an accessible and visually engaging manner. This phase also included preparing for the final presentation, ensuring that every team member contributed to summarizing and showcasing the work.
By adhering to this structured approach and dividing tasks equitably, we achieved a comprehensive analysis of Sanudo’s diaries. Combining historical research with modern digital tools, we uncovered new insights into his world and its relevance today.
Week | Task |
---|---|
07.10 - 13.10 | Define project and structure work |
14.10 - 20.10 |
Manually write a place index |
21.10 - 27.10 | Autumn vacation |
28.10 - 03.11 |
Work on the name dataset |
04.11 - 10.11 |
Finish the geolocation |
11.11 - 17.11 |
Midterm presentation on 14.11 |
18.11 - 24.11 |
Find naive relationship |
25.11 - 01.12 |
Standardization of the text |
02.12 - 08.12 |
Find relationship based on the distance |
09.12 - 15.12 |
Finish writing the wiki |
16.12 - 22.12 |
Deliver GitHub + wiki on 18.12 |
Methodology
Data preparation
In our project, which involved analyzing a specific book, the initial step was to obtain the text version of the book. After exploring several sources, including The Online Books Page [2], we identified three potential websites for downloading the text. Ultimately, we selected the version available on Internet Archives [3] because it offered a more comprehensive set of tools for our analysis. We downloaded the text from this source and compared it to versions from Google Books and HathiTrust, confirming that it best suited our needs.
We then decided to focus our analysis on the indices included in volume 5, which listed the names of people and places alongside the corresponding column numbers.
Place index
Our primary focus was on the places mentioned in Venice. The index of places was significantly shorter, allowing us to analyze it manually. Each entry in the index included headings that often indicated a hierarchical relationship, suggesting that a location belonged to a broader area indicated by the preceding indentation.
Dataset structure
The generated dataset consists of the following features:
id: A unique identifier assigned to each entry.
place: The primary name of the location mentioned in the index.
alias: Any alternative names or variations associated with the place.
volume: The specific volume of the book in which the place is mentioned.
column: The column number within the index where the place is listed.
parents: The broader location or hierarchical category to which the place belongs, derived from the indentation structure in the index.
This structured dataset captures both the explicit details from the index and the inferred hierarchical relationships, making it suitable for further analysis and exploration.
Person index
The index of persons proved to be significantly more challenging to analyze than the index of places, as it spanned approximately 80 pages. To tackle this, we first provided examples of the desired output and then used an Italian-trained OCR model to process the text and generate a preliminary table of names. This approach differed from traditional OCR methods, allowing for a more accurate extraction tailored to our project.
Dataset Structure
The dataset generated for people consists of various features, such as a unique identifier (id) for each entry, the primary name of the person (name), any alternative names or variations (alias), the specific volume where the person is mentioned (volume), the column number within the index where the person is listed (column), the broader family or hierarchical category to which the person belongs (parents), and additional details or notes about the person (description). This structured dataset organizes the data in a way that preserves both explicit information and contextual relationships, enabling in-depth analysis and exploration.
Cleaning and Error Correction
After the automated extraction, the output was manually reviewed and corrected. Given that OCR often makes mistakes when generating text from images, our goal was to improve the dataset's quality without conducting a complete manual overhaul. Instead, we focused on correcting the most frequent and disruptive errors. A common issue encountered was the misinterpretation of page numbers as names, which led to cascading errors that required cleaning. Another frequent error involved the inclusion of dashes ("-") generated by the OCR, which needed removal.
During the analysis of the "description" column, numeric characters were frequently observed due to incorrect OCR processing. Many of these numbers corresponded to page references and needed to be transferred to the "pages" column. However, the column also contained numbers unrelated to pagination, such as quantifications (e.g., "he had 3 children") or references to historical years. Historical years were often recognizable by their formatting, typically enclosed in round brackets or preceded by Italian prepositions commonly used to denote time periods, such as "nel," "da," or "di." Additionally, the structure of the dataset limited the maximum number of valid columns for volume 5 to 1074, meaning any larger number was undoubtedly a reference to a historical year.
To address these inconsistencies, a systematic extraction process was designed. All numbers with three or four digits were identified within the "description" column. Numbers exceeding the maximum column count of 1074 were flagged as historical years, as were those preceded by prepositions indicating temporal references. Valid page numbers were transferred to the "pages" column, and once extracted, these numbers were removed from the "description" column to eliminate redundancy. This process relied on a combination of regular expressions and filtering techniques to ensure precision.
Handling two-digit numbers posed significant challenges. Distinguishing between numbers representing pagination and those used for quantifications (e.g., "2 children") required manual inspection, which was impractical at scale. Consequently, two-digit numbers were excluded from the automated process to minimize errors. Although this approach may have resulted in some missing pagination data, it effectively avoided inaccuracies caused by misclassification. This method underscored the need to balance accuracy and practicality in processing complex datasets while acknowledging the inherent limitations of such efforts.
Observations
Several observations emerged during the analysis. The first surname listed under a heading often applied to subsequent names following the same indentation, providing insight into familial groupings. In some cases, ellipses (...) were used in place of names. This practice was historically employed for names that were unknown at the time of writing, with the intention that they could be added later if discovered, or to deliberately anonymize individuals. These findings enriched our understanding of the index, offering valuable context for both its historical and structural significance.
Text Management
After completing the processing of the indexes, the final step in preparing the data was to work on the full text. Although we considered using an alternative OCR system, the OCR provided by Internet Archive proved particularly useful. This system included OCR pages in JSON format, which provided the start and end character for each page. Thanks to this feature, it was possible to split the text into individual pages, a crucial step given the need to organize the data by columns.
Once the text was divided into pages, it became necessary to identify and align the columns. A manual review of the OCR revealed that the text columns of interest only began after page 25. From that point onward, the columns were numbered starting at 5 and 6. This numbering was chosen to create a system consistent with the original text, ensuring the columns were properly aligned to the required format.
Through this methodology, each page was associated with a "start column" and an "end column," ensuring accurate structuring of the data in alignment with the original document format.
Finding the Geolocation
Extraction of Coordinates
Pipeline
Output with latitude and longitude
- Load and preprocess data
- Nominatim API: Extract coordinates for "famous places."
- Venetian Church Dictionary: Match coordinates for churches.
- Catastici/Sommarioni: Match coordinates for private houses.
- ChatGPT API: Fill in missing data.
Process: Each step enriches the dataset with newly found coordinates. Subsequent steps only process entries lacking geolocation, avoiding overwriting or misclassification of previous entries.
Nominatim API
Nominatim is a geocoding API that processes either structured or free-form textual descriptions. For this study, the free-form query method was used. Key Findings: Using 'name' and 'city' fields yielded accurate but limited results (6/65). Including 'alias' and 'father' fields in the query reduced accuracy significantly. The API works best with simple and precise input, whereas long or complex phrases hinder matching.
Venetian Church Dictionary
We use the dictionary of Church.
This dictionary aids in geolocating churches by matching entries from the dataset with those in the dictionary using Italian and Venetian labels. Steps: - Filter dataset entries containing "chiesa" (church) or synonyms in the 'name' field. - Use only church entries with geolocation and either 'venetianLabel' or 'italianLabel' not null. - Assess similarity between strings using Sentence-BERT (SBERT)[4].
Advantages: Restricting to church-related entries minimizes unrelated matches. SBERT captures semantic similarities, such as "Chiesa di San Marco" and "Basilica di San Marco."
Catastici and Sommarioni
Considering that most of the entities that remain without a match are private houses, we thought of implementing a pipeline to extract these coordinates through the dataset of catastics. To address these challenges, a dictionary was created from the Catastici database to facilitate semantic similarity assessments with entries from the name index. Catastici dataframe From the JSON file con Catastici, the property’s function, owner’s name, and coordinates were extracted. A structured dataframe was created by combining these tags. The geometry field was split into two columns for latitude and longitude. Duplicates were removed based on the function and owner’s name, keeping only the first occurrence for each combination. A new column, named "name," was generated by concatenating the function and owner’s name. Subsequently, only entries related to private houses ("casa") were retained for further analysis. Since the dataset used a different local coordinate system, it was necessary to convert any matched coordinates to the appropriate reference system. Despite following this methodology, no valid results were obtained due to several challenges, including hardware limitations that prevented the generation of string encoding for the large dataset within a reasonable timeframe, the possibility that the specific volume analyzed (vol. 5) lacked relevant entries, and a temporal mismatch between the analyzed Marino Sanudo document and the catastics records. This step underscored the limitations of the Catastici dataset for this project and highlighted the need for improved computational resources and greater dataset compatibility to achieve better outcomes in future research.
ChatGPT API
For the remaining entries, ChatGPT was combined with geocoding APIs like OpenCage or Nominatim to infer coordinates. Advantages: Combines ChatGPT's descriptive power with the precision of geocoding APIs. Limitations: Requires external geocoding APIs
Considerations
- Nominatim API: Returns few but highly accurate results.
- Venetian Church Dictionary: Highly effective in associating churches, although some errors may arise depending on thresholds.
- Catastici/Sommarioni: Currently yields no results, likely due to:limited testing capability on the full dataset, volume-specific content variations and missmatch in time.
- Temporal mismatch between Mario Sanudo's document and catastics data.
- ChatGPT API: Associates most remaining instances with some errors, though not significantly high.
Finding the relationship
Basic Relationships
In this analysis, a simple method was used to establish relationships by considering places and people mentioned within the same column. This approach assumes that if a place and a person appear together in the same entry, they might be related. However, this assumption has limitations.
Co-occurrence in the Same Column: Places and people mentioned in the same column were linked, based on the assumption that their proximity suggests some form of relationship. However, we cannot be certain if this proximity indicates an actual relationship or if they are simply listed together without a true connection.
Limitations: Temporal Gaps: It is not possible to determine whether the relationship exists because the place and person appear in the same column or if the relationship pertains to places or people mentioned in previous or subsequent pages. Context: Without additional context or a deeper understanding of the index structure, we cannot definitively determine whether the place and person are directly related, or if they are merely listed next to each other by chance.
In summary, this naive approach relies on the proximity of entries within the index to suggest relationships, but it lacks the ability to verify the true nature of these connections. More advanced methods would be required to establish more accurate relationships.
Advanced Relationship
In this analysis, we aimed to identify and categorize relationships between people and places within a dataset.
Handling Names and Places
One challenge we faced was that the names of people or places were not always directly referenced in the text but often appeared with additional attributes, aliases, or titles. Therefore, we had to extract all the data related to a place and a name and construct two lists: one for the words by which places were likely to be called in the text and another for the words associated with names. This strategy allowed us to leave the original text intact and only evaluate the presence of at least one token from the place list and one from the name list, enabling us to read the output in a way that retained both syntactic and semantic meaning.
name in place index | column | actual name in the column |
---|---|---|
sala del consiglio dei x | 78 | sala |
Refining the Process
To ensure accuracy, we first processed the lists by removing short words, stop words, numbers, NaN characters, and special characters. Our initial trial involved checking if 'name' and 'place' appeared within the same sentence. However, this approach resulted in only a small number of meaningful results (209 out of 3,170), with many of them being insignificant.
The second trial expanded the search by looking for 'place' combined with 'alias_place' and 'name' with 'description'. This broader search significantly increased the number of results, reaching more than 1,000.
Improving Token Matching
To further refine the process, we introduced a more advanced method: assessing the similarity of tokens using Levenshtein distance. This technique calculates the similarity between two strings, which helped overcome errors introduced by OCR. By applying Levenshtein’s ratio, a similarity value between 0 and 1 was generated for each pair of tokens. If the similarity exceeded a set threshold, the tokens were considered a match. This approach further increased the number of valid results, bringing the total to 1,727 out of 3,170.
Categorizing Relationships
Once the matches were identified, the next step was to categorize the relationships between people and places. We used the minimum and maximum sentence boundaries identified earlier to pass these sentences to a large language model (LLM) system for relationship categorization. The LLM categorized the relationships into predefined types, such as a person nominated in that place but not physically present, a person belonging to the place, or a person working or living there. In cases where the model could not find a clear connection, such as in sentences like “John was appointed to the city council,” the system might return an empty string, indicating no clear relationship. For instances where the relationship was unclear but still relevant, such as “Jane recently visited her uncle’s house in Paris,” the model would categorize the relationship as "other," implying that the relationship could not be easily classified into the predefined labels.
person nominated in that place, but not physically there |
---|
person belongs to there |
person works there |
person lives there |
person meets someone there |
person studies there |
person participates in an event there |
person owns the place |
person is there |
person crosses the place |
a person was seen there |
person visiting there |
people exiled from the place |
people escape from the place |
other |
Outcome and Significance
This method significantly improved the relationship analysis by providing a more structured way to understand and categorize interactions between people and places within the dataset. The categorization made the results more readable and allowed for deeper investigations in subsequent stages.
Result
The dataset output includes detailed columns such as 'Min_Distance_Relationship' and 'Max_Distance_Relationship',in this two there is a string composed by 'Sentence', 'Person','Location', 'Category', and 'Description'. The Description column, in particular, provides valuable insights by elaborating on the relationships between individuals and places, making it a critical element for understanding historical context and the nature of these associations.
The comparative analysis of "Min Distance" and "Max Distance" contexts reveals notable patterns across various relationship categories. The most prominent category, “Person nominated in that place, but not physically there,” appears frequently in both contexts. In the Min Distance context, this relationship is recorded 796 times, compared to 764 in the Max Distance context, showing a decrease of 32. This trend indicates that indirect associations, where individuals are connected to places without physical presence, are prevalent but slightly less frequent when the spatial context expands. Similarly, the category “Other” remains significant, accounting for general or ambiguous relationships. Its slight decrease from 619 to 611 between the two contexts underscores the stability of undefined spatial associations.
Categories such as “Person works there” and “Person participates in an event there” show notable increases. Specifically, the “Person works there” category rises from 150 occurrences in the Min Distance context to 192 in the Max Distance context, a positive difference of 42. This suggests that work-related spatial relationships are more frequently referenced in broader spatial contexts. Similarly, “Person participates in an event there” increases by 25, from 51 to 76, indicating that participation in events becomes more prominent in larger spatial frames, potentially reflecting the visibility or importance of events beyond local settings.
In contrast, categories emphasizing physical presence and local connections, such as “Person belongs to there” and “Person visiting there,” show declines. “Person belongs to there” decreases by 10, from 50 in the Min Distance context to 40 in the Max Distance context, while “Person visiting there” decreases by 12, from 40 to 28. These shifts suggest that identity-based associations, such as belonging or visiting, hold more contextual significance in localized spatial relationships and become less prominent as the spatial frame widens.
The category “People exiled from the place” also decreases, dropping from 10 occurrences in Min Distance to 5 in Max Distance, a reduction of 5. This suggests that references to exile are more common in localized contexts. Likewise, categories such as “Person owns the place” and “Person is there” show minor decreases, each by 1, reflecting relative stability but reduced prominence over larger distances. Meanwhile, categories like “Person lives there” and “Person studies there” remain unchanged across both contexts, highlighting the consistent documentation of residential and educational relationships regardless of spatial scope.
Interestingly, there is a slight increase in the category “Person meets someone there,” which rises from 2 to 3 in the Max Distance context. Additionally, the category “A person was seen there” appears exclusively in the Max Distance context, suggesting that sightings are occasionally referenced in broader spatial frames.
Overall, the trends reveal that relationships related to work and event participation gain prominence in broader spatial contexts, while categories tied to physical presence, belonging, and exile remain more localized. The consistency observed in ownership and residential relationships underscores their stable relevance regardless of distance. These findings emphasize how spatial framing shapes the documentation and interpretation of human interactions with places, with certain associations gaining broader recognition while others remain firmly tied to localized contexts.
By analyzing both the Description column and the comparative data, the dataset provides a rich resource for exploring how historical relationships between people and places were recorded, offering significant insights into the sociocultural dynamics of the past.
The comparative analysis of “Min Distance” and “Max Distance” contexts not only reveals patterns within individual categories but also highlights broader trends in how spatial relationships are documented across different frames of reference. Incorporating the counts of rows where categories are equal versus not equal, we observe that 929 rows have matching categories (True), while 798 rows differ (False), showcasing a significant number of instances where relationships are reinterpreted or shift in emphasis as the spatial frame expands.
Matching vs. Non-Matching Categories
The near parity between rows with matching and non-matching categories suggests that while many relationships remain consistent between the Min and Max Distance contexts, a substantial portion undergoes reclassification. This underscores the nuanced nature of spatial relationships, where context plays a crucial role in shaping interpretations.
A closer look at the rows with differing categories reveals notable patterns. The most frequent mismatch involves the transition between “person nominated in that place, but not physically there” and “other” in both directions, with 224 cases shifting from “person nominated” to “other” and 216 cases moving in the opposite direction. These shifts suggest ambiguity or broader interpretations when moving between localized and expanded spatial contexts. The “other” category often serves as a catch-all for relationships that are less explicitly defined or harder to categorize.
Another notable difference involves “person nominated in that place, but not physically there” and “person works there,” with 62 cases transitioning from “person nominated” to “person works there” and 42 cases moving in the opposite direction. This highlights how work-related associations might emerge or gain prominence in specific contexts while being classified as nominations in others.
Differences also appear with the category “person participates in an event there.” Specifically, there are 36 cases shifting from “person nominated in that place, but not physically there” to “person participates in an event there,” 25 cases transitioning from “other” to “person participates in an event there,” and 21 cases moving from “person participates in an event there” back to “person nominated in that place.” These differences emphasize how event participation can sometimes be interpreted as part of a nomination or as an independent relational context.
Other mismatches include transitions between “person visiting there” and “person nominated in that place, but not physically there,” with 19 cases reflecting this change. Also, there are 18 cases where “other” transitions to “person works there,” indicating that some work-related relationships may initially be too vague or undefined in localized contexts.
Overall Insights The discrepancies between categories reflect the fluidity of interpreting historical relationships based on spatial scope. Broader contexts tend to emphasize work, events, and indirect associations, while localized contexts retain a stronger focus on physical presence, belonging, and direct ties to place. This duality is further supported by the stability of certain categories (e.g., residential relationships and ownership) across spatial frames.
The 798 rows with non-matching categories thus provide valuable insight into how spatial and social relationships adapt and are documented differently based on context, enriching our understanding of the interplay between people, places, and the nature of their associations in historical data.
Conclusions
Achieved Results
The extraction and structuring of information from indices and texts, the identification of relationships between people and places, and the application of advanced techniques such as textual similarity calculations allowed us to create richer and more useful datasets. The comparative analysis of relationships in the “Min Distance” and “Max Distance” contexts has revealed notable insights into the documentation of spatial relationships and their evolution across varying frames of reference.
Quality Assessment
The data extraction process, primarily using OCR, was a critical starting point. While an Italian-trained OCR model was used, errors were inevitable due to the quality of the scanned text. Although the most common errors were reviewed and corrected, the large volume of data made it impractical to address all issues.
For the name index, we conducted a high-level, sample-based check to correct frequent errors, as a full manual review would have been too time-consuming. We observed that the ChatGPT API produced the most errors in this context. Regarding the relationships, we manually reviewed a subset of them, finding that relationships derived from “max_sentences” were generally accurate, while those from “min_sentences” were more often incorrect.
Limitations
Despite our best efforts, several key limitations persisted in the dataset. One major challenge was the manual validation and cleaning of the person index. With around 80 pages of names, this process was time-consuming and prone to errors, and while OCR helped automate much of the extraction, some entries required nuanced interpretation, leading to potential missed or incorrect relationships.
Geolocation also presented limitations. Although we used multiple sources, including the Nominatim API and the Venetian Church Dictionary, many private addresses, especially those in historical records like the Catastici/Sommarioni, lacked geolocation data.
The analysis of mismatched categories revealed the need for more sophisticated algorithms or manual interventions to capture the complexity of these relationships. While Levenshtein distance improved token matching, it wasn’t flawless, and computational limitations prevented us from applying more advanced algorithms at scale. The historical language in Sanudo’s diaries further complicated the task, causing some relationships, particularly those involving aliases or titles, to be missed or misclassified.
Further Work
Given the limitations, there is significant potential for further work. Future research could focus on using natural language processing (NLP) models tailored to historical texts, particularly Renaissance-era Italian, to better capture the nuances of relationships. This would help improve the accuracy of syntactic and semantic understanding.
A deeper analysis of mismatched categories could provide insights into how relationships shifted contextually. Additionally, exploring the ‘other’ category of relationships could uncover new types of interactions that were common in the past but not today.
Expanding this analysis to include other historical records from Renaissance Venice, beyond just Sanudo’s diaries, would offer a more comprehensive understanding of the social and geographical networks of the time.
While our work focused on volume 5 of Marino Sanudo’s diaries, a broader approach covering all 58 volumes would provide a more complete view of Venice’s historical landscape.
In conclusion, while this project offers valuable insights into Renaissance Venice, the outlined limitations highlight the need for further refinement of methods in future research.
GitHub repositories
Link: https://github.com/dhlab-class/fdh-2024-student-projects-marcopolo
Website
Link: https://fht-epfl.github.io/marcopolo-sanudo-fdh/
References
Sanudo Diarii Volume 5 https://books.google.ch/books?id=cm6srb292ToC&redir_esc=y
Hero video 1 http://www.unabibliotecaunlibro.it/video?ID=227&PID=64
Hero video 2 https://www.youtube.com/watch?v=JphHw6iU4m8
Website design:
https://www.youtube.com/watch?v=b7a_Y1Ja6js
Sbert: https://sbert.net/