Merge pull request #333 from huggingface/fix-added-tokens

Python - Fix Added token deserialization
This commit is contained in:
Anthony MOI
2020-07-06 14:52:37 -04:00
committed by GitHub

View File

@ -107,6 +107,7 @@ impl AddedToken {
for (key, value) in state {
let key: &str = key.extract()?;
match key {
"content" => self.content = value.extract()?,
"single_word" => self.single_word = Some(value.extract()?),
"lstrip" => self.lstrip = Some(value.extract()?),
"rstrip" => self.rstrip = Some(value.extract()?),