pub fn new(transition_system: T, vectorizer: &'a InputVectorizer, batch_size: usize) -> Self {
        TensorCollector {
            transition_system,
            vectorizer,
            batch_size,
            lookup_inputs: Vec::new(),
            labels: Vec::new(),
            non_lookup_inputs: Vec::new(),
            instance_idx: 0,
        }
    }
/// Construct a tensor collector.
///
/// The tensor collector will use the given transition system, parser state
/// vectorizer, and batch size.
Construct a tensor collector.
The tensor collector will use the given transition system, parser state
vectorizer, and batch size.
Construct a tensor collector . The tensor collector will use the given transition system parser state vectorizer and batch size .
pub fn new(transition_system: T, vectorizer: &'a InputVectorizer, batch_size: usize) -> Self {
        TensorCollector {
            transition_system,
            vectorizer,
            batch_size,
            lookup_inputs: Vec::new(),
            labels: Vec::new(),
            non_lookup_inputs: Vec::new(),
            instance_idx: 0,
        }
    }
pub fn new ( transition_system : T , vectorizer : & ' a InputVectorizer , batch_size : usize ) -> Self { TensorCollector { transition_system , vectorizer , batch_size , lookup_inputs : Vec :: new ( ) , labels : Vec :: new ( ) , non_lookup_inputs : Vec :: new ( ) , instance_idx : 0 , } }
Construct a tensor collector.
Construct a tensor collector .
transition_system
T
vectorizer
&'a InputVectorizer
batch_size
usize
transition_system
T
vectorizer
&'a InputVectorizer
batch_size
usize