pub struct CorpusItem {
pub state: String,
pub questions: BTreeMap<String, Question>,
pub expected: BTreeMap<String, AnswerValue>,
}Expand description
One labelled corpus item: a state, the questions asked of it in one batch, and the gold answer for whichever ids have one (a missing id is ungraded).
Fields§
§state: String§questions: BTreeMap<String, Question>§expected: BTreeMap<String, AnswerValue>Trait Implementations§
Source§impl Clone for CorpusItem
impl Clone for CorpusItem
Source§impl Debug for CorpusItem
impl Debug for CorpusItem
Source§impl PartialEq for CorpusItem
impl PartialEq for CorpusItem
impl StructuralPartialEq for CorpusItem
Auto Trait Implementations§
impl Freeze for CorpusItem
impl RefUnwindSafe for CorpusItem
impl Send for CorpusItem
impl Sync for CorpusItem
impl Unpin for CorpusItem
impl UnsafeUnpin for CorpusItem
impl UnwindSafe for CorpusItem
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