pub struct Report {
pub threshold: f64,
pub text: String,
pub token_count: usize,
pub mean_prob: f64,
pub perplexity: f64,
pub spans: Vec<Span>,
}Expand description
Result of detect.
Fields§
§threshold: f64Probability below which a word is flagged.
text: StringThe whole answer, tokens joined.
token_count: usizeNumber of tokens.
mean_prob: f64Mean token probability.
perplexity: f64Perplexity of the answer, exp(-mean logprob): 1.0 when the model was
certain of every token, higher when it was less sure overall.
spans: Vec<Span>Flagged spans, in order.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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