[][src]Enum onnxruntime::download::language::machine_comprehension::MachineComprehension

pub enum MachineComprehension {
    BiDAF,
    BERTSquad,
    RoBERTa(RoBERTa),
    GPT2(GPT2),
}

Machine Comprehension

This subset of natural language processing models that answer questions about a given context paragraph.

Source: https://github.com/onnx/models#machine_comprehension

Variants

BiDAF

Answers a query about a given context paragraph.

This model is a neural network for answering a query about a given context paragraph.

Source: https://github.com/onnx/models/tree/master/text/machine_comprehension/bidirectional_attention_flow

Variant downloaded: ONNX Version 1.4 with Opset Version 9.

BERTSquad

Answers questions based on the context of the given input paragraph.

Source: https://github.com/onnx/models/tree/master/text/machine_comprehension/bert-squad

Variant downloaded: ONNX Version 1.5 with Opset Version 10.

RoBERTa(RoBERTa)

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

GPT2(GPT2)

Large transformer-based language model that given a sequence of words within some text, predicts the next word.

Source: https://github.com/onnx/models/tree/master/text/machine_comprehension/gpt-2

Trait Implementations

impl Clone for MachineComprehension[src]

impl Debug for MachineComprehension[src]

impl From<MachineComprehension> for AvailableOnnxModel[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.