sentRep
Class SimpleSentenceFactory

java.lang.Object
  extended by sentRep.SimpleSentenceFactory
All Implemented Interfaces:
SentenceFactory

public class SimpleSentenceFactory
extends java.lang.Object
implements SentenceFactory

Creates sentence without the aid of WordNet or Roget's Thesaurus.

Author:
Alistair Kennedy

Nested Class Summary
 
Nested classes/interfaces inherited from interface sentRep.SentenceFactory
SentenceFactory.Resource
 
Constructor Summary
SimpleSentenceFactory()
           
 
Method Summary
 Sentence buildRepresentationVector(java.lang.String[] sWords)
          Creates a sentence from a list of words
 Sentence buildRepresentationVector(java.lang.String[] sWords, int maxPhraseLength)
          Creates a sentence from a list of words.
 Sentence buildRepresentationVector(java.lang.String[] sWords, int maxPhraseLength, double mean)
          Creates a sentence from a list of words.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSentenceFactory

public SimpleSentenceFactory()
Method Detail

buildRepresentationVector

public Sentence buildRepresentationVector(java.lang.String[] sWords,
                                          int maxPhraseLength,
                                          double mean)
Creates a sentence from a list of words.

Specified by:
buildRepresentationVector in interface SentenceFactory
Returns:
Sentence

buildRepresentationVector

public Sentence buildRepresentationVector(java.lang.String[] sWords,
                                          int maxPhraseLength)
Creates a sentence from a list of words.

Specified by:
buildRepresentationVector in interface SentenceFactory
Returns:
Sentence

buildRepresentationVector

public Sentence buildRepresentationVector(java.lang.String[] sWords)
Creates a sentence from a list of words

Specified by:
buildRepresentationVector in interface SentenceFactory
Returns:
Sentence