pub struct TrainingExample {
pub text: String,
pub intent: IntentId,
pub confidence: f64,
pub source: TrainingSource,
}
Expand description
Training example for intent classification
Fields§
§text: String
The input text
intent: IntentId
The correct intent for this text
confidence: f64
Confidence score for this example (0.0 to 1.0)
source: TrainingSource
Source of this training example
Trait Implementations§
Source§impl Clone for TrainingExample
impl Clone for TrainingExample
Source§fn clone(&self) -> TrainingExample
fn clone(&self) -> TrainingExample
Returns a duplicate 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 moreSource§impl Debug for TrainingExample
impl Debug for TrainingExample
Source§impl<'de> Deserialize<'de> for TrainingExample
impl<'de> Deserialize<'de> for TrainingExample
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TrainingExample
impl RefUnwindSafe for TrainingExample
impl Send for TrainingExample
impl Sync for TrainingExample
impl Unpin for TrainingExample
impl UnwindSafe for TrainingExample
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