gov.sandia.cognition.text.term
Interface TermNGram

All Superinterfaces:
Cloneable, CloneableSerializable, Named, Serializable, Term, Termable
All Known Implementing Classes:
DefaultTermNGram

public interface TermNGram
extends Term

Interface for a term that is some type of n-gram. An n-gram is a tuple containing n terms, any of which may be null.

Since:
3.0
Author:
Justin Basilico

Method Summary
 Term getTerm(int i)
          Gets the i-th term in the n-gram.
 int getTermCount()
          Gets the number of terms in the n-gram.
 List<Term> getTermList()
          Gets the list of terms in the n-gram.
 
Methods inherited from interface gov.sandia.cognition.util.Named
getName
 
Methods inherited from interface gov.sandia.cognition.text.term.Termable
asTerm
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Method Detail

getTermCount

int getTermCount()
Gets the number of terms in the n-gram.

Returns:
The number of terms in the n-gram.

getTerm

Term getTerm(int i)
Gets the i-th term in the n-gram.

Parameters:
i - The zero-based index of the term to get.
Returns:
The i-th term in the n-gram.

getTermList

List<Term> getTermList()
Gets the list of terms in the n-gram.

Returns:
The list of terms in the n-gram.