classifier
Class PhraseVariants

java.lang.Object
  |
  +--classifier.PhraseVariants

public class PhraseVariants
extends java.lang.Object

Given a vector of lists of related words (each one a pair of term and a similarity factor), enumerates all sequences of words made with related words with associated overall weights.


Constructor Summary
PhraseVariants(java.util.Vector[] relatedWords)
           
PhraseVariants(java.util.Vector[] relatedWords, int len)
          builds all variants of words from position 0 to position len
 
Method Summary
 boolean hasMoreElements()
           
 TermWeight nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhraseVariants

public PhraseVariants(java.util.Vector[] relatedWords)

PhraseVariants

public PhraseVariants(java.util.Vector[] relatedWords,
                      int len)
builds all variants of words from position 0 to position len
Method Detail

hasMoreElements

public boolean hasMoreElements()

nextElement

public TermWeight nextElement()