pub struct Claim {
pub predicate: String,
pub subject: MentionRef,
pub object: ClaimObject,
pub polarity: Polarity,
pub valid_from: Option<i64>,
pub valid_to: Option<i64>,
pub confidence: f32,
}Expand description
One extracted claim from the LLM. Maps to one assertion + mentions.
Fields§
§predicate: String§subject: MentionRef§object: ClaimObject§polarity: Polarity§valid_from: Option<i64>Epoch millis. None = TIME_MIN (always true).
valid_to: Option<i64>Epoch millis. None = TIME_MAX (still true).
confidence: f32Trait Implementations§
Source§impl<'de> Deserialize<'de> for Claim
impl<'de> Deserialize<'de> for Claim
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 Claim
impl RefUnwindSafe for Claim
impl Send for Claim
impl Sync for Claim
impl Unpin for Claim
impl UnsafeUnpin for Claim
impl UnwindSafe for Claim
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