Skip to content

Commit 395e72e

Browse files
authored
Merge pull request #22 from oscar-project/dev
Add getter/setter on sentence_identification
2 parents ae3d1cc + 33dfdb0 commit 395e72e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oscar-io"
3-
version = "0.2.3"
3+
version = "0.3.0"
44
edition = "2021"
55
description = "Readers/Writers for OSCAR Corpora."
66
documentation = "https://docs.rs/oscar-io"

src/v3/types/document.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ impl Metadata {
9292
pub fn set_tlsh(&mut self, tlsh: Option<String>) {
9393
self.tlsh = tlsh;
9494
}
95+
96+
pub fn set_sentence_identifications(
97+
&mut self,
98+
sentence_identifications: Vec<Option<Identification>>,
99+
) {
100+
self.sentence_identifications = sentence_identifications;
101+
}
95102
}
96103

97104
impl Default for Metadata {

0 commit comments

Comments
 (0)