Struct rust_bert::pipelines::masked_language::MaskedToken
source · pub struct MaskedToken {
pub text: String,
pub id: i64,
pub score: f64,
}Expand description
Output container for masked language model pipeline.
Fields§
§text: StringString representation of the masked word
id: i64Vocabulary index for the masked word
score: f64Score for the masked word
Trait Implementations§
source§impl Clone for MaskedToken
impl Clone for MaskedToken
source§fn clone(&self) -> MaskedToken
fn clone(&self) -> MaskedToken
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for MaskedToken
impl Send for MaskedToken
impl Sync for MaskedToken
impl Unpin for MaskedToken
impl UnwindSafe for MaskedToken
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