Crate matcher_rs

Source

Modulesยง

matcher ๐Ÿ”’
process ๐Ÿ”’
regex_matcher ๐Ÿ”’
sim_matcher ๐Ÿ”’
simple_matcher ๐Ÿ”’
util ๐Ÿ”’

Structsยง

MatchResult
A structure representing the results of a matching operation.
MatchTable
A structure representing a match table configuration.
Matcher
The Matcher struct is responsible for managing and facilitating various types of matching operations utilizing different word processing strategies and match table configurations.
ProcessType
Represents different types of processes that can be applied.
RegexMatcher
A struct representing a regex matcher.
RegexResult
A struct representing the result of a regex match operation.
RegexTable
A struct representing a table of regular expressions, containing metadata and a list of words.
SimMatcher
The SimMatcher struct is responsible for performing similarity matching operations based on different processing types and similarity algorithms.
SimResult
Represents the result of a similarity matching operation.
SimTable
Represents a table structure to be used in the similarity matching process.
SimpleMatcher
Represents a simple matcher for processing words based on process types.
SimpleResult
Represents a simple result for matching words in the SimpleMatcher.
SimpleWord
A struct representing a simple word.

Enumsยง

MatchTableType
An enumeration representing different types of match tables.
RegexMatchType
Enum representing different types of regular expression matches, each with a unique strategy.
SimMatchType
Enumeration representing the types of similarity matching algorithms available.

Staticsยง

GLOBAL ๐Ÿ”’

Traitsยง

MatchResultTrait
A trait defining the required methods for a match result.
TextMatcherTrait
Trait defining the behavior of text matching.

Functionsยง

build_process_type_tree
Constructs a processing type tree from a list of processing types.
get_process_matcher
Retrieves or constructs a ProcessMatcher for a given ProcessType.
reduce_text_process
Reduces the text based on a composite process type by applying a sequence of processing rules.
reduce_text_process_emit
Applies a sequence of processing rules to the input text and emits the processed text at each step.
reduce_text_process_with_set
Reduces the given text based on a list of process_types and returns an array of tuples containing the processed text and an IdSet of process type identifiers.
reduce_text_process_with_tree
Reduces the text process by applying a tree of process type nodes.
text_process
Process a given text based on a single-bit process type.

Type Aliasesยง

MatchTableMap
A type alias for a mapping from match table IDs to their corresponding MatchTables.
MatchTableMapSerde
SimpleTable
A type alias for a nested integer map structure used for mapping process types to words.
SimpleTableSerde