gov.sandia.cognition.text.term
Interface TermCounts

All Known Implementing Classes:
DefaultTermCounts

public interface TermCounts

Interface for a class that holds counts associated with terms.

Since:
3.0
Author:
Justin Basilico

Method Summary
 int getCount(Term term)
          Get the count for a given term.
 Set<Term> getTerms()
          Gets the set of all terms the counts are over.
 int getTotalCount()
          Gets the total count of all terms.
 

Method Detail

getCount

int getCount(Term term)
Get the count for a given term.

Parameters:
term - The term to get the counts for.
Returns:
The counts for the given term, if it is known. Otherwise, 0.

getTotalCount

int getTotalCount()
Gets the total count of all terms. It is the sum of the count for all terms that are known to this object.

Returns:
The total count of all terms.

getTerms

Set<Term> getTerms()
Gets the set of all terms the counts are over.

Returns:
The set of terms the counts are over.