Skip to content

Commit

Permalink
Merge pull request #21 from oscar-project/dev-sentence-identification
Browse files Browse the repository at this point in the history
Add a getter/setter on sentence_identifications
  • Loading branch information
Uinelj authored May 24, 2023
2 parents 583781f + 0e26657 commit a98be65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oscar-io"
version = "0.2.3"
version = "0.3.4"
edition = "2021"
description = "Readers/Writers for OSCAR Corpora."
documentation = "https://docs.rs/oscar-io"
Expand Down
7 changes: 7 additions & 0 deletions src/v3/types/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ impl Metadata {
pub fn set_tlsh(&mut self, tlsh: Option<String>) {
self.tlsh = tlsh;
}

pub fn set_sentence_identifications(
&mut self,
sentence_identifications: Vec<Option<Identification>>,
) {
self.sentence_identifications = sentence_identifications;
}
}

impl Default for Metadata {
Expand Down

0 comments on commit a98be65

Please sign in to comment.