pub struct FeatureExtractionConfig {
pub max_depth: usize,
pub encode_structure: bool,
pub encode_quantifiers: bool,
pub fixed_dimension: Option<usize>,
}Expand description
Configuration for feature extraction
Fields§
§max_depth: usizeMaximum tree depth to encode
encode_structure: boolWhether to encode structural information
encode_quantifiers: boolWhether to encode quantifier information
fixed_dimension: Option<usize>Feature vector dimension (if fixed)
Implementations§
Source§impl FeatureExtractionConfig
impl FeatureExtractionConfig
Sourcepub fn with_max_depth(self, depth: usize) -> Self
pub fn with_max_depth(self, depth: usize) -> Self
Set maximum depth
Sourcepub fn with_encode_structure(self, encode: bool) -> Self
pub fn with_encode_structure(self, encode: bool) -> Self
Set whether to encode structure
Sourcepub fn with_encode_quantifiers(self, encode: bool) -> Self
pub fn with_encode_quantifiers(self, encode: bool) -> Self
Set whether to encode quantifiers
Sourcepub fn with_fixed_dimension(self, dim: usize) -> Self
pub fn with_fixed_dimension(self, dim: usize) -> Self
Set fixed feature dimension
Trait Implementations§
Source§impl Clone for FeatureExtractionConfig
impl Clone for FeatureExtractionConfig
Source§fn clone(&self) -> FeatureExtractionConfig
fn clone(&self) -> FeatureExtractionConfig
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 FeatureExtractionConfig
impl Debug for FeatureExtractionConfig
Auto Trait Implementations§
impl Freeze for FeatureExtractionConfig
impl RefUnwindSafe for FeatureExtractionConfig
impl Send for FeatureExtractionConfig
impl Sync for FeatureExtractionConfig
impl Unpin for FeatureExtractionConfig
impl UnwindSafe for FeatureExtractionConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more