Skip to main content

rankers

pymusas.spacy_api.rankers

[SOURCE]


spaCy registered functions for creating the following rankers:

contextual_rule_based_ranker​

@spacy.util.registry.misc('pymusas.rankers.ContextualRuleBasedRanker.v1')
def contextual_rule_based_ranker(
rules: List[Rule]
) -> ContextualRuleBasedRanker

pymusas.rankers.ContextualRuleBasedRanker.v1 is a registered function under the @misc function register.

The parameters of this function are passed to the pymusas.rankers.lexicon_entry.get_construction_arguments function of which the output of this function is then used as arguments to the pymusas.rankers.lexicon_entry.ContextualRuleBasedRanker constructor.

Parameters¢​

Returns¢​