diff --git a/Cargo.toml b/Cargo.toml index c1e9c91..b312035 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/v3/types/document.rs b/src/v3/types/document.rs index d349be5..abb99ed 100644 --- a/src/v3/types/document.rs +++ b/src/v3/types/document.rs @@ -92,6 +92,13 @@ impl Metadata { pub fn set_tlsh(&mut self, tlsh: Option) { self.tlsh = tlsh; } + + pub fn set_sentence_identifications( + &mut self, + sentence_identifications: Vec>, + ) { + self.sentence_identifications = sentence_identifications; + } } impl Default for Metadata {