PatternMatching::AdvancedPatternBuilder
Inherits Reference < Object
Enhanced pattern builder for advanced pattern matching
Constructors
new(atomspace : AtomSpace::AtomSpace)
SourceInstance methods
and_patterns(pattern_names : Array(String)) : Array(MatchResult)
Compose patterns using logical operations
apply_learned_patterns
Sourceatomspace
Sourcebayesian_inference(evidence : Array(Pattern), hypothesis : Pattern) : Advanced::StatisticalMatcher::ProbabilisticMatch | Nil
Sourcecomposer
Sourcefuzzy_match(pattern : Pattern, similarity_threshold : Float64 = 0.8) : Array(Advanced::StatisticalMatcher::ProbabilisticMatch)
Sourcelearner
Sourcemonte_carlo_sampling(pattern : Pattern, num_samples : Int32 = 1000) : Array(Advanced::StatisticalMatcher::ProbabilisticMatch)
Sourcenot_patterns(base_pattern : String, exclude_pattern : String) : Array(MatchResult)
Sourceor_patterns(pattern_names : Array(String)) : Array(MatchResult)
Sourceprobabilistic_match(pattern : Pattern) : Array(Advanced::StatisticalMatcher::ProbabilisticMatch)
Statistical pattern operations
register_pattern(name : String, template : AtomSpace::Atom, constraints : Array(Constraint) = [] of Constraint)
Register a reusable pattern
statistical_matcher
Sourcetemporal_interval(pattern : Pattern, interval_ms : Int64) : Array(Advanced::TemporalPatternMatcher::TemporalMatch)
Sourcetemporal_matcher
Sourcetemporal_sequence(patterns : Array(Pattern), sequence_name : String = "default") : Array(Advanced::TemporalPatternMatcher::TemporalMatch)
Temporal pattern operations