diff --git a/CHANGELOG.md b/CHANGELOG.md index 497b4354..96952364 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- `xlsx` importer did not give the correct node name to segmentation token. Due + to this inconsistency, span annotations on segmentation nodes where not + connected to the segmentation token. + ## [0.16.0] - 2024-09-02 ### Added diff --git a/src/importer/xlsx.rs b/src/importer/xlsx.rs index e7517764..0a53a67d 100644 --- a/src/importer/xlsx.rs +++ b/src/importer/xlsx.rs @@ -231,7 +231,7 @@ impl ImportSpreadsheet { let overlapped_base_tokens: &[String] = &base_tokens[base_token_start..base_token_end]; // TODO check indices - let node_name = if token_annos.contains(name) { + let node_name = if name == tok_name || token_annos.contains(name) { format!("{}#{}_{}-{}", &doc_path, tok_name, start_row, end_row_excl) } else { format!(