ExtendedBoolean

class matchup.models.algorithms.extended_boolean.ExtendedBoolean(p: float)

Bases: matchup.models.model.IterModel

Methods Summary

generate_scores(doc_repr, m) Generate scores with Extended Boolean Model
run(query, vocabulary) Needs weighting <TF <TermFrequency> x IDF <InverseFrequency>>

Methods Documentation

generate_scores(doc_repr, m) → float
Generate scores with Extended Boolean Model
Parameters:
  • doc_repr – vector that represents one scores of terms in one document
  • m – size of query (group by key)
Returns:

run(query: List[matchup.presentation.text.Term], vocabulary: matchup.structure.vocabulary.Vocabulary)
Needs weighting <TF <TermFrequency> x IDF <InverseFrequency>>
Parameters:
  • query
  • vocabulary
Returns: