sentRep
Class SimpleSentenceFactory
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleSentenceFactory
public SimpleSentenceFactory()
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