pub struct Input<'a> {
pub ids: &'a [u32],
pub markers: &'a [u32],
pub qtype: usize,
}Expand description
One question, laid out as Laya lays it out.
Fields§
§ids: &'a [u32]Token ids, [CLS] ... [SEP].
markers: &'a [u32]The position of each option’s mask token.
qtype: usize0 for choice, 1 for score, 2 for noul.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Input<'a>
impl<'a> RefUnwindSafe for Input<'a>
impl<'a> Send for Input<'a>
impl<'a> Sync for Input<'a>
impl<'a> Unpin for Input<'a>
impl<'a> UnsafeUnpin for Input<'a>
impl<'a> UnwindSafe for Input<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more