Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

From One-Hot to Semantic Encoding: Entity Embedding for Small and Heterogeneous Digital Humanities Datasets

This repository accompanies the paper "From One-Hot to Semantic Encoding: Entity Embedding for Small and Heterogeneous Digital Humanities Datasets". It implements a pipeline to compare symbolic (one-hot) and semantic (LLM-based) representations of categorical metadata for a digital literature dataset coming from two distinct databases. The pipeline of this paper is inspired by the ARISE framework.

Repository structure

.
├── semantic_encoding_DH.py      # Main script
├── DL_dataset.csv              # Dataset (wide binary metadata)
├── DL_descriptions.JSON        # Semantic descriptions
├── prompt.md                   # LLM prompt template
└── README.md

Usage

python semantic_encoding_DH.py \
  --csv DL_dataset.csv \
  --descriptions DL_descriptions.JSON \
  --outdir outputs

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages