Twease

twease.passages
Interface PassageScorer

All Known Implementing Classes:
CompactOnlyPassageScorer, CompactPassageScorer, ConstantPassageScorer, SumOfWeightsPassageScorer, TermCountPassageScorer, TransitionSumOfWeightsPassageScorer, TSWLengthNormalizedPassageScorer

public interface PassageScorer

Calculates a score for a span of TermMatchInfo indices.

Author:
Fabien Campagne Date: Feb 16, 2007 Time: 3:26:06 PM

Method Summary
 double score(TermMatchInfo termMatchInfo, it.unimi.dsi.mg4j.search.Interval intervalInTMI, int passageLength)
          Score a TMI interval.
 

Method Detail

score

double score(TermMatchInfo termMatchInfo,
             it.unimi.dsi.mg4j.search.Interval intervalInTMI,
             int passageLength)
Score a TMI interval. The interval spans positions from intervalInTMI.left to intervalInTMI.right. Left and right positions are indices in the termMatchInfo data structure.

Parameters:
termMatchInfo - Term Match Information for a given document.
intervalInTMI - Limits of a passage expressed in TermMatchInfo indices.
passageLength - The length of the passage, in words.
Returns:
the score of the passage from intervalInTMI.left to intervalInTMI.right

Twease

Copyright © 2005-2009 Institute for Computational Biomedicine, All Rights Reserved.