pub enum RoBERTa {
RoBERTaBase,
RoBERTaSequenceClassification,
}
Expand description
Large transformer-based model that predicts sentiment based on given input text.
Transformer-based language model for text generation.
Source: https://github.com/onnx/models/tree/master/text/machine_comprehension/roberta
Variants§
RoBERTaBase
Variant with input is a sequence of words as a string. Example: “Text to encode: Hello, World”
Variant downloaded: ONNX Version 1.6 with Opset Version 11.
RoBERTaSequenceClassification
Variant with input is a sequence of words as a string including sentiment. Example: “This film is so good”
Variant downloaded: ONNX Version 1.6 with Opset Version 9.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RoBERTa
impl RefUnwindSafe for RoBERTa
impl Send for RoBERTa
impl Sync for RoBERTa
impl Unpin for RoBERTa
impl UnwindSafe for RoBERTa
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