pub struct ConceptExtractionConfig {
pub min_concept_length: usize,
pub max_concept_words: usize,
pub use_noun_phrases: bool,
pub use_capitalization: bool,
pub use_title_case: bool,
pub use_tf_idf_scoring: bool,
pub min_term_frequency: usize,
pub max_concepts_per_chunk: usize,
pub min_concept_score: f32,
pub exclude_stopwords: bool,
pub custom_stopwords: Vec<String>,
}Expand description
Configuration for extracting concepts from text documents. This configuration controls how key concepts are identified and extracted from text.
Fields§
§min_concept_length: usizeMinimum length of a concept in characters
max_concept_words: usizeMaximum number of words in a multi-word concept
use_noun_phrases: boolWhether to extract noun phrases as concepts
use_capitalization: boolWhether to consider capitalized words as potential concepts
use_title_case: boolWhether to consider title-cased phrases as potential concepts
use_tf_idf_scoring: boolWhether to use TF-IDF scoring for concept importance
min_term_frequency: usizeMinimum term frequency for a term to be considered a concept
max_concepts_per_chunk: usizeMaximum number of concepts to extract per document chunk
min_concept_score: f32Minimum score threshold for a term to be considered a concept
exclude_stopwords: boolWhether to exclude common stopwords from concept extraction
custom_stopwords: Vec<String>Custom list of stopwords to exclude from concept extraction
Trait Implementations§
Source§impl Clone for ConceptExtractionConfig
impl Clone for ConceptExtractionConfig
Source§fn clone(&self) -> ConceptExtractionConfig
fn clone(&self) -> ConceptExtractionConfig
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 ConceptExtractionConfig
impl Debug for ConceptExtractionConfig
Source§impl Default for ConceptExtractionConfig
impl Default for ConceptExtractionConfig
Source§impl<'de> Deserialize<'de> for ConceptExtractionConfig
impl<'de> Deserialize<'de> for ConceptExtractionConfig
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 ConceptExtractionConfig
impl RefUnwindSafe for ConceptExtractionConfig
impl Send for ConceptExtractionConfig
impl Sync for ConceptExtractionConfig
impl Unpin for ConceptExtractionConfig
impl UnsafeUnpin for ConceptExtractionConfig
impl UnwindSafe for ConceptExtractionConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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