pub enum ConversationOption {
GPT2(GPT2Generator),
}Expand description
Variants§
GPT2(GPT2Generator)
Conversation based on GPT2 model
Implementations§
source§impl ConversationOption
impl ConversationOption
pub fn new(config: ConversationConfig) -> Result<Self, RustBertError>
pub fn get_eos_id(&self) -> Result<i64, RustBertError>
pub fn get_tokenizer(&self) -> &TokenizerOption
sourcepub fn model_type(&self) -> ModelType
pub fn model_type(&self) -> ModelType
Returns the ModelType for this ConversationOption