mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-23 00:35:35 +00:00
Update Python bindings
This commit is contained in:
committed by
Pierric Cistac
parent
ffda63cd33
commit
b90104e705
@ -193,8 +193,13 @@ impl Encoding {
|
||||
}
|
||||
|
||||
#[getter]
|
||||
fn get_overflowing(&self) -> Option<Encoding> {
|
||||
self.encoding.get_overflowing().cloned().map(Encoding::new)
|
||||
fn get_overflowing(&self) -> Vec<Encoding> {
|
||||
self.encoding
|
||||
.get_overflowing()
|
||||
.clone()
|
||||
.into_iter()
|
||||
.map(Encoding::new)
|
||||
.collect()
|
||||
}
|
||||
|
||||
#[args(kwargs = "**")]
|
||||
|
Reference in New Issue
Block a user