ArtMarketsofSeville

The Art Markets of Seville Database. Compiles historical archival sources from Sevillian archives on painting, sculpture and other crafts, using NLP to mine them for information such as actors, locations, dates, objects and money amounts. In this repository, I keep resources and code employed in the creation of the database.

View the Project on GitHub FelipeAdeT/ArtMarketsofSeville

NER Resources

Named Entity Recognition is the process of extracting and labeling real-world entities with proper names in a set of texts. Examples of entities to be extracted can be people, locations, organizations, and even monetary amounts, dates, and a long etcetera of options.

Statistical models for NER are trained on corpora of texts. Those readily available online are usually trained on modern samples of news articles or on similarly standardized genres. We have found that these models can be used on historical texts, but results can greatly be improved.

In this project, we have used Spacy’s medium Spanish Model to analyze historical Spanish texts, and we have experimented with several ways to improve its predictions. We have tried to improve accuracy and recall on existing tags (person, location, organization) and new tags (date, monetary amount, object) which whe have seen used in the more developed English models.

We have included a series of Jupyter notebooks documenting our process in this repository, accessible via the links below. They assume you have a basic knowledge of the Spacy library (if not, learn here).

Index

  1. Training Spacy’s Model guides you through the process of training the model, and performs a simple evaluation of the results.
  2. Adding a Custom Component to the Pipeline explores the addition of a new pipeline component, here a normalized dictionary that modifies the “norm” attribute of each token, thus modifying the vector representation that the NER model is later trained with.
  3. Evaluation notebooks These notebooks explore different methods of evaluation of the training results, accounting for variations in the training and testing data by repeatedly training on different samples of the data.

    -Evaluating Spacy NER Repeated Random Sub-Sampling

    -Evaluating Spacy NER K-fold Cross Validation

  4. Exporting and saving the data