Skip to content

Commit

Permalink
Give correct name in xlsx importer to segmentation token.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskrause committed Sep 5, 2024
1 parent 943136d commit 4bc6089
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/importer/xlsx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit 4bc6089

Please sign in to comment.