sentRep
Interface SentenceFactory

All Known Implementing Classes:
RogetSentenceFactory, SimpleSentenceFactory

public interface SentenceFactory

Defines functions which are used by a Sentence Factory to create a Sentence Object.

Version:
1.2 Dec 2008
Author:
Alistair Kennedy

Nested Class Summary
static class SentenceFactory.Resource
           
 
Method Summary
 Sentence buildRepresentationVector(java.lang.String[] sWords)
          This builds a hashtables of features and values out of an array of words.
 Sentence buildRepresentationVector(java.lang.String[] sWords, int maxPhraseLength)
          This builds a hashtables of features and values out of an array of words.
 Sentence buildRepresentationVector(java.lang.String[] sWords, int maxPhraseLength, double mean)
          This builds a hashtables of features and values out of an array of words.
 

Method Detail

buildRepresentationVector

Sentence buildRepresentationVector(java.lang.String[] sWords)
This builds a hashtables of features and values out of an array of words. In the implementation we used, these words contained POS tags assigned by the Brill tagger.

Parameters:
sWords -
Returns:
Sentence

buildRepresentationVector

Sentence buildRepresentationVector(java.lang.String[] sWords,
                                   int maxPhraseLength)
This builds a hashtables of features and values out of an array of words. In the implementation we used, these words contained POS tags assigned by the Brill tagger or some other tagger. A maximum phrase length is defined.

Parameters:
sWords -
maxPhraseLength -
Returns:
Sentence

buildRepresentationVector

Sentence buildRepresentationVector(java.lang.String[] sWords,
                                   int maxPhraseLength,
                                   double mean)
This builds a hashtables of features and values out of an array of words. In the implementation we used, these words contained POS tags assigned by the Brill tagger or some other tagger. A maximum phrase length is defined as is the mean

Parameters:
sWords -
maxPhraseLength -
mean -
Returns:
Sentence