Small cleanup

This commit is contained in:
Loïc Lecrenier
2023-03-20 13:39:19 +01:00
parent c63c7377e6
commit 272cd7ebbd
4 changed files with 4 additions and 27 deletions

View File

@ -71,9 +71,6 @@ impl<E> PartialEq for Edge<E> {
/// 1. Retrieve the set of edges (their cost and condition) between two nodes.
/// 2. Compute the document ids satisfying a condition
pub trait RankingRuleGraphTrait: Sized {
/// The condition of an edge connecting two query nodes. The condition
/// should be sufficient to compute the edge's cost and associated document ids
/// in [`resolve_condition`](RankingRuleGraphTrait::resolve_condition).
type Condition: Sized + Clone + PartialEq + Eq + Hash;
/// Return the label of the given edge condition, to be used when visualising

View File

@ -74,6 +74,7 @@ impl RankingRuleGraphTrait for TypoGraph {
is_prefix: term.is_prefix,
zero_typo: term.zero_typo,
prefix_of: term.prefix_of,
// TOOD: debatable
synonyms: term.synonyms,
split_words: None,
one_typo: Box::new([]),