Skip to content

Commit dcaf52c

Browse files
hyperpolymathclaude
andcommitted
fix(example): remove dead NeuralTagger reference from aspect_tagging_demo
NeuralTagger was imported and instantiated at line 7 + 104 but has never existed in src/rust/aspect.rs (verified: zero `pub struct NeuralTagger` matches anywhere in the workspace). The import broke cargo check --example aspect_tagging_demo with E0432. Removed the import + the .add_tagger(Box::new(NeuralTagger::new()), 0.5) call. CompositeTagger now ships with the single RuleBasedTagger which is what actually drives the demo. Left an inline comment for the future neural tagger integration (likely via Julia /predict or src/rust/neural.rs). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent bde23ab commit dcaf52c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

examples/aspect_tagging_demo.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! Example demonstrating aspect tagging system usage
55
66
use echidna::aspect::{
7-
AggregationStrategy, Aspect, AspectTagger, CompositeTagger, NeuralTagger, RuleBasedTagger,
7+
AggregationStrategy, Aspect, AspectTagger, CompositeTagger, RuleBasedTagger,
88
};
99
use echidna::core::Term;
1010

@@ -99,9 +99,12 @@ fn main() {
9999

100100
// Example 6: Composite tagger with multiple strategies
101101
println!("6. Composite Tagger:");
102+
// NOTE: a NeuralTagger was previously composed in here. It was a stub
103+
// never landed in src/rust/aspect.rs, so the import + add_tagger call
104+
// were dead. Removed 2026-04-25. Re-add when a real neural tagger
105+
// ships (likely via the Julia /predict endpoint or src/rust/neural.rs).
102106
let composite = CompositeTagger::new(AggregationStrategy::WeightedVoting)
103-
.add_tagger(Box::new(RuleBasedTagger::new()), 1.0)
104-
.add_tagger(Box::new(NeuralTagger::new()), 0.5); // Neural tagger stub
107+
.add_tagger(Box::new(RuleBasedTagger::new()), 1.0);
105108

106109
let theorem_name = "functor_category_theory";
107110
let statement = Term::Const("functor".to_string());

0 commit comments

Comments
 (0)