Implement suggestions by @sebpuetz

Co-authored-by: Sebastian Pütz <sebastian.puetz@uni-tuebingen.de>
This commit is contained in:
Anthony MOI
2020-07-31 16:49:00 -04:00
committed by Anthony MOI
parent efb29582c6
commit dad70e8e85
11 changed files with 161 additions and 157 deletions

View File

@@ -61,7 +61,7 @@ impl PreTokenizer {
.into_py()?;
Ok(pretokenized
.get_normalized(true)
.get_normalized(tk::OffsetReferential::Original)
.into_iter()
.map(|(s, o)| (s.to_owned(), o))
.collect())