mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-31 04:29:21 +00:00
fix pad
calls
This commit is contained in:
@ -244,7 +244,7 @@ declare_types! {
|
|||||||
let mut this = cx.this();
|
let mut this = cx.this();
|
||||||
let guard = cx.lock();
|
let guard = cx.lock();
|
||||||
this.borrow_mut(&guard).encoding.execute_mut(|encoding| {
|
this.borrow_mut(&guard).encoding.execute_mut(|encoding| {
|
||||||
encoding.unwrap().pad(length, pad_id, pad_type_id, &pad_token, &direction);
|
encoding.unwrap().pad(length, pad_id, pad_type_id, &pad_token, direction);
|
||||||
});
|
});
|
||||||
|
|
||||||
Ok(cx.undefined().upcast())
|
Ok(cx.undefined().upcast())
|
||||||
|
@ -253,7 +253,7 @@ impl Encoding {
|
|||||||
|
|
||||||
Ok(self
|
Ok(self
|
||||||
.encoding
|
.encoding
|
||||||
.pad(length, pad_id, pad_type_id, pad_token, &direction))
|
.pad(length, pad_id, pad_type_id, pad_token, direction))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[args(kwargs = "**")]
|
#[args(kwargs = "**")]
|
||||||
|
Reference in New Issue
Block a user