Implement the attribute ranking rule edge computation

This commit is contained in:
Kerollmops
2023-04-12 11:40:44 +02:00
committed by Loïc Lecrenier
parent e55efc419e
commit d6a7c28e4d
4 changed files with 98 additions and 26 deletions

View File

@ -13,4 +13,8 @@ impl Interned<Phrase> {
let p = ctx.phrase_interner.get(self);
p.words.iter().flatten().map(|w| ctx.word_interner.get(*w)).join(" ")
}
pub fn words(self, ctx: &SearchContext) -> Vec<Option<Interned<String>>> {
let p = ctx.phrase_interner.get(self);
p.words.clone()
}
}