tml.corpus
Class TextPassage.TextPassageStats
java.lang.Object
tml.corpus.TextPassage.TextPassageStats
- Enclosing class:
- TextPassage
public class TextPassage.TextPassageStats
- extends java.lang.Object
This class represents the statistics for a TextPassage
. Basically
how many total terms and how many different terms.
- Author:
- Jorge Villalon
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextPassage.TextPassageStats
public TextPassage.TextPassageStats()
getDifferentTerms
public int getDifferentTerms()
- How many different terms the
TextPassage
contains
- Returns:
- the number of different terms
getStats
public Stats getStats()
- Returns:
- the statistics for the
TextPassage
getTotalTerms
public int getTotalTerms()
- Returns:
- the total number of terms in a
TextPassage
load
public void load(int[] termsFrequencies)
- Loads a set of term frequencies into the passage
- Parameters:
termsFrequencies
- an array with the term frequencies