pt.tumba.ngram
Interface Profile

All Known Implementing Classes:
DataProfile, EntryProfile

public interface Profile

Abstract interface to model an N-Gram Profile. Profiles are responsible for storing N-gram occurence frequency information for a given textual string.

Author:
Bruno Martins

Method Summary
 double getRank(NGram gram)
          Gets the ranking position of a given N-gram.
 double getWeight(NGram gram)
          Gets the weighting score of a given N-gram.
 java.util.Iterator ngrams()
          Return an Iterator over all contained N-grams.
 

Method Detail

getRank

double getRank(NGram gram)
Gets the ranking position of a given N-gram.

Parameters:
gram - An N-Gram
Returns:
The associated ranking position.

getWeight

double getWeight(NGram gram)
Gets the weighting score of a given N-gram.

Parameters:
gram - An N-Gram
Returns:
The associated occurence frequency.

ngrams

java.util.Iterator ngrams()
Return an Iterator over all contained N-grams.

Returns:
An Iterator over all contained N-grams.